/**
 * Theme Name: Task Based Activities
 * Description: Blocksy Child theme
 * Author: SlypigPro
 * Template: blocksy
 * Text Domain: blocksy
 */

/* THEME **************************************************************************/

:root {
  --tba-blue: #0282aa;
  --tba-gold: #e6b711;
  --tba-darkblue : #026a8c;
  --tba-black: #11141e;
  --tba-white: #f5f7fa;
  --tba-purple: #780d30;
  --tba-darkpurple: #570822;
  --tba-grey: #e4e6e8;
  --tba-footer: #a6adb5;
 /*search accordion */ 
  --tba-search-blue: #0099CC;
  --tba-search-pink: #FF3399;
  --tba-search-orange: #CC6600;
  --tba-search-purple: #6666CC;
  --tba-search-green: #669900;
  --tba-search-red: #660000;
  /*search accordion hover */
  --tba-search-blue2: #007AA3;
--tba-search-pink2: #CC297A;
--tba-search-orange2: #A35200;
--tba-search-purple2: #5252A3;
--tba-search-green2: #527A00;
--tba-search-red2: #520000;



}


/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/inter-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body,
button,
input,
textarea,
select,
.page-title, .ct-menu-link, .activity-single h1 {
  font-family: "Inter", sans-serif !important;
}


hr {
  border: none;
  border-top: 1px solid var(--tba-darkblue) !important;
  margin: 30px 0;
}

.home h1.page-title {
  display: none;
}

/* PAGE LINKS ***************************************************************************/
/*main a:link, main a:visited {
  color: var(--tba-gold);
  text-decoration: none;
  font-weight: 800;
}

main a:hover {
  text-decoration: underline;
}*/

/* INFO *******************************************************************************/

.infobox {
    
    color: var(--tba-black);
    border-top: 3px solid var(--tba-gold);
    border-bottom: 3px solid var(--tba-gold);
    border-left: 6px solid var(--tba-gold);
    border-right: 6px solid var(--tba-gold);
    text-align: center;
font-size: clamp(16px, 3vw, 20px);
    padding: 2rem;
margin: 2em 0;
    
}

.infobox a {
    color: var(--tba-blue);
}
.infobox a:hover {
    color: var(--tba-gold);
}



.infobox p:last-child {
    margin-bottom: 0;
}




/* HEADER ****************************************************************************/

[data-row="middle"] {
  background: linear-gradient(75deg, var(--tba-blue), var(--tba-darkblue)) !important;
}

/* SEARCH FIELDS ******************************************************************/

.search-filter-base {
  padding:0 !important; margin:0 !important;
}

.search-filter-label {
    font-weight: 700; 
    
    
}

.search-filter-label {
  color: var(--tba-black) !important;
 
}


#search-filter-input-checkbox-0 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px; /* clean spacing between items */
}

#search-filter-input-checkbox-0 .search-filter-input-checkbox {
  display: inline-flex !important;
  width: auto !important;
}

#search-filter-input-checkbox-0 .search-filter-input-checkbox__container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0; /* remove weird spacing */
}

/* Competencies ************************************************/

#search-filter-input-checkbox-1 {
  display: grid !important;
  grid-template-columns: repeat(2, auto);
  gap: 10px 16px; /* row gap | column gap */
}

#search-filter-input-checkbox-1 .search-filter-input-checkbox {
  display: flex;
  width: auto !important;
}

#search-filter-input-checkbox-1 .search-filter-input-checkbox__container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* move label before checkbox */
/*#search-filter-input-checkbox-1 .search-filter-input-checkbox__label {
  order: -1;
}*/

@media (max-width: 600px) {
  #search-filter-input-checkbox-1 {
    grid-template-columns: 1fr;
  }
}

 /* SEARCH RESULTS FORMATTING****************************************************/

/* Grid */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

/* Card */
.sf-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.sf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Title */
.sf-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.sf-title a {
  text-decoration: none;
  color: #222;
}

