/*
 * custom.css — Nishan Academy Stylesheet
 * Palette:  Deep Teal    #224851  (primary)
 *           Lime Gold    #d2c91c  (accent-warm)
 *           Ember Orange #f26020  (accent-hot / CTA)
 *           Dark Espresso#1b130a  (text / deep bg)
 * Fonts:    Display  → "Tenor Sans" (Google Fonts)
 *           Body     → "Inter" (Google Fonts)
 *           Utility  → "Inter" (Google Fonts)
 * ================================================================ */

/* ── Google Fonts import ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Tenor+Sans&display=swap');


/* ══════════════════════════════════════════════════════════════ */
/*  0 · CSS CUSTOM PROPERTIES                                      */
/* ══════════════════════════════════════════════════════════════ */
:root {
    /* Brand palette */
    --clr-teal: #224851;
    --clr-teal-dark: #172f35;
    --clr-teal-light: #2d6070;
    --clr-gold: #d2c91c;
    --clr-gold-muted: #b8b018;
    --clr-orange: #f26020;
    --clr-orange-dark: #c94e18;
    --clr-espresso: #1b130a;
    --clr-espresso-80: rgba(27, 19, 10, 0.80);

    /* Neutrals */
    --clr-white: #ffffff;
    --clr-off-white: #f5f3ef;
    --clr-light-gray: #e8e5e0;
    --clr-mid-gray: #9a958e;
    --clr-body-text: #2e2820;

    /* Glass header */
    --glass-bg: rgba(240, 240, 240, 0.55);
    --glass-blur: 18px;
    --glass-border: rgba(210, 201, 28, 0.18);

    /* Typography */
    --ff-display: 'Tenor Sans', sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, sans-serif;
    --ff-util: 'Inter', system-ui, -apple-system, sans-serif;

    /* Text Colour */
    --text-dark: #1f2430;
    --text-muted: #6b7280;

    /* Type scale */
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-md: 1.125rem;
    /* 18px */
    --fs-lg: 1.375rem;
    /* 22px */
    --fs-xl: 1.75rem;
    /* 28px */
    --fs-2xl: 2.25rem;
    /* 36px */
    --fs-3xl: 3rem;
    /* 48px */
    --fs-4xl: 4rem;
    /* 64px */

    /* Spacing (8 px grid) */
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2rem;
    --sp-5: 3rem;
    --sp-6: 4rem;
    --sp-7: 6rem;
    --sp-8: 8rem;

    /* Layout */
    --site-width: 1200px;
    --content-width: 780px;
    --header-h: 80px;
    --menu-width: 300px;

    /* Radii */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(27, 19, 10, 0.10), 0 1px 2px rgba(27, 19, 10, 0.06);
    --shadow-md: 0 4px 16px rgba(27, 19, 10, 0.12), 0 2px 6px rgba(27, 19, 10, 0.08);
    --shadow-lg: 0 12px 40px rgba(27, 19, 10, 0.16), 0 4px 12px rgba(27, 19, 10, 0.10);

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t-fast: 150ms var(--ease);
    --t-med: 280ms var(--ease);
    --t-slow: 480ms var(--ease);
}


/* ══════════════════════════════════════════════════════════════ */
/*  1 · RESET & BASE                                               */
/* ══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--clr-body-text);
    background-color: var(--clr-off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Underscores screen-reader skip link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: var(--sp-2);
    z-index: 9999;
    padding: var(--sp-1) var(--sp-2);
    background: var(--clr-orange);
    color: var(--clr-white);
    font-size: var(--fs-sm);
    font-family: var(--ff-util);
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    text-decoration: none;
    transition: top var(--t-fast);
}

.skip-link:focus {
    top: 0;
}


/* ══════════════════════════════════════════════════════════════ */
/*  2 · TYPOGRAPHY                                                 */
/* ══════════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-display);
    font-weight: 400;
    line-height: 1;
    color: var(--clr-teal-dark);
    margin: 0 0 var(--sp-2);
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
    font-weight: 400;
}

h2 {
    font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl));
}

h3 {
    font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
}

h4 {
    font-size: var(--fs-xl);
}

h5 {
    font-size: var(--fs-lg);
}

h6 {
    font-size: var(--fs-md);
    font-family: var(--ff-body);
    font-weight: 600;
}

/* Italics inside headings use the serif italic variant */
h1 em,
h2 em,
h3 em {
    font-style: italic;
    color: var(--clr-orange);
}

p {
    margin: 0 0 var(--sp-2);
    max-width: 68ch;
}

a {
    color: var(--clr-teal);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--t-fast);
}

a:hover,
a:focus {
    color: var(--clr-orange);
    text-decoration-color: var(--clr-orange);
}

a:focus-visible {
    outline: 3px solid var(--clr-gold);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

strong,
b {
    font-weight: 600;
    color: var(--clr-espresso);
}

em,
i {
    font-style: italic;
}

blockquote {
    margin: var(--sp-4) 0;
    padding: var(--sp-3) var(--sp-4);
    border-left: 4px solid var(--clr-gold);
    background: rgba(210, 201, 28, 0.06);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-family: var(--ff-display);
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--clr-teal-dark);
}

