/* ==========================================================================
   THE COLLEGIATE INSTITUTE - Light Theme (responsive, cleaned version)
   Palette: White (#ffffff), Oxford Navy (#0f2942), Royal Gold (#d4af37)
   Breakpoints: 1100px (menu becomes hamburger), 900px, 768px, 480px
   ========================================================================== */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --navy-primary: #0f2942;
    --navy-light: #1e3a5f;
    --gold-primary: #d4af37;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 12px 35px rgba(15, 41, 66, 0.15);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.35s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img, video, svg { max-width: 100%; }

/* ---------- Typography & Buttons ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--navy-primary);
    letter-spacing: 0.3px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold { background: var(--gold-primary); color: var(--navy-primary); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.btn-gold:hover { background: #b59328; color: #ffffff; transform: translateY(-2px); }
.btn-navy { background: var(--navy-primary); color: #ffffff; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--navy-primary); color: var(--navy-primary); }
.btn-outline:hover { background: var(--navy-primary); color: #ffffff; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.badge-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(15, 41, 66, 0.06);
    border: 1px solid var(--navy-primary);
    color: var(--navy-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.gold-bg { background: var(--gold-primary) !important; color: var(--navy-primary) !important; border: none !important; }

.section-header { text-align: center; max-width: 750px; margin: 0 auto 50px auto; }
.section-header h2 { font-size: 2.2rem; margin-top: 5px; }

.sub-heading {
    color: var(--gold-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* ---------- Header / Navigation (desktop) ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy-primary);
}

.logo-icon { color: var(--gold-primary); font-size: 1.5rem; flex-shrink: 0; }
.logo-text { line-height: 1.2; }
.logo-text span { color: var(--gold-primary); }

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--navy-primary); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.nav-links a:hover { color: var(--gold-primary); }

.nav-cta { display: flex; flex-shrink: 0; }

.hamburger-wrap { display: none; position: relative; z-index: 1002; }

.hamburger {
    background: none;
    border: none;
    color: var(--navy-primary);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
}

.mobile-enroll { display: none; }

/* Programs dropdown (desktop = opens on hover) */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { cursor: pointer; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 10px 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu br { display: none; }

.nav-links .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 0.9rem;
}

.nav-links .dropdown-menu a:hover { background: #1e293b; color: var(--gold-primary); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 110px 0 60px;
}

.slider-container { position: absolute; inset: 0; }

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slide.active { opacity: 1; }

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.18) 100%);
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 880px;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.7rem, 5vw, 3rem);
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--navy-primary);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    color: var(--text-body);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.stat-item { text-align: center; }
.stat-item .stat-num,
.stat-item > span { font-size: 1.8rem; font-weight: 800; color: var(--navy-primary); }
.stat-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Trust Bar ---------- */
.trust-bar { background: var(--bg-secondary); padding: 20px 0; border-bottom: 1px solid var(--border-color); }

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 0 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-badges { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.badge-item { color: var(--navy-primary); font-weight: 600; }

/* ---------- Courses ---------- */
.courses-section { padding: 80px 20px; max-width: 1250px; margin: 0 auto; }

.course-search-bar { position: relative; max-width: 500px; margin: 20px auto 0 auto; }

.course-search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-dark);
    font-family: inherit;
    outline: none;
}

.course-search-bar i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.course-category { margin-bottom: 50px; }

.category-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gold-primary);
    padding-bottom: 8px;
    display: inline-block;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 25px;
}

.course-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #ffffff;
}

.card-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.98) 55%, #ffffff 100%);
    transition: var(--transition);
}

.card-content { position: relative; z-index: 2; padding: 25px; }

.course-card:hover { transform: translateY(-6px); box-shadow: var(--hover-shadow); border-color: var(--gold-primary); }
.course-card:hover .card-bg-img { transform: scale(1.08); }

.card-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.course-card h4 { font-size: 1.25rem; margin-bottom: 8px; color: var(--navy-primary); }
.course-card p { color: var(--text-body); font-size: 0.88rem; margin-bottom: 18px; line-height: 1.5; }

.card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.link-btn { color: var(--navy-primary); font-weight: 700; }

/* ---------- Fee Calculator ---------- */
.calculator-section {
    background: var(--bg-secondary);
    padding: 80px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calc-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calc-benefits { margin-top: 25px; }
.benefit-item { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: var(--text-body); }
.benefit-item i { color: var(--navy-primary); }

.calc-form-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.form-group { margin-bottom: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--navy-primary); }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 6px;
    outline: none;
}

.form-group input:focus, .form-group select:focus { border-color: var(--gold-primary); }

.calc-result-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px dashed var(--gold-primary);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

.result-price { font-size: 1.8rem; font-weight: 800; color: var(--navy-primary); }
.discount-badge-small { font-size: 0.75rem; color: #16a34a; font-weight: 600; }

/* ---------- Features ---------- */
.why-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 25px; }

.feature-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    text-align: center;
}

