@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ==========================================
   1. CSS Variables & Theme Setup
   ========================================== */
:root {
    --primary-navy: #1E2B58;
    --dark-navy: #0B1226;
    --navy-light: #2C3E75;
    
    --royal-gold: #D4AF37;
    --gold-light: #E2B65C;
    --gold-dark: #B8860B;
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    --slate-light: #F8FAFC;
    --slate-border: #E2E8F0;
    --white: #FFFFFF;
    
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-muted: #64748B;
    
    --success-color: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning-color: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger-color: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Sarabun', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(30, 43, 88, 0.08), 0 4px 6px -2px rgba(30, 43, 88, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(30, 43, 88, 0.15), 0 10px 10px -5px rgba(30, 43, 88, 0.08);
}

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

.d-none {
    display: none !important;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-navy);
}

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

/* ==========================================
   3. Base Layout Elements
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-py {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-gold), var(--gold-light));
    margin: 8px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================
   4. Buttons & Badges
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--royal-gold) 100%);
    color: var(--dark-navy);
    box-shadow: 0 4px 10px var(--gold-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: btnShine 4.5s infinite linear;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--gold-glow);
    background: linear-gradient(135deg, var(--royal-gold) 0%, var(--gold-dark) 100%);
}

@keyframes btnShine {
    0% { left: -100%; }
    15% { left: 100%; }
    100% { left: 100%; }
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-indigo {
    background-color: var(--primary-navy);
    color: var(--white);
}

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

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background-color: var(--success-bg);
    color: var(--success-color);
}

.badge-warning {
    background-color: var(--warning-bg);
    color: var(--warning-color);
}

.badge-danger {
    background-color: var(--danger-bg);
    color: var(--danger-color);
}

/* ==========================================
   5. Header & Navigation
   ========================================== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: transparent;
    padding: 15px 0;
}

.header-wrapper.scrolled {
    background-color: var(--dark-navy);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.header-wrapper .container {
    max-width: 1400px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    display: block;
}

/* Widen navbar container and scale down gaps on smaller desktop screens to prevent menu wrapping */
@media (max-width: 1200px) {
    .header-wrapper .container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    .nav-menu {
        gap: 12px !important;
    }
    .nav-link {
        font-size: 0.88rem !important;
    }
    .nav-btn {
        gap: 10px !important;
    }
    .nav-btn .btn {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
    }
    .logo img {
        height: 32px !important;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-light);
}

.nav-btn {
    display: flex;
    gap: 15px;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* ==========================================
   6. Hero Section
   ========================================== */
.hero {
    background: radial-gradient(circle at 80% 20%, var(--navy-light) 0%, var(--dark-navy) 100%);
    min-height: 65vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 130px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    clip-path: ellipse(60% 80% at 50% 100%);
    z-index: 4;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    top: -10%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    animation: shapeDrift1 18s infinite ease-in-out alternate;
}

.shape-2 {
    bottom: 5%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    filter: blur(40px);
    animation: shapeDrift2 14s infinite ease-in-out alternate;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.tech-grid path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: techGridLine 10s ease-in-out infinite alternate;
}

.tech-grid circle {
    animation: techGridDot 4s infinite alternate ease-in-out;
}

.tech-grid circle:nth-child(2) { animation-delay: 1s; }
.tech-grid circle:nth-child(3) { animation-delay: 2s; }
.tech-grid circle:nth-child(4) { animation-delay: 3s; }

.floating-svg {
    position: absolute;
    pointer-events: none;
}

.svg-gold {
    top: 20%;
    right: 8%;
    animation: heroSpinFloat 15s infinite linear;
}

.svg-white {
    bottom: 25%;
    left: 8%;
    animation: heroFloat 10s infinite alternate ease-in-out;
}

@keyframes shapeDrift1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(50px, -30px) scale(1.15); opacity: 0.9; }
    100% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.6; }
}

@keyframes shapeDrift2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(-40px, 40px) scale(1.1); opacity: 0.95; }
    100% { transform: translate(30px, -20px) scale(0.9); opacity: 0.7; }
}

@keyframes techGridLine {
    0% { stroke-dashoffset: 800; opacity: 0.15; }
    50% { opacity: 0.35; }
    100% { stroke-dashoffset: 0; opacity: 0.5; }
}

@keyframes techGridDot {
    0% { r: 2px; opacity: 0.2; }
    50% { r: 4px; opacity: 0.7; }
    100% { r: 2px; opacity: 0.2; }
}