blockquote cite {
    display: block;
    margin-top: var(--sp-1);
    font-family: var(--ff-util);
    font-style: normal;
    font-size: var(--fs-sm);
    color: var(--clr-mid-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

code,
kbd,
samp,
pre {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
    font-size: 0.9em;
}

code {
    background: var(--clr-light-gray);
    padding: 0.1em 0.4em;
    border-radius: var(--r-sm);
    color: var(--clr-teal-dark);
}

pre {
    background: var(--clr-espresso);
    color: var(--clr-gold);
    padding: var(--sp-3);
    border-radius: var(--r-md);
    overflow-x: auto;
    line-height: 1.5;
    margin: var(--sp-4) 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

hr {
    border: none;
    border-top: 1px solid var(--clr-light-gray);
    margin: var(--sp-5) 0;
}

/* Label / eyebrow utility */
.eyebrow {
    display: inline-block;
    font-family: var(--ff-util) !important;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-orange);
    margin-bottom: var(--sp-1);
}

/* Stat / large number display */
.stat-number {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: var(--fs-3xl);
    color: var(--clr-teal);
    line-height: 1;
}

/* Lists */
ul,
ol {
    margin: 0 0 var(--sp-2);
    padding-left: var(--sp-3);
}

li {
    margin-bottom: var(--sp-1);
    line-height: 1.65;
}

ul li::marker {
    color: var(--clr-gold-muted);
}

ol li::marker {
    font-weight: 600;
    color: var(--clr-teal);
}


/* ══════════════════════════════════════════════════════════════ */
/*  3 · LAYOUT CONTAINERS                                          */
/* ══════════════════════════════════════════════════════════════ */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.post,
.page {
    margin: 0 0;
}


/* _s uses .site-content and inner #primary / #secondary */
.site-content {
    flex: 1;
    padding-top: 0;
    /* header is now sticky/static initially, no padding-top needed */
}

.page-content,
.entry-content,
.entry-summary {
    margin: 0 15px;
}

.container,
.site-content .entry-content,
.site-content .page-content,
.site-content .entry-header,
.site-content .page-header,
.site-content .comments-area {
    width: 100%;
    max-width: var(--site-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
}

/* Two-column with sidebar - Full Width compatible */
#primary {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--sp-3) var(--sp-6) var(--sp-3);
}

/* Elementor Full Width Compatibility */
.elementor-page #primary,
.elementor-page-template-default #primary,
.page-template-elementor_header_footer #primary,
.page-template-elementor_canvas #primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-page .site-content .entry-content,
.elementor-page-template-default .site-content .entry-content,
.page-template-elementor_header_footer .site-content .entry-content,
.page-template-elementor_canvas .site-content .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 900px) {
    .has-sidebar #primary {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: var(--sp-6);
        align-items: start;
    }
}

/* Sections */
.section {
    padding: var(--sp-7) 0;
}

.section--tight {
    padding: var(--sp-5) 0;
}

.section--dark {
    background: var(--clr-teal-dark);
    color: var(--clr-off-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--clr-white);
}

.section--accent {
    background: var(--clr-espresso);
    color: var(--clr-off-white);
}

.section--gold {
    background: var(--clr-gold);
    color: var(--clr-espresso);
}

.section--gold h1,
.section--gold h2,
.section--gold h3 {
    color: var(--clr-teal-dark);
}


.section-title {
    position: relative;
}

.section-title.section-title-left::after {
    content: "";
    width: 50%;
    max-width: 160px;
    height: 2px;
    background-color: var(--clr-orange);
    position: absolute;
    left: 0;
    bottom: -15px;
}

.section-title.section-title-center::after {
    content: "";
    width: 50%;
    max-width: 200px;
    height: 2px;
    background-color: var(--clr-orange);
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
}


/* ══════════════════════════════════════════════════════════════ */
/*  4 · ANNOUNCEMENT BAR                                           */
/* ══════════════════════════════════════════════════════════════ */
.site-announcement {
    background: var(--clr-gold);
    color: var(--clr-espresso);
    text-align: center;
    padding: var(--sp-1) var(--sp-2);
    font-family: var(--ff-util);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 200;
}

.site-announcement a {
    color: var(--clr-teal-dark);
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════ */
/*  4.1 · HELLO BAR                                           */
/* ══════════════════════════════════════════════════════════════ */

.nishan-hellobar {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 9999;
}

.nishan-hellobar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nishan-hellobar-text a {
    color: inherit;
    text-decoration: underline;
}

.nishan-hellobar-text p {
    margin: 0;
    /* wp_editor wraps content in <p> tags */
}

.nishan-hellobar-close {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.8;
}

.nishan-hellobar-close:hover {
    opacity: 1;
}

.nishan-hellobar.nishan-hellobar-hidden {
    display: none;
}

@media (max-width: 600px) {
    .nishan-hellobar {
        font-size: 13px;
        padding: 8px 15px;
    }

    .nishan-hellobar-inner {
        flex-direction: column;
        gap: 5px;
    }

    .nishan-hellobar-close {
        position: static;
    }
}


/* ══════════════════════════════════════════════════════════════ */
/*  5 · SITE HEADER — Glassmorphism                               */
/* ══════════════════════════════════════════════════════════════ */
.site-header {
    height: var(--header-h);
    min-height: 80px;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    /* Glass effect */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    border-bottom: 1px solid var(--glass-border);
    /*box-shadow: 0 4px 24px rgba(27, 19, 10, 0.22);*/

    transition: background var(--t-med), box-shadow var(--t-med), top 0.35s var(--ease);
}

/* Scrolled state: slightly more opaque and dark */
.site-header.is-scrolled {
    background: rgba(225, 225, 225, 0.5);
    box-shadow: 0 6px 32px rgba(27, 19, 10, 0.32);
}

.site-header.is-scrolled .site-title,
.site-header.is-scrolled .site-title a {
    color: var(--clr-espresso);
}

.site-header.is-scrolled .main-navigation a {
    color: var(--clr-espresso);
}

.site-header.is-scrolled .main-navigation a:hover,
.site-header.is-scrolled .main-navigation li.current-menu-item>a,
.site-header.is-scrolled .main-navigation li.current_page_item>a {
    color: var(--clr-white);
    background: var(--clr-orange);
}


.site-header.is-scrolled .menu-toggle {
    color: var(--clr-espresso);
    border-color: rgba(255, 255, 255, 0.35);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}

/* Site title / logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    text-decoration: none;
    flex-shrink: 0;
}

.site-branding .custom-logo {
    height: 60px;
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-family: var(--ff-display);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-espresso);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color var(--t-fast);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    color: var(--clr-gold);
}

.site-description {
    display: none;
    /* hidden by default; show via media query if needed */
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--ff-util);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════════════ */
/*  6 · PRIMARY NAVIGATION                                         */
/* ══════════════════════════════════════════════════════════════ */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-1);
    padding-left: 16px;
    padding-right: 16px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-navigation a {
    display: block;
    padding: var(--sp-1) var(--sp-1);
    font-family: var(--ff-util);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--clr-espresso);
    text-decoration: none;
    letter-spacing: 0.01em;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}

