/* 
    Okulum.net — Premium Design System
    ====================================
    Deep Ocean Blue palette + glassmorphism + micro-animations
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── 1. Design Tokens ─────────────────────────────────────────── */
:root {
    /* Brand colours */
    --primary:        #2563eb;
    --primary-hover:  #1d4ed8;
    --primary-light:  #eff6ff;
    --primary-subtle: #dbeafe;
    --secondary:      #6366f1;
    --accent:         #06b6d4;
    --success:        #10b981;
    --warning:        #f59e0b;
    --danger:         #ef4444;

    /* Legacy aliases (keep old pages working) */
    --primary-color:  var(--primary);

    /* Neutral palette */
    --text-main:  #0f172a;
    --text-body:  #334155;
    --text-muted: #64748b;
    --bg-light:   #f8fafc;
    --bg-white:   #ffffff;
    --white:      #ffffff;
    --border:     #e2e8f0;
    --border-hover: #cbd5e1;

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --shadow-glow: 0 0 0 4px rgba(37,99,235,.15);

    /* Gradients */
    --gradient-hero:    linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    --gradient-header:  linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-card:    linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-badge:   linear-gradient(135deg, #2563eb, #06b6d4);

    /* Transitions */
    --transition: all .2s cubic-bezier(.4,0,.2,1);
    --transition-slow: all .4s cubic-bezier(.4,0,.2,1);
    --transition-bounce: all .3s cubic-bezier(.34,1.56,.64,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── 3. Layout ───────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: .35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text-main);
    margin-bottom: .75rem;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid system */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ── 4. Header & Navigation ─────────────────────────────────── */
.main-header {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a { text-decoration: none; }
.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -.06em;
}
.logo-text span { color: var(--text-main); }

.main-nav { flex: 1; margin-left: 2.5rem; }
.nav-list { display: flex; list-style: none; gap: 1rem; }
.nav-item { position: relative; padding: 1.25rem 0; }

.nav-link {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }

.nav-link svg.chevron { transition: transform .25s; }
.nav-item:hover .nav-link svg.chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: -1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    padding: .75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
}
.nav-item:hover .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .7rem .9rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    transition: var(--transition);
}
.dropdown-link:hover { background: var(--bg-light); }
.dropdown-link .icon {
    font-size: 1.1rem;
    background: var(--primary-light);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.dropdown-link strong { display: block; font-size: .875rem; color: var(--text-main); }
.dropdown-link span { font-size: .75rem; color: var(--text-muted); }
.dropdown-link.highlight {
    border-left: 3px solid var(--primary);
    background: var(--primary-light);
}
.dropdown-link.highlight:hover { background: var(--primary-subtle); }

.regions-grid {
    width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
}
.dropdown-link.small { padding: .45rem .7rem; font-size: .84rem; font-weight: 500; }
.full-link {
    grid-column: span 2;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    border-top: 1px solid var(--border);
    margin-top: .4rem;
    padding-top: .7rem;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .75rem; }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.mobile-toggle span { width: 22px; height: 2px; background: var(--text-main); border-radius: 2px; transition: var(--transition); }

/* ── 5. Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }

.btn-primary {
    background: var(--gradient-badge);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,.4);
}
.btn-outline {
    background: transparent;
    color: var(--text-body);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }

/* ── 6. Page Header (sehir, ilce, okul, okullar pages) ──────── */
.page-header {
    background: var(--gradient-hero);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(6,182,212,.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(99,102,241,.15) 0%, transparent 50%);
    pointer-events: none;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: var(--bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header .container { position: relative; z-index: 2; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: .85rem;
}
.breadcrumb a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.4); font-size: .75rem; }
.breadcrumb-current { color: rgba(255,255,255,.95); font-weight: 500; }

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.05em;
    line-height: 1.15;
    margin-bottom: .75rem;
}
.page-header p {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
    max-width: 600px;
}

/* Page header stats row */
.page-header-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.page-header-stat {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    padding: .6rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,.2);
    font-size: .9rem;
    font-weight: 500;
}
.page-header-stat strong { font-weight: 800; }

/* Badge strip on page header */
.page-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

/* ── 7. Badge / Tag ──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .9rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}
/* On dark bg (page-header) */
.badge-header {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(6px);
}