/* Description */
.sf-activity-description, .sf-activity-categories {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Buttons */
.sf-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.sf-btn {
  display: inline-block;
  padding: 10px;
  text-align: center;
  background: var(--tba-blue);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

.sf-btn:hover {
  background: var(--tba-darkblue);
  color: #fff;
}


.sf-btn-back {
  background: #4f4f4f;
}

.sf-btn-back:hover {
  background: #222222;
  cursor: pointer;
}

/* Mobile stacking */
@media (max-width: 600px) {
  .activity-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .activity-buttons a {
    width: 100%;
    white-space: normal; /* allow wrapping */
  }
}
/************************************************************************************/

/* Pagination */
.sf-pagination {
  text-align: center;
  margin-top: 30px;
  font-family: sans-serif;
}

.sf-pagination a,
.sf-pagination span {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 14px;
  background: #f5f5f5;
  color: #333;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 42px;
  font-weight: 500;
}

.sf-pagination a:hover {
  background: #0073aa;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.sf-pagination .current {
  background: #0073aa;
  color: #fff;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.sf-pagination .disabled {
  opacity: 0.5;
  cursor: default;
}

/* Responsive */
@media (max-width: 1024px) {
  .sf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sf-grid {
    grid-template-columns: 1fr;
    margin-top:2em;
  }
}

/* SINGLE ACTIVITY PAGE ***********************************************************************/

.activity-single {
  max-width: 1300px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
}

.activity-single h1 {
  font-size: clamp(20px, 3vw, 36px);

}

.activity-description, .activity-categories, .activity-materials {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.activity-buttons {
  display: flex;
  gap: 12px;
  margin: 3em 0 2em 0;
}

.result-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 2em 0;
}

.result-meta span {
    display: block;
    line-height: 1.3;
}

/* ACF BUTTONS ********************************************************************/

/* Make ACF edit/remove look like real buttons */
.acf-actions .acf-icon[data-name="edit"],
.acf-actions .acf-icon[data-name="remove"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
}

/* Add text labels */
.acf-actions .acf-icon[data-name="edit"]::after {
    content: " Edit" !important;
}

.acf-actions .acf-icon[data-name="remove"]::after {
    content: " Remove" !important;
}

/* Edit button styling */
.acf-actions .acf-icon[data-name="edit"] {
    background: #2271b1 !important;
    color: #fff !important;
    border-color: #1a5a8a !important;
}

/* Remove button styling */
.acf-actions .acf-icon[data-name="remove"] {
    background: #d63638 !important;
    color: #fff !important;
    border-color: #b32d2e !important;
    margin-left: 6px !important;
}

/* Hover states */
.acf-actions .acf-icon[data-name="edit"]:hover {
    background: #1a5a8a !important;
}

.acf-actions .acf-icon[data-name="remove"]:hover {
    background: #b32d2e !important;
}



.tba-search .search-filter-field {
  margin-bottom:1em !important;
}

/* .tba-search .search-filter-input-checkbox {
    margin: 0 !important;
    padding: 0 !important;
}

.tba-search .search-filter-input-checkbox__container {
    padding: 2px 0 !important;
    margin: 0 !important;
    gap: 6px;
    min-height: auto !important;
    line-height: 1.2;
}

.tba-search .search-filter-input-checkbox__label {
    line-height: 0.2;
    margin: 0 !important;
}

.tba-search .search-filter-input-group {
    gap: 2px;
} */

/* Remove bottom spacing from the SiteOrigin panel wrapper
.so-panel.widget.widget_sow-accordion {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.sow-accordion-panel-header {
  padding: 10px 16px !important;
} */

.search-filter-input-checkbox__label {
    font-size: 13px !important;
     
}

.sow-accordion-panel-border {
  padding: 1em !important;
}

.search-filter-input-checkbox__container {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.search-filter-input-checkbox__label {
  margin-left: -10px !important;
}


/* accordion text ********************************************************************/

/* SiteOrigin-safe scoped styling */
.so-six-col-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 -10px;
  box-sizing: border-box;
}

.so-six-col-row .so-col {
  width: 16.666%;
  padding: 0 10px 10px;
  box-sizing: border-box;
}

.so-six-col-row .so-col > div,
.so-six-col-row .so-col {
  padding: 5px;
  text-align: left;
  height: 100%;
  box-sizing: border-box;
}

/* Subtle alternating background */
.so-six-col-row .so-col:nth-child(even) {
  background: #cdcccc;
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .so-six-col-row .so-col {
    width: 33.333%;
  }
}

/* Mobile */
@media screen and (max-width: 640px) {
  .so-six-col-row .so-col {
    width: 50%;
  }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  .so-six-col-row .so-col {
    width: 100%;
  }
}


/* compentencies search title ***********************************************************************/
 .compentencies-wrap {
    font-size:18px !important;
    font-weight: 800 !important;
    
  }

@media (min-width: 780px) {
    .home .compentencies-wrap {
        padding-left: 10px;
    }
}

/* Hide all counts except zero */
.search-filter-input-checkbox__count {
    display: none;
}

/* But show zero counts (your JS replaces them with Not Available) */
.sf-zero-count .search-filter-input-checkbox__count {
    display: inline;
}





/* ACCORDION STYLING ************************************************************************/

.jf-accordion {
    width: 100%;
}

.jfacc-header {
    width: 100%;
    text-align: left;
   
    color: var(--tba-white);
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 400;
    border: 1px solid #ddd;
    margin-top: 6px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes icon to the far right */
}

.acc-blue { background-color: var(--tba-search-blue); }
.acc-pink { background-color: var(--tba-search-pink); }
.acc-orange { background-color: var(--tba-search-orange); }
.acc-purple { background-color: var(--tba-search-purple); }
.acc-green { background-color: var(--tba-search-green); }
.acc-red { background-color: var(--tba-search-red); }
.acc-blue:hover, .acc-blue:active { background-color: var(--tba-search-blue2); }
.acc-pink:hover, .acc-pink:active { background-color: var(--tba-search-pink2); }
.acc-orange:hover, .acc-orange:active { background-color: var(--tba-search-orange2); }
.acc-purple:hover, .acc-purple:active { background-color: var(--tba-search-purple2); }
.acc-green:hover, .acc-green:active { background-color: var(--tba-search-green2); }
.acc-red:hover, .acc-red:active { background-color: var(--tba-search-red2); }

.jfacc-header span.jfacc-icon {
    margin-left: auto; /* forces icon to the far right */
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.jfacc-header.active span.jfacc-icon {
    transform: rotate(180deg);
}

.jfacc-content {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 0 18px;
    transition:
        max-height 0.35s ease,
        padding 0.25s ease;
}

/* When open */
.jfacc-content.open {
    padding: 0 18px;
}

/* SiteOrigin FIXES */
.panel-grid-cell,
.so-panel,
.widget,
.siteorigin-widget-tinymce,
.siteorigin-widget-html {
    overflow: visible !important;
}


/* no results formatting *************************************************************/


.jfacc-content {
    position: relative;
    
}

/* Center the message over the whole panel */
.sf-not-available {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; 
    
}

.sf-not-available span {
    font-size: 13px;
    color: #333;
    font-style: italic;
    text-align: center;
    
}

/* HOME SEARCH **************************************************************/

.home .ct-container-full {
  margin: 0 !important;
  padding: 0 !important;
}
.home .hero-section {
    display: none;
}


#home-search {
    position: relative;
    padding: 5em 0;
    color: var(--tba-black) !important;
    z-index: 1;
}

#home-search::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);

    background: var(--tba-grey);


    z-index: -1;
}

#home-search .panel-grid-cell,
#home-search .widget {
    max-width: 1200px;
    margin: 0 auto;
}