.main-navigation a:hover,
.main-navigation li.current-menu-item>a,
.main-navigation li.current_page_item>a {
    color: var(--clr-white);
    background: var(--clr-orange);
}

/* Dropdown */
.main-navigation li {
    position: relative;
    margin-left: var(--sp-1);
    margin-bottom: 0;
}

.main-navigation ul ul {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    flex-direction: column;
    min-width: 220px;
    background: var(--clr-teal-dark);
    border: 1px solid rgba(210, 201, 28, 0.2);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
    z-index: 110;
    gap: 0;
}

.main-navigation li:hover>ul,
.main-navigation li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.main-navigation ul ul a {
    padding: var(--sp-1) var(--sp-1);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0;
}

.main-navigation ul ul a:hover {
    background: rgba(242, 96, 32, 0.15);
    color: var(--clr-white);
}

.main-navigation ul ul li:first-child a {
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.main-navigation ul ul li:last-child a {
    border-radius: 0 0 var(--r-md) var(--r-md);
}

/* Toggle (mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(27, 19, 10, 0.35);
    border-radius: var(--r-sm);
    color: var(--clr-espresso);
    padding: 6px 10px;
    cursor: pointer;
    font-size: var(--fs-base);
    line-height: 1;
    transition: border-color var(--t-fast), color var(--t-fast);
}

.menu-toggle:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

/* Header CTA buttons */
.header-ctas {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    flex-shrink: 0;
}

.search-bar-wrapper {
    display: flex;
    width: 50%;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-1);
}

.search-bar {
    width: 100%;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 22px;
}


/* Language Wrapper */
.language-wrapper {
    display: flex;
    align-items: center;
}


/* ══════════════════════════════════════════════════════════════ */
/*  6 · COURSES NAVIGATION                                         */
/* ══════════════════════════════════════════════════════════════ */
.courses-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-1);
    padding-left: 16px;
    padding-right: 16px;
}

.courses-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.courses-navigation a {
    display: block;
    width: 100%;
    max-width: 300px;
    min-width: 220px;
    padding: var(--sp-1) var(--sp-1);
    font-family: var(--ff-util);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--clr-white);
    background: var(--clr-orange);
    text-decoration: none;
    letter-spacing: 0.01em;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}

.courses-navigation a:hover,
.courses-navigation li.current-menu-item>a,
.courses-navigation li.current_page_item>a {
    color: var(--clr-white);
    background: var(--clr-orange);
}

/* Dropdown */
.courses-navigation li {
    position: relative;
    margin-left: var(--sp-1);
    margin-bottom: 0;
}

.courses-navigation ul ul {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    flex-direction: column;
    min-width: 220px;
    background: var(--clr-teal-dark);
    border: 1px solid rgba(210, 201, 28, 0.2);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
    z-index: 110;
    gap: 0;
}

.courses-navigation li:hover>ul,
.courses-navigation li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.courses-navigation ul ul a {
    background-color: transparent;
    padding: var(--sp-1) var(--sp-1);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0;
}

.courses-navigation ul ul a:hover {
    background: rgba(242, 96, 32, 0.15);
    color: var(--clr-white);
}

.courses-navigation ul ul li:first-child a {
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.courses-navigation ul ul li:last-child a {
    border-radius: 0 0 var(--r-md) var(--r-md);
}


/* ══════════════════════════════════════════════════════════════ */
/* 7 · MOBILE & OVERLAY MENU                                     */
/* ══════════════════════════════════════════════════════════════ */
/* ---------------- Hamburger / mobile-nav-btn ---------------- */

.mobile-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 5px;
    border: 1px solid #eee;
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    top: 16px;
    z-index: 1100;
}

.mobile-nav-btn:hover {
    border-color: var(--clr-orange);
}

.mobile-nav-btn .bar {
    position: absolute;
    left: 13px;
    width: 20px;
    height: 2px;
    background: var(--clr-orange);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.mobile-nav-btn .bar:nth-child(1) {
    top: 15px;
}

.mobile-nav-btn .bar:nth-child(2) {
    top: 21px;
}

.mobile-nav-btn .bar:nth-child(3) {
    top: 27px;
}

/* When menu is open, hamburger morphs into X */
.mobile-nav-btn.is-active .bar:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
    background: var(--clr-orange);
}

.mobile-nav-btn.is-active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-btn.is-active .bar:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
    background: var(--clr-orange);
}

/* ---------------- Overlay ---------------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    z-index: 1050;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ---------------- Side menu panel ---------------- */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: var(--menu-width);
    max-width: 85vw;
    background: #fff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu.is-open {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px;
    border-bottom: 1px solid var(--clr-orange);
}

.side-menu-header .brand-line {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Close (X) button — same visual language as mobile-nav-btn */
.side-menu-close {
    width: 42px;
    height: 42px;
    border-radius: 5px;
    border: 1px solid #eee;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    flex: none;
}

.side-menu-close:hover {
    border-color: var(--clr-orange);
    background: #ffffff;
}

.side-menu-close .bar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: var(--clr-orange);
    border-radius: 2px;
}