/* Colour variants */
.badge-devlet, .badge-kamu     { background: #dbeafe; color: #1e40af; }
.badge-ozel, .badge-kolej      { background: #fde8ff; color: #6b21a8; }
.badge-anaokulu, .badge-kres   { background: #fee2e2; color: #991b1b; }
.badge-ilkokul                 { background: #dbeafe; color: #1e40af; }
.badge-ortaokul                { background: #fef3c7; color: #92400e; }
.badge-lise                    { background: #e0e7ff; color: #3730a3; }

/* Tags (school listing) */
.tag { font-size: .78rem; padding: .3rem .75rem; border-radius: var(--radius-xs); font-weight: 600; }

/* ── 8. Filters Strip ────────────────────────────────────────── */
.filters-strip {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.filters-strip-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.type-filters { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.type-filter {
    padding: .55rem 1.1rem;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: .85rem;
    color: var(--text-body);
    text-decoration: none;
    transition: var(--transition-bounce);
}
.type-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.type-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

/* ── 9. City Cards (ilçe listesi) ────────────────────────────── */
.city-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1.25rem;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-bounce);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.city-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-badge);
    transform: scaleX(0);
    transition: transform .3s ease;
}
.city-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.city-card:hover::before { transform: scaleX(1); }

.city-card-icon {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .9rem;
    transition: var(--transition);
}
.city-card:hover .city-card-icon {
    background: var(--primary);
}
.city-card:hover .city-card-icon svg { stroke: #fff; }
.city-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.city-card .count { color: var(--text-muted); font-size: .85rem; font-weight: 500; }

/* ── 10. School Cards ────────────────────────────────────────── */
.school-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-bounce);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.school-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37,99,235,.2);
}

.school-card-image {
    position: relative;
    height: 190px;
    width: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    overflow: hidden;
}
.school-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.school-card:hover .school-card-image img { transform: scale(1.05); }

.school-card-badge {
    position: absolute; top: .85rem; right: .85rem;
    padding: .3rem .75rem;
    border-radius: var(--radius-full);
    font-size: .75rem; font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    backdrop-filter: blur(4px);
}

.school-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.school-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.school-card-body h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color .2s;
}
.school-card-body h3 a:hover { color: var(--primary); }

.school-card-location {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-muted);
    font-size: .85rem;
}
.school-card-location svg { color: var(--primary); flex-shrink: 0; }

.school-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid var(--border);
}

/* ── 11. School Detail Page ──────────────────────────────────── */
.school-detail { padding: 3rem 0 5rem; }

.school-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.school-main { display: flex; flex-direction: column; gap: 1.5rem; }

.school-info-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}
.school-info-card h2 {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--border);
}
.school-info-card h2 svg { color: var(--primary); flex-shrink: 0; }

.school-about {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--text-body);
}

/* Gallery */
.gallery { border-radius: var(--radius-md); overflow: hidden; }
.gallery-main {
    position: relative;
    width: 100%;
    padding-bottom: 56%;
    background: #e2e8f0;
    overflow: hidden;
}
.gallery-main img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: flex;
    gap: .5rem;
    padding: .75rem;
    background: #f1f5f9;
    flex-wrap: wrap;
}
.gallery-thumb {
    width: 70px; height: 50px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}
.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Sidebar */
.school-sidebar { position: sticky; top: 88px; }

.info-list { display: flex; flex-direction: column; gap: 0; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-item-icon {
    width: 36px; height: 36px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-item-icon svg { color: var(--primary); }
.info-item-content { flex: 1; min-width: 0; }
.info-item-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.info-item-value { font-size: .9rem; color: var(--text-main); font-weight: 500; word-break: break-word; }
.info-item-value a { color: var(--primary); text-decoration: none; }
.info-item-value a:hover { text-decoration: underline; }

/* Stat chips in the About card */
.stat-chip {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--primary-light);
    padding: .65rem 1rem;
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 130px;
}
.stat-chip-icon { font-size: 1.3rem; }
.stat-chip-label { font-size: .72rem; color: var(--text-muted); }
.stat-chip-value { font-size: .95rem; font-weight: 800; color: var(--text-main); }

/* Flex utilities (used inline in okul.php) */
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1.25rem; }

/* ── 12. Hero Section ────────────────────────────────────────── */
.hero {
    padding: 7rem 0 6rem;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 25% 60%, rgba(6,182,212,.2) 0%, transparent 55%),
                radial-gradient(ellipse at 75% 30%, rgba(99,102,241,.18) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 80px;
    background: var(--bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: .5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255,255,255,.25);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.25rem;
}
.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.hero-search {
    display: flex;
    max-width: 580px;
    margin: 0 auto 3rem;
    background: #fff;
    padding: .4rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.hero-search input {
    flex: 1; border: none;
    padding: .85rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    outline: none;
    background: transparent;
    color: var(--text-main);
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
    background: var(--gradient-badge);
    color: #fff; border: none;
    padding: 0 1.75rem;
    border-radius: calc(var(--radius-xl) - 4px);
    font-size: 1rem; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; gap: .5rem;
    transition: var(--transition);
}
.hero-search button:hover { opacity: .9; transform: none; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    position: relative; z-index: 2;
}
.hero-stat { text-align: center; }
.hero-stat-value {
    font-size: 2.2rem; font-weight: 900;
    color: #fff; line-height: 1;
    margin-bottom: .3rem;
    letter-spacing: -.04em;
}
.hero-stat-label { color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 500; }

/* ── 13. Empty States ────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1; }
.empty-state h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: .5rem; }
.empty-state p { color: var(--text-muted); max-width: 400px; margin: 0 auto .5rem; }

/* ── 14. Footer ──────────────────────────────────────────────── */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 5rem 0 2.5rem;
    margin-top: 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}
