/* ===================================================================
   PROGRAMS PAGE — Professional Nepal-Aligned Edition
   Brand: Navy #1D3461  |  Gold #C8962A
   =================================================================== */

/* ── Page Base ── */
.programs-page {
    background: #f8faff;
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.programs-hero {
    position: relative;
    padding: 148px 0 128px;
    background: linear-gradient(150deg, #0b1a33 0%, #1D3461 55%, #1a3060 100%);
    color: white;
    overflow: hidden;
}

/* Dot-grid texture */
.programs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(200,150,42,.22) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

/* Gold glow top-right */
.programs-hero::after {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(200,150,42,.18) 0%, transparent 65%);
    pointer-events: none;
}

.programs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    color: #ffffff;
}

/* Force white on all text inside the hero, except gradient spans */
.programs-hero-content h1,
.programs-hero-content p,
.programs-hero-content span:not(.gradient-text) {
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(200,150,42,.18);
    border: 1px solid rgba(200,150,42,.42);
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f0d090;
    backdrop-filter: blur(8px);
}

.hero-badge .badge-icon {
    font-size: 14px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 5.5vw, 62px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.title-line {
    display: block;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #C8962A 0%, #f0d090 50%, #C8962A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #C8962A; /* fallback for browsers without gradient-text support */
}

.hero-description {
    font-size: 17px;
    line-height: 1.8;
    max-width: 640px;
    margin-bottom: 12px;
    color: rgba(255,255,255,.88) !important;
}

/* Nepal alignment tag */
.hero-nepal-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255,255,255,.65) !important;
    font-style: italic;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
    flex-wrap: wrap;
}

/* Stats row */
.hero-stats {
    display: inline-flex;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(200,150,42,.3);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.stat-item {
    text-align: center;
    padding: 18px 36px;
    border-right: 1px solid rgba(200,150,42,.2);
}
.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #C8962A;
    display: block;
    line-height: 1.1;
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
    margin-top: 5px;
}

/* Wave */
.hero-wave {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    line-height: 0;
}

/* =====================================================================
   SECTION HEADER (shared)
   ===================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(29,52,97,.07), rgba(200,150,42,.09));
    border: 1px solid rgba(29,52,97,.14);
    font-size: 11.5px;
    font-weight: 700;
    color: #1D3461;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 3.8vw, 40px);
    font-weight: 800;
    color: #0b1a33;
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-header h2 span { color: #C8962A; }

.section-description {
    font-size: 16.5px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}

/* =====================================================================
   PROGRAMS OVERVIEW / NAV CARDS
   ===================================================================== */
.programs-overview {
    padding: 88px 0 48px;
    background: #f8faff;
    position: relative;
}

.program-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 44px;
}

.nav-card {
    background: white;
    border-radius: 18px;
    padding: 24px 14px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.32s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 2px 12px rgba(29,52,97,.07);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top accent bar */
.nav-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--nav-accent, #1D3461);
    border-radius: 18px 18px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-card:hover::before { transform: scaleX(1); }

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 44px rgba(29,52,97,.14);
    border-color: var(--nav-accent, #1D3461);
}

/* Icon box */
.nav-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--nav-bg, rgba(29,52,97,.07));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: var(--nav-color, #1D3461);
    transition: all 0.28s ease;
}

.nav-card:hover .nav-icon {
    background: var(--nav-color, #1D3461);
    color: white;
    transform: scale(1.08);
}

.nav-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0b1a33;
    margin-bottom: 4px;
    line-height: 1.3;
}