.side-menu-close .bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.side-menu-close .bar:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.side-menu-close:hover .bar {
    background: var(--clr-orange);
}

/* ---------------- Main navigation ---------------- */
.mobile-navigation {}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
}

.mobile-navigation li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-navigation a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.mobile-navigation a:hover,
.mobile-navigation a:focus {
    color: var(--clr-orange);
    background: #fff7f0;
}

/* Submenu (Our Courses) as an accordion toggle */
.mobile-navigation.has-submenu>a .chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.mobile-navigation.has-submenu.is-open>a .chevron {
    transform: rotate(-135deg);
}

.side-menu .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: max-height .3s ease;
}

.mobile-navigation.has-submenu.is-open .submenu {
    max-height: 300px;
}

.side-menu .submenu a {
    padding: 12px 20px 12px 34px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.side-menu .submenu a:hover {
    color: var(--clr-orange);
    background: transparent;
}

/* CTA item (Enroll Now) styled distinctly, like the site button */
.mobile-navigation li.cta {
    border-bottom: none;
    padding: 14px 20px 20px;
}

.mobile-navigation li.cta a {
    background: var(--clr-orange);
    color: #fff;
    border-radius: 6px;
    justify-content: center;
    padding: 13px 20px;
    font-weight: 600;
}

.mobile-navigation li.cta a:hover {
    background: var(--clr-orange-dark);
    color: #fff;
}



/* ══════════════════════════════════════════════════════════════ */
/*  7 · SEARCH WRAPPER                                              */
/* ══════════════════════════════════════════════════════════════ */

.search-wrapper {
    position: relative;
    width: 56px;
    height: 80px;
}

.search {
    position: relative;
    width: 32px;
    margin: 0 auto;
    padding: 23px 0;
    text-align: center;
    cursor: pointer;
}

.search .search__circle {
    width: 28px;
    height: 28px;
    border: 3px solid var(--clr-orange);
    border-radius: 100px;
}

.search .search__rectangle {
    position: absolute;
    right: 0px;
    bottom: 23px;
    width: 10px;
    transform: rotate(45deg);
    border: 2px solid var(--clr-orange);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}


/* ══════════════════════════════════════════════════════════════ */
/*  7 · BUTTONS                                                    */
/* ══════════════════════════════════════════════════════════════ */
.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    padding: 0.65em 1.5em;
    font-family: var(--ff-util);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
}

.btn:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible {
    outline: 3px solid var(--clr-gold);
    outline-offset: 3px;
}

.btn:active {
    transform: scale(0.97);
}

/* Primary CTA */
.btn-primary,
.wp-block-button__link,
input[type="submit"] {
    background: var(--clr-orange);
    color: var(--clr-white);
    border-color: var(--clr-orange);
    box-shadow: 0 2px 8px rgba(242, 96, 32, 0.30);
}

.btn-primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
    background: var(--clr-orange-dark);
    border-color: var(--clr-orange-dark);
    box-shadow: 0 4px 14px rgba(242, 96, 32, 0.40);
    color: var(--clr-white);
}

/* Secondary (outline) */
.btn-secondary {
    background: transparent;
    color: var(--clr-white);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--clr-white);
    color: var(--clr-white);
}

/* Teal solid */
.btn-teal {
    background: var(--clr-teal);
    color: var(--clr-white);
    border-color: var(--clr-teal);
}

.btn-teal:hover {
    background: var(--clr-teal-light);
    border-color: var(--clr-teal-light);
    color: var(--clr-white);
}

/* Gold accent */
.btn-gold {
    background: var(--clr-gold);
    color: var(--clr-espresso);
    border-color: var(--clr-gold);
}

.btn-gold:hover {
    background: var(--clr-gold-muted);
    border-color: var(--clr-gold-muted);
    color: var(--clr-espresso);
}

/* Ghost on dark backgrounds */
.btn-ghost {
    background: transparent;
    color: var(--clr-teal);
    border-color: var(--clr-teal);
}

.btn-ghost:hover {
    background: var(--clr-teal);
    color: var(--clr-white);
}

button,
input[type="button"],
input[type="reset"] {
    background: var(--clr-light-gray);
    color: var(--clr-body-text);
    border-color: var(--clr-light-gray);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background: var(--clr-mid-gray);
    border-color: var(--clr-mid-gray);
    color: var(--clr-white);
}


.our-courses_btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-1);
    padding-left: 16px;
    padding-right: 16px;
}

.our-courses_btn {
    display: block;
    width: 100%;
    max-width: 300px;
    min-width: 185px;
    padding: var(--sp-2) var(--sp-1);
    font-family: var(--ff-util);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--clr-white);
    background: var(--clr-orange);
    text-decoration: none;
    letter-spacing: 0.01em;
    border: 0;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}

.our-courses_btn:hover,
.our-courses_btn:active {
    background: var(--clr-orange-dark);
}

/* CWC Button */
.cwc_first-name,
.cwc_last-name {
    width: 49%;
    display: inline-block;
}

.button.cwc_add_to_cart_button {
    width: 100%;
    padding: 18px 36px;
    color: #fff;
    background-color: #f26020;
    border-radius: 5px;
}

/* ══════════════════════════════════════════════════════════════ */
/*  8 · FORMS                                                      */
/* ══════════════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 0.7em 1em;
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    color: var(--clr-body-text);
    background: var(--clr-white);
    border: 1.5px solid var(--clr-light-gray);
    border-radius: var(--r-md);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--clr-teal);
    box-shadow: 0 0 0 3px rgba(34, 72, 81, 0.18);
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

label {
    display: block;
    font-family: var(--ff-util);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--clr-teal-dark);
    margin-bottom: 0.3em;
    letter-spacing: 0.03em;
}

.form-group {
    margin-bottom: var(--sp-3);
}

/* Search form */
.search-form {
    display: flex;
    gap: var(--sp-1);
}