#home-search .panel-grid-cell,
#home-search .widget {
    max-width: 1200px;
    margin: 0 auto;
}

/* RESULTS SEARCH *************************************************************************************/

#panel-5341-0-0-2 .textwidget {
  font-weight: 800;
  font-size: 18px;
  color: var(--tba-black);
}

/* SEARCH RESULTS LEFT MENU sticky *************************************************************/

@media (min-width: 768px) {
    #pgc-5341-0-0 {
        position: sticky;
        top: 50px;
        align-self: flex-start;
        height: fit-content;
        background: var(--tba-grey);
        border-radius: 10px;
        padding: 20px ;
    }
}

/* HOME PAGE - WELCOME **********************************************************************/

.general-info {
  border: 2px solid var(--tba-purple);
  border-radius: 6px;
  padding: 2em;
  margin:3em 0;
}


/* BUNDLES ******************************************************************************/

/* ===============================
   CATEGORY ACCORDION (OUTER)
================================= */

.bundle-cat-item {
    margin-bottom: 12px;
}

.bundle-cat-header {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bundle-cat-header:hover, .bundle-cat-header.active {
    background: var(--tba-darkblue);
    color: var(--tba-white);
}

.bundle-cat-icon {
    font-weight: bold;
    margin-left: 10px;
}


.bundle-cat-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
    padding: 0 16px 12px 16px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}


