
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #c1121f; 
    --primary-light: #e63946;
    --primary-dark: #780000;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(193, 18, 31, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--light); color: #333; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }

#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loader { width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Navbar - Glassmorphism */
header { position: fixed; top: 0; width: 100%; z-index: 1000; transition: var(--transition); background: rgba(0, 0, 0, 0.15); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 15px 0; }
header.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow); padding: 10px 0; border-bottom: none; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* LOGO FIX - Exact Red (#c1121f) Filter */
.logo img { height: 65px; transition: var(--transition); }
header.scrolled .logo img { height: 55px; }
header.scrolled .logo img.dynamic-logo { 
    filter: brightness(0) saturate(100%) invert(17%) sepia(85%) saturate(5415%) hue-rotate(345deg) brightness(88%) contrast(98%);
}

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links li a { font-weight: 600; font-size: 14px; padding: 5px 0; position: relative; color: var(--white); transition: var(--transition); }
header.scrolled .nav-links li a { color: var(--dark); }

.nav-links li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-links li a:hover::after { width: 100%; }
.nav-links li a:hover, header.scrolled .nav-links li a:hover { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content { position: absolute; top: 150%; left: 0; background: var(--white); min-width: 220px; box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; opacity: 0; visibility: hidden; transition: var(--transition); transform: translateY(10px); }
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content li a, header.scrolled .dropdown-content li a { display: block; padding: 12px 20px; font-weight: 500; border-bottom: 1px solid #f0f0f0; color: var(--dark); }
.dropdown-content li a::after { display: none; }
.dropdown-content li a:hover, header.scrolled .dropdown-content li a:hover { background: var(--primary); color: var(--white); padding-left: 30px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; background: var(--primary); color: var(--white); font-weight: 600; border-radius: 50px; box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3); transition: var(--transition); }
.btn:hover { background: var(--dark); color: var(--white); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(26, 26, 46, 0.4); }

/* VBS Giriş butonu (K12net) - üst menünün sağında */
.vbs-giris {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: 2px solid var(--white);
    border-radius: 50px;
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
}
.vbs-giris i { font-size: 15px; }
/* Uzun yazı ("Veli Bilgilendirme Sistemi") masaüstünde iki satır olur, menü taşmaz */
.vbs-yazi { text-align: left; }
.nav-container .vbs-giris:has(.vbs-satir) { gap: 9px; padding: 6px 16px; border-radius: 14px; font-size: 11.5px; font-weight: 400; line-height: 1.25; }
.nav-container .vbs-giris:has(.vbs-satir) i { font-size: 15px; }
.vbs-giris .vbs-satir { display: block; }
/* Telefon menüsündeki kopya (script.js) geniş olduğu için tek satır */
.mobile-vbs .vbs-satir { display: inline; }
.vbs-giris:hover { border-color: var(--primary); background: var(--primary); color: var(--white); transform: translateY(-2px); }
/* Beyaz başlıkta (kaydırınca) kırmızı buton */
header.scrolled .vbs-giris { border-color: var(--primary); background: var(--primary); color: var(--white); box-shadow: 0 6px 18px rgba(193, 18, 31, 0.28); }
header.scrolled .vbs-giris:hover { border-color: var(--dark); background: var(--dark); }

/* Hero Section & SLIDER */
.hero { height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.slider-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: var(--dark); overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out, transform 8s linear; transform: scale(1); }
.slide.active { opacity: 1; transform: scale(1.1); }

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(26, 26, 46, 0.85) 0%, rgba(193, 18, 31, 0.7) 100%); z-index: -1; }
.hero-content { 
    color: var(--white); 
    max-width: 800px; 
    padding-top: 80px; 
    margin: 0 auto; 
    text-align: center; 
}
.hero-content h1 { font-size: 5vw; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content h1 span { color: var(--primary-light); }
.hero-content p { font-size: 18px; margin-bottom: 35px; opacity: 0.9; line-height: 1.8; }

/* Page Header */
.page-header { background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(193, 18, 31, 0.85)), url('images/page-header.jpg') center/cover fixed; padding: calc(160px + var(--serit-h, 0px)) 0 80px; text-align: center; color: var(--white); }
.page-header h1 { font-size: 45px; font-weight: 800; }