.search-form .search-field {
    flex: 1;
    border-radius: var(--r-pill) 0 0 var(--r-pill);
    border-right: none;
}

.search-form .search-submit {
    border-radius: 0 var(--r-pill) var(--r-pill) 0;
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
}


/* ══════════════════════════════════════════════════════════════ */
/*  9 · HERO / BANNER                                              */
/* ══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--clr-teal-dark);
}

.hero__bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Gradient overlay — teal tinted, preserves image richness */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(23, 47, 53, 0.72) 0%,
            rgba(23, 47, 53, 0.30) 55%,
            rgba(27, 19, 10, 0.70) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: var(--sp-8) var(--sp-3) var(--sp-7);
    max-width: var(--site-width);
    margin: 0 auto;
    width: 100%;
}

.hero__content h1 {
    color: var(--clr-white);
    max-width: 700px;
    margin-bottom: var(--sp-3);
}

.hero__content h1 em {
    color: var(--clr-gold);
    font-style: italic;
}

.hero__content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--fs-md);
    max-width: 50ch;
    margin-bottom: var(--sp-4);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

/* Page header (non-front-page) */
.page-header,
.entry-header {
    padding: var(--sp-6) 0 var(--sp-4);
    border-bottom: 1px solid var(--clr-light-gray);
    margin-bottom: var(--sp-5);
}

.home .page-header,
.home .entry-header {
    display: none;
}

.page-title,
.entry-title {
    color: var(--clr-teal-dark);
    margin-bottom: var(--sp-2);
}


/* ══════════════════════════════════════════════════════════════ */
/* 10 · POSTS & CARDS                                              */
/* ══════════════════════════════════════════════════════════════ */
/* Post list */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-4);
}

/* Card */
.card {
    background: var(--clr-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--t-med), transform var(--t-med);
    display: flex;
    flex-direction: column;
}

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

.card__thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
    display: block;
}

.card:hover .card__thumbnail img {
    transform: scale(1.04);
}

.card__body {
    padding: var(--sp-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__meta {
    font-family: var(--ff-util);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--clr-orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--sp-1);
}

.card__title {
    font-size: var(--fs-lg);
    color: var(--clr-teal-dark);
    margin-bottom: var(--sp-1);
    line-height: 1.25;
}

.card__title a {
    color: inherit;
    text-decoration: none;
}

.card__title a:hover {
    color: var(--clr-orange);
}

.card__excerpt {
    font-size: var(--fs-sm);
    color: var(--clr-mid-gray);
    flex: 1;
    line-height: 1.6;
}

/* Underscores post entry */
.hentry {
    margin-bottom: var(--sp-7);
    padding-bottom: var(--sp-7);
    border-bottom: 1px solid var(--clr-light-gray);
}

.hentry:last-of-type {
    border-bottom: none;
}

.entry-meta {
    font-family: var(--ff-util);
    font-size: var(--fs-xs);
    color: var(--clr-mid-gray);
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-3);
}

.entry-meta a {
    color: var(--clr-teal);
}

.entry-footer {
    margin-top: 0;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--clr-light-gray);
    font-family: var(--ff-util);
    font-size: var(--fs-xs);
    color: var(--clr-mid-gray);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

/* Post thumbnail */
.post-thumbnail {
    margin-bottom: var(--sp-4);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pagination */
.nav-links,
.posts-navigation,
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    padding: var(--sp-5) 0;
    font-family: var(--ff-util);
    font-size: var(--fs-sm);
}

.nav-links .nav-previous,
.nav-links .nav-next {
    font-weight: 600;
}

.nav-links a,
.page-numbers a,
.page-numbers.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5em;
    height: 2.5em;
    border-radius: var(--r-sm);
    color: var(--clr-teal);
    text-decoration: none;
    border: 1.5px solid var(--clr-light-gray);
    transition: all var(--t-fast);
}

.nav-links a:hover,
.page-numbers a:hover {
    background: var(--clr-teal);
    color: var(--clr-white);
    border-color: var(--clr-teal);
}

.page-numbers.current {
    background: var(--clr-teal);
    color: var(--clr-white);
    border-color: var(--clr-teal);
    font-weight: 700;
}


/* ══════════════════════════════════════════════════════════════ */
/* 10.5 · ARCHIVE GRID (courses archive, and other CPT archives)   */
/*                                                                  */
/* Real markup (from live output):                                 */
/*   #primary.site-main                                            */
/*     > header.page-header (hidden on archives — see section 20.5)*/
/*     > article.{post-type}.hentry                                */
/*         > header.entry-header > h2.entry-title                  */
/*         > div.entry-content                                     */
/*         > footer.entry-footer                                   */
/*                                                                  */
/* WordPress auto-adds "post-type-archive-{slug}" to <body> for a   */
/* CPT archive, so we scope the grid to the courses archive only —  */
/* other archives (blog, etc.) keep the default stacked .hentry     */
/* list style already defined in section 10 above.                  */
/* ══════════════════════════════════════════════════════════════ */

.post-type-archive-courses #primary.site-main,
.tax-course_category #primary.site-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-2);
    align-items: stretch;
}

/* The in-content page title is hidden on archives (section 20.5),
   but keep it spanning full width in case that rule is ever removed */
.post-type-archive-courses #primary.site-main>.page-header,
.tax-course_category #primary.site-main>.page-header {
    grid-column: 1 / -1;
}

/* Course card */
.post-type-archive-courses #primary.site-main>article.courses,
.tax-course_category #primary.site-main>article.courses {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    background: var(--clr-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t-med), transform var(--t-med);
}