/* ===============================
   BUNDLE ACCORDION (INNER)
================================= */

.bundle-acc-item {
    margin-top: 10px;
}

.bundle-acc-header {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bundle-acc-header:hover, .bundle-acc-header.active {
    background: var(--tba-search-blue);
    color: var(--tba-white);
}

.bundle-acc-icon {
    font-weight: bold;
    margin-left: 10px;
}

/* Smooth animation */
.bundle-acc-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 0 14px;
    display: block;
    position: static;
}

.bundle-link {
    padding: 8px 0;
}

.bundle-link a {
    color: #0073aa;
    text-decoration: none;
}

.bundle-link a:hover {
    text-decoration: underline;
}


/* ===============================
   ICON ROTATION
================================= */

.bundle-cat-icon,
.bundle-acc-icon {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 16px;
}

/* CATEGORY OPEN */
.bundle-cat-header.active .bundle-cat-icon {
    transform: rotate(180deg);
}

/* BUNDLE OPEN */
.bundle-acc-header.active .bundle-acc-icon {
    transform: rotate(180deg);
}

/*NEWS SECTION *********************************************************************************/

.home-posts {
  background: var(--tba-grey);
  padding: 2em;
  margin-bottom: 3em;
  border-radius: 6px;
}

.home-posts article h2 {
  font-family:"Inter"; sans-serif;
  font-size: clamp(20px, 3vw, 30px);
}

.home-posts-more {
    text-align: right;
    margin-top: 20px;
}

.home-posts-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--tba-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.home-posts-btn:hover {
    background: var(--tba-darkblue);
    color: var(--tba-white);
}

/* GOV FOOTER *******************************************************************************/

.gov {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;   
  gap: 1rem;
  width: 100%;
  background-color: white;
  padding:1em;
}

.gov img {
  flex: 0 0 auto;       
  height: auto;
  display: block;
 
 
}

.gov > div {
  flex-basis: 100%; 
  margin-top: -1.0rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: clamp(6px, 3vw, 14px);
}

/* FOOTER ***************************************************************************************/

.foot-container {
  display: flex;
  align-items: center;        /* vertical centering */
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
}

.foot-left {
  flex: 1;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
}

.foot-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;    /* center logo horizontally */
  align-items: center;        /* center logo vertically */
}

.foot-right img {
  max-width: 180px;
  height: auto;
}

/* Responsive stacking */
@media (max-width: 700px) {
  .foot-container {
    flex-direction: column;
    text-align: center;
  }
}