.footer-brand { max-width: 280px; }
.footer-logo {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: 1.65rem; font-weight: 900; color: #fff;
    text-decoration: none; margin-bottom: .9rem;
    letter-spacing: -.04em;
}
.brand-accent { color: var(--primary); }
.footer-desc { color: #94a3b8; font-size: .9rem; line-height: 1.7; }
.footer-links h4 {
    color: #fff; font-size: .95rem; font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative; padding-bottom: .7rem;
}
.footer-links h4::after {
    content: ''; position: absolute;
    bottom: 0; left: 0;
    width: 32px; height: 3px;
    background: var(--gradient-badge);
    border-radius: 2px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a {
    color: #94a3b8; text-decoration: none;
    font-size: .9rem; transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: .875rem;
}

/* ── 15. Stagger Animation ───────────────────────────────────── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stagger-in > * {
    animation: fadeSlideUp .5s ease both;
}
.stagger-in > *:nth-child(1)  { animation-delay: .05s; }
.stagger-in > *:nth-child(2)  { animation-delay: .10s; }
.stagger-in > *:nth-child(3)  { animation-delay: .15s; }
.stagger-in > *:nth-child(4)  { animation-delay: .20s; }
.stagger-in > *:nth-child(5)  { animation-delay: .25s; }
.stagger-in > *:nth-child(6)  { animation-delay: .30s; }
.stagger-in > *:nth-child(7)  { animation-delay: .35s; }
.stagger-in > *:nth-child(8)  { animation-delay: .40s; }

/* ── 16. Misc Cards (generic) ────────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Section bg alternation */
.section-alt { background: #fff; }

/* ── 17. Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .school-detail-grid { grid-template-columns: 1fr; }
    .school-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .page-header { padding: 3rem 0 2.5rem; }
    .page-header::after { height: 40px; }
}

@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 4rem 0 5rem; }
    .hero h1 { font-size: 2.2rem; letter-spacing: -.04em; }
    .hero-search { flex-direction: column; border-radius: var(--radius-md); }
    .hero-search input { border-radius: var(--radius-md); }
    .hero-search button { padding: .85rem; justify-content: center; border-radius: var(--radius-md); }
    .hero-stats { gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-header-stats { flex-direction: column; gap: .75rem; }
    .type-filters { justify-content: flex-start; }
    .filters-strip { padding: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .section { padding: 3rem 0; }
    .section-header h2 { font-size: 1.6rem; }
    .page-header h1 { font-size: 1.6rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .city-card { padding: 1.25rem .75rem; }
    .city-card-icon { width: 44px; height: 44px; }
}

/* ── Mobile Navigation Drawer ─────────────────────────────── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(3px);
    z-index: 1100;
    opacity: 0;
    transition: opacity .3s ease;
}
.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: min(320px, 88vw);
    background: #fff;
    z-index: 1200;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0,0,0,.15);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--primary-light);
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: .25rem;
    border-radius: var(--radius-sm);
    transition: background .2s;
}
.mobile-nav-close:hover { background: rgba(0,0,0,.08); }

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}
.mobile-nav-list > li > a,
.mobile-nav-list > li > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.5rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-main);
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-light);
}
.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > span:hover { background: var(--primary-light); color: var(--primary); }

/* Group with sub-list */
.mobile-nav-group > span::after {
    content: '›';
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform .2s;
}
.mobile-nav-group.open > span::after { transform: rotate(90deg); }

.mobile-nav-group ul {
    list-style: none;
    display: none;
    background: var(--bg-light);
    padding: .25rem 0;
}
.mobile-nav-group.open ul { display: block; }
.mobile-nav-group ul li a {
    display: block;
    padding: .65rem 2rem;
    font-size: .88rem;
    color: var(--text-body);
    text-decoration: none;
    transition: color .15s;
}
.mobile-nav-group ul li a:hover { color: var(--primary); }

/* Gallery image transition */
#gallery-main-img { transition: opacity .25s ease; }

/* ── 15. Advanced Filters (okullar.php) ───────────────────────── */
.filters-section {
    padding: 2.5rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.advanced-filter-bar {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
    gap: 1.25rem;
    align-items: flex-end;
    background: #fff;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-top: -5rem; /* Hero overlaps slightly */
    position: relative;
    z-index: 20;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.filter-group label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.filter-group input, 
.filter-group select {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: .95rem;
    color: var(--text-main);
    background: var(--bg-light);
    outline: none;
    transition: var(--transition);
}

.filter-group select:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.filter-group input:focus, 
.filter-group select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow-glow);
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 2.75rem;
}

.btn-block {
    width: 100%;
}

/* Quick Types below filters */
.quick-types {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ── 16. Pagination ──────────────────────────────────────────── */
.pagination-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .75rem;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--text-body);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

.page-link.prev, 
.page-link.next {
    padding: 0 1.25rem;
}

.page-dots {
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: .2em;
}

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

@media (max-width: 640px) {
    .advanced-filter-bar {
        grid-template-columns: 1fr;
        margin-top: -2rem;
    }
}