.nav-card p {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* Per-card color theming */
.nav-card.school     { --nav-accent: #0891b2; --nav-color: #0891b2; --nav-bg: rgba(8,145,178,.09); }
.nav-card.robotics   { --nav-accent: #ea580c; --nav-color: #ea580c; --nav-bg: rgba(234,88,12,.09); }
.nav-card.ai         { --nav-accent: #7c3aed; --nav-color: #7c3aed; --nav-bg: rgba(124,58,237,.09); }
.nav-card.teacher    { --nav-accent: #16a34a; --nav-color: #16a34a; --nav-bg: rgba(22,163,74,.09); }
.nav-card.innovation { --nav-accent: #dc2626; --nav-color: #dc2626; --nav-bg: rgba(220,38,38,.09); }
.nav-card.bonus      { --nav-accent: #C8962A; --nav-color: #C8962A; --nav-bg: rgba(200,150,42,.09); }

/* =====================================================================
   PROGRAM CATEGORY SECTIONS
   ===================================================================== */
.program-category {
    padding: 88px 0;
    position: relative;
    border-bottom: 1px solid #edf2fb;
}

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

/* Alternating row backgrounds */
.program-category:nth-child(odd)  { background: #ffffff; }
.program-category:nth-child(even) { background: #f8faff; }

/* Category top accent bar */
.program-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--cat-strip, linear-gradient(90deg, #1D3461, #C8962A));
}

.school-category     { --cat-strip: linear-gradient(90deg, #0891b2, #06b6d4); }
.robotics-category   { --cat-strip: linear-gradient(90deg, #ea580c, #f97316); }
.ai-category         { --cat-strip: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.teacher-category    { --cat-strip: linear-gradient(90deg, #16a34a, #22c55e); }
.innovation-category { --cat-strip: linear-gradient(90deg, #dc2626, #ef4444); }
.bonus-category      { --cat-strip: linear-gradient(90deg, #C8962A, #e0aa44); }

/* ── Category Header ── */
.category-header {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 52px;
    padding: 28px 32px;
    border-radius: 20px;
    border-left: 5px solid var(--cat-border, #1D3461);
    background: var(--cat-header-bg, #f0f5ff);
    box-shadow: 0 2px 18px rgba(0,0,0,.04);
}

.school-category     .category-header { --cat-header-bg: #f0f9ff; --cat-border: #0891b2; }
.robotics-category   .category-header { --cat-header-bg: #fff7ed; --cat-border: #ea580c; }
.ai-category         .category-header { --cat-header-bg: #faf5ff; --cat-border: #7c3aed; }
.teacher-category    .category-header { --cat-header-bg: #f0fdf4; --cat-border: #16a34a; }
.innovation-category .category-header { --cat-header-bg: #fff5f5; --cat-border: #dc2626; }
.bonus-category      .category-header { --cat-header-bg: #fffbeb; --cat-border: #C8962A; }

/* Category icon box */
.category-icon {
    width: 76px; height: 76px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.school-category     .category-icon { background: linear-gradient(135deg, #0891b2, #0e7490); }
.robotics-category   .category-icon { background: linear-gradient(135deg, #ea580c, #c2410c); }
.ai-category         .category-icon { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.teacher-category    .category-icon { background: linear-gradient(135deg, #16a34a, #15803d); }
.innovation-category .category-icon { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.bonus-category      .category-icon { background: linear-gradient(135deg, #C8962A, #A67B1E); }

/* Category tag pill */
.category-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.school-category     .category-tag { background: #dbeafe; color: #1d4ed8; }
.robotics-category   .category-tag { background: #ffedd5; color: #c2410c; }
.ai-category         .category-tag { background: #ede9fe; color: #6d28d9; }
.teacher-category    .category-tag { background: #dcfce7; color: #15803d; }
.innovation-category .category-tag { background: #fee2e2; color: #b91c1c; }
.bonus-category      .category-tag { background: #fef3c7; color: #92400e; }

.category-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 800;
    color: #0b1a33;
    margin-bottom: 6px;
    line-height: 1.3;
}

.category-purpose {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.65;
    max-width: 520px;
}

/* Inline meta badges */
.category-meta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.cat-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: rgba(255,255,255,.8);
    border: 1px solid #e2e8f0;
    padding: 3px 11px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.cat-meta-badge i {
    font-size: 10px;
    color: var(--cat-border, #1D3461);
}

/* ── Programs Grid ── */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Program Card */
.program-card {
    background: white;
    border-radius: 20px;
    padding: 26px 24px;
    box-shadow: 0 2px 16px rgba(29,52,97,.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    position: relative;
    border: 1px solid #edf2fb;
    border-top: 4px solid var(--card-accent, #1D3461);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(29,52,97,.12);
}

/* Per-section card top border */
.school-category     .program-card { --card-accent: #0891b2; }
.robotics-category   .program-card { --card-accent: #ea580c; }
.ai-category         .program-card { --card-accent: #7c3aed; }
.teacher-category    .program-card { --card-accent: #16a34a; }
.innovation-category .program-card { --card-accent: #dc2626; }
.bonus-category      .program-card { --card-accent: #C8962A; }

/* Badge chip */
.card-badge {
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.card-badge.yearly        { background: #dbeafe; color: #1d4ed8; }
.card-badge.popular       { background: #fef3c7; color: #b45309; }
.card-badge.competition   { background: #ede9fe; color: #6d28d9; }
.card-badge.short-course  { background: #dcfce7; color: #15803d; }
.card-badge.certification { background: #fff7ed; color: #c2410c; }
.card-badge.incubator     { background: #e0f2fe; color: #0369a1; }

/* Icon box */
.program-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    background: rgba(var(--card-accent-rgb, 29,52,97), .08);
    background: color-mix(in srgb, var(--card-accent, #1D3461) 10%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--card-accent, #1D3461);
    margin-bottom: 18px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.program-card:hover .program-icon {
    background: var(--card-accent, #1D3461);
    color: white;
}

.program-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0b1a33;
    margin-bottom: 5px;
    line-height: 1.3;
}

.program-grade {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--card-accent, #1D3461);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: block;
}

.program-description {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}

.program-features {
    list-style: none;
    margin-bottom: 20px;
}

.program-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}

.program-features li i {
    color: var(--card-accent, #1D3461);
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--card-accent, #1D3461);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.program-link:hover { gap: 10px; }

/* Category footer bar */
.category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(248,250,255,.9), #fff);
    border: 1px dashed #dde3f0;
    border-radius: 14px;
    margin-top: 8px;
}

.category-footer p {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

/* =====================================================================
   BONUS SECTION
   ===================================================================== */
.bonus-category { background: #fffbeb !important; }

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.bonus-item {
    background: white;
    border-radius: 18px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 2px 14px rgba(0,0,0,.05);
    transition: all 0.28s ease;
    border: 1px solid #f5f0e8;
    border-top: 3px solid #C8962A;
}

.bonus-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(200,150,42,.12);
}

.bonus-icon {
    font-size: 26px;
    display: block;
    margin-bottom: 12px;
}

.bonus-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #0b1a33;
    margin-bottom: 6px;
    line-height: 1.3;
}

.bonus-item p {
    font-size: 12px;
    color: #94a3b8;
}

.bonus-cta {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(200,150,42,.06), rgba(200,150,42,.02));
    border: 1px solid rgba(200,150,42,.25);
    border-radius: 20px;
}

.bonus-cta p {
    font-size: 15px;
    color: #475569;
    margin-bottom: 20px;
}

/* =====================================================================
   COMPARISON TABLE
   ===================================================================== */
.comparison-section {
    padding: 88px 0;
    background: #f8faff;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(29,52,97,.09);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #1D3461, #2E5A9C);
}

.comparison-table thead th {
    padding: 16px 22px;
    text-align: left;
    color: white;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.comparison-table thead th:first-child {
    border-left: 4px solid #C8962A;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.18s ease;
}

.comparison-table tbody tr:nth-child(even) { background: #fafbff; }
.comparison-table tbody tr:hover           { background: #f0f5ff; }
.comparison-table tbody tr:last-child      { border-bottom: none; }

.comparison-table td {
    padding: 15px 22px;
    color: #334155;
    vertical-align: middle;
}

.comparison-table td:first-child {
    font-weight: 700;
    color: #0b1a33;
}

.comparison-table td strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =====================================================================
   CTA SECTION
   ===================================================================== */
.programs-cta {
    padding: 96px 0;
    background: linear-gradient(150deg, #0b1a33 0%, #1D3461 100%);
    position: relative;
    overflow: hidden;
}

.programs-cta::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(200,150,42,.14) 0%, transparent 65%);
    pointer-events: none;
}

.programs-cta::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(46,90,156,.25) 0%, transparent 65%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-content > p {
    font-size: 16.5px;
    color: rgba(255,255,255,.78);
    margin-bottom: 36px;
    line-height: 1.75;
}

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

.btn-large {
    padding: 14px 32px;
    font-size: 15px;
}

.cta-contact {
    font-size: 13.5px;
    color: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-contact i { color: #C8962A; margin-right: 5px; }

.cta-contact a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color 0.2s;
}

.cta-contact a:hover { color: #C8962A; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1200px) {
    .program-nav-grid { grid-template-columns: repeat(3, 1fr); }
    .programs-grid    { grid-template-columns: repeat(2, 1fr); }
    .bonus-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .category-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .programs-hero { padding: 120px 0 96px; }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .stat-item {
        padding: 14px 16px;
        border-right: 1px solid rgba(200,150,42,.2);
        border-bottom: none;
    }

    .program-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid    { grid-template-columns: 1fr; }
    .bonus-grid       { grid-template-columns: repeat(2, 1fr); }

    .category-header { padding: 20px; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .program-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .bonus-grid { grid-template-columns: 1fr; }
    .cta-contact { flex-direction: column; gap: 10px; }
}
