/* ==========================================================================
   CSS CORE VARIABLES & RESET CONFIGURATION (Pure White Theme Layout)
   ========================================================================== */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --brand-color: #ef4444;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --header-height: 70px;
    --mobile-nav-height: 65px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ANTI-BULLET & ANTI-UNDERLINE RECOVERY CONFIGURATION */
a {
    text-decoration: none !important;
    color: inherit;
}

ul, ol {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   NAV TOP BAR STYLES 
   ========================================================================== */
.main-header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}









/* ==========================================================================
   UPDATED: LOGO IMAGE & TEXT ENGINE
   ========================================================================== */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px; /* Smooth spacing gap between image and text if paired together */
    text-decoration: none !important;
}

.logo-image {
    height: 42px;    /* Constrains height safely inside your header layout */
    width: auto;     /* Prevents squishing by auto-calculating correct width proportions */
    object-fit: contain;
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo a:hover .logo-image {
    transform: scale(1.02); /* Clean, modern micro-interaction feedback on hover */
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: inline-block;
}

.logo-text .highlight {
    color: var(--brand-color);
}

/* ==========================================================================
   RESPONSIVE LOGO ADJUSTMENT OVERRIDES
   ========================================================================== */
@media (max-width: 991px) {
    .logo-image {
        height: 34px; /* Scaled down slightly to look proportional inside mobile headers */
    }
    .logo-text {
        font-size: 1.15rem; /* Matches the scaled down image framework elegantly */
    }
}













.desktop-navbar .nav-links {
    display: flex;
    gap: 32px;
}

.desktop-navbar .nav-links > li {
    position: relative;
    padding: 24px 0;
}

.desktop-navbar .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.desktop-navbar .nav-links a:hover,
.desktop-navbar .nav-links a.active {
    color: var(--brand-color);
}

.desktop-navbar .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* Dropdown Engine */
.dropdown-menu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 240px;
    opacity: 0; visibility: hidden;
    transition: all 0.2s ease;
    padding: 8px 0;
    z-index: 1100;
}

.scrollable-menu {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu li a {
    padding: 10px 16px;
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-secondary);
    color: var(--brand-color);
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-trigger:hover .arrow {
    transform: rotate(180deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-desktop {
    background-color: var(--brand-color);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary-desktop:hover {
    background-color: #dc2626;
}

/* ==========================================================================
   CORE CONTENT LAYOUTS
   ========================================================================== */
.main-wrapper {
    margin-top: var(--header-height);
    flex: 1;
}

.content-hero-section {
    padding: 80px 0 50px;
    background-color: #ffffff;
    text-align: center;
}

.hero-container-flex {
    max-width: 800px;
}

.badge {
    background-color: #fef2f2;
    color: var(--brand-color);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

.content-hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-hero-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-cta-main {
    background-color: var(--brand-color);
    color: #ffffff;
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 50px;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.btn-cta-main:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.curriculum-body-section {
    padding: 40px 0 80px;
    background-color: #ffffff;
}

.body-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--brand-color);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER ENGINE
   ========================================================================== */
.main-footer-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 40px;
}

.footer-brand-column h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-brand-column p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-links-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-column .sub-link-group {
    margin-bottom: 24px;
}

.footer-links-column ul a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-column ul a:hover {
    color: var(--brand-color);
    transform: translateX(3px);
}

.two-column-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-icon-wrapper {
    display: flex;
    gap: 10px;
}

.social-icon-wrapper a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.social-icon-wrapper a:hover {
    color: #ffffff;
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   ACCREDITATION STRIP 
   ========================================================================== */
.accreditation-trust-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
}

.trust-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: #94a3b8;
    white-space: nowrap;
}

.trust-badges-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    flex-wrap: nowrap;
    width: 100%;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.trust-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(80%);
    transition: filter 0.2s ease;
}

.badge-item:hover .trust-logo-img {
    filter: grayscale(0%) opacity(100%);
}

.pearson-logo {
    height: 24px;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-text span {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
}

/* ==========================================================================
   FOOTER UTILITY BOTTOM BAR
   ========================================================================== */
.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.15s;
}

.legal-links a:hover {
    color: var(--brand-color);
}

.copyright-text p {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
   BREAKPOINTS: COMPLETELY BALANCED RESPONSIVENESS
   ========================================================================== */
.mobile-bottom-navigation, .mobile-sheet-overlay {
    display: none;
}

@media (max-width: 1100px) {
    .accreditation-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .trust-badges-wrapper {
        flex-wrap: wrap;
        gap: 24px;
    }
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(var(--mobile-nav-height) + 15px);
    }
    .desktop-navbar, .header-cta-desktop {
        display: none;
    }
    .main-header {
        height: 60px;
    }
    .header-container {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .body-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .content-hero-section h1 {
        font-size: 2.2rem;
    }

    /* Mobile Bottom Navigation Activation */
    .mobile-bottom-navigation {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: var(--mobile-nav-height);
        background-color: #ffffff;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        padding: 4px 8px;
    }
    .mobile-nav-item {
        background: none; border: none;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        flex: 1; color: var(--text-muted);
        font-family: var(--font-stack);
        cursor: pointer; gap: 4px;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-nav-item .icon-box {
        font-size: 1.2rem; height: 24px;
        display: flex; align-items: center; justify-content: center;
    }
    .mobile-nav-item span {
        font-size: 0.7rem; font-weight: 600;
    }
    .mobile-nav-item:hover, .mobile-nav-item.active {
        color: var(--brand-color);
    }
    .mobile-nav-item.action-cta {
        color: var(--brand-color);
    }

    /* Mobile Drawer Panel Sheet System */
    .mobile-sheet-overlay {
        display: block; position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 2500; pointer-events: none;
    }
    .sheet-backdrop {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0,0,0,0.4); opacity: 0;
        transition: opacity 0.3s ease; pointer-events: none;
    }
    .sheet-content {
        position: absolute; bottom: 0; left: 0; right: 0;
        background-color: #ffffff;
        border-top-left-radius: 16px; border-top-right-radius: 16px;
        max-height: 75vh; display: flex; flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .mobile-sheet-overlay.open { pointer-events: auto; }
    .mobile-sheet-overlay.open .sheet-backdrop { opacity: 1; pointer-events: auto; }
    .mobile-sheet-overlay.open .sheet-content { transform: translateY(0); }
    
    .sheet-header {
        padding: 16px 20px; border-bottom: 1px solid var(--border-color);
        display: flex; justify-content: space-between; align-items: center;
    }
    .sheet-header h3 { font-size: 1.1rem; font-weight: 700; }
    .sheet-close-btn { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); }
    .sheet-body { padding: 12px 0; overflow-y: auto; }
    .scrollable-sheet-body { max-height: 50vh; }
    .sheet-link-item { display: block; padding: 14px 20px; font-size: 0.95rem; font-weight: 500; border-bottom: 1px solid #f1f5f9; color: var(--text-primary); }
}

@media (max-width: 576px) {
    .main-footer-section {
        padding: 50px 0 calc(var(--mobile-nav-height) + 20px);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-links-column h4 {
        border-left: 3px solid var(--brand-color);
        padding-left: 8px;
        margin-bottom: 12px;
    }
    .footer-links-column ul {
        padding-left: 12px;
        gap: 12px;
    }
    .two-column-list ul {
        padding-left: 0;
        grid-template-columns: 1fr 1fr;
    }
    .trust-badges-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .badge-item {
        width: 100%;
    }
    .badge-text strong, .badge-text span {
        white-space: normal;
    }
    .legal-links {
        gap: 12px 16px;
    }
}