/* Header & Footer Placeholders - Reserve space to prevent layout shift */
#site-header {
    min-height: 5rem; /* 80px at base */
}

#site-footer {
    min-height: 18.75rem; /* 300px at base */
}

@media (min-width: 768px) {
    #site-footer {
        min-height: 12.5rem; /* 200px at base */
    }
}

/* Header & Navigation */
.site-header {
    height: 5rem; /* 80px at base */
    display: flex;
    align-items: center;
    background-color: var(--color-bg-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3rem; /* 48px at base */
    width: auto;
}

.main-nav {
    display: none;
    /* Mobile first hidden, will show on desktop */
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: var(--spacing-8);
    }
}

.nav-link {
    font-size: var(--fluid-small); /* 14px - 16px fluid, ensures 14px minimum */
    font-weight: 600;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Mobile Menu - Hamburger Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hamburger Icon Lines */
.hamburger-line {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-line:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger-line:nth-child(3) {
    margin-top: 5px;
}

/* Hamburger to X Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay - Hidden, using full-screen menu instead */
.mobile-menu-overlay {
    display: none;
}

/* Mobile Menu Panel - Full screen glassmorphism design */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    /* Glassmorphism effect - matching footer-glass-card */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(248, 250, 252, 0.88) 50%,
        rgba(255, 255, 255, 0.90) 100%
    );
    backdrop-filter: blur(3px) saturate(180%);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.03);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* Mobile Menu Header - Logo and Close Button */
.mobile-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    height: 5rem;
}

.mobile-menu-logo {
    height: 3rem;
    width: auto;
}

.mobile-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto; /* Push to right side */
}

.mobile-menu-close svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-text-dark);
}

/* Mobile Menu Navigation - Centered */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-2);
    padding: 0;
}

.mobile-nav-link {
    font-family: var(--font-family-base);
    font-size: var(--fluid-body-lg); /* 18px → 22px fluid */
    font-weight: 600;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: var(--spacing-3) var(--spacing-4);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    border: none;
    background: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-primary);
}

/* Dropdown arrow for Courses - hidden */
.mobile-nav-link .nav-arrow {
    display: none;
}

/* Desktop nav dropdown arrow - hidden */
.nav-link > span[aria-hidden="true"] {
    display: none;
}

/* Mobile Menu Contact Button - Pill style */
.mobile-menu-contact {
    margin-top: var(--spacing-6);
    padding: 0;
    border: none;
}

.mobile-menu-contact .btn {
    padding: var(--fluid-space-sm) var(--fluid-space-lg); /* 8-16px / 24-64px fluid */
    border-radius: 9999px;
    font-size: var(--fluid-small); /* 14px → 16px fluid */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hide desktop contact button on mobile */
.site-header .header-contact-btn {
    display: none;
}

@media (min-width: 768px) {
    .site-header .header-contact-btn {
        display: inline-flex;
        margin-top: -4px;
    }
}

.site-header .header-contact-btn:hover {
    background-color: rgb(40, 56, 146);
    border-color: rgb(40, 56, 146);
    color: #fff;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow-y: scroll; /* Keep scrollbar visible to prevent layout shift */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eee;
    display: grid;
    place-items: center;
    color: #999;
}

/* Footer */
.site-footer {
/*     background: linear-gradient(180deg, #E8EDF5 0%, #F0F4F9 100%);
 */    padding: clamp(0.5rem, 2vw, 1.875rem) 0; /* 8px - 30px fluid */
    position: relative;
    overflow: hidden;
}

.site-footer .container {
    padding-left: clamp(1rem, 3vw, 1.875rem); /* 16px - 30px fluid */
    padding-right: clamp(1rem, 3vw, 1.875rem);
    font-size: var(--font-size-xs);
    color: var(--color-text-dark);
    position: relative;
}

/* Glass Card Container */
.footer-glass-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 250, 252, 0.85) 50%,
        rgba(255, 255, 255, 0.88) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-default);
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 0rem) clamp(1rem, 3vw, 2rem); /* Fluid: 24-48px top, 16-0px sides, 16-32px bottom */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.03);
}

/* Gradient border for glass card */
.footer-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(200, 210, 230, 0.3) 40%,
        rgba(180, 195, 220, 0.2) 60%,
        rgba(255, 255, 255, 0.8) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Orange and Blue color patches - above the white glass background */
.footer-glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        /* Orange patch - top left */
        radial-gradient(circle at -5% -20%, rgba(249, 160, 27, 0.2) 0%, rgba(249, 160, 27, 0.1) 30%, transparent 50%),
        /* Blue patch - bottom right */
        radial-gradient(circle at 105% 120%, rgba(40, 56, 146, 0.15) 0%, rgba(40, 56, 146, 0.08) 30%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem); /* 24px - 40px fluid */
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem); /* 24px - 40px fluid */
    padding: 0 clamp(1rem, 4vw, 6.875rem); /* 16px - 110px fluid */
    position: relative;
    z-index: 2; /* Above the color patches */
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-brand {
        flex: 1 1 100%;
    }

    .footer-links,
    .contact-details {
        flex: 1;
        margin-left: 0;
    }
}