/* Content Sections */
.section { padding: 100px 0; }
.bg-light { background-color: var(--white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sec-title { font-size: 36px; font-weight: 700; color: var(--dark); margin-bottom: 25px; position: relative; padding-bottom: 15px; }
.sec-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: var(--primary); border-radius: 2px; }
.text-content p { font-size: 16px; color: #555; line-height: 1.8; margin-bottom: 20px; }

/* Image Cards */
.img-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.img-wrapper img { width: 100%; display: block; transition: transform 0.5s ease; }
.img-wrapper:hover img { transform: scale(1.05); }
/* Kademe sayfaları: müdür fotoğrafının altındaki ad ve unvan (büyüyen fotoğrafın üstünde kalır) */
.mudur-bilgi { position: relative; z-index: 1; padding: 16px 22px 18px; background: #fff; border-top: 4px solid var(--primary); text-align: center; }
.mudur-bilgi strong { display: block; color: #222; font-size: 19px; font-weight: 700; }
.mudur-bilgi span { display: block; margin-top: 3px; color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* Stats Section */
.stats-section { background: linear-gradient(rgba(193, 18, 31, 0.9), rgba(120, 0, 0, 0.9)), url('images/stats-bg.jpg') center/cover fixed; padding: 80px 0; color: var(--white); text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-card h3 { font-size: 50px; font-weight: 800; margin-bottom: 5px; color: var(--white); }
.stat-card p { font-size: 18px; font-weight: 500; opacity: 0.9; }

/* Program Cards */
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.program-card { background: var(--light); border-radius: 15px; padding: 40px 20px; text-align: center; transition: var(--transition); border: 1px solid #eee; }
.program-card:hover { background: var(--white); box-shadow: var(--shadow-hover); transform: translateY(-10px); border-color: var(--primary); }
.program-card i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.program-card h3 { color: var(--dark); margin-bottom: 15px; }

/* Blog Section */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.blog-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.blog-img { width: 100%; height: 220px; object-fit: cover; }
.blog-content { padding: 25px; }
.blog-content h3 { font-size: 20px; margin-bottom: 10px; color: var(--dark); line-height: 1.4; }
.blog-content p { color: #666; font-size: 14px; margin-bottom: 20px; }
.blog-date { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 10px; display: block; }
.read-more { font-weight: 600; color: var(--dark); font-size: 14px; }
.read-more:hover { color: var(--primary); }

/* Footer */
footer { background: var(--dark); color: var(--white); padding: 80px 0 20px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-title { font-size: 22px; font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--primary); }
.footer-links li { margin-bottom: 15px; }
.footer-links a { opacity: 0.7; transition: var(--transition); display: inline-block; }
.footer-links a:hover { opacity: 1; color: var(--primary-light); transform: translateX(5px); }
.footer-links i { margin-right: 10px; color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.6; font-size: 14px; }
/* Fiyat Tablosu Tasarımı */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th, .price-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid #eaeaea;
}

.price-table th {
    background-color: var(--dark);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

.price-table td {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.price-note {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    background: #fdf0f0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    text-align: left;
}
/* =========================================================
   MOBİL UYUM (RESPONSIVE) AYARLARI
   Not: Aşağıdaki kuralların tamamı medya sorguları içindedir;
   1281px ve üzeri masaüstü görünümü hiçbir şekilde etkilenmez.
   ========================================================= */

/* Hamburger butonu ve mobil menü ekleri masaüstünde gizli */
.menu-toggle, .mobile-menu-extra { display: none; }

/* ---------- HAMBURGER MENÜ (Tablet & Mobil) ---------- */
@media (max-width: 1280px) {
    header, header.scrolled { padding: 10px 0; }
    .logo img, header.scrolled .logo img { height: 50px; }

    /* Üç çizgili menü butonu */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 46px;
        height: 46px;
        padding: 0;
        border: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.15);
        cursor: pointer;
        position: relative;
        z-index: 2;
        transition: var(--transition);
        -webkit-tap-highlight-color: transparent;
    }
    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2.5px;
        border-radius: 2px;
        background: var(--white);
        transition: transform 0.35s ease, opacity 0.25s ease, background 0.3s ease;
    }
    header.scrolled .menu-toggle,
    header.menu-open .menu-toggle { background: rgba(193, 18, 31, 0.08); }
    header.scrolled .menu-toggle span,
    header.menu-open .menu-toggle span { background: var(--primary); }

    /* Açıkken X şekline dönüşür */
    header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* Kapak görseli olmayan sayfalarda (blog detay) başlık baştan beyaz */
    header.no-hero { background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow); border-bottom-color: transparent; }
    header.no-hero .menu-toggle { background: rgba(193, 18, 31, 0.08); }
    header.no-hero .menu-toggle span { background: var(--primary); }

    /* Menü açıkken başlık beyaz olur, logo kırmızılaşır */
    header.menu-open {
        background: var(--white);
        box-shadow: var(--shadow);
        border-bottom-color: transparent;
    }
    header.no-hero .logo img.dynamic-logo,
    header.menu-open .logo img.dynamic-logo {
        filter: brightness(0) saturate(100%) invert(17%) sepia(85%) saturate(5415%) hue-rotate(345deg) brightness(88%) contrast(98%);
    }

    /* Açılır menü paneli */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-h, 70px));
        height: calc(100dvh - var(--header-h, 70px));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 30px;
        background: var(--white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.35s ease, visibility 0.3s;
    }
    header.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links > li {
        border-bottom: 1px solid #f0f0f0;
        opacity: 0;
        transform: translateX(15px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
    header.menu-open .nav-links > li { opacity: 1; transform: none; }
    header.menu-open .nav-links > li:nth-child(2) { transition-delay: 0.03s; }
    header.menu-open .nav-links > li:nth-child(3) { transition-delay: 0.06s; }
    header.menu-open .nav-links > li:nth-child(4) { transition-delay: 0.09s; }
    header.menu-open .nav-links > li:nth-child(5) { transition-delay: 0.12s; }
    header.menu-open .nav-links > li:nth-child(6) { transition-delay: 0.15s; }
    header.menu-open .nav-links > li:nth-child(7) { transition-delay: 0.18s; }
    header.menu-open .nav-links > li:nth-child(8) { transition-delay: 0.21s; }
    header.menu-open .nav-links > li:nth-child(9) { transition-delay: 0.24s; }
    header.menu-open .nav-links > li:nth-child(10) { transition-delay: 0.27s; }

    .nav-links li a,
    header.scrolled .nav-links li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 4px;
        font-size: 16px;
        color: var(--dark);
    }
    .nav-links li a::after { display: none; }
    .nav-links li a:hover,
    header.scrolled .nav-links li a:hover,
    .nav-links li a.active { color: var(--primary); }

    /* Alt menüler: akordiyon */
    .dropdown > a i { transition: transform 0.3s ease; color: var(--primary); }
    .dropdown.open > a { color: var(--primary); }
    .dropdown.open > a i { transform: rotate(180deg); }
    .dropdown-content,
    .dropdown:hover .dropdown-content {
        position: static;
        min-width: 0;
        box-shadow: none;
        border-radius: 12px;
        background: var(--light);
        opacity: 1;
        visibility: inherit;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, margin 0.35s ease;
    }
    .dropdown.open .dropdown-content { max-height: 400px; margin-bottom: 12px; }
    .dropdown-content li a,
    header.scrolled .dropdown-content li a {
        padding: 12px 18px;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #ececec;
    }
    .dropdown-content li:last-child a { border-bottom: none; }
    .dropdown-content li a:hover,
    header.scrolled .dropdown-content li a:hover { padding-left: 24px; }

    /* Menü altındaki hızlı iletişim alanı */
    .nav-links > li.mobile-menu-extra {
        display: block;
        border-bottom: none;
        padding-top: 25px;
        text-align: center;
    }
    .nav-links li.mobile-menu-extra a.mobile-call {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        background: var(--primary);
        color: var(--white);
        border-radius: 50px;
        font-size: 15px;
        box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3);
    }
    .nav-links li.mobile-menu-extra a.mobile-vbs {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        padding: 12px 20px;
        border: 2px solid var(--primary);
        border-radius: 50px;
        background: var(--white);
        color: var(--primary);
        font-size: 15px;
        font-weight: 700;
    }
    .mobile-menu-social {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 20px;
    }
    .nav-links li.mobile-menu-extra .mobile-menu-social a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        background: var(--light);
        color: var(--primary);
        font-size: 18px;
    }

    /* Menü açıkken arka plan kaymasın */
    body.menu-locked { overflow: hidden; }
}

/* ---------- SAYFA DÜZENİ (Tablet & Mobil) ---------- */
@media (max-width: 991px) {
    html, body { overflow-x: hidden; }

    /* İçeriğin ekran kenarına yapışmasını engelle (section + container birlikte kullanıldığında) */
    .container { padding-left: 20px !important; padding-right: 20px !important; }
    .relative-gallery-container { padding-left: 50px !important; padding-right: 50px !important; }

    /* Izgaraları tek sütuna düşür */
    .grid-2,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }
    .grid-2 > * { min-width: 0; }
    .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 20px; }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }

    /* Görsel + metin bloklarında önce görsel, sonra başlık ve metin */
    .grid-2 > .img-wrapper { order: -1; }

    /* Başlıklar ortalı, alt çizgi ortada */
    .sec-title { font-size: 28px; text-align: center; margin-bottom: 20px; }
    .sec-title::after { left: 50%; transform: translateX(-50%); }
    .text-content { text-align: center; }
    .grid-2 .text-content p { text-align: justify !important; hyphens: auto; -webkit-hyphens: auto; }
    .text-content ul { text-align: left; }

    /* Hero */
    .hero { height: 100vh; height: 100svh; min-height: 520px; }
    .hero-content { padding-top: 60px; }
    .hero-content h1 { font-size: 40px; letter-spacing: -0.5px; }
    .hero-content p { font-size: 16px; margin-bottom: 30px; }

    /* Sayfa başlığı (iOS'ta fixed arka plan sorun çıkarır) */
    .page-header { padding: calc(125px + var(--serit-h, 0px)) 0 55px; background-attachment: scroll; }
    .page-header h1 { font-size: 34px; line-height: 1.25; }
    .stats-section { background-attachment: scroll; padding: 60px 0; }

    .section { padding: 60px 0; }
    .img-wrapper { border-radius: 16px; }
    .img-wrapper:hover img { transform: none; }

    /* Program kartları */
    .program-card { padding: 28px 14px; }
    .program-card i { font-size: 34px; margin-bottom: 14px; }
    .program-card h3 { font-size: 18px; margin-bottom: 8px; }

    /* İletişim sayfası: harita ve bilgi kutusu */
    .grid-2 iframe { display: block; width: 100%; height: 100%; min-height: 320px; }
    .grid-2 > div[style*="min-height: 400px"] { min-height: 320px !important; }
    .grid-2 > div[style*="padding: 40px"] { padding: 30px 22px !important; }

    /* Galeri */
    .lightbox-close { top: 15px; right: 20px; }
    .lightbox-content { max-width: 94%; }

    /* Footer: ortalı ve derli toplu */
    footer { padding: 60px 0 20px; text-align: center; }
    .footer-grid { margin-bottom: 35px; }
    footer p[style*="max-width"] { max-width: 100% !important; margin: 0 auto; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a:hover { transform: none; }

    /* Blog detay sayfaları */
    .yazi-sayfasi { margin-top: calc(110px + var(--serit-h, 0px)) !important; margin-bottom: 60px !important; }
    .yazi-sayfasi > img { height: 320px !important; }
}