.post-type-archive-courses #primary.site-main>article.courses:hover,
.tax-course_category #primary.site-main>article.courses:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Featured image, if the loop outputs one (has-post-thumbnail class
   is already present on the article; this targets the standard
   the_post_thumbnail() markup should it appear before/within the card) */
.post-type-archive-courses #primary.site-main>article.courses .post-thumbnail,
.tax-course_category #primary.site-main>article.courses .post-thumbnail {
    margin: 0;
    border-radius: 0;
    aspect-ratio: 16 / 10;
}

.post-type-archive-courses #primary.site-main>article.courses .post-thumbnail img,
.tax-course_category #primary.site-main>article.courses .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-type-archive-courses #primary.site-main>article.courses .entry-header,
.tax-course_category #primary.site-main>article.courses .entry-header {
    padding: var(--sp-3) var(--sp-3) 0;
    border-bottom: none;
    margin-bottom: 0;
}

.post-type-archive-courses #primary.site-main>article.courses .entry-title,
.tax-course_category #primary.site-main>article.courses .entry-title {
    font-family: var(--ff-display);
    font-size: var(--fs-lg);
    color: var(--clr-teal-dark);
    margin-bottom: 0;
    line-height: 1.3;
}

.post-type-archive-courses #primary.site-main>article.courses .entry-title a,
.tax-course_category #primary.site-main>article.courses .entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

.post-type-archive-courses #primary.site-main>article.courses .entry-title a:hover,
.tax-course_category #primary.site-main>article.courses .entry-title a:hover {
    color: var(--clr-orange);
}

.post-type-archive-courses #primary.site-main>article.courses .entry-content,
.tax-course_category #primary.site-main>article.courses .entry-content {
    padding: var(--sp-1) var(--sp-3) var(--sp-3);
    margin: var(--sp-1) 0 0;
    flex: 1;
}

.post-type-archive-courses #primary.site-main>article.courses .entry-content p,
.tax-course_category #primary.site-main>article.courses .entry-content p {
    font-size: var(--fs-sm);
    color: var(--clr-mid-gray);
    line-height: 1.6;
    margin: 0;
    max-width: none;

    /* clamp excerpt to 4 lines so card heights stay even */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-type-archive-courses #primary.site-main>article.courses .entry-footer,
.tax-course_category #primary.site-main>article.courses .entry-footer {
    margin-top: auto;
    padding: var(--sp-2) var(--sp-3);
    border-top: 1px solid var(--clr-light-gray);
    gap: var(--sp-1);
}

.post-type-archive-courses #primary.site-main>article.courses .entry-footer:empty,
.tax-course_category #primary.site-main>article.courses .entry-footer:empty {
    display: none;
}

/* Reuses the existing .tag styling (section 17) for any taxonomy
   link WordPress prints in the entry footer */
.post-type-archive-courses #primary.site-main>article.courses .entry-footer a,
.tax-course_category #primary.site-main>article.courses .entry-footer a {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-family: var(--ff-util);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--r-pill);
    background: rgba(34, 72, 81, 0.10);
    color: var(--clr-teal);
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast);
}

.post-type-archive-courses #primary.site-main>article.courses .entry-footer a:hover,
.tax-course_category #primary.site-main>article.courses .entry-footer a:hover {
    background: var(--clr-orange);
    color: var(--clr-white);
}

/* Empty-results state (in case a filtered taxonomy archive has none) */
.post-type-archive-courses #primary.site-main>.no-results,
.tax-course_category #primary.site-main>.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--sp-6) var(--sp-3);
    color: var(--clr-mid-gray);
}


/* ══════════════════════════════════════════════════════════════ */
/* 11 · SIDEBAR & WIDGETS                                          */
/* ══════════════════════════════════════════════════════════════ */
#secondary {
    padding-top: var(--sp-6);
}

.widget {
    margin-bottom: var(--sp-5);
    padding: var(--sp-4);
    background: var(--clr-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--clr-teal);
}

.widget-title {
    font-family: var(--ff-display);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--clr-teal-dark);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--clr-light-gray);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: var(--sp-1) 0;
    border-bottom: 1px solid var(--clr-light-gray);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--clr-teal);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: color var(--t-fast);
}

.widget ul li a:hover {
    color: var(--clr-orange);
}

/* Search widget override */
.widget_search .search-form {
    gap: 0;
}


/* ══════════════════════════════════════════════════════════════ */
/* 12 · STAT / IMPACT SECTION                                      */
/* ══════════════════════════════════════════════════════════════ */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-4);
}

.impact-item {
    text-align: center;
    padding: var(--sp-4) var(--sp-3);
}

.impact-item .stat-number {
    display: block;
    color: var(--clr-gold);
    margin-bottom: var(--sp-1);
}

.impact-item .stat-label {
    font-family: var(--ff-util);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.70);
    letter-spacing: 0.06em;
}

.impact-item .stat-desc {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.55);
    margin-top: var(--sp-1);
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════ */
/* 13 · FOOTER                                                     */
/* ══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--clr-espresso);
    color: rgba(255, 255, 255, 0.70);
    padding: var(--sp-5) 0 0;
    font-size: var(--fs-sm);
}

.footer-inner {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-5);
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* Footer brand column */
.footer-brand .site-title {
    font-size: var(--fs-lg);
    color: var(--clr-white);
    margin-bottom: var(--sp-2);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--fs-sm);
    line-height: 1.6;
    max-width: 28ch;
}

/* Footer nav columns */
.footer-nav-title {
    font-family: var(--ff-util);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: var(--sp-2);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: var(--sp-1);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: color var(--t-fast);
}

.footer-nav a:hover {
    color: var(--clr-gold);
}

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-2);
}

