/**
 * DubaiSchools.ai - Based on SchoolsNearMe Design System
 * Clean, modern teal theme
 */

:root {
    /* Teal Brand Colors */
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --green-700: #15803d;
    
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-600: #d97706;
    
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    
    /* Brand Colors */
    --primary: var(--teal-600);
    --primary-dark: var(--teal-700);
    --primary-light: var(--teal-100);
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--teal-600), var(--teal-500));
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    padding: 0.75rem 1.5rem;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-800);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

nav a:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}

.nav-pro {
    color: white !important;
    background: var(--gradient-brand) !important;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem !important;
}

.nav-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-700);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 1px 2px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

/* Hero */
.hero {
    background: white;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Search Box */
.search-container {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--gray-600);
}

.search-tab.active {
    background: var(--gradient-brand);
    color: white;
}

.search-tab:hover:not(.active) {
    background: var(--gray-200);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.15s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--teal-100);
}

.search-input-wrapper::before {
    content: '📍';
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-search {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

/* Stats Bar */
.stats-bar {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
}

.stats-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Content */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    background: white;
}

/* School Cards */
.school-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.15s;
    cursor: pointer;
}

.school-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.school-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.school-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.school-name:hover {
    color: var(--primary);
}

.school-area {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Rating Badges */
.rating-badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}

.rating-outstanding { background: var(--green-100); color: var(--green-700); }
.rating-very-good { background: var(--blue-100); color: var(--blue-600); }
.rating-good { background: var(--amber-100); color: var(--amber-600); }
.rating-acceptable { background: #fed7aa; color: #9a3412; }
.rating-weak { background: var(--red-100); color: var(--red-600); }
.rating-not-inspected { background: var(--gray-100); color: var(--gray-500); }

/* Focus Area Mini Badges (Wellbeing/Inclusion) */
.focus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-600);
}

.school-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.meta-icon {
    font-size: 0.875rem;
}

/* Distance Bars */
.distance-bars {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.distance-bar {
    flex: 1;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.75rem;
}

.distance-bar-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.distance-bar-track {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.distance-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.walking-bar .distance-bar-fill {
    background: linear-gradient(90deg, var(--green-600), #34d399);
}

.driving-bar .distance-bar-fill {
    background: linear-gradient(90deg, var(--blue-600), #60a5fa);
}

.distance-bar-value {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.375rem;
    color: var(--gray-700);
}

/* Fees Row / Actions */
.fees-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.school-actions {
    display: flex;
    gap: 0.5rem;
}

.school-actions .btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

.compare-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.compare-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Map */
.map-container {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

#map {
    width: 100%;
    height: 100%;
}

/* Compare Bar */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: white;
    padding: 0.875rem 1.5rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.compare-bar.active {
    display: flex;
}

.compare-schools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.compare-school-chip {
    background: rgba(255,255,255,0.15);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-school-chip button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* Premium CTA */
.premium-cta {
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: white;
    margin: 1.5rem 0;
}

.premium-cta h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-cta p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.premium-cta .btn {
    background: white;
    color: var(--teal-700);
}

/* Areas Section */
.areas-section {
    background: white;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.areas-content {
    max-width: 1280px;
    margin: 0 auto;
}

.areas-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.areas-content > p {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.area-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.15s;
}

.area-card:hover {
    border-color: var(--primary);
    background: white;
}

.area-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.area-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Page Header */
.page-header {
    background: white;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Rankings Table */
.rankings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.rankings-table th,
.rankings-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.rankings-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rankings-table tr:hover td {
    background: var(--gray-50);
}

.rankings-table tr:last-child td {
    border-bottom: none;
}

/* Compare Page */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.compare-column {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.compare-column-header {
    background: var(--gradient-brand);
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.compare-column-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.compare-row {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.compare-row-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.compare-row-value.highlight {
    color: var(--green-600);
}

/* Ranking Tabs */
.ranking-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ranking-tab {
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.15s;
    color: var(--gray-600);
}

.ranking-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ranking-tab.active {
    background: var(--gradient-brand);
    color: white;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--teal-800);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        position: relative;
        top: 0;
        height: 350px;
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .distance-bars {
        flex-direction: column;
    }

    .compare-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stats-content {
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .search-filters {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   SEO CONTENT SECTIONS
   ============================================ */

.seo-stats-section,
.seo-curriculum-section,
.seo-ratings-section,
.seo-results-section {
    padding: 3rem 1.5rem;
    background: white;
}

.seo-stats-section {
    background: var(--gray-50);
}

.seo-content {
    max-width: 1100px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Stats Highlights */
.stats-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-highlight {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-600);
    line-height: 1.2;
}

.stat-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

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

.curriculum-card {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
}

.curriculum-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.curriculum-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.curriculum-card a {
    color: var(--teal-600);
    font-weight: 500;
    text-decoration: none;
}

.curriculum-card a:hover {
    text-decoration: underline;
}

/* Ratings Explainer */
.ratings-explainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.rating-explain {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.rating-explain h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.rating-explain p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.rating-explain.outstanding {
    background: var(--green-50);
    border-color: var(--green-600);
}

.rating-explain.outstanding h4 { color: var(--green-700); }

.rating-explain.very-good {
    background: var(--blue-50);
    border-color: var(--blue-600);
}

.rating-explain.very-good h4 { color: var(--blue-600); }

.rating-explain.good {
    background: var(--amber-50);
    border-color: var(--amber-600);
}

.rating-explain.good h4 { color: var(--amber-600); }

.rating-explain.acceptable {
    background: #fff7ed;
    border-color: #ea580c;
}

.rating-explain.acceptable h4 { color: #c2410c; }

.note {
    font-size: 0.9rem;
    color: var(--gray-500);
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

/* Results Summary */
.results-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.result-box {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.result-box h4 {
    font-size: 1rem;
    color: var(--teal-700);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--teal-200);
}

.result-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-box li {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.result-box li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    
    .ratings-explainer {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ratings-explainer {
        grid-template-columns: 1fr;
    }
}

/* Rankings page exam results styling */
.exam-cell {
    font-weight: 600;
    color: var(--teal-600);
}

.focus-mini {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--gray-100);
}
