/* ==========================================================================
   EduScholar Pro - Modern Design System & Component Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-navy: #0f172a;
    --primary-dark: #020617;
    --brand-blue: #1e40af;
    --brand-indigo: #4338ca;
    --accent-gold: #f59e0b;
    --accent-amber: #d97706;
    --success-emerald: #10b981;
    --danger-rose: #f43f5e;
    
    /* Backgrounds & Neutral Shades */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions & Radii */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

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

a:hover {
    color: var(--brand-indigo);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-main {
    padding: 2.5rem 0;
}

/* Section Header Utility */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.section-subtitle {
    color: var(--brand-blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.825rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

/* Column Grid Systems */
.grid-columns-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-columns-2,
    .grid-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-columns-2,
    .grid-columns-3,
    .grid-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Subcategory Column Comparison Box */
.subcat-column-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.subcat-column-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.subcat-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exam-list-bullets {
    list-style: none;
    margin-bottom: 1.25rem;
    flex: 1;
}

.exam-list-bullets li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.exam-list-bullets li:last-child {
    border-bottom: none;
}

.exam-list-bullets li strong {
    color: var(--text-primary);
    display: block;
}

/* Header & Announcement Bar */
.top-announcement-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--brand-blue));
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.announcement-badge {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.announcement-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.announcement-contact a {
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Header Navbar */
.site-header {
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-gold);
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
}

.nav-menu li a:hover {
    color: var(--brand-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }
    .site-navigation {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    .site-navigation.is-active {
        left: 0;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.925rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    color: var(--primary-dark) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

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

.btn-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(30, 64, 175, 0.04);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1e1b4b 100%);
    color: #ffffff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-search-box {
    background: var(--bg-surface);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
}

.hero-keywords-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-tag {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition);
}

.hero-tag:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.lead-card-hero {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
}

.lead-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.lead-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.lead-form-group {
    margin-bottom: 1rem;
}

.lead-form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.lead-form-group input,
.lead-form-group select,
.lead-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    background: var(--bg-surface);
    transition: var(--transition);
}

/* Course Streams Grid (6 Columns) */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 1200px) {
    .streams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .streams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stream-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.stream-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-lg);
}

.stream-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.stream-card.stream-medical .stream-icon { background: #e0f2fe; color: #0284c7; }
.stream-card.stream-engineering .stream-icon { background: #e0e7ff; color: #4338ca; }
.stream-card.stream-management .stream-icon { background: #fef3c7; color: #d97706; }
.stream-card.stream-law .stream-icon { background: #fce7f3; color: #db2777; }
.stream-card.stream-general .stream-icon { background: #dcfce7; color: #15803d; }
.stream-card.stream-design .stream-icon { background: #f3e8ff; color: #9333ea; }

.stream-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stream-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Why Choose Us Component */
.why-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
}

.why-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(67, 56, 202, 0.15));
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.why-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.why-desc {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Compact Student Reviews Component */
.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.review-stars {
    color: var(--accent-gold);
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
    display: flex;
    gap: 0.2rem;
}

.review-quote {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.review-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.review-tagline {
    font-size: 0.725rem;
    color: var(--text-muted);
}

/* Compact Educational Articles Component */
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.blog-thumb-wrap {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: #e2e8f0;
}

.blog-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb-wrap img {
    transform: scale(1.06);
}

.blog-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-navy);
    color: #ffffff;
    font-size: 0.675rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.blog-card-body {
    padding: 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 0.975rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    font-weight: 700;
}

.blog-card-title a {
    color: var(--text-primary);
}

.blog-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

/* ==========================================================================
   Interactive Mock Test Player Modal
   ========================================================================== */

.test-player-modal {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
}

.test-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.test-timer-badge {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.test-question-box {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.test-question-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-label {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.925rem;
    transition: var(--transition);
}

.option-label:hover,
.option-label.is-selected {
    border-color: var(--brand-blue);
    background: #eff6ff;
    color: var(--brand-blue);
}

.scorecard-result-box {
    text-align: center;
    padding: 2rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding-top: 4rem;
}

.footer-lead-bar {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-widget-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Lead Modal Overlay */
.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lead-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lead-modal-container {
    background: var(--bg-surface);
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition);
}

.lead-modal-overlay.is-visible .lead-modal-container {
    transform: translateY(0);
}

.lead-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.lead-modal-close:hover {
    color: var(--danger-rose);
}
