@import url('mentor.css');

/* ==========================================
   A to Z Tutoring Design System (Vanilla CSS)
   ========================================== */

:root {
    /* Color Palette */
    --primary-navy: #101F3C;
    --primary-navy-light: #1A2B4C;
    --primary-navy-dark: #0A1428;
    --accent-gold: #F4B41A;
    --accent-gold-hover: #D89C13;
    --accent-gold-light: #FFF8E6;
    
    --bg-light: #F4F5F7;
    --bg-white: #FFFFFF;
    
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #F8FAFC; /* Helper for near white */
    
    --success-green: #10B981;
    --success-green-dark: #059669;
    --whatsapp-color: #25D366;
    --whatsapp-color-hover: #128C7E;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadow & Border Radius */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(16, 31, 60, 0.08), 0 4px 6px -2px rgba(16, 31, 60, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(16, 31, 60, 0.15), 0 10px 10px -5px rgba(16, 31, 60, 0.04);
    --shadow-gold: 0 10px 20px -5px rgba(244, 180, 26, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Base Styles & Reset
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Keep controls within narrow viewports. */
button, input, select, textarea {
    max-width: 100%;
}

/* Common Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.sub-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-navy);
    display: inline-block;
    margin-bottom: 12px;
}

.sub-title.text-gold {
    color: var(--accent-gold);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ==========================================
   Buttons Component
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary-gold {
    background-color: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary-gold:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-color-hover);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================
   Header Navigation
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 31, 60, 0.08);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    transition: var(--transition-normal);
}

.main-header.scrolled .header-container {
    height: 76px;
}

.logo-icon svg {
    transition: var(--transition-normal);
}

.main-header.scrolled .logo-icon svg {
    width: 60px;
    height: 60px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.1;
}

.brand-tagline {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-navy);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 22px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-navy);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 1100;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: var(--transition-slow);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.close-drawer {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-navy);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.drawer-cta {
    margin-top: 16px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 31, 60, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================
   Hero Section
   ========================================== */
/* ==========================================
   Hero Section (Clean Light Theme - Flyer 3.png Alignment)
   ========================================== */
.hero-section {
    background-color: #F8FAFC;
    color: var(--primary-navy);
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(16, 31, 60, 0.08);
}

.hero-bg-shapes .shape-circle-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,180,26,0.12) 0%, rgba(244,180,26,0) 70%);
    pointer-events: none;
}

.hero-bg-shapes .shape-circle-2 {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0) 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(16, 31, 60, 0.06);
    border: 1px solid rgba(16, 31, 60, 0.12);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