@keyframes heroFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes heroSpinFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 45px 0;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--royal-gold);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.hero-content h1 span {
    background: linear-gradient(90deg, #FFFFFF 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.45s;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(15px);
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    margin-bottom: 20px;
}

@keyframes heroFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   7. Filter System (Interactive Cascading)
   ========================================== */
.filter-wrapper {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* 7.1 Campus Tabs (Horizontal Flex Wrap) */
.campus-slider {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    scrollbar-width: none; /* Firefox */
    border: 1px solid var(--slate-border);
    justify-content: center;
}

.campus-slider::-webkit-scrollbar {
    display: none;
}

.campus-tab {
    flex: 1 1 230px;
    max-width: 320px;
    padding: 12px 20px;
    background-color: var(--white);
    border: 1px solid var(--slate-border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.campus-icon {
    background-color: var(--slate-light);
    color: var(--primary-navy);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.campus-tab.active .campus-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--royal-gold);
}

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

.campus-info h4 {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    transition: var(--transition-smooth);
}

.campus-tab.active .campus-info h4 {
    color: var(--white);
}

.campus-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    transition: var(--transition-smooth);
}

.campus-tab.active .campus-info span {
    color: var(--gold-light);
}

.campus-tab:hover {
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.campus-tab.active {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    box-shadow: var(--shadow-lg);
}

.selectors-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid var(--slate-border);
    box-shadow: var(--shadow-lg);
}

.filter-step {
    margin-bottom: 25px;
}

.filter-step:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

/* Round Selectors (Capsule Pills) */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.capsule-btn {
    padding: 10px 20px;
    background-color: var(--white);
    border: 1.5px solid var(--slate-border);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.capsule-btn:hover {
    border-color: var(--navy-light);
    color: var(--primary-navy);
    background-color: rgba(30, 43, 88, 0.02);
    transform: translateY(-1px);
}

.capsule-btn.active {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(30, 43, 88, 0.15);
}

/* 7.3 Results Loading State */
.loading-indicator {
    display: none;
    text-align: center;
    padding: 50px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--slate-border);
    border-top: 4px solid var(--royal-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#results_placeholder {
    margin-top: 35px;
    margin-bottom: 20px;
    width: 100%;
}

.placeholder-view {
    text-align: center;
    padding: 35px 20px;
    background-color: var(--white);
    border: 1px dashed var(--slate-border);
    border-radius: 12px;
    color: var(--text-muted);
}

.placeholder-view h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-medium);
}

/* ==========================================
   8. Dynamic Output Modules (Programs & Schedules)
   ========================================== */
.output-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* 8.1 Schedule Timeline Card */
.schedule-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--slate-border);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.schedule-header {
    border-bottom: 1px solid var(--slate-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.schedule-header h3 {
    font-size: 1.4rem;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--slate-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--slate-border);
    transition: var(--transition-smooth);
}

.timeline-item.active .timeline-dot {
    border-color: var(--royal-gold);
    background-color: var(--royal-gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.timeline-content {
    background-color: var(--slate-light);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--slate-border);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.timeline-step {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-navy);
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 500;
}

.timeline-title {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 5px;
}

.timeline-desc {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* 8.2 Programs Grid */
.programs-section h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.programs-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program-card {
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid var(--slate-border);
    border-left: 5px solid var(--primary-navy);
    padding: 18px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    gap: 24px;
}

.program-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--royal-gold);
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.01) 0%, transparent 100%);
    pointer-events: none;
}

.program-header {
    margin-bottom: 0;
    flex: 1;
}

.program-level {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.program-code {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.program-title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
}

.program-study-place {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.program-study-place svg {
    flex-shrink: 0;
}

.program-divider {
    display: none;
}

.program-footer {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.program-stat {
    text-align: center;
    min-width: 80px;
}

.stat-val {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-navy);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.program-action {
    flex-shrink: 0;
}

/* ==========================================
   9. Qualifications & Documents (Grid & Content)
   ========================================== */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--slate-border);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list {
    list-style: none;
}

.info-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-list-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* ==========================================
   10. Steps Section
   ========================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--slate-border);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(30, 43, 88, 0.05);
    color: var(--primary-navy);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-navy);
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ==========================================
   11. Call to Action (CTA) Section
   ========================================== */
.cta {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-navy) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card {
    background: linear-gradient(90deg, rgba(226,182,92,0.1) 0%, rgba(212,175,55,0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================
   12. Footer
   ========================================== */
.footer {
    background-color: var(--dark-navy);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h3, .footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.contact-card h5 {
    color: var(--gold-light);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.contact-item {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-item span {
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 35px;
}

.copyright {
    font-size: 0.85rem;
}

/* ==========================================
   12.5 Results Tab Navigation
   ========================================== */
.results-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--slate-border);
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.results-tabs::-webkit-scrollbar {
    display: none;
}

.results-tab-btn {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-medium);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.results-tab-btn:hover {
    color: var(--primary-navy);
}

.results-tab-btn.active {
    color: var(--primary-navy);
    border-bottom-color: var(--royal-gold);
    font-weight: 600;
}

.tab-panel {
    transition: var(--transition-smooth);
}

.tab-panel.d-none {
    display: none !important;
}

/* ==========================================
   13. Responsive Styles (Mobile-First)
   ========================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-py {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 65vh;
        padding-top: 95px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        padding: 10px 0 15px 0;
    }
    
    .hero-tag {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: auto;
    }
    
    .selectors-container {
        padding: 20px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Responsive Navigation Menu */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-navy);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 2px solid var(--royal-gold);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-btn {
        display: none;
    }

    .nav-btn-mobile {
        display: block !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
        margin-top: 10px;
    }
    
    /* Program card row list collapse to vertical card on mobile */
    .program-card {
        flex-direction: column;
        align-items: stretch;
        border-left: none;
        border-top: 5px solid var(--primary-navy);
        gap: 16px;
        padding: 20px;
    }
    
    .program-card:hover {
        transform: translateY(-4px);
    }
    
    .program-footer {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
        border-top: 1px solid var(--slate-border);
        border-bottom: 1px solid var(--slate-border);
        padding: 12px 0;
        width: 100%;
        margin-top: 10px;
    }
    
    .program-stat {
        flex: 1 1 auto;
        min-width: 70px;
        text-align: center;
    }
    
    .program-action {
        width: 100%;
    }
    
    .program-action .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .results-tabs {
        display: flex;
        border-bottom: 2px solid var(--slate-border);
        gap: 5px;
        margin-bottom: 20px;
    }
    
    .results-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.95rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .capsule-btn {
        width: 100%;
        justify-content: center;
    }
}
