/* ==========================================================================
   site-responsive.css — 3 Adım Koleji mobil/responsive iyileştirmeleri
   Tarih: 2026-12-02
   Amaç: mevcut tasarımı DEĞİŞTİRMEDEN mobil uyumluluk ve erişilebilirlik.
   head.asp içinde EN SON yüklenir; böylece önceki kuralları geçersiz kılar.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) YATAY TAŞMA
   Owl Carousel'in .owl-stage'i (loop:true) viewport'tan geniş kalıyor.
   body'de overflow-x:hidden vardı, html'de yoktu -> 320px'te 11px kaydırma.
   -------------------------------------------------------------------------- */
html {
    overflow-x: hidden;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

/* Uzun kelime/URL taşmalarını engelle */
@media (max-width: 767px) {
    .sayfa-icerik,
    .entry-content,
    .kurumsal-metin,
    .neden-metin {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* --------------------------------------------------------------------------
   2) YÜZEN İLETİŞİM BUTONLARI
   Masaüstünde sol altta (15/75px) duruyor ve mobilde içeriğin üstüne biniyor
   (ekran görüntüsünde "NEDEN 3 ADIM" başlığını kapatıyordu).
   Mobilde: sağ alt köşeye taşı, 44px dokunma hedefi.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .telefon {
        left: auto !important;
        right: 12px !important;
        bottom: 74px !important;
    }

    .whatsapp {
        left: auto !important;
        right: 12px !important;
        bottom: 16px !important;
    }

    .telefon a,
    .whatsapp a {
        width: 46px !important;
        height: 46px !important;
        line-height: 46px !important;
        font-size: 22px;
    }

    .telefon a i,
    .whatsapp a i {
        font-size: 22px;
    }

    /* Mobilde hover tooltip yok; dokunmada hayalet kutu çıkmasın */
    .telefon .tooltiptext,
    .whatsapp .tooltiptext,
    .diller .tooltiptext {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   3) ÜST BÖLÜM — mobilde çok yer kaplıyordu
   Ölçüldü: header-top 111px + header-middle 200px = 311px (640px ekranın %49'u)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .header-top {
        padding: 6px 0 !important;
    }

    .header-top .list-inline > li {
        font-size: 13px;
        padding: 2px 6px !important;
        white-space: nowrap;
    }

    .header-top .styled-icons.icon-sm > li > a {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 15px;
    }

    .header-middle {
        padding: 6px 0 !important;
    }

    /* Logo: 100px -> 64px (mobilde ekranın %16'sı yerine %10'u) */
    .menuzord-brand img {
        height: 64px !important;
        padding: 2px 0 !important;
    }

    /* Üst buton şeridi: daha kompakt, okunur */
    .ust-btn-row {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .ust-btn-row a,
    .ust-btn-row a.btn {
        font-size: 11px !important;
        padding: 6px 9px !important;
        margin: 3px 2px !important;
    }

    .ust-login-area {
        justify-content: center !important;
    }
}

/* --------------------------------------------------------------------------
   4) DOKUNMA HEDEFLERİ (WCAG 2.5.8 — en az 44x44 px)
   Ölçüldü: telefon/e-posta linkleri 19px yükseklikte, ikonlar 30px.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .header-top a {
        display: inline-block;
        min-height: 40px;
        line-height: 40px;
    }

    .header-top .list-inline {
        margin-bottom: 0;
    }

    /* Footer ve içerik linkleri */
    #footer .list-border li a,
    #footer .list-inline li a {
        display: inline-block;
        min-height: 34px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    #footer .styled-icons > li > a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
    }

    /* Scroll-to-top ve mobil menü düğmesi */
    .scrollToTop {
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
    }

    .menuzord-responsive .showhide {
        min-width: 44px;
        min-height: 44px;
        line-height: 44px;
    }
}

/* --------------------------------------------------------------------------
   5) OKUNABİLİRLİK — çok küçük yazılar
   Ölçüldü: 5 blokta 12px altı metin.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .font-12,
    .font-13,
    .font-13 p,
    .entry-date,
    .kurumsal-rakam .rakam-etiket,
    #footer .font-12 {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    /* Gövde metni mobilde rahat okunur */
    .sayfa-icerik p,
    .sayfa-icerik li,
    .entry-content p,
    .kurumsal-metin,
    .neden-metin {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
}