.badge-tag i {
    color: #B45309;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

.text-highlight {
    color: #B45309;
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-features-preview {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--primary-navy);
    font-weight: 600;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-gold {
    color: #B45309;
}

.hero-image-area {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Hero Interactive Dashboard Card (Clean Light Theme) */
.hero-dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(16, 31, 60, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px -10px rgba(16, 31, 60, 0.12), 0 0 25px rgba(244, 180, 26, 0.15);
    padding: 24px;
    color: var(--primary-navy);
    width: 100%;
    max-width: 520px;
    position: relative;
    transition: var(--transition-normal);
    animation: floatAnimation 6s ease-in-out infinite;
}

.hero-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -10px rgba(16, 31, 60, 0.18), 0 0 35px rgba(244, 180, 26, 0.25);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(16, 31, 60, 0.08);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.dash-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.725rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dash-subject-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    color: #B45309;
    font-weight: 700;
}

.dash-tutor-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F1F5F9;
    border: 1px solid rgba(16, 31, 60, 0.08);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.tutor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.tutor-info {
    flex-grow: 1;
}

.tutor-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    font-size: 9px;
}

.tutor-role {
    font-size: 0.725rem;
    color: #64748B;
}

.session-type-pill {
    font-size: 0.7rem;
    background: rgba(244, 180, 26, 0.15);
    color: #B45309;
    border: 1px solid rgba(244, 180, 26, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.dash-whiteboard {
    background: #0F172A;
    border: 1px dashed rgba(244, 180, 26, 0.5);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 16px;
    color: #ffffff;
}

.wb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.wb-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.wb-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.wb-math-problem {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-gold);
    padding: 10px 12px;
    border-radius: 4px;
}

.wb-label {
    font-size: 0.725rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.wb-formula {
    font-family: monospace, Georgia, serif;
    font-size: 1.05rem;
    color: #60a5fa;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.wb-annotation {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.725rem;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    padding: 5px 8px;
    border-radius: 4px;
}

/* Multi-Subject Mentor Showcase Hero Card */
.mentor-network-headline {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mentor-network-headline span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.mentor-network-headline .sub-tag {
    font-size: 0.725rem;
    color: #64748B;
    font-weight: 600;
}

.hero-mentor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.hero-mentor-viewport {
    overflow: hidden;
    margin-bottom: 16px;
}

.hero-mentor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F8FAFC;
    border: 1px solid rgba(16, 31, 60, 0.08);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.hero-mentor-item:hover,
.hero-mentor-item.active-mentor {
    background: #FFFFFF;
    border-color: rgba(244, 180, 26, 0.6);
    box-shadow: 0 4px 14px rgba(16, 31, 60, 0.07);
}

.mentor-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
}

.mentor-avatar-initials {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #FFFFFF;
    flex-shrink: 0;
    border: 2px solid var(--accent-gold);
    letter-spacing: 0.03em;
}

.oxford-bg {
    background: linear-gradient(135deg, #002147 0%, #173B6C 100%);
}

.cambridge-bg {
    background: linear-gradient(135deg, #005A36 0%, #0D8253 100%);
}

.imperial-bg {
    background: linear-gradient(135deg, #003087 0%, #2851A3 100%);
}

.mentor-avatar-elena {
    object-position: left center;
}

.mentor-avatar-marcus {
    object-position: right center;
}

.mentor-details {
    flex: 1;
    min-width: 0;
}

.mentor-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.mentor-item-name {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mentor-item-name .v-icon {
    width: 14px;
    height: 14px;
    color: #10B981;
    fill: rgba(16, 185, 129, 0.15);
}

.mentor-uni-tag {
    font-size: 0.675rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.mentor-uni-tag.imperial {
    background: rgba(0, 48, 135, 0.08);
    color: #003087;
    border: 1px solid rgba(0, 48, 135, 0.2);
}

.mentor-uni-tag.oxford {
    background: rgba(0, 33, 71, 0.08);
    color: #002147;
    border: 1px solid rgba(0, 33, 71, 0.2);
}

.mentor-uni-tag.cambridge {
    background: rgba(0, 90, 54, 0.08);
    color: #005A36;
    border: 1px solid rgba(0, 90, 54, 0.2);
}

.mentor-spec {
    font-size: 0.725rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-progress-box {
    background: #F1F5F9;
    border: 1px solid rgba(16, 31, 60, 0.08);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--primary-navy);
}

.grade-trajectory {
    display: flex;
    align-items: center;
    gap: 6px;
}

.target-a-star {
    color: #B45309;
    font-weight: 800;
}

.progress-bar-bg {
    height: 7px;
    background: rgba(16, 31, 60, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    border-radius: var(--radius-full);
}

.dash-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748B;
    padding-top: 10px;
    border-top: 1px solid rgba(16, 31, 60, 0.08);
}

.dash-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   4 Value Pillars Bar (Flyer 3.png Alignment)
   ========================================== */
.value-pillars-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(244, 180, 26, 0.3);
    position: relative;
    z-index: 10;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-right: 1px solid rgba(16, 31, 60, 0.1);
}

.pillar-item:last-child {
    border-right: none;
}

.pillar-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background-color: var(--accent-gold-light);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-navy);
}

.pillar-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary-navy);
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.pillar-sub {
    font-size: 0.825rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .value-pillars-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .pillar-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 576px) {
    .value-pillars-bar {
        grid-template-columns: 1fr;
    }
    .pillar-item {
        border-right: none;
        border-bottom: 1px solid rgba(16, 31, 60, 0.08);
        padding-bottom: 12px;
    }
    .pillar-item:last-child {
        border-bottom: none;
    }
}

/* ==========================================
   Credentials Section
   ========================================== */
.credentials-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
}

/* Gold line decoration similar to the flyer split */
.credentials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-gold);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.credential-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 31, 60, 0.06);
    box-shadow: var(--shadow-md);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--success-green));
    opacity: 0.8;
}