@media (min-width: 1280px) {
    .footer-container {
        flex-wrap: nowrap;
        gap: clamp(4rem, 10vw, 9.375rem); /* 64px - 150px fluid */
    }

    .footer-brand {
        flex: 1;
    }

    .footer-links {
        margin-left: auto;
    }

    .contact-details {
        margin-left: auto;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px at base */
}

.footer-tagline {
    color: var(--color-text-dark);
    font-family: var(--font-family-base);
    font-size: var(--fluid-small); /* 14px - 16px fluid */
    font-weight: 400;
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1.0625rem; /* 17px at base */
}

.social-icon {
    position: relative;
    width: 3.125rem; /* 50px at base */
    height: 3.125rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 50%,
        rgba(255, 255, 255, 0.92) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0px 2px 8px 0px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient border for social icons */
.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(200, 210, 230, 0.4) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0px 6px 16px 0px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

.social-icon:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.social-icon svg {
    width: 1.5625rem; /* 25px at base */
    height: 1.5625rem;
    position: relative;
    z-index: 1;
}

/* Footer logo */
.footer-logo {
    display: inline-block;
}

.footer-logo img {
    height: 3.125rem; /* 50px at base */
    width: auto;
}

.footer-heading {
    font-family: var(--font-family-base);
    font-weight: 600;
    font-size: var(--fluid-small); /* 14px - 16px fluid */
    color: var(--color-text-dark);
    margin-bottom: clamp(0.75rem, 2vw, 1rem); /* 12px - 16px fluid */
}

.footer-links {
    margin-left: auto;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 0.75rem); /* 8px - 12px fluid */
}

.footer-links a {
    font-family: var(--font-family-base);
    font-size: var(--fluid-small); /* 14px - 16px fluid */
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Contact Details */
.contact-details {
    margin-left: auto;
}

.contact-details .footer-heading {
    font-size: var(--fluid-small); /* 14px - 16px fluid */
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem); /* 12px - 20px fluid */
}

.contact-row {
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 0.75rem); /* 8px - 12px fluid */
    margin-bottom: clamp(0.375rem, 1vw, 0.5rem); /* 6px - 8px fluid */
    font-size: var(--fluid-small); /* 14px - 16px fluid */
}

.contact-label {
    color: var(--color-text-light);
    min-width: 7.5rem; /* 120px at base */
}

.contact-row a {
    color: var(--color-text-dark);
    transition: color 0.3s ease;
}

.contact-row a:hover {
    color: var(--color-primary);
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 2vw, 1rem); /* 8px - 16px fluid */
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 6.875rem) 0; /* Fluid: 16-24px top, 16-110px sides */
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    z-index: 2; /* Above the color patches */
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-family: var(--font-family-base);
    font-size: var(--fluid-small); /* 14px - 16px fluid, ensures 14px minimum */
    color: #6B7280;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px at base */
    flex-wrap: wrap;
}

.footer-legal a {
    font-family: var(--font-family-base);
    font-size: var(--fluid-small); /* 14px - 16px fluid, ensures 14px minimum */
    color: #6B7280;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-legal .separator {
    color: #D1D5DB;
    font-size: var(--fluid-small); /* 14px - 16px fluid, ensures 14px minimum */
}

/* Responsive footer - mobile */
@media (max-width: 768px) {
    /* Spacing now handled by clamp() in base styles */

    .footer-glass-card {
        border-radius: 1rem;
    }

    .footer-container {
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    /* Hide social icons on mobile */
    .social-links {
        display: none;
    }

    .footer-links {
        margin-left: 0;
    }

    .footer-links ul {
        align-items: center;
    }

    .contact-details {
        margin-left: 0;
    }

    .contact-details .footer-heading {
        text-align: center;
    }

    .contact-row {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .contact-label {
        min-width: unset;
    }

    .contact-phones {
        align-items: center;
    }

    .contact-phones a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Sections General */
.section {
    padding: var(--fluid-section) 0; /* 48px → 120px fluid */
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: var(--fluid-space-md); /* 16px → 32px fluid - consistent across pages */
    max-width: 50rem; /* 800px at base */
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-4);
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: var(--spacing-12);
        padding: 0;
    }
}

.section-title {
    font-family: 'Onest', sans-serif;
    font-size: var(--fluid-h1); /* 28px → 64px fluid */
    font-style: normal;
    font-weight: 400;
    line-height: var(--line-height-tight); /* 1.15 */
    color: #041A31;
    margin-bottom: var(--spacing-4);
}

.section-subtitle {
    color: #041A31;
    font-family: 'Onest', sans-serif;
    font-size: var(--fluid-body); /* 16px → 18px mobile */
    font-style: normal;
    font-weight: 400;
    line-height: var(--line-height-relaxed); /* 1.6 */
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: var(--fluid-body-lg); /* 18px → 22px fluid */
    }
}

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

.text-white {
    color: var(--color-text-white);
}

.color-primary {
    color: var(--color-primary);
}