/* --------------------------------------------------------------------------
   6) SLIDER
   Mobilde görsel kırpılmasın: yükseklik ekranla orantılı kalsın.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    #amazingslider-wrapper-1,
    #amazingslider-1,
    #amazingslider-1 .amazingslider-slides,
    #amazingslider-1 .amazingslider-slide {
        max-width: 100% !important;
    }

    #amazingslider-wrapper-1 {
        min-height: 150px;
    }

    /* Slider butonları dokunulabilir olsun */
    .as-btn-navy-medium {
        font-size: 12px !important;
        padding: 8px 14px !important;
        min-height: 40px;
    }
}

/* --------------------------------------------------------------------------
   7) YENİ BÖLÜMLER (Neden / Kurumsal) — mobil ince ayar
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
    .neden-bolum .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .neden-kutu {
        padding: 20px 16px !important;
    }

    .neden-baslik {
        font-size: 16px !important;
    }

    .kurumsal-baslik {
        font-size: 23px !important;
        line-height: 1.4 !important;
    }

    .kurumsal-rakamlar {
        padding: 18px 18px !important;
    }

    .rakam {
        font-size: 25px !important;
    }

    .rakam-saat {
        font-size: 20px !important;
    }

    /* Uzun buton metni taşmasın */
    .kurumsal-bolum .btn {
        white-space: normal;
        font-size: 14px;
        padding: 10px 18px;
    }
}

/* --------------------------------------------------------------------------
   8) TABLOLAR (KVKK / Kurumsal Bilgiler) — mobilde kaydırılabilir
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .sayfa-icerik table {
        min-width: 480px;
    }

    .sayfa-icerik > div[style*="overflow-x"] {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .sayfa-icerik h2 {
        font-size: 18px !important;
        margin: 22px 0 10px !important;
    }

    .sayfa-icerik h3 {
        font-size: 15px !important;
    }
}

/* --------------------------------------------------------------------------
   9) GENEL: aşırı geniş öğeler
   -------------------------------------------------------------------------- */
img,
iframe,
video,
table {
    max-width: 100%;
}

iframe {
    max-width: 100% !important;
}

/* Uzun başlıklar taşmasın */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --------------------------------------------------------------------------
   10) UST BUTON SERIDI
   ust.asp icinde inline <style> var ve bizden SONRA parse ediliyor:
       .ust-btn-row { font-size: 0 !important; }
       .ust-btn-row > li { display: contents !important; }
       .custom-btn  { font-size: 0.7rem; }
   DIKKAT: li'lere display:contents verilmis; bunu EZMEYIN, aksi halde
   her buton kutuya donusur ve ust bar 100px buyur.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    ul.ust-btn-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 0 !important;
        padding: 0 !important;
        margin: 4px 0 0 0 !important;
        list-style: none !important;
    }

    /* li kutulari dagitilmis kalsin (ust.asp kuralini koru) */
    ul.ust-btn-row > li {
        display: contents !important;
        list-style: none !important;
    }

    ul.ust-btn-row > .container-fluid,
    ul.ust-btn-row > .container-fluid > div {
        display: contents !important;
    }

    /* Butonlar: okunur font + makul dokunma hedefi */
    ul.ust-btn-row a,
    ul.ust-btn-row a.btn,
    ul.ust-btn-row a.btn.custom-btn,
    ul.ust-btn-row > li > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        padding: 7px 10px !important;
        min-height: 36px !important;
        margin: 0 !important;
        white-space: normal !important;
        text-align: center;
    }

    /* Ogretmen Giris Paneli: listede DEGIL, .ust-login-area altinda.
       Olculdu: 5.6px ile render oluyordu (okunamaz). */
    .ust-login-area a.btn,
    .ust-login-area a.btn.custom-btn,
    .ust-login-area a.custom-btn {
        font-size: 12px !important;
        min-height: 36px !important;
        padding: 7px 12px !important;
        line-height: 1.3 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* ust.asp'de gizlenen DB kopyasi gizli kalsin */
    ul.ust-btn-row a[href*="ertugrulozer"] { display: none !important; }
    ul.ust-btn-row p { display: none !important; }
}

/* --------------------------------------------------------------------------
   11) GENEL BUTONLAR - dokunma hedefi
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .btn,
    .btn-lg,
    .btn-sm,
    .btn-xs {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .btn-read-more,
    .btn.btn-flat {
        min-height: 40px;
        padding: 8px 12px !important;
        display: inline-flex;
        align-items: center;
    }

    /* Slider butonu */
    .as-btn-navy-medium,
    #amazingslider-1 .as-btn-navy-medium {
        min-height: 42px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Haber kart basligi linki */
    .entry-title a {
        display: inline-block;
        padding: 3px 0;
    }
}