/* ---------- TELEFON ---------- */
@media (max-width: 600px) {
    .container { padding-left: 18px !important; padding-right: 18px !important; }

    .logo img, header.scrolled .logo img { height: 46px; }

    .hero-content { padding-top: 70px; }
    .hero-content h1 { font-size: 34px; line-height: 1.15; }
    .hero-content p { font-size: 15px; line-height: 1.7; padding: 0 5px; }

    .page-header { padding: calc(115px + var(--serit-h, 0px)) 0 45px; }
    .page-header h1 { font-size: 27px; }

    .section { padding: 50px 0; }
    .section[style*="padding: 60px 0"],
    .section[style*="padding: 40px 0"] { padding-top: 45px !important; padding-bottom: 45px !important; }
    .sec-title { font-size: 24px; padding-bottom: 14px; }
    .text-content p { font-size: 15px !important; line-height: 1.75 !important; }
    .grid-2 .text-content p { text-align: left !important; }

    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-img { height: 200px; }
    .blog-content { padding: 22px; }
    .blog-content h3 { font-size: 18px; }

    .stat-card h3 { font-size: 30px; }
    .stat-card p { font-size: 14px; }
    .stats-grid .stat-card h3 { font-size: 30px; }

    .program-card p { font-size: 13px !important; }

    /* Sayfaya özel ızgaralar (kulüpler, başarılar) taşmasın */
    .clubs-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }
    .club-img-wrapper { height: 210px; }
    .success-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
    .success-img-wrapper { height: 160px; }
    .success-content { padding: 14px 12px; }
    .success-title { font-size: 15px; margin-bottom: 6px; }
    .success-desc { font-size: 12.5px; line-height: 1.5; }

    /* Ücretler sayfası: tablo dikey kart görünümüne geçer */
    .section[style*="max-width: 900px"] > div[style*="padding:40px"] { padding: 28px 18px !important; }
    .section[style*="max-width: 900px"] h2 { font-size: 20px !important; line-height: 1.4; }
    .price-table {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
    }
    .price-table thead, .price-table tbody, .price-table tr { display: contents; }
    .price-table th, .price-table td {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 10px;
        border: none;
        border-bottom: 1px solid #eaeaea;
    }
    .price-table th { font-size: 14px; letter-spacing: 0.5px; border-bottom-color: rgba(255,255,255,0.12); }
    .price-table td { font-size: 18px; }
    .price-table th:nth-child(3), .price-table td:nth-child(3) { border-bottom: none; }
    .price-note { font-size: 14px; padding: 16px; }

    /* Blog detay sayfaları */
    .yazi-sayfasi { margin-top: calc(95px + var(--serit-h, 0px)) !important; }
    .yazi-sayfasi > img { height: 230px !important; border-radius: 12px !important; margin-bottom: 22px !important; }
    .yazi-sayfasi h1 { font-size: 24px !important; line-height: 1.3; }
    .yazi-sayfasi > p { margin-bottom: 25px !important; font-size: 15px !important; }
    .yazi-sayfasi div[style*="font-size: 17px"] { font-size: 15.5px !important; line-height: 1.8 !important; }
    .yazi-sayfasi div[style*="border-radius: 30px"] { font-size: 13px; padding: 7px 14px !important; }

    /* Yemek/kahvaltı listesi görseli kırpılmasın */
    .img-wrapper img[style*="max-height: 700px"] { max-height: none !important; object-fit: contain !important; }
}

