/* ==========================================================================
   Dream Vision Teaching Centre - Comprehensive Big Web Stylesheet
   Theme: Elegant Royal Navy, Electric Blue & Warm Gold Accents
   ========================================================================== */

:root {
    --primary-navy: #0b1e36;
    --primary-navy-light: #162a45;
    --accent-blue: #2563eb;
    --accent-sky: #38bdf8;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fef3c7;
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 28px -6px rgba(11, 30, 54, 0.1);
    --shadow-lg: 0 22px 42px -12px rgba(11, 30, 54, 0.18);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #162a45 0%, #0b1e36 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.loader-brand img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

.loader-progress-bar {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-sky));
    border-radius: 10px;
    animation: loadFill 1.2s ease forwards;
}

@keyframes loadFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loader-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Header & Navigation */
.top-bar {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info i { color: var(--accent-gold); }

.top-branches {
    display: flex;
    gap: 12px;
    align-items: center;
}

.branch-badge {
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.logo-img {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
}

.logo-text span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.8px;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-light));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 30, 54, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 30, 54, 0.35);
}

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

.btn-outline:hover {
    background: var(--primary-navy);
    color: #ffffff;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    padding: 85px 0 95px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

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

.hero-title span {
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 { font-size: 2.1rem; color: var(--primary-navy); }
.stat-item p { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }

.hero-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.hero-card-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

/* Quote Banner */
.quote-banner-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #102a4d 100%);
    color: #ffffff;
    padding: 55px 0;
    border-top: 4px solid var(--accent-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.quote-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
    font-style: italic;
}

.quote-author {
    font-size: 1rem;
    color: var(--accent-sky);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Section Header */
.section { padding: 90px 0; }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 60px auto; }
.section-subtitle { text-transform: uppercase; font-size: 0.85rem; font-weight: 800; letter-spacing: 1.8px; color: var(--accent-blue); margin-bottom: 12px; display: block; }
.section-title { font-size: 2.5rem; margin-bottom: 18px; }
.section-desc { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; }

/* Features & Enhanced Interactive Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-surface);
    padding: 38px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    opacity: 0.8;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon {
    width: 62px;
    height: 62px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent-blue);
    color: #ffffff;
    transform: scale(1.06);
}

.bullet-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
    color: var(--text-dark);
    line-height: 1.55;
}

.bullet-list i {
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.12);
    padding: 6px;
    border-radius: 50%;
    font-size: 0.78rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ==========================================================================
   Clickable Expandable Card Details (Interactive Drawers)
   ========================================================================== */
.card-expand-btn {
    margin-top: 20px;
    padding: 10px 18px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card-expand-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

.card-expand-btn i {
    transition: transform 0.3s ease;
}

.card-expand-btn.active i {
    transform: rotate(180deg);
}

.card-expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px dashed transparent;
}

.card-expandable-content.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top-color: var(--border-color);
}

/* ==========================================================================
   Interactive Accordion FAQ Section
   ========================================================================== */
.faq-accordion {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
}

.faq-header {
    padding: 22px 28px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    user-select: none;
    transition: var(--transition);
}

.faq-header:hover {
    background: rgba(37, 99, 235, 0.03);
}

.faq-toggle-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--accent-blue);
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    background: var(--accent-blue);
    color: #ffffff;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 28px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.faq-item.active .faq-body {
    max-height: 300px;
    padding: 0 28px 24px 28px;
}

/* Academic Calendar Roadmap Timeline */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.timeline-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

/* Faculty & Branches */
.teacher-section { background: #ffffff; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.teacher-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.teacher-info h2 { font-size: 2.5rem; margin-bottom: 18px; }
.teacher-role { font-size: 1.15rem; color: var(--accent-blue); font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.teacher-bio { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 30px; line-height: 1.7; }

.branches-section { background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%); }
.branches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 40px; }
.branch-card { background: #ffffff; border-radius: var(--radius-md); border: 2px solid var(--border-color); padding: 42px 36px; box-shadow: var(--shadow-md); position: relative; transition: var(--transition); }
.branch-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--accent-gold); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.branch-card.featured::before { background: var(--accent-blue); }
.branch-tag { position: absolute; top: -15px; right: 30px; background: var(--primary-navy); color: var(--accent-gold); font-size: 0.82rem; font-weight: 800; padding: 5px 16px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.branch-title { font-size: 1.85rem; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.branch-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Floating Actions & Footer */
.floating-actions { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 14px; z-index: 900; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 1.5rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); transition: var(--transition); }
.float-btn:hover { transform: scale(1.12); }
.float-whatsapp { background: #25d366; }
.float-phone { background: var(--primary-navy); }

.footer { background: var(--primary-navy); color: rgba(255, 255, 255, 0.85); padding: 75px 0 30px 0; border-top: 4px solid var(--accent-gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 45px; margin-bottom: 50px; }
.footer-col h4 { color: #ffffff; font-size: 1.2rem; margin-bottom: 22px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--accent-gold); border-radius: 2px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent-gold); padding-left: 6px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 992px) {
    .hero-grid, .teacher-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-md);
        gap: 20px;
    }
    .nav-links.show { display: flex; }
    .mobile-toggle { display: block; }
    .top-bar-content { flex-direction: column; text-align: center; }
}