/* --------------------------------------------------------------------------
   12) UST BAR - mobilde tek satira sigdir
   Olculdu: header-top 110px (telefon+e-posta 2 satir + ikonlar)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .header-top .container,
    .header-top .row {
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-top .widget ul {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0 6px;
        margin: 0 !important;
    }

    .header-top .list-inline > li {
        font-size: 12.5px !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1.5;
    }

    .header-top a {
        min-height: 34px !important;
        line-height: 34px !important;
    }

    .header-top .styled-icons {
        justify-content: center;
        margin-top: 2px !important;
    }

    .header-top .styled-icons > li > a {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 15px !important;
    }
}

/* --------------------------------------------------------------------------
   13) UST BUTON SERIDI - mobilde TEK SATIR (yatay kaydirmali)
   Olculdu: 3 satira bolununce header-middle 248px oluyordu.
   Tek satir + kaydirma ile ~130px'e iner; butonlar gizlenmez.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    ul.ust-btn-row {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 2px 4px 2px !important;
        gap: 6px !important;
        /* kenarlarda kaydirma ipucu */
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    }

    ul.ust-btn-row::-webkit-scrollbar {
        display: none;
    }

    ul.ust-btn-row a,
    ul.ust-btn-row a.btn,
    ul.ust-btn-row a.btn.custom-btn,
    ul.ust-btn-row > li > a {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        min-height: 34px !important;
        padding: 6px 11px !important;
        font-size: 12px !important;
    }

    /* Ogretmen Giris Paneli ust satirda kalsin ama kucuk olsun */
    .ust-login-area {
        justify-content: center !important;
        margin: 2px 0 0 0 !important;
    }

    .ust-login-area a.btn,
    .ust-login-area a.btn.custom-btn,
    .ust-login-area a.custom-btn {
        min-height: 34px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    /* Logo mobilde 56px: ust bar toplam yuksekligi duser */
    .menuzord-brand img {
        height: 56px !important;
        padding: 1px 0 !important;
    }

    .header-middle {
        padding: 4px 0 !important;
    }

    .header-top {
        padding: 4px 0 !important;
    }

    .header-top .list-inline > li {
        font-size: 12px !important;
    }

    .header-top a {
        min-height: 30px !important;
        line-height: 30px !important;
    }
}

/* --------------------------------------------------------------------------
   14) NEDEN BOLUMU BASLIGI - mobilde alt alta
   Ekran goruntusunde baslik ile aciklama yan yana sikisiyordu
   (col-md-12 text-center icindeki h2 + p, flex row'a takiliyor).
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .neden-bolum .row:first-child {
        display: block !important;
    }

    .neden-bolum .row:first-child > [class*="col-"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .neden-bolum h2 {
        font-size: 25px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    /* line-bottom cizgisi ortada kalsin */
    .neden-bolum h2.title.line-bottom::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .neden-alt {
        font-size: 15px !important;
        line-height: 1.75 !important;
        text-align: center !important;
        padding: 0 6px;
        margin-bottom: 26px !important;
    }

    /* Kart izgarasi: mobilde tek sutun, tam genislik */
    .neden-bolum .row:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -12px;
        margin-right: -12px;
    }

    .neden-bolum .row:last-child > [class*="col-"] {
        display: flex !important;
        align-items: stretch !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .neden-kutu {
        width: 100% !important;
    }

    .neden-bolum .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* --------------------------------------------------------------------------
   15) SLIDER - mobilde daha okunur yukseklik
   Olculdu: 320px'te 108px (ekranin %17'si) - gorsel eziliyordu.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    #amazingslider-wrapper-1 {
        min-height: 190px !important;
    }

    #amazingslider-1,
    #amazingslider-1 .amazingslider-slides,
    #amazingslider-1 .amazingslider-slide,
    #amazingslider-1 .amazingslider-slide > img {
        min-height: 190px !important;
    }

    /* Slider altindaki buton daha kompakt konumlansin */
    .as-btn-navy-medium {
        bottom: 8px !important;
        right: 8px !important;
    }
}

