/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
/* ===== CSS VARIABLES ===== */
:root {
    --primary-teal: #00b3c9;
    --primary-blue: #008eff;
    --pink: #ff1493;
    --light-purple: #f4ebff;
    --light-green: #e8ffe4;
    --light-yellow: #fff3df;
    --light-magenta: #ffe7fb;
    --light-lavender: #f3f0ff;
    --bg-main: #f5f7fb;
    --bg-white: #ffffff;
    /*--text-dark: #1f2937;*/
    --text-dark: #000000;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --border-dark: #000000;
    --vivid-cyan: #01d3ff;
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 8px 20px rgba(15, 23, 42, 0.12);
    --transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}


/* Pagination Wrapper */
.pagination-wrapper {
    text-align: center;
    margin: 20px 0;
}

/* Pagination list */
.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Pagination items */
.pagination li {
    margin: 0 5px;
}

/* Pagination links */
.pagination li a {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--bg-light, #f5f5f5);
    color: var(--text-dark, #333);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease;
}

/* Hover effect */
.pagination li a:hover {
    background-color: var(--primary-color, #0073e6);
    color: #fff;
}

/* Active page */
.pagination li.active a {
    background-color: var(--primary-color, #0073e6);
    color: #fff;
    font-weight: 700;
    cursor: default;
}

/* Disabled Prev/Next */
.pagination li.disabled a {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}


/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Space between interdisciplinary items inside same subject */
.interdisciplinary-entry {
    margin-bottom: 26px;
}

/* Remove gap after last item */
.interdisciplinary-entry:last-child {
    margin-bottom: 0;
}


html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
}
.csta-search-result,
.csta-search-result button,
.csta-search-result input[type=text]{
    line-height: 1.4;
}
/*.csta-new-search{
    font-family: var(--global-heading-font-family);
}*/
.filter-panel-heading,
.card-title,
.resource-title,
.progression-card-text,
.results-count{
    font-family: var(--global-heading-font-family);
}
.progression-card-active .progression-card-text{
    font-weight: 900;
}
/* ===== LAYOUT CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 0 60px;
}

.main-wrapper {
    display: flex;
    gap: 50px;
}

/* ===== HEADER SECTION ===== */
.page-header {
    margin-bottom: 32px;
}

.search-page-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.results-count {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.header-actions .btn-cs{
    height: 39px;
}
/* ===== BUTTONS ===== */
.btn-cs {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0;
    border-radius: 0 !important;
}

.btn-primary-cs {
    background: #01d3ff !important;
    color: var(--text-dark) !important;
    box-shadow: 0 2px 8px rgba(0, 179, 201, 0.2);
}
.view-pinned-btn .fa-thumbtack{
    transform: rotate(40deg);
}

.btn-primary-cs:hover, .btn-primary-cs:focus {
    background: #01d3ff !important;
    box-shadow: 0 4px 12px rgba(0, 179, 201, 0.3);
    transform: translateY(-2px);
    color: var(--text-dark) !important;
    outline: none;
}

.btn-primary-cs:disabled,
.btn-primary-cs.disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    box-shadow: none !important;
    transform: none !important;
}

.btn-primary-cs:disabled:hover,
.btn-primary-cs.disabled:hover {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary-cs {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    position: relative;
}

.btn-secondary-cs:hover {
    background: #fafbfc;
    border-color: #d1d5db;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: var(--shadow);
    min-width: 160px;
    z-index: 50;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--bg-main);
    color: var(--primary-teal);
}

/* ===== SIDEBAR: FILTERS ===== */
.sidebar {
    width: 255px;
    flex-shrink: 0;
    overflow: visible;
    z-index: 1;
}

.filter-card {
    position: sticky;
    top: 24px;
    overflow: visible;
}
.filter-panel-heading{
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    gap: 10px;
    padding-bottom: 19px;
    margin-bottom: 26px;
    border-bottom: 2px solid #000;
    color: #000;
    padding-top: 25px;
    flex-wrap: nowrap;
    overflow: visible;
}
.filter-heading-label{
    display: flex;
    gap: 3px;
    align-items: center;
}
.filter-panel-heading.filter-heading{
    justify-content: space-between;
}
.filter-icon-label, .filter-icon-label-box{
    width: 30px;
    height: 30px;
}
.filter-panel-heading > * {
    flex-shrink: 0;
}

.filter-panel-heading img {
    flex-shrink: 0;
}

.filter-panel-heading span.checkbox-help {
    flex-shrink: 0;
}

.filter-panel-heading .reset-btn-inline {
    margin-left: 0;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    height: auto;
    white-space: nowrap !important;
    flex-shrink: 0;
    min-width: fit-content;
    width: auto;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    line-height: 1;
    overflow: visible;
}

.filter-panel-heading .reset-btn-inline i {
    flex-shrink: 0;
    font-size: 14px;
}

.filter-panel-heading .reset-btn-inline,
.filter-panel-heading .reset-btn-inline * {
    white-space: nowrap !important;
}

.filter-notice {
    color: var(--text-dark);
    margin-bottom: 12px;
}

.filter-reset {
    color: #0e5df8;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.filter-reset:hover {
    color: #0095a8;
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 15px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-dark);
    overflow: visible;
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label .info-icon {
    width: 18px;
    height: 18px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: help;
}

/* ===== ACCORDION STYLING ===== */
.accordion-header {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
    margin-bottom: 12px;
}

.search-result-main{
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-top: 25px;
}
.accordion-header:hover {
    opacity: 0.8;
}

.accordion-toggle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #01d3ff;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    transition: var(--transition);
    flex-shrink: 0;
    letter-spacing: 0;
}

.accordion-toggle:hover, .accordion-toggle:focus {
    background: #01d3ff;
    /*transform: scale(1.1);*/
    color: var(--text-dark);
}

.accordion-toggle i {
    display: block;
}

.accordion-toggle.active {
    background: #01d3ff;
}

.accordion-content {
    overflow: visible;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    margin-bottom: 15px;
}

.accordion-content:not(.expanded) {
    max-height: 0;
    opacity: 0;
}

.accordion-content.expanded {
    max-height: 5000px;
    opacity: 1;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-box {
    width: 100%;
    padding: 14px 40px 14px 12px;
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 179, 201, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    font-size: 20px;
    pointer-events: none;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    overflow: visible;
}
.checkbox-help,
.toggle-help {
    background: #e6e6e6;
    color: #000;
    font-size: 12px;
    height: 16px;
    width: 16px;
    border-radius: 10px;
    text-align: center;
    display: inline-block;
    cursor: help;
    position: relative;
    margin-left: 4px;
    line-height: 16px;
    font-weight: normal;
}

.checkbox-help:hover,
.toggle-help:hover {
    background: #d0d0d0;
}

/* Tooltip styling */
.checkbox-help[data-tooltip],
.toggle-help[data-tooltip] {
    position: relative;
}

.checkbox-help[data-tooltip]::before,
.toggle-help[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10000;
    max-width: 250px;
    white-space: normal;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    width: 200px;
}

.checkbox-help[data-tooltip]::after,
.toggle-help[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10001;
}

.checkbox-help[data-tooltip]:hover::before,
.toggle-help[data-tooltip]:hover::before,
.checkbox-help[data-tooltip]:hover::after,
.toggle-help[data-tooltip]:hover::after {
    opacity: 1;
}

/* Override font for tooltips inside filter-panel-heading to match other tooltips */
.filter-panel-heading .checkbox-help[data-tooltip]::before {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
    line-height: 1.4;
}

.checkbox-group:last-child {
    margin-bottom: 0px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 3px;
    cursor: pointer;
    margin-left: 30px;
    position: relative;
    overflow: visible;
}
.checkbox-group-head.checkbox-item{
    margin-left: 0;
}

.checkbox-item input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--border-dark);
    border-radius: 0;
    background-color: transparent;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    margin-top: 2px;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: var(--border-dark) !important;
    border-color: var(--border-dark) !important;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: var(--text-dark);
    cursor: pointer;
    /*flex: 1;*/
}