/* Dokunmatik cihazlarda özel imleç hiç oluşturulmaz (bkz. script.js) */
@media (hover: none), (pointer: coarse) {
    .imlec-nokta, .imlec-halka { display: none !important; }
}
/* --- MODERN YATAY GALERİ VE OK TASARIMI --- */
.relative-gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px; /* Oklar için kenarlarda alan */
}

.modern-gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth; /* JavaScript ile kaydırırken yağ gibi akması için */
    padding: 15px 5px;
    
    /* Scrollbar Gizleme Kodları */
    -ms-overflow-style: none;  /* IE ve Edge */
    scrollbar-width: none;  /* Firefox */
}
.modern-gallery-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari ve Opera'da gizle */
}

.modern-thumb {
    height: 180px; /* Resimlerin yüksekliği, istersen artır */
    width: auto;
    border-radius: 12px;
    cursor: zoom-in;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex-shrink: 0; /* Resimlerin büzüşmesini engeller */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-thumb:hover {
    transform: translateY(-8px) scale(1.02); /* Üzerine gelince zarifçe yukarı kalkıp büyür */
    box-shadow: 0 12px 24px rgba(193, 18, 31, 0.25);
}

/* Modern Ok Butonları */
.modern-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-gallery-btn:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(193, 18, 31, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modern-prev { left: 0; }
.modern-next { right: 0; }

/* Mobilde Okları Küçültme */
@media (max-width: 768px) {
    .relative-gallery-container { padding-left: 50px !important; padding-right: 50px !important; }
    .modern-gallery-btn { width: 40px; height: 40px; font-size: 16px; }
    .modern-prev { left: 6px; }
    .modern-next { right: 6px; }
    .modern-gallery-track { scroll-snap-type: x mandatory; gap: 14px; }
    .modern-thumb { height: 170px; scroll-snap-align: center; }
    .modern-thumb:hover { transform: none; }
}

/* --- LIGHTBOX (TIKLAYINCA BÜYÜME) TASARIMI --- */
.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.lightbox-content {
    max-width: 90%; max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Modern zıplama efekti */
}
@keyframes zoomIn {
    from {transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
.lightbox-close {
    position: absolute; top: 25px; right: 40px;
    color: rgba(255,255,255,0.7); font-size: 50px; font-weight: 300;
    cursor: pointer; transition: 0.3s;
}
.lightbox-close:hover { color: #fff; transform: rotate(90deg); }

/* FOOTER SOSYAL MEDYA İKONLARI */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(193, 18, 31, 0.4);
}

/* =========================================================
   ÖZEL FARE İMLECİ (yalnızca fareli masaüstü cihazlarda)
   İmleci tam takip eden küçük bir nokta + peşinden yumuşakça gelen ince bir halka.
   Sınıflar script.js tarafından eklenir; betik çalışmazsa normal imleç görünür.
   ========================================================= */
html.ozel-imlec, html.ozel-imlec body, html.ozel-imlec a, html.ozel-imlec button,
html.ozel-imlec label, html.ozel-imlec select, html.ozel-imlec summary { cursor: none; }
html.ozel-imlec input, html.ozel-imlec textarea { cursor: text; }

.imlec-nokta, .imlec-halka {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    will-change: transform;
}
.imlec-nokta {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--primary);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
    transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}
.imlec-halka {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1.5px solid rgba(193, 18, 31, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease, margin 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
html.imlec-gorunur .imlec-nokta, html.imlec-gorunur .imlec-halka { opacity: 1; }
/* Tıklanabilir bir öğenin üzerinde: halka büyür ve hafifçe dolar, nokta küçülür */
html.imlec-uzerinde .imlec-halka {
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    background-color: rgba(193, 18, 31, 0.08);
    border-color: rgba(193, 18, 31, 0.8);
}
html.imlec-uzerinde .imlec-nokta { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
/* Tıklarken halka kısa bir an toplanır */
html.imlec-basili .imlec-halka { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
/* Yazı alanlarında ve haritanın üstünde özel imleç gizlenir, normal imleç görünür */
html.imlec-yazi .imlec-nokta, html.imlec-yazi .imlec-halka { opacity: 0; }

/* =========================================================
   YEMEK / KAHVALTI LİSTESİ TABLOSU
   ========================================================= */
.menu-tablo-kap {
    overflow-x: auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.menu-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.menu-table th {
    padding: 16px 10px;
    background: var(--dark);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.menu-table th + th { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.menu-table td {
    padding: 16px 12px 18px;
    border: 1px solid #f0f0f0;
    vertical-align: top;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    transition: background-color 0.2s ease;
}
.menu-table td.menu-gun:hover { background: #fffafa; }
.menu-tarih {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 12px;
    border-radius: 20px;
    background: #fdf0f0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}
.menu-yemekler { list-style: none; }
.menu-yemekler li { padding: 4px 0; }
.menu-yemekler li + li { border-top: 1px dashed #ececec; }
.menu-table td.menu-ay-disi { background: repeating-linear-gradient(135deg, #fbfbfb 0 8px, #f5f5f5 8px 16px); }
.menu-table td.menu-tatil { background: #fdf0f0; }
.menu-tatil-yazi { display: block; margin-top: 14px; color: var(--primary); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.menu-bos::after { content: '—'; display: block; margin-top: 8px; color: #c4c4c4; }
/* Bugünün yemeği vurgulanır (script.js) */
.menu-table td.bugun { background: #fffafa; box-shadow: inset 0 0 0 2px var(--primary); }
.menu-table td.bugun .menu-tarih { background: var(--primary); color: var(--white); }
.menu-table td.bugun .menu-tarih::after { content: ' · Bugün'; }
/* "SABAH:", "İKİNDİ:" gibi etiketler */
.menu-yemekler li strong { display: block; margin-bottom: 1px; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
/* Tablonun üstündeki not */
.menu-uyari {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 auto 22px;
    padding: 14px 18px;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    background: #fdf0f0;
    color: #6b1d22;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}
.menu-uyari i { margin-top: 3px; color: var(--primary); font-size: 16px; }
/* Tablonun altındaki bilgiler (ör. kullanılan markalar) */
.menu-not { margin-top: 28px; }
.menu-not-baslik { margin-bottom: 14px; color: var(--dark); font-size: 17px; font-weight: 700; }
.menu-not-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.menu-not-oge {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border-top: 3px solid var(--primary);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
.menu-not-oge small { color: #888; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.menu-not-oge strong { color: var(--dark); font-size: 15px; font-weight: 700; }

/* Yemekhane fotoğrafı üstünde saydam kırmızı zemin, kenarlarda saydam yemek ikonları; tablo buzlu cam kart */
.menu-sahne {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.10), transparent 45%),
        linear-gradient(160deg, rgba(193, 18, 31, 0.84) 0%, rgba(161, 15, 26, 0.87) 60%, rgba(138, 12, 22, 0.91) 100%),
        url('images/yemekhane.jpg') center / cover fixed;
    background-color: #a10f1a;
}
.menu-sahne-ic { position: relative; z-index: 1; }
/* Başlık yemekhane zemininin içinde: okul görseli yok, başlık ile tablo arası kısa */
.menu-sahne .page-header.menu-sayfa-basligi { position: relative; z-index: 1; padding-bottom: 0; background: none; }
.menu-sahne .menu-sahne-ic { padding-top: 40px; }
.menu-susler i { position: absolute; color: rgba(255, 255, 255, 0.13); pointer-events: none; }
.menu-giris { margin-bottom: 30px; color: rgba(255, 255, 255, 0.92); font-size: 16px; }
.menu-dipnot { margin-top: 20px; color: rgba(255, 255, 255, 0.8); font-size: 14px; }
/* Buzlu cam: arkası hafif bulanık görünür, yazının okunması için zemin yeterince açık kalır */
.menu-sahne .menu-tablo-kap,
.menu-sahne .menu-uyari,
.menu-sahne .menu-not-oge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.58) 100%);
    -webkit-backdrop-filter: blur(9px) saturate(1.4);
    backdrop-filter: blur(9px) saturate(1.4);
}
.menu-sahne .menu-tablo-kap {
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 22px 50px rgba(70, 0, 8, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.menu-sahne .menu-table th { background: rgba(26, 26, 46, 0.82); }
.menu-sahne .menu-table td { border-color: rgba(255, 255, 255, 0.45); color: #222; }
.menu-sahne .menu-table td.menu-gun:hover { background: rgba(255, 255, 255, 0.35); }
.menu-sahne .menu-table td.bugun { background: rgba(255, 255, 255, 0.55); }
.menu-sahne .menu-table td.menu-tatil { background: rgba(253, 228, 230, 0.55); }
.menu-sahne .menu-table td.menu-ay-disi { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 8px, rgba(255, 255, 255, 0.04) 8px 16px); }
.menu-sahne .menu-tarih { background: rgba(255, 255, 255, 0.85); }
.menu-sahne .menu-yemekler li + li { border-top-color: rgba(120, 20, 30, 0.15); }
.menu-sahne .menu-uyari { box-shadow: 0 10px 28px rgba(70, 0, 8, 0.22); }
.menu-sahne .menu-not-baslik { color: var(--white); }
.menu-sahne .menu-not-oge { border-top-color: var(--dark); box-shadow: 0 10px 28px rgba(70, 0, 8, 0.22); }

/* Telefonda tablo gün gün kartlara dönüşür */
@media (max-width: 768px) {
    .menu-tablo-kap { overflow: visible; background: none; border-radius: 0; box-shadow: none; }
    .menu-table { min-width: 0; }
    .menu-table thead { display: none; }
    .menu-table, .menu-table tbody { display: block; }
    .menu-table tbody { display: grid; gap: 10px; }
    .menu-table tr { display: contents; }
    .menu-table td.menu-ay-disi { display: none; }
    .menu-table td {
        display: block;
        padding: 14px 16px;
        border: none;
        border-left: 4px solid var(--primary);
        border-radius: 12px;
        background: var(--white);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
        text-align: left;
        font-size: 14px;
    }
    .menu-tarih { margin-bottom: 6px; }
    .menu-tarih::before { content: attr(data-gun) ' · '; }
    .menu-yemekler li { padding: 3px 0; }
    .menu-tatil-yazi { margin-top: 2px; }
    .menu-bos::after { margin-top: 0; }
    .menu-uyari { font-size: 13px; padding: 12px 14px; }
    .menu-not-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .menu-not-oge { padding: 12px; }
    .menu-not-oge strong { font-size: 13.5px; }
    /* Kırmızı zeminde kartın kırmızı kenarı kaybolmasın */
    .menu-sahne { background-attachment: scroll; }
    .menu-sahne .menu-tablo-kap { background: none; border: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .menu-sahne .menu-table td {
        border-left-color: var(--dark);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.64) 100%);
        -webkit-backdrop-filter: blur(9px) saturate(1.4);
        backdrop-filter: blur(9px) saturate(1.4);
        box-shadow: 0 8px 22px rgba(70, 0, 8, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
    .menu-sahne .menu-table td.menu-tatil { background: rgba(253, 228, 230, 0.72); }
    .menu-sahne .menu-table td.bugun { background: rgba(255, 255, 255, 0.88); }
    .menu-susler i { color: rgba(255, 255, 255, 0.10); }
}

/* Masaüstü üst menü: logo solda, menü ortada, VBS butonu sağda; yazılar bölünmez.
   1280px ve altında menü sığmadığı için üç çizgili menüye geçilir. */
@media (min-width: 1281px) {
    header .nav-container { display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; max-width: 1480px; }
    .nav-links { justify-content: center; gap: 14px; }
    .nav-links > li > a { font-size: 13px; white-space: nowrap; }
    .logo img, header.scrolled .logo img { height: 52px; }
    .vbs-giris { padding: 9px 18px; font-size: 13px; }
}
/* Geniş ekranda daha ferah ve menü sayfanın tam ortasında */
@media (min-width: 1500px) {
    header .nav-container { grid-template-columns: 1fr auto 1fr; column-gap: 24px; }
    .nav-container .logo { justify-self: start; }
    .nav-container .vbs-giris { justify-self: end; }
    .nav-links { gap: 22px; }
    .nav-links > li > a { font-size: 14px; }
    .logo img { height: 65px; }
    header.scrolled .logo img { height: 55px; }
    .vbs-giris { padding: 11px 24px; font-size: 14px; }
    .nav-container .vbs-giris:has(.vbs-satir) { padding: 7px 18px; font-size: 12.5px; }
    .nav-container .vbs-giris:has(.vbs-satir) i { font-size: 16px; }
}
/* Telefonda/tablette VBS butonu üst çubukta değil, üç çizgili menünün içinde (script.js kopyalar) */
@media (max-width: 1280px) {
    .nav-container > .vbs-giris { display: none; }
}


/* =========================================================
   DUYURULAR: üst şerit, ana sayfa açılır penceresi, yazı sayfası
   ========================================================= */
.yazi-sayfasi { margin-top: calc(130px + var(--serit-h, 0px)); }
.yazi-geri { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--primary); font-size: 14px; font-weight: 600; }
.yazi-geri:hover { color: var(--dark); }
.yazi-eylem { margin-top: 10px; padding: 26px; border-radius: 15px; background: #fdf0f0; text-align: center; }
.yazi-eylem .btn { padding: 15px 36px; font-size: 16px; }
.liste-giris { max-width: 760px; margin: 0 auto; color: #666; font-size: 16px; text-align: center; }
.yazi-yok { grid-column: 1 / -1; padding: 40px 0; color: #888; text-align: center; }
.duyuru-etiket { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 10px 0; padding: 3px 10px; border-radius: 20px; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.blog-content .duyuru-etiket + .blog-date { display: inline-block; }
.btn-cizgili { border: 2px solid var(--primary); background: transparent; color: var(--primary); box-shadow: none; }
.btn-cizgili:hover { border-color: var(--dark); background: var(--dark); color: var(--white); }

/* Üst şerit: başlığın (header) içinde en üstte, duyurular sağdan sola kayar; başlığın üst boşluğunu kendisi kapatır */
.duyuru-serit { margin: -15px 0 12px; background: linear-gradient(90deg, #9d0e19, var(--primary) 50%, #9d0e19); color: var(--white); transition: var(--transition); }
header.scrolled .duyuru-serit { margin: -10px 0 8px; }
.duyuru-serit-ic { display: flex; align-items: center; gap: 14px; min-height: 38px; }
.duyuru-serit-etiket { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 20px; background: var(--white); color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.duyuru-serit-etiket i { animation: duyuru-zil 2.4s ease-in-out infinite; }
.duyuru-serit-etiket:hover { background: var(--dark); color: var(--white); }
.duyuru-serit-pencere { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.duyuru-serit-kayan { display: flex; width: max-content; }
.duyuru-serit-kayan.kayiyor { animation: duyuru-kay var(--kayma-suresi, 30s) linear infinite; }
.duyuru-serit-pencere:hover .duyuru-serit-kayan { animation-play-state: paused; }
.duyuru-serit-grup { display: flex; flex-shrink: 0; }
.duyuru-serit-oge { display: inline-flex; align-items: center; padding: 8px 0; color: var(--white); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.duyuru-serit-oge::after { content: ''; width: 6px; height: 6px; margin: 0 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.duyuru-serit-oge:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.duyuru-serit-kapat { flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: var(--white); font-size: 18px; line-height: 1; cursor: pointer; }
.duyuru-serit-kapat:hover { background: rgba(255, 255, 255, 0.3); }
@keyframes duyuru-kay { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Masaüstünde şerit, menüyle aynı genişlikte: etiket logoyla, kapatma düğmesi VBS butonuyla hizalı */
@media (min-width: 1281px) {
    .duyuru-serit-ic { max-width: 1480px; }
}
@keyframes duyuru-zil { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } 92% { transform: rotate(-6deg); } }
@media (max-width: 1280px) {
    .duyuru-serit, header.scrolled .duyuru-serit { margin: -10px 0 8px; }
    .duyuru-serit-ic { gap: 10px; }
    .duyuru-serit-oge { font-size: 12.5px; }
    .duyuru-serit-oge::after { margin: 0 20px; }
}
/* Telefonda etiket yalnızca ikon */
@media (max-width: 600px) {
    .duyuru-serit-etiket { padding: 4px 8px; }
    .duyuru-serit-etiket span { display: none; }
}
/* Ana sayfa açılır penceresi */
.duyuru-pencere { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 15, 30, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s ease; }
.duyuru-pencere[hidden] { display: none; }
.duyuru-pencere.acik { opacity: 1; }
.duyuru-pencere-kutu { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto; border-radius: 20px; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); transform: translateY(24px) scale(0.97); transition: transform 0.35s ease; }
.duyuru-pencere.acik .duyuru-pencere-kutu { transform: none; }
.duyuru-pencere-gorsel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.duyuru-pencere-icerik { padding: 22px 26px 26px; }
.duyuru-pencere-icerik h3 { margin-bottom: 8px; color: var(--dark); font-size: 22px; font-weight: 800; line-height: 1.3; }
.duyuru-pencere-icerik p { margin-bottom: 20px; color: #555; font-size: 15px; line-height: 1.6; }
.duyuru-pencere-dugmeler { display: flex; flex-wrap: wrap; gap: 10px; }
.duyuru-pencere-dugmeler .btn { flex: 1 1 auto; text-align: center; }
.duyuru-pencere-kapat { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--dark); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.duyuru-pencere-kapat:hover { background: var(--primary); color: var(--white); }
.duyuru-pencere-kapat:focus { outline: none; }
.duyuru-pencere-kapat:focus-visible { outline: 3px solid rgba(193, 18, 31, 0.45); outline-offset: 2px; }
/* Telefonda ekranı kaplamadan alttan açılan kart */
@media (max-width: 600px) {
    .duyuru-pencere { align-items: flex-end; padding: 0; }
    .duyuru-pencere-kutu { max-width: none; max-height: 85vh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
    .duyuru-pencere-icerik { padding: 18px 20px 24px; }
    .duyuru-pencere-icerik h3 { font-size: 19px; }
    .duyuru-pencere-icerik p { font-size: 14px; margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .duyuru-serit-etiket i, .duyuru-serit-kayan.kayiyor { animation: none; }
}
/* =========================================================
   OKUL GÜVENLİĞİ: önlem kartları ve fotoğraflı alt bant
   ========================================================= */
.guvenlik-onlemler { background: var(--light); }
.guvenlik-baslik { max-width: 720px; margin: 0 auto; text-align: center; }
.guvenlik-baslik .sec-title::after { left: 50%; transform: translateX(-50%); }
.guvenlik-giris { color: #666; font-size: 16px; line-height: 1.7; }
.guvenlik-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 50px; }
.guvenlik-kart { background: var(--white); padding: 40px 28px; }
.guvenlik-kart i { display: inline-flex; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 50%; background: #fdf0f0; font-size: 32px; }
.guvenlik-kart:hover i { background: var(--primary); color: var(--white); }
.guvenlik-kart h3 { font-size: 20px; }
.guvenlik-kart p { color: #666; font-size: 15px; line-height: 1.7; }
.guvenlik-bant { padding: 110px 0; background-position: center; background-size: cover; background-attachment: fixed; color: var(--white); text-align: center; }
.guvenlik-bant h2 { margin-bottom: 16px; font-size: 40px; font-weight: 800; }
.guvenlik-bant p { max-width: 680px; margin: 0 auto 30px; font-size: 18px; line-height: 1.7; opacity: 0.92; }
.guvenlik-bant-btn { background: var(--white); color: var(--primary); }
.guvenlik-bant-btn:hover { background: var(--dark); color: var(--white); }
@media (max-width: 991px) {
    .guvenlik-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
    .guvenlik-bant { padding: 80px 0; background-attachment: scroll; }
    .guvenlik-bant h2 { font-size: 30px; }
}
@media (max-width: 600px) {
    .guvenlik-grid { grid-template-columns: minmax(0, 1fr); }
    .guvenlik-kart { padding: 30px 22px; }
    .guvenlik-kart p { font-size: 14.5px !important; }
    .guvenlik-bant { padding: 64px 0; }
    .guvenlik-bant h2 { font-size: 25px; }
    .guvenlik-bant p { font-size: 15.5px; }
}