.site-info {
    font-family: var(--ff-util);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.40);
}

.site-info a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.site-info a:hover {
    color: var(--clr-gold);
}

/* Social links */
.social-links {
    display: flex;
    gap: var(--sp-1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: background var(--t-fast), color var(--t-fast);
}

.social-links a:hover {
    background: var(--clr-teal);
    color: var(--clr-white);
}

/* Footer CTA strip */
.footer-cta {
    background: var(--clr-teal);
    padding: var(--sp-5) var(--sp-3);
    text-align: center;
    margin-bottom: var(--sp-6);
    border-radius: var(--r-lg);
}

.footer-cta h3 {
    color: var(--clr-white);
    margin-bottom: var(--sp-3);
}

.footer-cta .btn-primary {
    background: var(--clr-orange);
    border-color: var(--clr-orange);
}


/* ══════════════════════════════════════════════════════════════ */
/* 14 · IMAGES & MEDIA                                             */
/* ══════════════════════════════════════════════════════════════ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: var(--sp-4) 0;
}

figcaption {
    font-family: var(--ff-util);
    font-size: var(--fs-xs);
    color: var(--clr-mid-gray);
    text-align: center;
    margin-top: var(--sp-1);
    letter-spacing: 0.04em;
}

/* WordPress image alignment */
.alignleft {
    float: left;
    margin: 0 var(--sp-3) var(--sp-2) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--sp-2) var(--sp-3);
}

.aligncenter {
    display: block;
    margin: var(--sp-3) auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignwide {
    width: calc(100% + 4rem);
    margin-left: -2rem;
}

/* Embedded video */
.wp-block-embed__wrapper,
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--r-lg);
}

.wp-block-embed__wrapper iframe,
.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ══════════════════════════════════════════════════════════════ */
/* 15 · TABLES                                                     */
/* ══════════════════════════════════════════════════════════════ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    margin: var(--sp-4) 0;
}

thead {
    background: var(--clr-teal);
    color: var(--clr-white);
}

th {
    font-family: var(--ff-util);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: var(--fs-xs);
    padding: var(--sp-2) var(--sp-3);
    text-align: left;
}

td {
    padding: var(--sp-2) var(--sp-3);
    border-bottom: 1px solid var(--clr-light-gray);
    color: var(--clr-body-text);
}

tbody tr:hover td {
    background: rgba(34, 72, 81, 0.04);
}

tfoot td {
    font-weight: 600;
    border-top: 2px solid var(--clr-teal);
}


/* ══════════════════════════════════════════════════════════════ */
/* 16 · COMMENTS                                                   */
/* ══════════════════════════════════════════════════════════════ */
.comments-area {
    margin-top: var(--sp-7);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--clr-light-gray);
}

.comments-title {
    font-size: var(--fs-xl);
    color: var(--clr-teal-dark);
    margin-bottom: var(--sp-5);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: var(--sp-4);
    background: var(--clr-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--sp-3);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--clr-teal-dark);
}

.comment-meta {
    font-size: var(--fs-xs);
    color: var(--clr-mid-gray);
    font-family: var(--ff-util);
    margin-bottom: var(--sp-2);
}

.comment-content p {
    font-size: var(--fs-sm);
    color: var(--clr-body-text);
}

.reply a {
    font-size: var(--fs-xs);
    font-family: var(--ff-util);
    font-weight: 600;
    color: var(--clr-teal);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reply a:hover {
    color: var(--clr-orange);
}

#respond {
    margin-top: var(--sp-5);
}

.comment-reply-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-3);
    color: var(--clr-teal-dark);
}


/* ══════════════════════════════════════════════════════════════ */
/* 17 · ACCESSIBILITY & UTILITIES                                  */
/* ══════════════════════════════════════════════════════════════ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--clr-white);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    clip: auto !important;
    clip-path: none;
    color: var(--clr-teal-dark);
    display: block;
    font-size: var(--fs-sm);
    font-weight: 700;
    height: auto;
    left: var(--sp-2);
    line-height: normal;
    padding: var(--sp-2) var(--sp-3);
    top: var(--sp-2);
    width: auto;
    z-index: 100000;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-auto {
    margin-top: auto;
}

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    @extend .screen-reader-text;
}

/* Tag / badge */
.tag {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-family: var(--ff-util);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--r-pill);
    background: rgba(34, 72, 81, 0.10);
    color: var(--clr-teal);
}

.tag--orange {
    background: rgba(242, 96, 32, 0.10);
    color: var(--clr-orange-dark);
}

.tag--gold {
    background: rgba(210, 201, 28, 0.20);
    color: var(--clr-espresso);
}


/* ══════════════════════════════════════════════════════════════ */
/* 18 · REDUCED MOTION                                             */
/* ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ══════════════════════════════════════════════════════════════ */
/* 20.5 · INNER PAGE HEADER                                       */
/* ══════════════════════════════════════════════════════════════ */
.inner-page-header {
    height: 120px;
    background: linear-gradient(135deg, var(--clr-teal-dark) 0%, var(--clr-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 var(--sp-3);
    margin-bottom: var(--sp-1);
    border-bottom: 3px solid var(--clr-gold);
}

/* Ambient gradient glows */
.inner-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 201, 28, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.inner-page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 96, 112, 0.15) 0%, transparent 75%);
    pointer-events: none;
}

.inner-page-header-container {
    max-width: var(--site-width);
    width: 100%;
    z-index: 2;
}