.badge-status {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.uni-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.uni-logo-wrapper {
    flex-shrink: 0;
}

.uni-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.course-tag {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.95rem;
}

.card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(16, 31, 60, 0.08);
    padding-top: 20px;
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-light);
    color: var(--primary-navy-light);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-full);
}

.detail-pill i {
    width: 14px;
    height: 14px;
    color: var(--primary-navy);
}

/* ==========================================
   Services / Programs Section
   ========================================== */
.services-section {
    padding: 100px 0;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--bg-light);
    border: 1px solid rgba(16, 31, 60, 0.05);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.tab-btn:hover {
    color: var(--primary-navy);
    background-color: rgba(16, 31, 60, 0.05);
}

.tab-btn.active {
    background-color: var(--primary-navy);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

/* Tab panes styling */
.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(16, 31, 60, 0.08);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-gold-light);
    color: var(--accent-gold-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
    text-decoration: underline;
    text-decoration-color: rgba(244, 180, 26, 0.4);
    text-underline-offset: 4px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: auto; /* Push tags to bottom */
}

.service-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-navy-light);
    background-color: rgba(16, 31, 60, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Shared Feature Banner */
.banner-highlight {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.banner-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--accent-gold-light);
    border: 1px dashed var(--accent-gold);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    color: var(--primary-navy-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.banner-pill .bullet {
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

/* ==========================================
   Plan Builder Section
   ========================================== */
.planner-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.planner-card {
    background-color: var(--primary-navy);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    color: #ffffff;
}

.planner-left {
    padding: 48px;
}

.planner-left h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.planner-left p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.builder-inputs {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.pathway-toggle {
    display: flex;
    background-color: #0c1c38; /* Deep navy base */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.path-btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.path-btn:hover {
    color: #ffffff;
}

.path-btn.active {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    box-shadow: 0 4px 12px rgba(244, 180, 26, 0.25);
}


/* Checklist options */
.subjects-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.check-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.check-label:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.subject-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-grow: 1;
    user-select: none;
    padding: 4px 0;
}

.check-label input {
    accent-color: var(--accent-gold);
    width: 16px;
    height: 16px;
}

.check-label.checked {
    background-color: rgba(244, 180, 26, 0.1);
    border-color: var(--accent-gold);
}

/* Stepper adjustments */
.subject-hours-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.check-label.checked .subject-hours-control {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hours-adjust {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 2px;
    transition: var(--transition-fast);
    user-select: none;
}

.hours-adjust:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

.hours-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 32px;
    text-align: center;
    user-select: none;
}


/* Hours Slider styling */
.hours-slider-wrapper {
    margin-top: 8px;
}

.hours-slider {
    width: 100%;
    accent-color: var(--accent-gold);
    cursor: pointer;
    height: 6px;
    border-radius: var(--radius-full);
}

.hours-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

#currentHoursValue {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Planner Right side / Results */
.planner-right {
    background-color: var(--primary-navy-light);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.estimate-box {
    background-color: rgba(16, 31, 60, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 32px;
}

.estimate-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.estimate-box .divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.plan-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-label {
    color: rgba(255, 255, 255, 0.6);
}

.summary-value {
    font-weight: 700;
    text-align: right;
    color: var(--accent-gold);
}

.plan-recommendation h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
}

.plan-recommendation p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.plan-section-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-top: 20px;
    margin-bottom: 12px;
}

.allocation-row, .milestone-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.allocation-row span, .milestone-item span {
    color: rgba(255, 255, 255, 0.6);
}

.allocation-row strong, .milestone-item strong {
    color: #ffffff;
    font-weight: 600;
}

.unlocked-resources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.resource-pill {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.resource-pill:hover {
    background-color: rgba(244, 180, 26, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}


/* ==========================================
   Why Choose Us Section
   ========================================== */
.why-us-section {
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.why-card {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 31, 60, 0.05);
    transition: var(--transition-normal);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 31, 60, 0.1);
}

.why-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(16, 31, 60, 0.03);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.why-card:hover .why-icon {
    background-color: var(--primary-navy);
    color: #ffffff;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   Testimonials Slider Section
   ========================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--primary-navy);
    color: #ffffff;
}

.testimonials-section .section-title {
    color: #ffffff;
}

.testimonials-section .sub-title {
    color: var(--accent-gold);
}

.testimonials-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    height: 320px; /* Base height */
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    pointer-events: none;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.star-filled {
    fill: var(--accent-gold);
    color: var(--accent-gold);
    width: 20px;
    height: 20px;
}

.feedback-text {
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
}

.student-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.student-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.slider-arrow {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--accent-gold);
    transform: scale(1.3);
}

/* ==========================================
   FAQs Section
   ========================================== */
.faqs-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
}

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

.faq-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-fast);
    border: 1px solid rgba(16, 31, 60, 0.02);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-navy);
    user-select: none;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Active Styles */