/* --------------------------------------------------------------------------
   16) GENEL KENAR BOSLUKLARI - mobilde daha ferah
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Bolum ust/alt bosluklari biraz azalt (mobilde kaydirma uzunlugu) */
    .pt-60 { padding-top: 44px !important; }
    .pb-30 { padding-bottom: 22px !important; }
    .pb-50 { padding-bottom: 36px !important; }
    .pt-50 { padding-top: 36px !important; }
    .mb-30 { margin-bottom: 20px !important; }
    .mb-40 { margin-bottom: 26px !important; }
}

/* --------------------------------------------------------------------------
   17) BASLIK TASMASI - cok dar ekranlar (320px)
   Olculdu: "NEDEN 3 ADIM KOLEJI?" 320px'te kesiliyordu.
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
    .neden-bolum h2 {
        font-size: 21px !important;
        line-height: 1.35 !important;
        letter-spacing: -.2px;
        padding: 0 4px;
    }

    .neden-bolum h2 span {
        display: inline;
    }

    .neden-alt {
        font-size: 14.5px !important;
        padding: 0 8px;
    }

    .neden-baslik {
        font-size: 15.5px !important;
    }

    .neden-metin {
        font-size: 14.5px !important;
    }

    /* Kurumsal baslik da darsin */
    .kurumsal-baslik {
        font-size: 21px !important;
    }

    .kurumsal-etiket {
        font-size: 11px !important;
        letter-spacing: 1.2px !important;
    }

    /* Genel bolum basliklari */
    h2.font-28,
    h2.font-30,
    .section-title h2 {
        font-size: 21px !important;
        line-height: 1.35 !important;
    }
}

/* --------------------------------------------------------------------------
   18) SLIDER ALT Bosluk - mobilde slider kutusu gorselden uzun kaliyor
   min-height verdik ama AmazingSlider kendi oranini koruyor -> alt bosluk.
   height:auto ile gorsel oranina birak.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    #amazingslider-wrapper-1 {
        min-height: 0 !important;
        height: auto !important;
    }

    #amazingslider-1,
    #amazingslider-1 .amazingslider-slides,
    #amazingslider-1 .amazingslider-slide {
        min-height: 0 !important;
        height: auto !important;
    }

    /* Slider kutusu: en-boy oranini koru */
    #amazingslider-1 .amazingslider-slide > img,
    #amazingslider-1 .amazingslider-slide img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Slider'in altindaki gereksiz pay */
    #home {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    #home .container-fluid {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   19) TABLOLAR - mobilde metin sarma (yatay kaydirma YOK)
   Olculdu: min-width 420px tablo, 358px alanda kesiliyordu.
   Cozum: min-width kaldir, hucrelerde kelime kaydirma acik.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .sayfa-icerik > div[style*="overflow-x"] {
        overflow-x: visible !important;
        box-shadow: none !important;
        border-right: 0 !important;
        margin-bottom: 16px !important;
    }

    .sayfa-icerik > div[style*="overflow-x"]::after {
        content: none !important;
        display: none !important;
    }

    .sayfa-icerik table {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
        font-size: 13px !important;
    }

    .sayfa-icerik table th,
    .sayfa-icerik table td {
        padding: 8px 9px !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    /* 1. sutun (kategori) dar, 2. sutun genis */
    .sayfa-icerik table th:first-child,
    .sayfa-icerik table td:first-child {
        width: 38% !important;
    }
}

@media (max-width: 400px) {
    .sayfa-icerik table,
    .sayfa-icerik table th,
    .sayfa-icerik table td {
        font-size: 12.5px !important;
    }

    .sayfa-icerik table th,
    .sayfa-icerik table td {
        padding: 7px 7px !important;
    }

    .sayfa-icerik table th:first-child,
    .sayfa-icerik table td:first-child {
        width: 40% !important;
    }
}

/* --------------------------------------------------------------------------
   20) NEDEN BOLUMU BASLIGI - TUM EKRANLARDA alt alta
   Masaustunde h2 ile aciklama yan yana sikisiyordu (bolum flex row'a takiliyor).
   14. bolumdeki kural yalnizca mobil icindi; burada genellestirdik.
   -------------------------------------------------------------------------- */
.neden-bolum .row:first-child {
    display: block !important;
}

.neden-bolum .row:first-child > [class*="col-"] {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.neden-bolum h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
}

.neden-bolum h2.title.line-bottom::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.neden-alt {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 760px;
}