.feature-icon { font-size: 2.2rem; color: var(--navy-primary); margin-bottom: 15px; }

/* ---------- Faculty ---------- */
.tutors-section { background: var(--bg-secondary); padding: 80px 20px; border-top: 1px solid var(--border-color); }

.tutors-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.tutor-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.tutor-img { position: relative; height: 250px; }
.tutor-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tutor-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-primary);
}

.tutor-info { padding: 20px; }
.tutor-spec { color: var(--gold-primary); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.tutor-exp { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px; }

/* ---------- Reviews & FAQ ---------- */
.testimonials-section, .faq-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 25px; }

.testimonial-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.rating { color: var(--gold-primary); margin-bottom: 10px; }
.user-meta { margin-top: 15px; display: flex; flex-direction: column; font-size: 0.85rem; }

.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: #ffffff;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    color: var(--navy-primary);
}

.faq-question i { flex-shrink: 0; }
.faq-answer { padding: 0 20px 18px 20px; display: none; color: var(--text-body); font-size: 0.9rem; }
.faq-item.active .faq-answer { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-primary); color: #ffffff; padding: 60px 20px 20px 20px; }

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo { color: #ffffff !important; }
.footer-col h4 { margin-bottom: 15px; color: var(--gold-primary); }
.footer-col p { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: var(--gold-primary); }

.social-links { display: flex; gap: 14px; margin-bottom: 14px; font-size: 1.3rem; }

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* ---------- Floating email button ---------- */
.email-btn {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #d4af37;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.gmail-svg { width: 29px; height: 29px; display: block; }

/* ---------- Modals ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: #ffffff;
    max-width: 550px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header h2 { font-size: 1.5rem; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

.timer-box {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---- Small laptops: tighten the menu so it never overflows ---- */
@media (max-width: 1280px) {
    .logo { font-size: 1.05rem; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.88rem; }
}

/* ---- Tablet & phone: hamburger + slide-in menu ---- */
@media (max-width: 1100px) {
    .header { backdrop-filter: none; background: #ffffff; }
    .nav-cta { display: none; }
    .hamburger-wrap { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 82%;
        max-width: 380px;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 80px 20px 30px;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 1001;
        transform: translateX(110%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
    }

    .nav-links.active { transform: translateX(0); visibility: visible; }

    .nav-links a {
        display: block;
        padding: 16px 12px;
        border-bottom: 1px solid #e5e7eb;
        font-size: 1rem;
        white-space: normal;
    }

    .nav-links a:hover { background: #f7f7f7; }

    .dropdown { display: block; }

    .dropdown-menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 0 14px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .nav-links .dropdown-menu a { color: var(--navy-primary); padding: 14px 12px; font-size: 0.95rem; }
    .nav-links .dropdown-menu a:hover { background: #f7f7f7; color: var(--gold-primary); }

    .nav-links .mobile-enroll {
        display: block;
        margin-top: 26px;
        padding: 14px 20px;
        background: var(--gold-primary);
        color: var(--navy-primary);
        border: none;
        border-radius: 6px;
        text-align: center;
        font-weight: 700;
    }
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
    .calc-container { grid-template-columns: 1fr; gap: 35px; }
}

/* ---- Phone ---- */
@media (max-width: 768px) {
    .courses-section, .why-section, .tutors-section,
    .testimonials-section, .faq-section, .calculator-section { padding: 55px 16px; }

    .section-header { margin-bottom: 35px; }
    .section-header h2 { font-size: 1.6rem; }
    .category-title { font-size: 1.2rem; }

    .hero { padding: 95px 0 40px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 16px; }
    .stat-item .stat-num, .stat-item > span { font-size: 1.5rem; }

    .trust-container { flex-direction: column; text-align: center; justify-content: center; }
    .trust-badges { justify-content: center; }

    .calc-form-card { padding: 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .result-price { font-size: 1.5rem; }

    .footer { padding: 45px 16px 20px 16px; }
    .footer-top { gap: 30px; }

    .email-btn { width: 48px; height: 48px; right: 16px; bottom: 20px; }
    .gmail-svg { width: 25px; height: 25px; }

    .modal-content { padding: 24px 20px; }
    .modal-header h2 { font-size: 1.3rem; padding-right: 25px; }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
    .nav-container { padding: 12px 14px; }
    .logo { font-size: 0.8rem; gap: 8px; }
    .logo-icon { font-size: 1.2rem; }

    .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
    .hero-btns .btn { width: 100%; max-width: 320px; }
    .btn-lg { padding: 13px 22px; font-size: 0.95rem; }

    .course-card h4 { font-size: 1.1rem; }
    .card-content { padding: 20px; }
    .feature-card { padding: 24px 20px; }
    .tutor-img { height: 220px; }
}

/* ---- Respect users who turn animations off ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; }
} 
.seo-links {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
}

.seo-links h2 {
    margin-bottom: 15px;
}

.seo-links p {
    max-width: 750px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

.seo-link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.seo-link-list a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
}