.faq-item.active {
    background-color: var(--bg-white);
    border-color: rgba(16, 31, 60, 0.1);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Tweak dynamically */
    padding-bottom: 24px;
}

/* ==========================================
   Contact / Consultation Form Section
   ========================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.contact-info-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.contact-info-panel p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-white);
    color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 1.25rem;
}

.method-item h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.contact-link:hover {
    color: var(--accent-gold-hover);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success-green-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.trust-badge i {
    width: 16px;
    height: 16px;
}

/* Contact Form Panel */
.contact-form-panel {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity var(--transition-normal);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.required {
    color: #ef4444;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(16, 31, 60, 0.12);
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-navy);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(16, 31, 60, 0.05);
}

/* Form success display */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: scaleIn 0.4s ease-out;
}

.success-icon {
    width: 72px;
    height: 72px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2.5rem;
}

.form-success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.form-success-message p {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 360px;
}

.success-wa-btn {
    padding: 14px 32px;
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================
   Footer
   ========================================== */
.main-footer {
    background-color: var(--primary-navy-dark);
    color: #ffffff;
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.motto-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-contact i {
    width: 18px;
    height: 18px;
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        gap: 32px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide standard nav */
    }
    
    .mobile-menu-toggle {
        display: block; /* Show menu toggle */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    
    .badge-tag {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-features-preview {
        justify-content: center;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
    }
    
    .planner-card {
        grid-template-columns: 1fr;
    }
    
    .planner-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .subjects-checklist {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Phone-first spacing and stacking for the shared site layout. */
@media (max-width: 767px) {
    html {
        font-size: 16px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-container,
    .main-header.scrolled .header-container {
        height: 72px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo-icon svg,
    .main-header.scrolled .logo-icon svg {
        width: 52px;
        height: 52px;
    }

    .brand-title {
        font-size: 1.35rem;
    }

    .brand-tagline {
        font-size: 0.56rem;
        letter-spacing: 0.08em;
    }

    .hero-section {
        padding: 104px 0 56px;
    }

    .hero-container {
        gap: 32px;
        padding-top: 0;
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 2.8rem);
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-ctas {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .hero-ctas .btn,
    .hero-ctas a {
        width: 100%;
    }

    .hero-features-preview {
        gap: 12px;
        font-size: 0.88rem;
    }

    .hero-dashboard-card {
        padding: 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .credentials-section,
    .services-section,
    .planner-section,
    .why-us-section,
    .testimonials-section,
    .faqs-section,
    .contact-section {
        padding: 56px 0;
    }

    .credential-card,
    .service-card,
    .why-card {
        padding: 24px 20px;
    }

    .services-tabs {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 28px;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 11px 10px;
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .banner-highlight {
        margin-top: 28px;
    }

    .banner-pill {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        text-align: center;
        white-space: normal;
    }

    .planner-left,
    .planner-right {
        padding: 28px 20px;
    }

    .planner-left h2,
    .contact-info-panel h2 {
        font-size: 1.8rem;
    }

    .pathway-toggle {
        flex-wrap: wrap;
        border-radius: var(--radius-md);
    }

    .path-btn {
        min-width: 50%;
        font-size: 0.8rem;
    }

    .estimate-box {
        padding: 22px 16px;
    }

    .testimonial-slider {
        height: auto;
    }

    .testimonial-slide {
        position: relative;
        display: none;
        padding: 8px 0;
        transform: none;
    }

    .testimonial-slide.active {
        display: flex;
    }

    .feedback-text {
        font-size: 1.08rem;
        margin-bottom: 20px;
    }

    .slider-controls {
        margin-top: 20px;
    }

    .faq-list {
        gap: 10px;
    }

    .faq-question {
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px;
        font-size: 1rem;
    }

    .faq-answer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-container {
        gap: 32px;
    }

    .contact-info-panel p,
    .contact-methods {
        margin-bottom: 24px;
    }

    .contact-form-panel {
        padding: 22px 16px;
    }

    .floating-contact-widget {
        bottom: 14px;
        right: 14px;
    }

    .trigger-badge {
        display: none;
    }

    .modal-overlay {
        padding: 12px;
    }

    .modal-dialog {
        padding: 32px 20px;
    }
}

/* ==========================================
   Resources Hub & Article Layout Styles
   ========================================== */

/* Hub Hero Section */
.resources-hero {
    padding: 120px 0 60px 0;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resources-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 180, 26, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.resources-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.resources-hero p {
    font-size: 1.125rem;
    color: rgba(248, 250, 252, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Resources Cards Grid */
.resources-grid-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.subject-group {
    margin-bottom: 64px;
}

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

.subject-group-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 12px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid rgba(16, 31, 60, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--primary-navy) 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(244, 180, 26, 0.2);
}

.article-card:hover::after {
    opacity: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-meta span.board-badge {
    background-color: var(--accent-gold-light);
    color: var(--accent-gold-hover);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.article-card .read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.article-card:hover .read-more {
    color: var(--accent-gold-hover);
}

.article-card .read-more i {
    transition: var(--transition-fast);
}

.article-card:hover .read-more i {
    transform: translateX(4px);
}

/* Article Page Layout */
.article-page {
    padding-top: 80px; /* Offset for sticky header */
}

.article-header {
    padding: 80px 0 50px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(16, 31, 60, 0.05);
}

.article-header-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold-hover);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.article-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--primary-navy);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 2px solid var(--accent-gold);
}

.author-info h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-navy);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Article Body Content */
.article-body-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.article-body-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 48px 0 20px 0;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 32px 0 16px 0;
}

/* Key Takeaways / TL;DR Box */
.tldr-box {
    background: linear-gradient(135deg, rgba(16, 31, 60, 0.02) 0%, rgba(16, 31, 60, 0.05) 100%);
    border-left: 4px solid var(--primary-navy);
    border-radius: 4px var(--radius-md) var(--radius-md) 4px;
    padding: 28px;
    margin: 32px 0 40px 0;
    box-shadow: var(--shadow-sm);
}

.tldr-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

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

.tldr-box li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-dark);
}

.tldr-box li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-gold-hover);
    font-weight: bold;
}

/* Step Card Components */
.step-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.step-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid rgba(16, 31, 60, 0.04);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.step-content {
    flex-grow: 1;
}

.step-content h3, .step-content h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.step-content p {
    margin: 0;
    font-size: 0.975rem;
}

/* Pitfall / Pro-Tip Callout */
.callout-box {
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 32px 0;
    display: flex;
    gap: 16px;
}

.callout-box.pitfall {
    background-color: #FEF2F2;
    border-left: 4px solid #EF4444;
}

.callout-box.protip {
    background-color: var(--accent-gold-light);
    border-left: 4px solid var(--accent-gold);
}

.callout-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.callout-box.pitfall .callout-icon { color: #EF4444; }
.callout-box.protip .callout-icon { color: var(--accent-gold-hover); }

.callout-text h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.callout-box.pitfall .callout-text h4 { color: #991B1B; }
.callout-box.protip .callout-text h4 { color: var(--primary-navy); }

.callout-text p {
    margin: 0;
    font-size: 0.95rem;
}

.callout-box.pitfall .callout-text p { color: #7F1D1D; }
.callout-box.protip .callout-text p { color: var(--text-dark); }

/* Math rendering wrapper */
.math-block {
    overflow-x: auto;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    margin: 24px 0;
    border: 1px dashed rgba(16, 31, 60, 0.1);
    text-align: center;
}

/* Comparison Tables */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 31, 60, 0.08);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    background-color: var(--bg-white);
}

.comparison-table th {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(16, 31, 60, 0.05);
    color: var(--text-dark);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* FAQ Section in Articles */
.faq-section {
    margin-top: 56px;
    border-top: 1px solid rgba(16, 31, 60, 0.08);
    padding-top: 48px;
}

.faq-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 32px;
}

.faq-section .faq-item {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
}

/* Article CTA Box */
.article-cta-box {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    border-radius: var(--radius-md);
    padding: 40px;
    color: var(--text-light);
    text-align: center;
    margin: 56px 0 32px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.article-cta-box::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: var(--radius-full);
    background-color: rgba(244, 180, 26, 0.03);
    top: -100px;
    right: -100px;
}

.article-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.article-cta-box p {
    color: rgba(248, 250, 252, 0.75);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

.article-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-cta-buttons .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Responsive Overrides for Resources */
@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2.25rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-header {
        padding: 60px 0 40px 0;
    }
    
    .step-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
    }
    
    .article-cta-box {
        padding: 30px 20px;
    }
}

/* Standalone Planner Page Container */
.planner-standalone-page {
    background-color: var(--bg-light);
}

.planner-standalone-page .planner-section {
    background-color: var(--bg-light);
}

.planner-standalone-container {
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* Homepage Planner Teaser Section */
.planner-teaser-section {
    padding: 100px 0;
    background-color: var(--primary-navy);
    position: relative;
    overflow: hidden;
}

.planner-teaser-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    background-color: var(--primary-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 48px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.teaser-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.teaser-content h2 {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.teaser-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.teaser-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.teaser-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.teaser-feat-item i {
    width: 20px;
    height: 20px;
}

.teaser-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Window Mockup CSS */
.mock-planner-container {
    background-color: #081125;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-dot.red { background-color: #ff5f56; }
.mock-dot.yellow { background-color: #ffbd2e; }
.mock-dot.green { background-color: #27c93f; }

.mock-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.mock-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    padding: 20px;
    gap: 16px;
}

.mock-body-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-item.active {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.mock-sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.75rem;
    color: #ffffff;
}

.mock-badge {
    font-size: 0.65rem;
    background-color: rgba(244, 180, 26, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
}

.mock-body-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mock-summary-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    text-align: center;
}

.mock-total-title {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.mock-total-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.mock-bar-container {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

.mock-bar {
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

.mock-unlock-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #27c93f;
    font-weight: 700;
}

.mock-unlock-tag i {
    width: 10px;
    height: 10px;
}

/* Teaser Mobile Responsiveness */
@media (max-width: 991px) {
    .planner-teaser-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }
    
    .teaser-visual {
        order: -1; /* Mockup on top for tablets/mobiles */
    }
}

/* Diagnostic Planner Dropdown Selectors */
.planner-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 6px;
}

.planner-select:hover, .planner-select:focus {
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.08);
}

.planner-select option {
    background-color: var(--primary-navy-dark);
    color: #ffffff;
}

/* Exam Board dropdowns inside subject cards */
.subject-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.exam-board-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    outline: none;
    margin-top: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.exam-board-select:hover, .exam-board-select:focus {
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

.exam-board-select option {
    background-color: var(--primary-navy-dark);
    color: #ffffff;
}

/* Dynamic Sidebar Diagnostic Alerts */
.plan-alert-box {
    background-color: rgba(244, 180, 26, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn var(--transition-normal) ease-in-out;
}

.plan-alert-box i {
    width: 18px;
    height: 18px;
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-alert-box p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

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

/* Restructured Planner Configuration Card */
.planner-config-card {
    background-color: var(--primary-navy);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.planner-config-row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.planner-config-card .config-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}


.planner-config-card .config-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.planner-config-card label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

/* Resources Directory Tabs Toggle */
.resources-tabs-container {
    display: flex;
    justify-content: center;
    margin-top: -28px;
    margin-bottom: 48px;
    position: relative;
    z-index: 10;
}

.resources-tabs-segmented {
    display: inline-flex;
    background-color: #0c1c38; /* Deep navy base matching page themes */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.resources-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

.resources-tab-btn:hover {
    color: #ffffff;
}

.resources-tab-btn.active {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(244, 180, 26, 0.25);
}

@media (max-width: 991px) {
    .planner-config-card {
        padding: 24px;
        gap: 24px;
    }
    .planner-config-row-bottom {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Meet Your Tutor Section */
.tutor-profile-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(16, 31, 60, 0.04);
    border-bottom: 1px solid rgba(16, 31, 60, 0.04);
}

.tutor-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.tutor-image-side {
    display: flex;
    justify-content: center;
}

.tutor-image-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 4px solid #ffffff;
    background: #ffffff;
}

.tutor-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-gold);
    border-radius: calc(var(--radius-lg) - 4px);
    pointer-events: none;
    z-index: 2;
}

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

.tutor-image-frame:hover .tutor-img {
    transform: scale(1.03);
}

.tutor-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-navy);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.tutor-name {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-top: 10px;
    margin-bottom: 16px;
}

.tutor-credentials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.cred-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-navy);
    background-color: rgba(16, 31, 60, 0.04);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 31, 60, 0.03);
}

.cred-tag i {
    width: 15px;
    height: 15px;
    color: var(--accent-gold);
}

.tutor-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.tutor-bio strong {
    color: var(--primary-navy);
}

.tutor-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.highlight-item i {
    color: var(--accent-gold);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .tutor-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .tutor-credentials-row {
        justify-content: center;
    }
    
    .tutor-highlights {
        align-items: center;
    }
}

/* Lead Magnet Section */
.lead-magnet-section {
    padding: 100px 0;
    background-color: var(--primary-navy);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.lead-magnet-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(244, 180, 26, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.lead-magnet-section .sub-title {
    color: var(--accent-gold);
}

.lead-magnet-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.lead-magnet-info h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.25;
}

.lead-magnet-info p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 32px;
}

.blueprint-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-gold);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lead-magnet-form-side {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 40px;
    color: var(--text-color);
    box-shadow: var(--shadow-lg);
}

.blueprint-form .form-group label {
    color: var(--primary-navy);
    font-weight: 600;
}

.blueprint-form .form-group input,
.blueprint-form .form-group select {
    border-color: rgba(16, 31, 60, 0.15);
}

.blueprint-form .form-group input:focus,
.blueprint-form .form-group select:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(16, 31, 60, 0.08);
}

.blueprint-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (max-width: 991px) {
    .lead-magnet-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
    .lead-magnet-info h2 {
        font-size: 1.8rem;
    }
}

/* Modal Dialog Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(16, 31, 60, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-dialog {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0);
}

.hero-match-modal .modal-dialog {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.hero-match-modal .form-success-message {
    display: none;
}

@media (max-width: 600px) {
    .hero-match-modal .modal-dialog {
        padding: 32px 20px;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 4px;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-navy);
}

.modal-icon i {
    width: 36px;
    height: 36px;
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.modal-form input,
.modal-form select {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.modal-success i {
    width: 48px;
    height: 48px;
}

/* Interactive Practice Center Dashboard */
.practice-layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.practice-sidebar-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    border: 1px solid rgba(16, 31, 60, 0.05);
}

.practice-sidebar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.sidebar-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 24px;
}

.practice-sidebar-card .control-group {
    margin-bottom: 20px;
}

.practice-sidebar-card label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.practice-sidebar-card select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 31, 60, 0.15);
    background-color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.practice-sidebar-card select:focus {
    border-color: var(--primary-navy);
}

.practice-main-viewport {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(16, 31, 60, 0.05);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.practice-main-viewport .viewport-card {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Welcome State */
.practice-welcome-state {
    text-align: center;
}

.welcome-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.welcome-icon i {
    width: 60px;
    height: 60px;
    display: inline-block;
}

.practice-welcome-state h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.practice-welcome-state p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

.quick-starts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.quick-start-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(16, 31, 60, 0.04);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

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

.qs-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: var(--primary-navy);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.quick-start-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.quick-start-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

.qs-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Test State & Quiz rendering */
.test-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(16, 31, 60, 0.08);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.progress-container {
    flex-grow: 1;
    max-width: 70%;
}

.progress-container span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(16, 31, 60, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    width: 20%;
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.timer-badge-container {
    background-color: rgba(244, 180, 26, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.timer-badge-container.warning {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.test-question-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.4;
    margin-bottom: 24px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(16, 31, 60, 0.12);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.option-item:hover {
    border-color: var(--primary-navy);
    background-color: rgba(16, 31, 60, 0.02);
}

.option-item.selected {
    border-color: var(--accent-gold);
    background-color: rgba(244, 180, 26, 0.05);
}

.option-item input[type="radio"] {
    accent-color: var(--accent-gold);
    width: 18px;
    height: 18px;
}

.test-actions-row {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(16, 31, 60, 0.08);
    padding-top: 24px;
}

/* Flashcards Section */
.flashcard-container {
    perspective: 1000px;
    width: 100%;
    max-width: 520px;
    height: 300px;
    margin: 0 auto 30px auto;
}

.flashcard {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px dashed rgba(244, 180, 26, 0.3);
}

.flashcard-front {
    background-color: var(--primary-navy);
    color: #ffffff;
}

.flashcard-back {
    background-color: #ffffff;
    color: var(--text-color);
    transform: rotateY(180deg);
    border-color: rgba(16, 31, 60, 0.1);
    border-style: solid;
}

.card-subject-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.card-question-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.card-help-tip {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
}

.card-answer-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.card-answer-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-mark-scheme {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-left: 3px solid var(--accent-gold);
    text-align: left;
    width: 100%;
}

.flashcard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
}

#cardProgressIndicator {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Results State Dashboard */
.results-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(244, 180, 26, 0.1);
    border: 4px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin: 0 auto 20px auto;
}

.results-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.results-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.gap-analysis-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.gap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
}

.gap-item.strong {
    background-color: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

.gap-item.weak {
    background-color: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.15);
    color: #bd2130;
}

.gap-item i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

@media (max-width: 991px) {
    .practice-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .quick-starts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .resources-hero {
        padding: 96px 0 40px;
    }

    .resources-hero h1,
    .article-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .resources-grid-section,
    .article-body-section,
    .lead-magnet-section {
        padding: 48px 0;
    }

    .article-header {
        padding: 96px 0 32px;
    }

    .article-card,
    .step-card,
    .tldr-box,
    .callout-box,
    .practice-sidebar-card,
    .practice-main-viewport .viewport-card,
    .quick-start-card {
        padding: 20px 16px;
    }

    .articles-grid,
    .quick-starts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-content h2 {
        font-size: 1.55rem;
        margin: 32px 0 16px;
    }

    .article-content h3 {
        margin: 24px 0 12px;
    }

    .booklet-form,
    .flashcard-controls {
        flex-wrap: wrap;
        gap: 12px;
    }

    .booklet-form .btn,
    .flashcard-controls .btn {
        width: 100%;
    }

    .practice-layout-grid,
    .hero-container,
    .planner-card,
    .contact-container {
        min-width: 0;
    }

    .practice-layout-grid > *,
    .hero-container > *,
    .planner-card > *,
    .contact-container > * {
        min-width: 0;
    }
}
