/* Courses page: use the same light header and breadcrumb treatment as Contact/About. */
body.fsc-courses-page #header-wrapper,
body.fsc-courses-page #header-wrapper.header-top-relative {
    position: relative !important;
    background: #ffffff !important;
}

body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) {
    background: #ffffff !important;
    border-color: rgba(31, 37, 30, 0.10) !important;
    box-shadow: none !important;
}

body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .wdt-header-menu .wdt-primary-nav > li > a,
body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .wdt-header-menu .wdt-primary-nav > li > a > span,
body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .mobile-nav-container .menu-trigger,
body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .mobile-nav-container .menu-trigger span {
    color: var(--fsca-deep) !important;
    text-shadow: none !important;
}

body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .wdt-header-menu .wdt-primary-nav > li:hover > a,
body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .wdt-header-menu .wdt-primary-nav > li > a:hover,
body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .wdt-header-menu .wdt-primary-nav > li > a:focus {
    color: var(--fsca-white) !important;
    background-color: var(--fsca-primary) !important;
    border-color: var(--fsca-primary) !important;
}

body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .elementor-element-2198615 {
    display: none !important;
}

body.fsc-courses-page #header .sticky-header:not(.sticky-header-active) .elementor-element-61a5ce8 {
    display: block !important;
}

body.fsc-courses-page .main-title-section-wrapper .main-title-section h1,
body.fsc-courses-page .main-title-section-wrapper .breadcrumb,
body.fsc-courses-page .main-title-section-wrapper .breadcrumb a,
body.fsc-courses-page .main-title-section-wrapper .breadcrumb span.current {
    color: var(--fsca-deep) !important;
}

body.fsc-courses-page .main-title-section-wrapper,
body.fsc-courses-page .main-title-section-container,
body.fsc-courses-page .main-title-section-bg {
    background-color: #fafafa !important;
    background-image: none !important;
}

body.fsc-courses-page .main-title-section-wrapper.overlay-wrapper > .main-title-section-bg::after,
body.fsc-courses-page .main-title-section-wrapper > .main-title-section-bg::after {
    background: transparent !important;
    opacity: 0 !important;
}

/* Division filter. */
.fsc-courses-page .fsca-course-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 4px 0 38px;
}

.fsc-courses-page .fsca-course-filter__button {
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--fsca-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--fsca-deep);
    font-family: var(--fsc-font, "Binaria", Arial, Helvetica, sans-serif);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.fsc-courses-page .fsca-course-filter__button:hover,
.fsc-courses-page .fsca-course-filter__button:focus-visible,
.fsc-courses-page .fsca-course-filter__button.is-active {
    border-color: var(--fsca-primary);
    background: var(--fsca-primary);
    color: #ffffff;
}

.fsc-courses-page .fsca-course-filter__button:focus-visible {
    outline: 2px solid var(--fsca-gold);
    outline-offset: 3px;
}

/* Reuse the Home course card design, but present every course in a filterable grid. */
.fsc-courses-page .fsca-course-list-widget,
.fsc-courses-page .fsca-course-list-widget > .elementor-widget-container,
.fsc-courses-page .fsca-course-list-widget .wdt-services-holder {
    width: 100%;
}

.fsc-courses-page .fsca-course-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.fsc-courses-page .fsca-course-card {
    min-width: 0;
}

.fsc-courses-page .fsca-course-card[hidden] {
    display: none !important;
}

.fsc-courses-page .fsca-course-card .wdt-services-item {
    height: 100%;
}

.fsc-courses-page .fsca-course-card .wdt-services-image img {
    display: block;
    width: 100%;
    aspect-ratio: 12 / 7;
    object-fit: cover;
}

.fsc-courses-page .fsca-course-empty {
    width: 100%;
    padding: 46px 24px;
    border: 1px solid var(--fsca-border);
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
}

.fsc-courses-page .fsca-course-empty h3 {
    margin: 0 0 8px;
    color: var(--fsca-deep);
}

.fsc-courses-page .fsca-course-empty p {
    margin: 0;
}

@media (max-width: 1024px) {
    .fsc-courses-page .fsca-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fsc-courses-page .fsca-course-filter {
        justify-content: flex-start;
        margin-bottom: 28px;
    }

    .fsc-courses-page .fsca-course-filter__button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .fsc-courses-page .fsca-course-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fsc-courses-page .fsca-course-filter__button {
        transition: none;
    }
}

/* Courses page spacing refinement: remove inherited theme gap and tighten filter area. */
body.fsc-courses-page #header-wrapper {
    margin-bottom: 0 !important;
}

body.fsc-courses-page .fsca-course-page-section {
    --padding-top: 22px !important;
    --padding-bottom: 44px !important;
    --gap: 14px !important;
    --row-gap: 14px !important;
}

body.fsc-courses-page .elementor-element-f65e18a > .elementor-widget-container {
    padding-bottom: 8px !important;
}

body.fsc-courses-page .fsca-course-filter {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    gap: 8px !important;
}

body.fsc-courses-page .fsca-course-filter__button {
    min-height: 42px;
    padding: 8px 16px;
}

body.fsc-courses-page .elementor-element-a9b0b72 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 767px) {
    body.fsc-courses-page .fsca-course-page-section {
        --padding-top: 18px !important;
        --padding-bottom: 36px !important;
        --gap: 12px !important;
        --row-gap: 12px !important;
    }

    body.fsc-courses-page .elementor-element-f65e18a > .elementor-widget-container {
        padding-bottom: 4px !important;
    }

    body.fsc-courses-page .fsca-course-filter {
        margin-bottom: 12px !important;
    }
}
