:root {
    --primary: #0a3d75;
    --primary-dark: #072a52;
    --accent: #f36f21;
    --accent-dark: #d6591a;
    --text: #1c2733;
    --text-light: #5b6b7a;
    --bg-alt: #f5f8fb;
    --border: #e1e8ee;
    --radius: 10px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.55;
    background: #fff;
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text-light); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); flex-shrink: 0; }
.logo-icon { color: var(--accent); display: flex; }
.logo-text { font-family: Georgia, 'Times New Roman', serif; }
.logo-accent { font-family: 'Segoe UI', Roboto, Arial, sans-serif; color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a, .nav-link { color: var(--text); font-weight: 500; }
.main-nav a:hover, .nav-link:hover { color: var(--accent); }
.nav-item { position: relative; }
.dropdown-toggle { background: none; border: none; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 0; }
.dropdown-toggle .caret { transition: transform 0.15s ease; }
.dropdown-toggle[aria-expanded="true"] { color: var(--accent); }
.dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.header-cta { white-space: nowrap; }

/* Mega menu (Courses) */
.mega-menu {
    display: none; position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 20px 45px rgba(10, 40, 80, 0.18); width: 640px; max-width: 90vw; z-index: 200; overflow: hidden;
}
.mega-menu.open { display: block; }
.mega-menu-inner { display: flex; }
.mega-sidebar { width: 220px; flex-shrink: 0; background: var(--bg-alt); padding: 20px; border-right: 1px solid var(--border); }
.mega-sidebar h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin: 0 0 8px; }
.mega-sidebar h4:not(:first-child) { margin-top: 18px; }
.mega-sidebar ul { list-style: none; margin: 0; padding: 0; }
.mega-sidebar a { display: block; padding: 6px 8px; border-radius: 6px; font-size: 0.88rem; color: var(--text); }
.mega-sidebar a:hover { background: #fff; color: var(--accent); }
.mega-courses-grid { flex: 1; padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; }
.mega-course-card { display: block; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.mega-course-card:hover { border-color: var(--accent); }
.mega-course-badge { display: block; font-weight: 700; font-size: 0.88rem; color: var(--text); margin-bottom: 8px; }
.mega-course-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mega-course-duration { font-size: 0.75rem; color: var(--text-light); }
.mega-view-all { display: block; text-align: center; padding: 12px; background: var(--bg-alt); border-top: 1px solid var(--border); font-weight: 600; color: var(--primary); }
.mega-view-all:hover { color: var(--accent); }

.nav-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 700; }
.nav-pill-a { background: #dbeafe; color: #1d4ed8; }
.nav-pill-b { background: #ede9fe; color: #6d28d9; }
.nav-pill-c { background: #d1fae5; color: #047857; }
.nav-pill-d { background: #fee2e2; color: #b91c1c; }

/* Simple dropdown (Institutions) */
.dropdown-menu {
    display: none; position: absolute; top: calc(100% + 16px); left: 0;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 20px 45px rgba(10, 40, 80, 0.18); min-width: 280px; padding: 10px; z-index: 200;
}
.dropdown-menu.open { display: block; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 0.92rem; color: var(--text); }
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--accent); }

/* Quick course strip */
.quick-courses { padding: 26px 0; background: #fff; border-bottom: 1px solid var(--border); }
.quick-courses-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
.quick-course-card { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 108px; text-align: center; }
.quick-course-icon {
    width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
    transition: transform 0.15s ease;
}
.quick-course-card:hover .quick-course-icon { transform: translateY(-4px); }
.quick-course-label { font-size: 0.78rem; color: var(--text); font-weight: 600; }

/* Scroll carousels (featured programs, specializations) */
.carousel-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 16px 4px 12px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
    scroll-snap-align: start; flex: 0 0 300px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(10, 40, 80, 0.08);
    position: relative;
}
.carousel-card-media { position: relative; height: 170px; background: var(--bg-alt); }
.carousel-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-card-badges { position: absolute; top: 0; left: 0; right: 0; display: flex; }
.carousel-badge-primary { background: #ffd54a; color: #3a2b00; padding: 8px 14px; font-size: 0.68rem; font-weight: 800; border-radius: 0 0 10px 0; }
.carousel-badge-secondary { background: rgba(7, 20, 36, 0.72); color: #fff; padding: 8px 14px; font-size: 0.68rem; font-weight: 600; flex: 1; text-align: right; }
.carousel-university-pill { position: absolute; bottom: -14px; left: 16px; z-index: 2; box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
.carousel-card-body { padding: 28px 18px 18px; }
.carousel-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.carousel-card-heading h3 { font-size: 1.05rem; margin: 0; }
.carousel-rating { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.carousel-card-meta { display: flex; gap: 16px; margin: 14px 0; font-size: 0.8rem; color: var(--text-light); }
.carousel-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.degree-tag { background: var(--text); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); padding: 0; cursor: pointer; }
.carousel-dot.active { background: var(--primary); width: 22px; border-radius: 5px; }

/* Specialization pills */
.spec-track { gap: 16px; }
.spec-card {
    scroll-snap-align: start; flex: 0 0 220px; display: flex; align-items: center; gap: 14px;
    background: var(--bg-alt); border-radius: 14px; padding: 16px;
}
.spec-icon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.spec-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-text strong { font-size: 0.95rem; color: var(--text); }
.spec-courses { font-size: 0.8rem; color: var(--text-light); }

/* Impact stats + Why choose us (dark band) */
.impact-band {
    background: var(--primary-dark);
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    color: #fff; padding: 64px 0;
}
.impact-title { font-size: 1.8rem; color: #fff; margin-bottom: 30px; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 56px; }
.impact-stat { position: relative; }
.impact-number { display: block; font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.impact-stat p { color: #b9c9dc; font-size: 0.9rem; margin: 0; }
.impact-stat-sticker { position: relative; }
.impact-sticker {
    position: absolute; top: -26px; right: 0; width: 84px; height: 84px; border-radius: 50%;
    background: #8ecbf0; color: #06263f; font-weight: 800; font-size: 0.68rem; text-align: center;
    line-height: 1.3; display: flex; align-items: center; justify-content: center; transform: rotate(-10deg);
}
.why-us-title { color: #fff; font-size: 1.6rem; margin-bottom: 24px; }
.why-card { background: #fff; text-align: left; }
.why-icon {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border-radius: 50%; margin-bottom: 16px; color: #06263f;
}
.icon-yellow { background: #ffd54a; }
.icon-blue { background: #8ecbf0; }
.icon-teal { background: #7fe0c4; }
.icon-pink { background: #f4b6d2; }

/* Partner universities (bento grid) */
.uni-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; gap: 24px; }
.uni-card-featured { grid-row: span 2; }
.uni-card {
    position: relative; border-radius: var(--radius); padding: 26px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.uni-card-content { position: relative; z-index: 2; max-width: 70%; }
.uni-card h3 { font-size: 1.2rem; }
.uni-illustration { position: absolute; right: -10px; bottom: -10px; width: 55%; height: auto; color: rgba(10, 40, 80, 0.18); z-index: 1; }
.uni-rank-badge {
    position: absolute; top: 16px; right: -34px; background: #c0392b; color: #fff; font-size: 0.72rem;
    font-weight: 700; padding: 6px 40px; transform: rotate(35deg); z-index: 3; text-align: center;
}
.uni-lavender { background: #e2ddfa; }
.uni-mint { background: #d3f3ea; }
.uni-sky { background: #cfe4fb; }

/* Course finder banner */
.course-finder { background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 130%); padding: 50px 0; }
.course-finder-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.course-finder-copy h2 { color: #fff; font-size: 1.7rem; }
.course-finder-copy p { color: #f0e4d8; }
.course-finder-quiz { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.course-finder-quiz label { display: block; margin-bottom: 14px; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.course-finder-quiz select {
    width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 6px; font-size: 0.92rem; font-family: inherit;
}
.quiz-result { margin: 12px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); }

/* Filter chips (courses.php) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.filter-chip { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 0.85rem; font-weight: 600; }
.filter-chip.active, .filter-chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-summary { text-align: center; color: var(--text-light); margin-bottom: 20px; font-size: 0.9rem; }

/* WhatsApp floating button */
.whatsapp-fab {
    position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25); z-index: 300; transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); }

.disclosure-bar {
    background: #fff8e6;
    color: #6b5300;
    font-size: 0.82rem;
    text-align: center;
    padding: 6px 16px;
    border-bottom: 1px solid #f0e0a0;
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 60px 0; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.hero-copy { display: flex; align-items: center; gap: 24px; }
.hero-text { flex: 1; min-width: 0; }
.hero-illustration-wrap { position: relative; flex-shrink: 0; }
.hero-illustration { width: 200px; height: 200px; display: block; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25)); }
.hero-sticker {
    position: absolute; top: -12px; right: -28px; width: 80px; height: 80px; border-radius: 50%;
    background: #ffd54a; color: #3a2b00; font-weight: 800; font-size: 0.7rem; text-align: center; line-height: 1.3;
    display: flex; align-items: center; justify-content: center; transform: rotate(12deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.hero-copy h1 { font-size: 2.2rem; color: #fff; }
.hero-copy p { color: #dce8f5; }
.hero-highlights { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-highlights li { background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; }

.hero-form-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 26px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.hero-form-card h3 { text-align: center; }
#leadForm label { display: block; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
#leadForm input, #leadForm select {
    width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 6px; font-size: 0.95rem; font-family: inherit;
}
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.75rem; color: var(--text-light); margin-top: 10px; }
.form-message { margin-top: 10px; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-message.success { color: #1a7f37; }
.form-message.error { color: #c0392b; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 1.8rem; }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 620px; margin: 0 auto 36px; }
.page-hero { background: var(--bg-alt); padding-bottom: 30px; text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.four-col { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-meta { font-size: 0.85rem; }
.badge { display: inline-block; background: #eaf3fb; color: var(--primary-dark); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; margin-bottom: 8px; }
.link-arrow { font-weight: 600; }
.feature-card { text-align: center; }
.testimonial-avatar { display: block; border-radius: 50%; margin-bottom: 14px; border: 2px solid var(--border); }
.testimonial-card p:nth-of-type(1) { font-style: italic; }
.testimonial-name { font-weight: 600; color: var(--text); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; padding: 16px 0;
    font-size: 1rem; font-weight: 600; cursor: pointer; color: var(--text); position: relative;
}
.faq-question::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.3rem; }
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer { display: none; padding-bottom: 16px; }
.faq-item.open .faq-answer { display: block; }

.thank-you { text-align: center; padding: 40px 0 60px; }

/* Counsellor CTA */
.counsellor-cta { background: #ecebd1; overflow: hidden; }
.counsellor-cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.counsellor-cta-copy { padding: 50px 0; max-width: 480px; }
.counsellor-cta-copy h2 { font-size: 1.9rem; }
.counsellor-illustration { flex-shrink: 0; align-self: flex-end; }

/* Footer */
.site-footer { background: var(--primary-dark); color: #b9c9dc; padding: 50px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 30px; }
.footer-inner-wide { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
.site-footer h4 { color: #fff; }
.site-footer a { color: #b9c9dc; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent); }
.footer-uni-item { margin: 0 0 6px; font-size: 0.92rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-icon {
    width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-icon:hover { background: var(--accent); color: #fff; }
.footer-disclosure { font-size: 0.78rem; color: #8fa3b8; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom { text-align: center; padding: 20px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .card-grid, .card-grid.four-col { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .mega-menu { width: 480px; }
    .mega-courses-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .uni-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .uni-card-featured { grid-row: auto; }
    .course-finder-inner { grid-template-columns: 1fr; }
    .counsellor-illustration { width: 160px; height: auto; }
}
@media (max-width: 640px) {
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--border); display: none; max-height: calc(100vh - 60px); overflow-y: auto; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .header-cta { display: none; }
    .card-grid, .card-grid.four-col { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 1.6rem; }
    .hero-copy { flex-direction: column-reverse; text-align: center; }
    .hero-illustration { width: 140px; height: 140px; }
    .hero-sticker { width: 64px; height: 64px; font-size: 0.6rem; }
    .hero-text .hero-highlights { justify-content: center; }

    .nav-item { width: 100%; }
    .dropdown-toggle { width: 100%; justify-content: space-between; padding: 10px 0; }
    .mega-menu, .dropdown-menu { position: static; transform: none; width: 100%; max-width: none; box-shadow: none; border: none; margin: 4px 0 8px; }
    .mega-menu-inner { flex-direction: column; }
    .mega-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .whatsapp-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-sticker { position: static; margin-top: 12px; transform: none; }
    .counsellor-cta-inner { flex-direction: column; align-items: center; text-align: center; }
    .counsellor-cta-copy { padding: 30px 0 0; }
    .counsellor-illustration { align-self: center; margin-top: 10px; }
}