.checkbox-count {
    font-size: 12px;
    color: #737373;
    font-style: italic;
}

.select-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}
.interdisciplinary-filter .checkbox-item{
    margin-left: 0;
}

.implementation-examples-filter .checkbox-item{
    margin-left: 0;
}
.ai-standards-filter .checkbox-item{
    margin-left: 0;
}
.reset-btn-container{
    margin: 15px 0;
}
.select-control:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* ===== TOGGLE SWITCHES ===== */
.show-hide-section{
    margin-top: 40px;
}
.toggle-help-text {
    margin-bottom: 25px;
}

/* Work in progress label */
.work-in-progress-label {
    margin-top: 12px;
    margin-left: 30px;
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
}

/* Show All / Hide All Button */
        /*.show-hide-all-container {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border-dark);
        }*/
        
        .show-hide-all-btn {
            letter-spacing: 0;
            padding: 2px;
            background: var(--bg-white);
            border: 2px solid var(--border-dark);
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-transform: initial;
            width: 161px;
            border-radius: 20px;
            min-height: 32px;
        }
        
        .show-hide-all-btn:hover {
            background: var(--bg-white);
            border: 2px solid var(--border-dark);
            color: var(--text-dark);
        }
        .show-hide-all-btn:focus {
            background: var(--bg-white);
            border: 2px solid var(--border-dark);
            color: var(--text-dark);
        }
        
        .show-hide-all-btn .separator {
            color: var(--border-dark);
            margin: 0 4px;
        }
        
        .show-hide-all-btn .show-all-text,
        .show-hide-all-btn .hide-all-text {
            cursor: pointer;
        }
        
        .show-hide-all-btn .show-all-text:hover,
        .show-hide-all-btn .hide-all-text:hover {
            color: var(--text-dark);
        }

        .toggle-item {
            display: flex;
            margin-bottom: 12px;
            gap: 10px;
            position: relative;
        }
        
        .toggle-item > div:last-child {
            position: relative;
            overflow: visible;
        }
        
        .toggle-item > div {
            position: relative;
        }

        .toggle-label {
            color: var(--text-dark);
        }

        .switch {
            position: relative;
            width: 44px;
            min-width: 44px;
            height: 24px;
            background: white;
            border-radius: 12px;
            cursor: pointer;
            transition: background 250ms;
            border: 2px solid #000;
        }

        .switch.active {
            background: var(--primary-teal);
        }

        .switch::after {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            background: #000;
            border-radius: 50%;
            top: 4px;
            left: 4px;
            transition: left 250ms;
        }

        .switch.active::after {
            left: 24px;
        }
        .boundaries-and-practices .switch.active{
            background: #dfebff;
        }
        .implementation-examples .switch.active{
            background: #dffcdc;
        }
        .interdisciplinary-connections .switch.active{
            background: #feebcd;
        }
        .progressions .switch.active{
            background: #fdceea;
        }
        .resources .switch.active{
            background: #ebd2ef;
        }

        /* ===== MAIN CONTENT ===== */
        .main-content {
            flex: 1;
            min-width: 0;
        }

        .standards-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* ===== STANDARD CARD ===== */
        .standard-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            transition: var(--transition);
            border: 2px solid var(--vivid-cyan);
            display: flex;
            font-size: 14px;
        }
        .standard-left-panel{
            background: #01d3ff;
            padding: 10px 5px;
        }

        .standard-card:hover {
            box-shadow: var(--shadow-hover);
        }

        .card-header {
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            transition: var(--transition);
            user-select: none;
        }

        .card-header:hover {
            background: linear-gradient(135deg, rgba(0, 179, 201, 0.12) 0%, rgba(0, 142, 255, 0.12) 100%);
        }

        .card-left {
            flex: 1;
            min-width: 0;
        }

        .card-code-tags {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .tag {
            display: inline-block;
            padding: 4px 10px;
            background: var(--primary-blue);
            color: var(--text-dark);
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        .grade-tag{
            background: #f2f2f2;
        }
        .concept-tag{
            background: #9aedff;
        }
        .subconcept-tag{
            background: #cdf6ff;
        }

        .card-title {
            font-weight: 900;
            color: var(--text-dark);
            font-size: 18px;
        }

        .card-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .card-icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-gray);
            font-size: 18px;
            transition: var(--transition);
            border-radius: 8px;
            padding: 0;
        }
        .card-icon-btn:focus{
            background: none;
        }
        .card-icon-btn .fa-thumbtack{
            transform: rotate(40deg);
            color: #fff; /* Makes the main icon body transparent */
            -webkit-text-stroke-width: 1.5px; /* Sets the stroke thickness */
            -webkit-text-stroke-color: #000; /* Sets the stroke color */
            /* For cross-browser compatibility (less support): */
            text-stroke-width: 1.5px;
            text-stroke-color: #000
        }
        .card-icon-pin{
            color: #ffffff;
        }

        .card-icon-btn:hover {
            color: var(--primary-teal);
            background: rgba(0, 179, 201, 0.08);
        }

        .card-icon-btn.pinned {
            color: var(--text-dark);
        }
        .card-icon-btn.pinned .fa-thumbtack{
            color: var(--text-dark);
        }

        .card-icon-btn .fa-chevron-down {
            transition: transform 300ms ease-in-out;
        }

        .card-icon-btn .fa-chevron-down.rotated {
            transform: rotate(180deg);
        }

        .card-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 300ms ease-in-out;
        }

        .card-content.expanded {
            max-height: 5000px;
            border-top: 1px solid var(--vivid-cyan);
        }

        .card-body {
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        /* ===== CONTENT SECTIONS ===== */
        /*.section {
            border-radius: 12px;
            padding: 16px;
        }*/

        .section.hidden {
            display: none;
        }

        .section-title {
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--text-dark);
            margin-bottom: 12px;
        }

        /* ===== CARD SECTION ACCORDION ===== */
        .card-section-controls {
            display: flex;
            justify-content: space-around;
            align-items: center;
            gap: 5px;
            padding: 2px;
            border: 2px solid var(--border-dark);
            background: var(--bg-white);
            width: 194px;
            border-radius: 20px;
            min-height: 32px;
            height: auto;
        }

        .card-section-controls.hidden {
            display: none;
        }

        .section-control-btn {
            padding: 0;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            background: transparent;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            text-transform: none;
            letter-spacing: 0;
        }

        .section-control-btn:hover {
            color: #01d3ff;
            background: transparent;
        }
        .section-control-btn:focus {
            color: #000;
            background: transparent;
        }

        .section-control-btn-toggle {
            padding: 0;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            background: transparent;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            text-transform: none;
            letter-spacing: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            width: 100%;
            height: 100%;
        }

        .section-control-btn-toggle:hover {
            background: transparent;
        }

        .section-control-btn-toggle:focus {
            background: transparent;
            outline: none;
        }

        .section-control-btn-toggle .collapse-all-text,
        .section-control-btn-toggle .expand-all-text {
            cursor: pointer;
            transition: var(--transition);
        }

        .section-control-btn-toggle .collapse-all-text:hover,
        .section-control-btn-toggle .expand-all-text:hover {
            color: var(--text-dark);
        }
        
        .card-section-controls .separator {
            color: var(--border-dark);
            margin: 0 4px;
            font-weight: 400;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            cursor: pointer;
            user-select: none;
            padding: 8px;
            border-radius: 25px;
            transition: var(--transition);
            position: relative;
        }

        .section-header:hover {
            opacity: 0.9;
        }

        .section-toggle {
            width: 24px;
            height: 24px;
            min-width: 24px;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            font-size: 12px;
            transition: var(--transition);
            flex-shrink: 0;
            background: var(--primary-blue);
            color: white;
            font-weight: bold;
            letter-spacing: 0;
        }

        .section-toggle:hover {
            opacity: 0.9;
            transform: scale(1.1);
        }

        .section-toggle.active {
            color: white;
        }
        
        /* Section header backgrounds and toggle colors */
        .section-boundaries .section-header {
            background: #dce9ff;
        }
        .section-boundaries .section-toggle {
            background: #0e5df8;
        }
        
        .section-implementation .section-header {
            background: #dffcdc;
        }
        .section-implementation .section-toggle {
            background: #5df14d;
            color: var(--text-dark);
        }
        
        .section-interdisciplinary .section-header {
            background: #feebcd;
        }
        .section-interdisciplinary .section-toggle {
            background: #fe9900;
            color: var(--text-dark);
        }
        
        .section-progressions .section-header {
            background: #fdceea;
        }
        .section-progressions .section-toggle {
            background: #f90696;
        }
        
        .section-resources .section-header {
            background: #ebd2ef;
        }
        .section-resources .section-toggle {
            background: #9d1db2;
        }

        .section-toggle i {
            display: block;
        }

        .section-content {
            overflow: hidden;
            transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
            margin-top: 20px;
            padding-left: 8px;
            margin-right: 25px;
        }

        .section-content:not(.expanded) {
            max-height: 0;
            opacity: 0;
            margin-top: 0;
        }

        .section-content.expanded {
            max-height: 5000px;
            opacity: 1;
        }

        /* Section title styles - background is now on section-header */
        .section-title {
            margin: 0;
            padding: 0;
        }

        /* ===== PILLARS TWO-COLUMN ===== */
        .pillars-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .pillar-item {
            display: flex;
            gap: 12px;
        }

        .pillar-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        
        .pillar-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .pillar-content h4 {
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-dark);
            font-size: 16px;
        }

        .pillar-content p {
            color: var(--text-dark);
        }

        /* ===== IMPLEMENTATION EXAMPLES ===== */
        .examples-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 0;
            list-style: none;
        }

        .example-item {
            display: flex;
            gap: 15px;
            align-items: flex-start;
        }

        .example-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .example-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .example-content {
            flex: 1;
        }

        .example-type {
            display: inline;
            font-weight: 700;
            color: var(--text-dark);
        }

        .example-description {
            display: inline;
            line-height: 1.6;
            color: var(--text-dark);
        }

        .example-content p.example-description {
            display: block;
            margin: 10px 0 0 0;
            line-height: 1.6;
            color: var(--text-dark);
        }

        .example-content p.example-description:last-child {
            margin-bottom: 0;
        }

        /* ===== INTERDISCIPLINARY CONNECTIONS ===== */
        .interdisciplinary-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .interdisciplinary-item {
            display: flex;
            gap: 12px;
        }
        .inter-icon-box{
            font-size: 12px;
            background: #fef5e6;
            text-align: center;
            padding: 8px;
            border-radius: 6px;
            width: 75px;
        }
        .interdisciplinary-content h4 {
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-dark);
            font-size: 16px;
        }
        .interdisciplinary-content p {
            color: var(--text-dark);
        }
        .connections-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
        }

        .connection-card {
            background: white;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
        }

        .connection-icon {
            font-size: 24px;
            margin-bottom: 8px;
        }

        .connection-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 6px;
        }

        .connection-desc {
            font-size: 12px;
            color: var(--text-gray);
        }

        /* ===== PROGRESSIONS ===== */
        /* ===== PROGRESSIONS ===== */
        .progression-instruction {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 24px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.02);
            border-radius: 8px;
            font-size: 14px;
            color: var(--text-dark);
        }
        
        .progression-instruction .progression-icon {
            width: 20px;
            height: 20px;
            color: var(--text-dark);
            margin-top: 2px;
            flex-shrink: 0;
        }
        
        .progression-instruction .progression-link {
            color: var(--primary-blue);
            text-decoration: none;
        }
        
        .progression-instruction .progression-link:hover {
            text-decoration: underline;
        }
        
        .progression-timeline-wrapper {
            margin-bottom: 24px;
            position: relative;
        }
        
        .progression-timeline-labels {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            position: relative;
            z-index: 2;
        }
        
        .progression-label {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            padding: 4px 8px;
            position: relative;
            transition: var(--transition);
            text-align: center;
            flex: 1;
        }
        
        .progression-label.selected {
            font-weight: 600;
        }
        
        .progression-label.selected::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            right: 0;
            height: 6px;
            background: #ec4899;
            border-radius: 4px;
        }
        
        .progression-timeline-line {
            height: 2px;
            background: #fdceea;
            width: 100%;
            position: relative;
            top: -2px;
        }
        
        .progression-cards-container {
            display: flex;
            align-items: stretch;
            gap: 16px;
            position: relative;
        }
        
        .progression-nav-arrow {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-gray);
            font-size: 20px;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            flex-shrink: 0;
            width: 40px;
        }
        
        .progression-nav-arrow:hover:not(:disabled) {
            color: var(--text-dark);
        }
        
        .progression-nav-arrow:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            color: #000;
        }
        
        .progression-card {
            flex: 1;
            padding: 12px;
            border-radius: 8px;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            justify-content: center;
            position: relative;
        }
        
        .progression-card-prev {
            background: #f5f5f5;
            border: none;
        }
        
        .progression-card-prev.has-content {
            background: #fef3fa;
        }
        
        .progression-card-current {
            background: #fdceea;
        }
        
        /* Remove active color from current card if it's not the selected progression */
        .progression-card-current:not(.progression-card-active) {
            background: #fef3fa;
        }
        
        .progression-card-next {
            background: #fef3fa;
            border: none;
        }
        
        .progression-card-next.empty {
            background: #f5f5f5;
        }
        
        /* Active color for the selected progression card (always keep this color) */
        .progression-card-active {
            background: #fdceea !important;
        }
        
        .progression-card-tag span{
            font-size: 12px;
    color: var(--text-black);
    font-weight: 500;
    background: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
        }
        
        .progression-card-code {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-dark);
        }
        
        .progression-card-text {
            font-size: 13px;
            color: var(--text-dark);
            flex: 1;
            font-weight: 500;
        }
        
        .progression-card-empty {
            font-size: 13px;
            color: var(--text-gray);
            font-style: italic;
            text-align: center;
            padding: 20px 0;
        }
        
        .progression-card-content {
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
            flex: 1;
        }
        
        .progression-card-expanded {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        .progression-expand-button {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-gray);
            font-size: 11px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: none;
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            align-self: center;
            margin-top: auto;
        }
        
        .progression-expand-button:hover:not(:disabled) {
            color: var(--text-dark);
            background: none;
        }
        
        .progression-expand-button:active,
        .progression-expand-button:focus {
            background: none;
            outline: none;
            color: var(--text-gray);
        }
        
        .progression-expand-button:active:hover,
        .progression-expand-button:focus:hover {
            color: var(--text-dark);
        }
        
        .progression-expand-button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        .progression-expand-button i {
            transition: transform 0.3s ease;
            color: inherit;
        }
        
        .progression-expand-button.expanded {
            color: var(--text-gray);
        }
        
        .progression-expand-button.expanded:active,
        .progression-expand-button.expanded:focus {
            color: var(--text-gray);
        }
        
        .progression-expand-button.expanded i {
            transform: rotate(180deg);
            color: inherit;
        }
        
        .progression-expand-button.expanded:hover:not(:disabled) {
            color: var(--text-dark);
        }
        
        /* Ensure expanded state does not change background color - preserve original state */
        .progression-card.progression-card-expanded-state {
            min-height: auto;
        }
        
        /* Active cards keep their active color when expanded */
        .progression-card-active.progression-card-expanded-state {
            background: #fdceea !important;
        }
        
        /* Prev cards keep their color when expanded */
        .progression-card-prev.progression-card-expanded-state {
            background: #f5f5f5 !important;
        }
        
        .progression-card-prev.has-content.progression-card-expanded-state {
            background: #fef3fa !important;
        }
        
        /* Current cards keep their color when expanded */
        .progression-card-current.progression-card-expanded-state {
            background: #fdceea !important;
        }
        
        .progression-card-current:not(.progression-card-active).progression-card-expanded-state {
            background: #fef3fa !important;
        }
        
        /* Next cards keep their color when expanded */
        .progression-card-next.progression-card-expanded-state {
            background: #fef3fa !important;
        }
        
        .progression-card-next.empty.progression-card-expanded-state {
            background: #f5f5f5 !important;
        }
        
        .progression-card-details {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .progression-detail-section {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .progression-detail-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-dark);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .progression-detail-value {
            font-size: 12px;
            color: var(--text-dark);
            line-height: 1.5;
        }

        /* ===== RESOURCES ===== */
        .resource-body{
            display: flex;
            flex-flow: column;
            gap: 8px;
            justify-content: space-between;
            flex-grow: 1;
            padding: 12px;
        }
        .resources-scroll {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            flex-flow: wrap;
            padding-top: 4px;
        }
        .resources-scroll img{
            max-width: 100%;
        }

        .resource-card {
            flex: 1;
            background: white;
            border: 2px solid #ce8ed8;
            border-radius: 12px;
            overflow: hidden;
            transition: var(--transition);
            flex-direction: column;
            display: flex;
        }

        .resource-card:hover {
            box-shadow: var(--shadow);
            transform: translateY(-4px);
        }

        .resource-thumb {
            display: flex;
            padding: 12px;
        }
        
        .resource-thumb img {
            width: 100%;
            height: auto;
            object-fit: cover;
        }

        .resource-title {
            font-weight: 900;
            color: var(--text-dark);
        }

        .resource-desc {
            font-size: 14px;
        }

        .resource-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .resource-tag {
            font-size: 12px;
            padding: 3px 6px;
            border: 2px solid #000;
            border-radius: 4px;
            font-weight: 500;
        }

        .resource-link {
            font-size: 12px;
            color: var(--primary-teal);
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .resource-link:hover {
            color: #0095a8;
            text-decoration: underline;
        }

        /* ===== MODAL: PINNED ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 200ms ease-out;
        }

        .modal-overlay.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal {
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            animation: slideUp 300ms ease-out;
        }

        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header {
            padding: 24px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 20px;
            color: var(--text-gray);
            cursor: pointer;
            transition: var(--transition);
            padding: 0;
        }

        .modal-close:hover {
            color: var(--text-dark);
            background: transparent;
        }

        .modal-body {
            padding: 24px;
        }

        .pinned-item {
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .pinned-item-code {
            font-weight: 600;
            color: var(--primary-teal);
            font-size: 14px;
        }

        .pinned-item-title {
            font-size: 14px;
            color: var(--text-gray);
            margin-top: 4px;
        }

        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid var(--border-color);
            text-align: right;
        }

        .btn-close-modal {
            padding: 8px 16px;
            background: #01d3ff;
            color: var(--text-dark);
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            letter-spacing: 0;
        }

        .btn-close-modal:hover {
            background: #01d3ff;
            color: var(--text-dark);
        }

        /* ===== FILTERS BUTTON (Mobile) ===== */
        .filters-toggle-btn {
            display: none;
            height: 40px;
            cursor: pointer;
            margin-bottom: 16px;
            background: #01d3ff;
            color: #000;
            border: none;
            cursor: pointer;
            margin-bottom: 16px;
            letter-spacing: 0;
            padding: 8px 16px;
        }
        .filterlogo{
            width: 100%;
            height: auto;
        }

        /* ===== RESPONSIVE DESIGN ===== */
        @media (max-width: 1024px) {
            .container {
                padding: 16px;
            }

            .main-wrapper {
                gap: 24px;
            }

            .sidebar {
                width: 240px;
            }
        }

        @media (max-width: 768px) {
            .sidebar.open{
                overflow: visible;
            }
            .hide-on-small{
                display: none;
            }
            .show-hide-all-container{
                margin-bottom: 30px;
            }
            .container {
                padding: 12px;
            }
            .container.csta-new-search{
                padding: 0px 0 50px;
            }

            .search-page-title {
                font-size: 34px;
                margin-bottom: 5px !important;
            }
            .search-result-main {
                margin-bottom: 20px;
                padding-bottom: 20px;
                padding-top: 5px;
            }
            .results-count {
                font-size: 26px;
            }
            
            /* Progression section mobile styles - show only active card with arrows */
            /* Show navigation arrows on mobile - make them smaller to give more space to card */
            .section-progressions .progression-nav-arrow {
                display: flex !important;
                flex: 0 0 30px;
                width: 30px;
                min-width: 30px;
                padding: 8px 4px;
            }
            
            .section-progressions .progression-cards-container {
                overflow-x: hidden;
                overflow-y: visible;
                display: flex;
                position: relative;
                align-items: stretch;
                gap: 0;
            }
            
            /* Hide prev and next cards, show only current card on mobile */
            .section-progressions .progression-card-prev,
            .section-progressions .progression-card-next {
                display: none !important;
            }
            
            /* Show only the current/active card - increased width with arrows visible */
            .section-progressions .progression-card-current {
                flex: 1 1 auto;
                width: calc(100% - 60px); /* Full width minus arrow widths (30px each) */
                min-width: calc(100% - 60px);
                max-width: calc(100% - 60px);
                box-sizing: border-box;
            }

            .main-wrapper {
                flex-direction: column;
                gap: 0;
            }

            .sidebar {
                width: 100%;
                max-height: 0;
                overflow: hidden;
                transition: max-height 300ms ease-in-out;
                position: relative;
            }

            .sidebar.open {
                max-height: 1600px;
            }

            .filter-card {
                position: relative;
                top: 0;
            }

            .filters-toggle-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
            }

            .btn-cs {
                /*width: 100%;*/
                justify-content: center;
            }
            .header-actions > .btn-cs, .header-actions .dropdown-toggle{
                flex-grow: 1;
            }
            .dropdown-toggle .btn-cs {
                width: 100%;
            }

            .header-info {
                /*flex-direction: column;*/
                align-items: flex-start;
            }

            .results-count {
                /*width: 100%;*/
            }

            .header-actions {
                /*width: 100%;*/
            }

            .connections-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .card-title {
                font-size: 14px;
            }

            .resources-scroll {
                justify-content: center;
            }

            .resource-card {
                flex-basis: calc(50% - 16px);
            }
            .progression-label {
                padding: 4px 0px;
            }
            .filter-panel-heading {
                font-size: 26px;
            }
        }
        @media (max-width: 480px) {
            .standard-left-panel{
                padding: 10px 3px;
            }
            .filter-panel-heading {
                font-size: 18px;
            }
            .interdisciplinary-grid {
                grid-template-columns: 1fr;
            }
            /*.card-actions{
                display: none;
            }*/
            .results-count {
                font-size: 18px;
            }
            .pillars-grid {
             grid-template-columns: 1fr; 
         }
         .search-page-title {
            font-size: 22px;
            margin-bottom: 10px !important;
        }

        .card-code-tags {
            gap: 8px;
        }

        .tag {
            font-size: 10px;
            padding: 3px 8px;
        }

            /*.section {
                padding: 12px;
            }*/

            .card-body {
                padding: 12px;
                gap: 16px;
            }

            .connections-grid {
                grid-template-columns: 1fr;
            }

            .resource-card {
                flex-basis: 100%;
            }
            .card-header {
                padding: 12px;
                gap: 10px;
            }
        }
        
        .mb-10 {
            margin-bottom: 10px !important;
        }
        .grade-name{
            font-size: 14px;
            font-weight: 500;
        }
        .csta-search-result{
            color: var(--text-dark);
        }
        .csta-text-search{
            margin-bottom: 25px;
            border-bottom: 0;
        }
        .show-hide-section{
            border-bottom: none;
        }
        .section-header h3.section-title{
            margin-top: 0;
        }

        /* ===== LOADER ===== */
        .csta-loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            min-height: 300px;
            transition: opacity 0.3s ease-in-out;
        }

        .csta-loader.hidden {
            display: none;
        }

        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(1, 211, 255, 0.2);
            border-top-color: var(--vivid-cyan);
            border-radius: 50%;
            animation: loader-spin 0.8s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes loader-spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .loader-text {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
            text-align: center;
        }

        /* ===== TOAST NOTIFICATION ===== */
        .csta-toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--bg-white);
            border: 2px solid var(--vivid-cyan);
            border-radius: 12px;
            padding: 16px 20px;
            box-shadow: var(--shadow-hover);
            display: none;
            align-items: center;
            gap: 12px;
            z-index: 10000;
            min-width: 300px;
            max-width: 400px;
            animation: toastSlideIn 0.3s ease-out;
            transition: var(--transition);
        }

        .csta-toast.show {
            display: flex;
        }

        @keyframes toastSlideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .toast-content {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
        }

        .toast-icon {
            font-size: 20px;
            color: var(--vivid-cyan);
            flex-shrink: 0;
        }

        .toast-message {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
        }

        @media (max-width: 768px) {
            .csta-toast {
                bottom: 20px;
                right: 20px;
                left: 20px;
                min-width: auto;
                max-width: none;
            }
        }
        .section.section-pillars > h4{
            font-size: 16px;
        }
        .progression-nav-arrow:hover, .progression-nav-arrow:focus {
            background: none;
            color: var(--text-gray);
        }
        .progressions-text {
            display: flex;
            gap: 20px;
            align-items: center;
            margin-bottom: 20px;
            font-style: italic;
        }
        .progression-link {
            color: #0e5df8;
            font-weight: 900;
        }
        .pinned-modal .modal-title{
            margin-bottom: 0;
        }
        .progression-card-top{
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .standard-right-panel{
            width: 100%;
        }
        .mt-20{
            margin-top: 20px !important;
        }