:root {
    --primary: #1d5fad;
    --primary-dark: #164a8a;
    --primary-light: #3a7fd5;
    --grey-dark: #4a4a4a;
    --grey-medium: #6b7280;
    --grey-light: #f3f4f6;
    --grey-border: #e5e7eb;
    --white: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo img {
    height: 100px;
    width: auto;
    border-radius: 6px;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s;
    white-space: nowrap;
}

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

.lang-toggle {
    padding: 6px 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    display: inline-block;
}

.lang-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    //background: var(--white);
    background: var(--text-primary);
    transition: all 0.3s;
}

/* .header.scrolled .mobile-toggle span {
    background: var(--text-primary);
} */

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        gap: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-links.open { display: flex; }
    .nav-links a { color: var(--text-primary) !important; }
    .lang-toggle {
        border-color: var(--primary) !important;
        color: var(--primary) !important;
        align-self: flex-start;
    }
}

/* Hero sections */
.hero {
    position: relative;
    padding: 160px 0 100px;
    //background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background: url('/assets/images/hero-bg.jpg') center center / cover no-repeat;
    overflow: hidden;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    //background: radial-gradient(ellipse at top right, rgba(255,255,255,0.1), transparent 60%);
    background: rgba(0, 36, 100, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Page heroes (smaller) */
.page-hero {
    padding: 140px 0 60px;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--grey-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-blue {
    background: var(--primary);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.btn-blue-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-grey {
    background: var(--grey-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(29,95,173,0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--grey-border);
    padding: 32px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

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

/* Icon box */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.icon-box-blue {
    background: rgba(29,95,173,0.1);
    color: var(--primary);
}

/* School cards */
.school-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--grey-border);
    overflow: hidden;
    transition: all 0.3s;
}

.school-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.school-card-header {
    padding: 24px;
    background: transparent;
    color: var(--text-primary);
    border-bottom: 1px solid var(--grey-border);
    display: flex;
    align-items: center;
    gap: 16px;
    /*flex-wrap: wrap;*/
    }
    
.school-card-header-logo {
        width: 60px;
        height: 60px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
.school-card-header-info {
        flex: 1;
        min-width: 0;
    }

.school-card-header .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge-regional {
    background: rgba(0, 86, 179, 0.12);
    color: var(--primary);
}

.badge-agent {
    background: rgba(0, 86, 179, 0.08);
    color: var(--primary-dark);
}

.school-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.school-card-body {
    padding: 24px;
}

.school-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.school-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.school-highlights span {
    padding: 4px 12px;
    background: var(--grey-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Blog cards */
.blog-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--grey-border);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-link:hover {
    color: var(--primary-dark);
}

/* Blog post detail */
.blog-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--text-primary);
}

.blog-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.blog-content ul, .blog-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.blog-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
    list-style: disc;
}

.blog-content ol li {
    list-style: decimal;
}

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,95,173,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.2);
}

.alert-error {
    background: rgba(239,68,68,0.1);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.2);
}

/* Contact info */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(29,95,173,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.contact-info-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* CTA section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-brand img {
    height: 100px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* Services page */
.service-card {
    text-align: center;
}

.service-card .icon-box {
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.value-card {
    text-align: center;
}

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Admin styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1a1a2e;
    color: var(--white);
    padding: 24px;
    flex-shrink: 0;
}

.admin-sidebar h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-sidebar .admin-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    margin-bottom: 4px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-main {
    flex: 1;
    padding: 32px;
    background: var(--grey-light);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--grey-border);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--grey-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--grey-border);
    color: var(--text-primary);
}

.admin-table tr:hover {
    background: var(--grey-light);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-edit {
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-edit:hover {
    background: var(--primary-dark);
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-light);
}

.login-card {
    background: var(--white);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--grey-border);
    width: 100%;
    max-width: 420px;
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.login-card .login-sub {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

/* Responsive admin */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-main { padding: 20px; }
    .admin-table { font-size: 13px; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
}

/* Blog post status badges */
.status-published {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(16,185,129,0.1);
    color: #065f46;
}

.status-draft {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(245,158,11,0.1);
    color: #92400e;
}

/* Editor textarea */
.editor-textarea {
    min-height: 300px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Decorative dots for hero */
.hero-dots {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
}

/* Admin stat cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--grey-border);
    padding: 20px 24px;
}

.admin-stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.admin-stat-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Pagination and empty states */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* School detail page */
.school-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.school-back-link:hover {
    color: #fff;
}

.school-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.school-detail-main {
    min-width: 0;
}

.school-detail-hero {
    position: relative;
}

.school-detail-hero .hero-content {
    max-width: 100%;
}

.school-detail-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--grey-border);
}

.school-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.school-detail-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-detail-section h2 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.school-detail-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.school-detail-section p:last-child {
    margin-bottom: 0;
}

.school-detail-curriculum-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(29,95,173,0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.school-detail-why-list {
    list-style: none;
    padding: 0;
}

.school-detail-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--grey-border);
}

.school-detail-why-list li:last-child {
    border-bottom: none;
}

.why-check {
    color: var(--success);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* School detail sidebar */
.school-detail-sidebar {
    position: sticky;
    top: 100px;
}

.school-info-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
}

.school-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.school-info-card h3 i {
    color: var(--primary);
}

.school-info-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.school-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--grey-border);
}

.school-info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.school-info-item:first-child {
    padding-top: 0;
}

.school-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(29,95,173,0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.school-info-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.school-info-value {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.school-detail-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.school-detail-btn:last-child {
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .school-detail-layout {
        grid-template-columns: 1fr;
    }
    .school-detail-sidebar {
        position: static;
    }
}

/* School detail hero with logo */
.school-detail-hero-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.school-detail-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255,255,255,0.95);
    padding: 8px;
    flex-shrink: 0;
}

.school-detail-hero-header h1 {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .school-detail-hero-logo {
        width: 60px;
        height: 60px;
    }
}

/* School fees table */
.school-fees-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.school-fees-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--grey-border);
}

.school-fees-table thead th {
    background: var(--grey-light);
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 2px solid var(--grey-border);
}

.school-fees-table tbody td {
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--grey-border);
}

.school-fees-table tbody tr:last-child td {
    border-bottom: none;
}

.school-fees-table tbody tr:hover {
    background: var(--grey-light);
}

.fee-amount {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.school-fees-note {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.school-fees-note i {
    margin-top: 4px;
    flex-shrink: 0;
}

/* School gallery */
.school-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.school-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: var(--grey-light);
}

.school-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.school-gallery-item:hover img {
    transform: scale(1.05);
}

.school-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .school-gallery {
        grid-template-columns: 1fr;
    }
}

/* Gallery lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.gallery-lightbox-close:hover {
    opacity: 1;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.gallery-lightbox-prev { left: 24px; }
.gallery-lightbox-next { right: 24px; }

.gallery-lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-lightbox-caption {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 640px) {
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .gallery-lightbox-prev { left: 12px; }
    .gallery-lightbox-next { right: 12px; }
}