.inner-page-header-title {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    color: var(--clr-white);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Hide default duplicate titles on inner pages */
.page:not(.home) .entry-header,
.single:not(.home) .entry-header,
.archive:not(.home) .page-header:first-of-type,
.search:not(.home) .page-header:first-of-type {
    display: none;
}

/* Reset default .hentry spacing for the courses post type — the real
   card look/grid layout is defined in section 10.5 above */
.courses.type-courses {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* ══════════════════════════════════════════════════════════════ */
/* 20.6 · FOOTER WIDGETS                                          */
/* ══════════════════════════════════════════════════════════════ */
.footer-widgets {
    /*padding-bottom: var(--sp-5);*/
    background-color: var(--clr-espresso);
    color: var(--clr-light-gray);
    /*border-top: 4px solid var(--clr-teal);*/
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.footer-widgets .widget {
    margin-bottom: 0;
    padding: 0;
    background: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: none;
}

.footer-widgets .container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}

.footer-widgets .wp-block-heading {
    font-size: 1.25rem;
    color: #fff;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media screen and (min-width: 600px) {
    .footer-widgets-grid {
        gap: var(--sp-1);
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 960px) {
    .footer-widgets-grid {
        gap: var(--sp-3);
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-widget-area {
    margin-bottom: var(--sp-2);
}

.footer-widget-area:last-child {
    margin-bottom: 0;
}

.footer-widget-area .wp-block-image {
    margin-top: 0;
}

.footer-widget-area h2.widget-title {
    color: var(--clr-gold);
    font-size: var(--fs-md);
    font-family: var(--ff-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: var(--sp-2);
    border-bottom: 2px solid var(--clr-teal-light);
    padding-bottom: var(--sp-1);
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area ul li {
    margin-bottom: var(--sp-1);
    position: relative;
    padding-left: var(--sp-2);
    border-bottom: 1px solid rgba(225, 225, 225, 0.25);
}

.footer-widget-area ul li::before {
    content: "‣";
    position: absolute;
    left: 0;
    color: var(--clr-gold);
    transition: transform var(--t-fast);
}

.footer-widget-area ul li:hover::before {
    transform: translateX(3px);
}

.footer-widget-area ul li a {
    color: var(--clr-light-gray);
    text-decoration: none;
    transition: color var(--t-fast);
}

.footer-widget-area ul li a:hover {
    color: var(--clr-white);
}

.footer-widget-area p {
    margin: 0 0 var(--sp-2);
    color: var(--clr-light-gray);
}

.wp-block-social-links {
    display: flex;
    justify-content: left;
}

.wp-block-social-links li {
    fill: #fff;
    background-color: var(--clr-orange);
    padding: 0.6em 0.7em 0.3em !important;
    border-bottom: none !important;
    border-radius: 100%;
}

.wp-block-social-links li:before {
    content: none !important;
}

.wp-block-social-links li:hover,
.wp-block-social-links li:active {
    fill: #fff;
    background-color: var(--clr-orange-dark);
}


/* ══════════════════════════════════════════════════════════════ */
/* 19 · RESPONSIVE — TABLET (max 1200px)                           */
/* ══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 1200px) {

    .search-bar-wrapper {
        display: none;
    }

}


/* ══════════════════════════════════════════════════════════════ */
/* 19 · RESPONSIVE — TABLET (max 960px)                           */
/* ══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 960px) {
    :root {
        --header-h: 64px;
        --sp-7: 4.5rem;
        --sp-8: 5.5rem;
    }

    .site-header {
        justify-content: space-between;
    }

    .main-navigation {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(23, 47, 53, 0.97);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        border-bottom: 1px solid var(--glass-border);
        padding: var(--sp-3);
        box-shadow: var(--shadow-lg);
    }


    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.06);
        border-radius: var(--r-md);
        margin-top: var(--sp-1);
    }

    .main-navigation a {
        padding: var(--sp-2) var(--sp-2);
        font-size: var(--fs-base);
    }

    .language-wrapper {
        display: none;
    }

    .mobile-nav-btn {
        display: block;
    }

    .header-ctas .btn-secondary {
        display: none;
    }

    .hero {
        min-height: 70vh;
    }

    .post-type-archive-courses #primary.site-main,
    .tax-course_category #primary.site-main {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}


/* ══════════════════════════════════════════════════════════════ */
/* 20 · RESPONSIVE — MOBILE (max 640px)                           */
/* ══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 640px) {
    :root {
        --header-h: 64px;
        --sp-6: 3rem;
        --sp-7: 3.5rem;
    }

    .site-header {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-branding .custom-logo {
        height: 45px;
    }

    .site-title {
        font-size: var(--fs-base);
    }

    .main-navigation,
    .courses-navigation {
        padding-left: 8px;
        padding-right: 8px;
    }

    .main-navigation a,
    .courses-navigation a {
        font-size: var(--fs-sm);
    }

    .courses-navigation a {
        min-width: 110px;
    }

    .our-courses_btn {
        min-width: unset;
    }

    .search-bar {
        display: none;
    }

    .hero__content {
        padding: var(--sp-7) var(--sp-2) var(--sp-5);
    }

    .hero__content h1 {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .inner-page-header {
        height: 100px;
    }

    .post-type-archive-courses #primary.site-main,
    .tax-course_category #primary.site-main {
        grid-template-columns: 1fr;
        gap: var(--sp-3);
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wp-block-social-links {
        display: flex;
        justify-content: center;
    }

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

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

    .alignleft,
    .alignright {
        float: none;
        margin: var(--sp-3) 0;
        width: 100%;
    }

    .alignwide {
        width: 100%;
        margin-left: 0;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ══════════════════════════════════════════════════════════════ */
/* 21 · PRINT                                                      */
/* ══════════════════════════════════════════════════════════════ */
@media print {

    .site-header,
    .main-navigation,
    .site-footer,
    .comments-area,
    .sidebar,
    #secondary {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75em;
        color: #555;
    }

    h1,
    h2,
    h3 {
        color: #000;
    }

    .site-content {
        padding-top: 0;
    }
}