/* =========================================================
   MOBİL / TABLET — masaüstü tasarımın duyarlı hâli
   (footer.blade.php en sonda yükler; tüm sayfalarda geçerli)
   ========================================================= */

/* Hamburger ve çekmece masaüstünde gizli */
.bx-burger, .bx-drawer { display: none; }
html.bx-lock, html.bx-lock body { overflow: hidden; }

@media (max-width: 1100px) {
  html body { height: auto !important; min-height: 100%; overflow-y: visible !important; overflow-x: hidden; overflow-x: clip !important; }

  /* ---------- HEADER ---------- */
  .bx__inner { height: 72px !important; padding: 0 16px !important; gap: .6rem; }
  .bx-nav { display: none !important; }
  .bx-ata, .bx-left__sep { display: none !important; }
  .bx-brand__medal { width: 56px !important; height: 56px !important; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
  .bx-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
  .bx-find { width: 44px !important; height: 44px !important; padding: 0 !important; justify-content: center; }
  .bx-find__text { display: none !important; }
  .bx-cta { height: 44px; padding: 0 .35rem 0 1rem !important; gap: .6rem !important; }
  .bx-cta__text { font-size: .85rem; }
  .bx-cta__icon { width: 34px !important; height: 34px !important; }
  .bx-search { padding: .8rem 16px 1rem; }
  .bx-search__box { height: 52px; padding-left: 1rem; }
  .bx-search button { padding: 0 1rem; }

  .bx-burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: none; }
  .bx-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
  .bx-burger span:nth-child(2) { width: 12px; margin-left: 6px; }

  /* Çekmece */
  .bx-drawer { display: block; position: fixed; inset: 0; z-index: 2000; background: rgba(6, 18, 32, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .bx-drawer.is-open { opacity: 1; visibility: visible; }
  .bx-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; overflow-y: auto; padding: 0 0 1.5rem; background: #0b2540 url(/assets/img/header.svg) no-repeat right -260px bottom -120px / 640px auto; color: #fff; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .bx-drawer.is-open .bx-drawer__panel { transform: none; }
  .bx-drawer__head { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 20px; border-top: 4px solid #0080c7; font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 700; text-transform: uppercase; }
  .bx-drawer__close { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: none; color: #fff; font-size: 1.1rem; }
  .bx-drawer__search { display: flex; align-items: center; gap: .7rem; margin: 0 20px 1rem; height: 50px; padding: 0 1rem; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
  .bx-drawer__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-size: 1rem; }
  .bx-drawer__search input::placeholder { color: rgba(255,255,255,.5); }
  .bx-drawer__menu { margin: 0; padding: 0 20px; list-style: none; }
  .bx-drawer__menu > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .bx-drawer__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .95rem 0; border: 0; background: none; font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; text-align: left; color: #fff !important; text-decoration: none; }
  .bx-drawer__link i { font-size: .85rem; color: #8fc6ea; transition: transform .25s; }
  .has-sub.is-open > .bx-drawer__link i { transform: rotate(45deg); }
  .bx-drawer__sub { display: none; margin: 0; padding: 0 0 .8rem; list-style: none; }
  .has-sub.is-open > .bx-drawer__sub { display: block; }
  .bx-drawer__sub a { display: block; padding: .5rem 0 .5rem 1rem; border-left: 2px solid rgba(255,255,255,.12); font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.8) !important; text-decoration: none; }
  .bx-drawer__sub a:active, .bx-drawer__sub a:hover { border-left-color: #0080c7; color: #fff !important; }
  .bx-drawer__cta { display: flex; align-items: center; justify-content: space-between; margin: 1.4rem 20px 0; padding: 1rem 1.3rem; border-radius: 999px; background: #fff; color: #0b2540 !important; font-weight: 700; text-decoration: none; }
  .bx-drawer__cta i { color: #0080c7; }
  .bx-drawer__contact { display: flex; flex-direction: column; gap: .6rem; margin: 1.4rem 20px 0; font-size: .9rem; }
  .bx-drawer__contact a { color: rgba(255,255,255,.75) !important; text-decoration: none; }
  .bx-drawer__contact i { width: 1.2rem; color: #8fc6ea; }

  /* ---------- ORTAK KENAR BOŞLUKLARI ---------- */
  .gx__wrap, .hm__wrap, .ex__wrap, .sahsiyet__wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .fx__wrap { padding-left: 16px !important; padding-right: 16px !important; }

  /* ---------- SLIDER ---------- */
  .bh-hero { padding: .8rem 0 .4rem !important; }
  .bh-hero > .bh-wrap { padding: 0 16px !important; }
  .bh-frame { padding: 0 !important; }
  .bh-rail { display: none !important; }
  .bh-stage { border-radius: 14px !important; }
  .bh-under { margin-top: .7rem !important; padding: 0 !important; justify-content: center !important; }
  .bh-ctrl { margin-bottom: 0 !important; padding: .35rem .35rem .35rem 1rem !important; gap: .6rem !important; }
}

@media (max-width: 767px) {
  .bx-cta__text { display: none; }
  .bx-cta { width: 44px; padding: 0 !important; justify-content: center; background: #fff; }
}

/* ---------- İÇ SAYFALAR ---------- */
@media (max-width: 1100px) {
  html body .pb-band { margin-top: -76px !important; padding-top: 76px !important; height: auto !important; padding-bottom: 1.6rem !important; border-radius: 0 0 1.6rem 1.6rem !important; }
  html body .pb-band::after { right: 16px; width: 300px; max-width: calc(100% - 32px); opacity: .2; }
  html body .pb-band--title { padding-top: calc(76px + .2rem) !important; }
  html body .pb-band .container, .pb-band [class*="container"] { padding-left: 16px !important; padding-right: 16px !important; }
  html body .pb-title { font-size: 1.75rem !important; }
}
@media (max-width: 991px) {
  html body .inner-page__row > .col-sidebar { display: none !important; }
  html body .inner-page__row > .col-article { flex: 0 0 100% !important; max-width: 100% !important; }
  html body .inner-page__wrapper > .container { padding-left: 16px !important; padding-right: 16px !important; }
  html body .inner-page__content.container { padding-left: 0 !important; padding-right: 0 !important; }
}

@media (max-width: 1100px) {
  :root, body, .pb-band, .inner-page__wrapper { --ic-gutter: 16px !important; }
  html body .pb-band ~ .inner-page__wrapper .inner-page__row { flex-direction: column; gap: 0; }
  html body .pb-band ~ .inner-page__wrapper .col-article { width: 100%; }
}

/* ---------- ANA SAYFA BÖLÜMLERİ ---------- */
@media (max-width: 1100px) {
  /* Eski CSS mobilde gizliyordu */
  .haberler-desktop, .gx.mobile-none, .hm.mobile-none, .ex.mobile-none, .fx.mobile-none { display: block !important; }

  /* Haberler */
  .gx { padding: 1.6rem 0 .5rem !important; }
  .gx-head { flex-wrap: wrap; gap: .8rem 1rem !important; margin-bottom: 1.1rem !important; }
  .gx-head__title h2 { font-size: 2.3rem !important; }
  .gx-head__line { display: none !important; }
  .gx-head__side { width: 100%; justify-content: space-between; }
  .gx-grid { grid-template-columns: 1fr !important; grid-auto-rows: auto !important; gap: 1rem !important; }
  .gx-feature { height: 250px; }
  .gx-card { border-radius: 16px !important; }
  .gx-feature .owl-stage-outer { border-radius: 16px !important; }
  .gx-bulletin { border-radius: 16px !important; }
  .gx-bulletin__scroll { max-height: 330px; }
  .gx-mayor { height: 380px; border-radius: 16px !important; }

  /* Hızlı menü */
  .hm { margin: 1.6rem 0 1rem !important; }
  .hm-head { flex-direction: column; align-items: flex-start !important; gap: .4rem !important; padding: 1.6rem 1.3rem 1.2rem !important; border-radius: 20px 20px 0 0 !important; background-size: 560px auto !important; background-position: right -160px top -30px !important; }
  .hm-head h2 { font-size: 2.3rem !important; }
  .hm-head h2 br { display: none; }
  .hm-table { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding: 0 1.1rem 1.3rem !important; border-radius: 0 0 20px 20px !important; }
  .hm-cell { min-width: 0; padding: 1rem .7rem !important; gap: .5rem !important; }
  .hm-cell__name { font-size: 1.15rem !important; line-height: 1.05 !important; min-width: 0; overflow-wrap: anywhere; }
  .hm-cell__go { display: none !important; }

  /* Etkinlikler + duyuru panosu */
  .ex { padding: 1.4rem 0 2rem !important; }
  .ex-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 2.4rem !important; }
  .ex-head { flex-wrap: wrap; gap: .6rem 1rem !important; }
  .ex-head h2, .ex-head__title h2 { font-size: 2.3rem !important; }
  .ex-head__side { margin-left: auto; }
  .ex-tabs { flex-wrap: wrap; gap: .3rem 1rem !important; }
  .ex-tab { font-size: 1.9rem !important; }

  /* Önemli şahsiyetler */
  .sahsiyet { padding: .5rem 0 2.5rem !important; }
  .sahsiyet__heading { font-size: 2.3rem !important; }
  .sh-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 2rem !important; }
  .sh-card { grid-template-columns: 42% minmax(0, 1fr) !important; gap: 1.1rem !important; }
  .sh-name { font-size: 1.9rem !important; }

  /* Footer */
  .fx__wrap { padding-top: 2.2rem !important; }
  .fx-top { gap: 1.4rem !important; padding-bottom: 1.6rem !important; }
  .fx-brand { align-items: flex-start; }
  .fx-news { flex-direction: column; align-items: stretch !important; gap: .7rem !important; width: 100%; }
  .fx-news__text { text-align: left !important; }
  .fx-news__text br { display: none; }
  .fx-news__form { width: 100% !important; min-width: 0; }
  .fx-news__form input { min-width: 0; flex: 1; }
  .fx-mid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.8rem 1.2rem !important; padding: 1.8rem 0 !important; }
  .fx-mid > .fx-contact { grid-column: 1 / -1; }
  .fx-call { min-width: 0; }
  .fx-call strong, .fx-call b, .fx-call span { overflow-wrap: anywhere; }
  .fx-bottom { flex-direction: column; align-items: flex-start !important; gap: 1.2rem !important; }
  .fx-gov { flex-wrap: wrap; }
  .fx-sign, .fx-legal { flex-wrap: wrap; gap: .8rem; }
}

@media (max-width: 420px) {
  .hm-cell__no { display: none !important; }
  .sh-card { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 1100px) {
  .bx-brand__medal { transition: none !important; }
  .bx-actions { display: flex !important; align-items: center; gap: .5rem !important; }
  /* Duyuru panosu: mobilde sabit yükseklik yok, liste doğal akar */
  .ex-board__body { min-height: 0 !important; }
  .ex-board__body .tab-pane { position: static !important; overflow: visible !important; }
}

@media (max-width: 767px) {
  html body .kd-grid, html body .by-list, html body .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.6rem 1rem !important; }
  html body .kd-id h3, html body .by-id h2, html body .cx-id h3 { font-size: 1.25rem !important; }
  html body .kd-id small, html body .by-id small { font-size: .62rem !important; }
  html body .bk-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body .bk-tab { font-size: 1.25rem !important; }
  html body .bk-tabs { gap: 1.2rem !important; }
}

@media (max-width: 1100px) {
  html body .gx-feature { height: 260px !important; }
}
@media (max-width: 420px) {
  html body .sh-body { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 1100px) {
  .bx-drawer__panel > * { flex-shrink: 0; }
}

/* Slider mobilde: kenar boşluğu daralır, oran görsellerle aynı (1734x800) */
@media (max-width: 767px) {
  html body .bh-hero > .bh-wrap { padding: 0 8px !important; }
  html body .bh-stage { aspect-ratio: 1734 / 800 !important; border-radius: 12px !important; }
}


/* Slider kontrolü mobilde küçük ve sade */
@media (max-width: 767px) {
  html body .bh-under { margin-top: .55rem !important; }
  html body .bh-ctrl { gap: .5rem !important; padding: .2rem .2rem .2rem .75rem !important; box-shadow: 0 8px 18px -12px rgba(11, 37, 64, .35) !important; }
  html body .bh-ctrl__count { font-size: .75rem !important; }
  html body .bh-ctrl__count b { font-size: 1.05rem !important; margin-right: .1rem !important; }
  html body .bh-ctrl__bars { gap: .25rem !important; }
  html body .bh-ctrl__bars i { width: 8px !important; height: 3px !important; }
  html body .bh-ctrl__bars i.is-active { width: 24px !important; }
  html body .bh-ctrl__btn { width: 28px !important; height: 28px !important; font-size: .7rem !important; }
}

/* Footer: mobilde menü sütunları gizli, yalnızca iletişim kartları */
@media (max-width: 767px) {
  html body .fx-mid > .fx-col:not(.fx-contact) { display: none !important; }
  html body .fx-mid { grid-template-columns: minmax(0, 1fr) !important; padding: 1.4rem 0 .6rem !important; }
}

/*
 * orgChart.css ve mobilechart.css (all.css içinden) tüm sitede html, body { height:100% } veriyor.
 * body { overflow-x:hidden } ile birleşince sayfayı pencere değil body kaydırıyor ve
 * pencere kaydırmasını dinleyen WOW.js animasyonları (ör. Önemli Şahsiyetler) hiç açılmıyordu.
 */
html, html body { height: auto !important; }

/* Önemli şahsiyetler mobilde: kompakt yatay kart — kemerli portre solda, metin sağda */
@media (max-width: 767px) {
  html body .sahsiyet { padding-top: 2.2rem !important; }
  html body .sahsiyet__head { margin-bottom: 1.2rem !important; }
  html body .sh-grid { gap: 1rem !important; }
  html body .sh-card { grid-template-columns: 38% minmax(0, 1fr) !important; gap: .9rem !important; align-items: end; min-height: 0; padding: 0 14px 0 12px !important; border-radius: 20px; }
  html body .sh-arch { align-self: end; width: 100%; height: 175px; margin: 24px 0 0; }
  html body .sh-body { padding: 16px 0 16px !important; gap: .45rem; }
  html body .sh-chip { font-size: .58rem; padding: .2rem .6rem; }
  html body .sh-name { font-size: 1.35rem !important; }
  html body .sh-name br { display: none; }
  html body .sh-life { font-size: .9rem; gap: .5rem; max-width: 100%; }
  html body .sh-quote { display: none; }
  html body .sh-text { font-size: .78rem; line-height: 1.5; -webkit-line-clamp: 2; }
  html body .sh-more { height: 34px; margin-top: .15rem; padding: 0 .9rem; font-size: .75rem; }
}

/* Footer: kurum logoları mobilde gizli */
@media (max-width: 767px) {
  html body .fx-gov { display: none !important; }
}

/* Güncel bölümü: "Son Haberler" listesi mobilde gizli (manşet slider'ı zaten aynı haberleri gösteriyor) */
@media (max-width: 767px) {
  html body .gx-bulletin { display: none !important; }
}

/* Başkan kartı mobilde: portre solda, sağda özgeçmiş / mesaj / fotoğraflar butonları + sosyal medya */
@media (max-width: 767px) {
  html body .gx-mayor {
    height: auto !important;
    display: grid !important;
    grid-template-columns: 57% minmax(0, 1fr);
    align-items: center;
    gap: .5rem;
    padding: .8rem .8rem 0 0;
  }
  html body .gx-mayor__label,
  html body .gx-mayor__bar { display: none !important; }
  html body .gx-mayor__img { align-self: end; height: auto; padding: 0; }
  html body .gx-mayor__stage { align-self: end; flex: none; }
  html body .gx-mayor__sign { padding: .9rem .2rem .4rem; }
  html body .gx-mayor__sign img { width: 86%; }
  html body .gx-mayor__links {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding-bottom: 1rem;
  }
  html body .gx-mayor__link {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .5rem .6rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #0080c7 0%, #0b2540 100%);
    box-shadow: 0 8px 18px -10px rgba(11, 37, 64, .6);
    color: #fff !important;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
  }
  html body .gx-mayor__link i { flex: 0 0 auto; font-size: .85rem; opacity: .9; }
  html body .gx-mayor__link span { flex: 1; text-align: center; }
  html body .gx-mayor__links-social { display: flex; justify-content: center; gap: .45rem; margin-top: .15rem; }
  html body .gx-mayor__links-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0b2540;
    color: #fff !important;
    font-size: .85rem;
  }
}

/* Mobil sıra: slider → başkan kartı → kutu hızlı menü (parts/anasayfa/mobil_ust.blade.php) */
@media (max-width: 767px) {
  html body .mx-top { display: block; margin: 1.2rem 0 1.6rem; }
  html body .mx-top__wrap { padding: 0 16px; }
  html body .mx-top .gx-mayor { background: #f5f7f9; border-radius: 16px; overflow: hidden; }

  /* Güncel içindeki başkan kartı ve lacivert hızlı menü bandı mobilde tekrar etmesin */
  html body .gx-grid > .gx-mayor { display: none !important; }
  html body .hm.mobile-none { display: none !important; }

  html body .mq { margin-top: 1.8rem; }
  /* Diğer bölüm başlıklarıyla aynı (Güncel, Önemli Şahsiyetlerimiz) */
  html body .mq-title {
    margin: 0 0 1rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: #14202c;
  }

  /* 6 sütun: küçük kutu 2, geniş kart 3 sütun kaplar */
  html body .mq-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
  }
  html body .mq-box {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 82px;
    padding: .8rem .35rem;
    border-radius: 14px;
    border: 1.5px solid #e3e8ed;
    background: #fff;
    color: #0b2540 !important;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s;
  }
  html body .mq-box:active, html body .mq-wide:active { transform: scale(.97); }
  html body .mq-box--ortala { grid-column: 2 / span 2; }
  html body .mq-box__icon { font-size: 1.35rem; line-height: 1; }
  html body .mq-box__name {
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  html body .mq-box--mavi {
    border-color: transparent;
    background: linear-gradient(135deg, #5b8fa8 0%, #0b2540 100%);
    color: #fff !important;
  }
  html body .mq-box--kirmizi {
    border-color: transparent;
    background: #cf2a2a;
    color: #fff !important;
  }

  html body .mq-wide {
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 74px;
    padding: .8rem;
    border-radius: 14px;
    color: #fff !important;
    text-decoration: none;
  }
  html body .mq-wide--koyu { background: linear-gradient(135deg, #0080c7 0%, #0b2540 100%); }
  html body .mq-wide--yesil { background: #1a8f3c; }
  html body .mq-wide:only-of-type, html body .mq-wide--koyu:last-child { grid-column: span 6; }
  html body .mq-wide__icon { font-size: 1.6rem; line-height: 1; }
  html body .mq-wide__icon--lg { font-size: 2.3rem; }
  html body .mq-wide__text {
    display: flex;
    flex-direction: column;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
  }
  html body .mq-wide__text b { font-weight: 800; }
}

/* Güncel mobilde: manşet kartı + altında lacivert numaralı sayfalama çubuğu */
@media (max-width: 767px) {
  /* Sütun içeriğe göre genişleyip sayfayı yana kaydırmasın (sayfalama çubuğu / owl) */
  html body .gx-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body .gx-grid > * { min-width: 0; max-width: 100%; }
  html body .gx-card__count { display: none; }
  html body .gx-card__title { max-width: 100%; font-size: 1.35rem; line-height: 1.12; -webkit-line-clamp: 2; }
  html body .gx-pager {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-top: -.4rem;
    padding: .45rem .5rem .45rem .6rem;
    border-radius: 16px;
    background: #0b2540;
  }
  html body .gx-pager__nums {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: .15rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  html body .gx-pager__nums::-webkit-scrollbar { display: none; }
  html body .gx-pager__num,
  html body .gx-pager__arrow {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(255, 255, 255, .75);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    transition: background .2s, color .2s;
  }
  html body .gx-pager__num.is-active { background: #0080c7; color: #fff; }
  html body .gx-pager__arrow { color: #fff; font-size: .85rem; }
  html body .gx-pager__all {
    flex: 0 0 auto;
    margin-left: .2rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
  }
}

/* Header kurum adı mobilde küçük */
@media (max-width: 1100px) {
  html body .bx-left { gap: .7rem; }
  html body .bx-title__sep { height: 38px; }
  html body .bx-title small { font-size: .75rem; }
  html body .bx-title b { font-size: 1rem; }
}

/* =========================================================
   Duyurular / İhaleler ve Etkinlikler — mobil tasarım (≤767px)
   Duyurular üstte; web'deki büyük sekmeler + çizgiyle ayrılmış sade liste;
   etkinlikler afiş solda + bilgiler sağda kart.
   ========================================================= */
@media (max-width: 767px) {
  html body .ex { padding: 1.6rem 0 2rem !important; }
  html body .ex-grid { gap: 2.2rem !important; }
  html body .ex-grid > .ex-board { order: -1; }

  /* Ortak başlık satırı: ince çizgi, sıkı boşluk */
  html body .ex-head {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 0;
    gap: .6rem !important;
    padding-bottom: .8rem;
    margin-bottom: 1rem;
    border-bottom-width: 1px;
  }
  html body .ex-head h2 { font-size: 2.1rem !important; }
  html body .ex-head__side { margin-left: auto; gap: .35rem; }
  html body .ex-link { margin-right: .2rem; font-size: .75rem; white-space: nowrap; }
  html body .ex-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e3e8ee;
    font-size: .8rem;
  }

  /* Duyurular | İhaleler: web'deki gibi büyük başlık sekmeleri (pasif olan gri) */
  html body .ex-board .ex-head { border-bottom-width: 2px; }
  html body .ex-tabs { flex-wrap: nowrap; gap: 1rem !important; }
  html body .ex-tab { font-size: 2.1rem !important; }
  html body .ex-board .ex-link::after {
    content: "\f061";
    margin-left: .35rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .7rem;
  }
  html body .ex-board .ex-link { text-decoration: none; }

  /* Sade liste: iç kaydırma yok, ince çizgiyle ayrılmış ilk 4 kayıt; devamı "Tümü" ile */
  html body .ex-board__body .ex-list {
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
  }
  html body .ex-list li:nth-child(n + 5) { display: none; }
  html body .ex-list a {
    position: relative;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.4rem .85rem 0;
  }
  html body .ex-list a::after {
    content: "\f054";
    position: absolute;
    right: .2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .7rem;
    color: #b3bec9;
  }
  html body .ex-list__date { width: 44px; }
  html body .ex-list__date b { font-size: 1.6rem; color: #0b2540; }
  html body .ex-list__date small { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  html body .ex-list__title { font-size: .86rem; line-height: 1.4; }

  /* Etkinlik kartı: afiş solda, bilgiler sağda */
  html body .ex-event {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: .9rem;
    align-content: center;
    align-items: start;
    padding: .6rem;
    border-radius: 16px;
    background: #f5f7f9;
  }
  html body .ex-event__img { grid-row: 1 / span 4; grid-column: 1; border-radius: 10px; }
  html body .ex-event > :not(.ex-event__img) { grid-column: 2; }
  html body .ex-event__date {
    justify-self: start;
    margin-top: .2rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #fff;
    font-size: .62rem;
  }
  html body .ex-event__title {
    margin-top: .5rem;
    font-size: 1.2rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  html body .ex-event__place { margin-top: .4rem; font-size: .75rem; }
  html body .ex-event__place::before {
    content: "\f3c5";
    margin-right: .35rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0080c7;
  }
}

/* =========================================================
   Footer — mobil tasarım (≤767px): ortalanmış, kompakt
   ========================================================= */
@media (max-width: 767px) {
  html body .fx { margin-top: 2rem; border-radius: 24px 24px 0 0; }
  html body .fx__wrap { padding-top: 1.8rem !important; }

  /* Kimlik + SMS bülten */
  html body .fx-top { flex-direction: column; align-items: center !important; gap: 1.3rem !important; padding-bottom: 1.4rem !important; text-align: center; }
  html body .fx-brand { flex-direction: column; align-items: center !important; gap: .7rem; }
  html body .fx-brand__medal { width: 64px; height: 64px; }
  html body .fx-brand__text { align-items: center; }
  html body .fx-brand__text small { font-size: .65rem; }
  html body .fx-brand__text b { font-size: 1.6rem; }
  html body .fx-brand__text em { max-width: 300px; font-size: .74rem; line-height: 1.45; }
  html body .fx-news { width: 100%; gap: .6rem !important; }
  html body .fx-news__text { align-items: center; text-align: center !important; }
  html body .fx-news__text b { font-size: 1.15rem; }
  html body .fx-news__text span { font-size: .74rem; }
  html body .fx-news__form { height: 48px; padding: 0 .3rem 0 1rem; }
  html body .fx-news__form input { width: auto; font-size: .88rem; }
  html body .fx-news__form button { height: 38px; padding: 0 .95rem; font-size: .8rem; }

  /* İletişim: kutusuz, ortalanmış sade satırlar (ikon + bilgi) */
  html body .fx-mid { padding: 1.2rem 0 1rem !important; }
  html body .fx-contact { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
  html body .fx-col__title { margin-bottom: .3rem; font-size: 1.05rem; text-align: center; }
  html body .fx-call,
  html body .fx-call--sm {
    gap: .5rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none !important;
  }
  html body .fx-call small { display: none; }
  html body .fx-call__icon,
  html body .fx-call--sm .fx-call__icon {
    width: auto;
    height: auto;
    background: none;
    font-size: .95rem;
    color: #6cc3f5;
  }
  html body .fx-call__icon--wa { color: #25d366 !important; }
  html body .fx-call b,
  html body .fx-call--sm b {
    font-family: 'Quicksand', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, .85);
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  /* Uygulamalar + sosyal medya ortalı */
  html body .fx-bottom { align-items: center !important; gap: 1rem !important; padding: 1.2rem 0 !important; }
  html body .fx-apps { justify-content: center; gap: .6rem; }
  html body .fx-apps img { height: 26px; }
  html body .fx-social { justify-content: center; }
  html body .fx-social { gap: .35rem; }
  html body .fx-social a { width: 32px; height: 32px; font-size: .8rem; }

  /* Telif satırı */
  html body .fx-legal { flex-direction: column; justify-content: center; gap: .6rem !important; padding: 1rem 0 1.3rem; text-align: center; font-size: .7rem; }
}

/* Mobilde tüm bölüm başlıkları aynı ve ölçülü boyutta */
@media (max-width: 767px) {
  html body .gx-head__title h2,
  html body .sahsiyet__heading,
  html body .mq-title,
  html body .ex-head h2,
  html body .ex-tab { font-size: 1.65rem !important; }
  html body .ex-tabs { gap: .75rem !important; min-width: 0; }
  html body .ex-board .ex-head { justify-content: space-between; }
  html body .ex-board .ex-link { flex-shrink: 0; }
}

/* Açılır menü başlığı: logo | T.C. ŞARKIŞLA BELEDİYESİ */
@media (max-width: 1100px) {
  html body .bx-drawer__head { height: 84px; gap: .8rem; }
  html body .bx-drawer__brand { display: flex; align-items: center; gap: .7rem; min-width: 0; text-decoration: none; }
  html body .bx-drawer__brand .bx-brand__medal { width: 50px !important; height: 50px !important; flex-shrink: 0; }
  html body .bx-drawer__brand .bx-title__sep { height: 36px; }
  html body .bx-drawer__brand .bx-title { text-transform: none; }
  html body .bx-drawer__close { flex-shrink: 0; }
}

/* Güncel manşeti mobilde: görsel üstte tamamen açık, yazı altında beyaz alanda (lacivert başlık) */
@media (max-width: 767px) {
  html body .gx-feature { height: auto !important; }
  html body .gx-card {
    display: flex;
    flex-direction: column;
    height: auto;
    border: 1px solid #e7ecf1;
    background: #fff;
  }
  html body .gx-card__img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  html body .gx-card__shade { display: none; }
  html body .gx-card__body {
    position: static;
    gap: .3rem;
    padding: .8rem 1rem .95rem;
  }
  html body .gx-card__date { font-size: .7rem; color: #7a8794; }
  html body .gx-card__title {
    font-family: 'Quicksand', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 2.7em;
    color: #0b2540;
  }
  html body .gx-card__more { display: none; }
}

/* =========================================================
   Yatay kayma koruması — hiçbir telefonda sayfa yana kaymasın
   ========================================================= */
@media (max-width: 1100px) {
  /* Kökte de kırp: sabit (sticky/fixed) öğeler body kırpmasının dışında kalıyordu.
     Yalnızca x ekseni; dikey kaydırma pencerede kalır (WOW.js pencere kaydırmasını dinliyor). */
  html { overflow-x: hidden; overflow-x: clip; }
  html body .bx-left { flex-shrink: 1; min-width: 0; }
  html body .bx-title { min-width: 0; }
  html body .bx-title b { overflow: hidden; text-overflow: ellipsis; }
  html body .bx-actions { flex-shrink: 0; }
  html body .gx-head__side { flex-wrap: wrap; gap: .6rem; }
}

/* Telefon header'ı (≤480px): logo + kurum adı + arama + menü sığsın.
   Online İşlemler butonu header'da gizli; menüde ve Hızlı Menü'de zaten var. */
@media (max-width: 480px) {
  html body .bx__inner { gap: .5rem; padding: 0 12px !important; }
  html body .bx-cta { display: none !important; }
  html body .bx-left { gap: .55rem; }
  html body .bx-brand__medal { width: 48px !important; height: 48px !important; }
  html body .bx-title__sep { height: 32px; }
  html body .bx-title small { font-size: .65rem; }
  html body .bx-title b { font-size: .92rem; }
  html body .bx-find, html body .bx-burger { width: 40px !important; height: 40px !important; }
  html body .bx-actions { gap: .4rem; }
}

/* Çok dar telefonlar (≤340px, ör. iPhone SE 1. nesil / 320px) */
@media (max-width: 340px) {
  html body .bx-title b { font-size: .82rem; }
  html body .bx-brand__medal { width: 42px !important; height: 42px !important; }
  html body .mq-grid { gap: .5rem; }
  html body .mq-box__name { font-size: .58rem; }
}

/* Açılır menü kompakt: daha küçük başlıklar ve boşluklar */
@media (max-width: 1100px) {
  html body .bx-drawer__head { height: 72px; }
  html body .bx-drawer__close { width: 38px; height: 38px; font-size: .95rem; }
  html body .bx-drawer__search { height: 42px; margin-bottom: .6rem; }
  html body .bx-drawer__search input { font-size: .88rem; }
  html body .bx-drawer__link { padding: .7rem 0; font-size: 1.1rem; letter-spacing: .02em; }
  html body .bx-drawer__link i { font-size: .75rem; }
  html body .bx-drawer__sub { padding-bottom: .5rem; }
  html body .bx-drawer__sub a { padding: .4rem 0 .4rem .9rem; font-size: .84rem; }
  html body .bx-drawer__cta { margin-top: 1.1rem; padding: .75rem 1.1rem; font-size: .88rem; }
  html body .bx-drawer__contact { margin-top: 1.1rem; font-size: .82rem; }
}

/* =========================================================
   Haberler sayfası — mobil (sayfalar/haberler/haberler.blade.php, .nw-list)
   İlk haber manşet kartı; diğerleri küçük görselli sade liste.
   Seçiciler .inner-page__wrapper ile başlar: ic-sayfa.css / pages.css kurallarını ezmek için.
   ========================================================= */
@media (max-width: 767px) {
  html body .inner-page__wrapper .cards.nw-list ul.row { row-gap: 0 !important; margin: 0 !important; }
  html body .inner-page__wrapper .cards.nw-list ul.row > li.card { margin: 0 !important; padding: 0 !important; }

  /* Manşet (ilk büyük kart): görsel üstte, altında beyaz alan + lacivert başlık */
  html body .inner-page__wrapper .cards.nw-list li.card.col-lg-8 { margin-bottom: .4rem !important; }
  html body .inner-page__wrapper .cards.nw-list li.card.col-lg-8 > a {
    overflow: hidden;
    border: 1px solid #e7ecf1;
    border-radius: 16px;
    background: #fff !important;
  }
  html body .inner-page__wrapper .cards.nw-list .cards-cover { border-radius: 0 !important; }
  html body .inner-page__wrapper .cards.nw-list .cards-cover.large img { aspect-ratio: 16 / 10; }
  html body .inner-page__wrapper .cards.nw-list .cards-body.large {
    display: flex !important;
    flex-direction: column-reverse;
    gap: .3rem;
    padding: .8rem 1rem .95rem !important;
  }
  html body .inner-page__wrapper .cards.nw-list .cards-body.large .title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: .98rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0b2540 !important;
  }
  html body .inner-page__wrapper .cards.nw-list .cards-body.large .date { margin-top: 0 !important; font-size: .68rem !important; color: #7a8794 !important; }

  /* Liste: küçük kare görsel solda, tarih + başlık sağda, ince çizgiyle ayrılır */
  html body .inner-page__wrapper .cards.nw-list li.card:not(.col-lg-8) { border-bottom: 1px solid #e7ecf1 !important; }
  html body .inner-page__wrapper .cards.nw-list li.card:not(.col-lg-8) > a {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: .85rem;
    align-items: center;
    padding: .75rem 0 !important;
  }
  html body .inner-page__wrapper .cards.nw-list .cards-header { margin: 0 !important; padding: 0 !important; }
  html body .inner-page__wrapper .cards.nw-list .cards-header .cards-photo { height: auto !important; border-radius: 10px !important; }
  html body .inner-page__wrapper .cards.nw-list .cards-header .cards-photo img { aspect-ratio: 1 / 1; }
  html body .inner-page__wrapper .cards.nw-list .cards-footer {
    display: flex !important;
    flex-direction: column-reverse;
    justify-content: center;
    gap: .25rem;
    height: auto !important;
    padding: 0 !important;
  }
  html body .inner-page__wrapper .cards.nw-list .cards-footer > .text { display: none !important; }
  html body .inner-page__wrapper .cards.nw-list .cards-footer .title {
    margin: 0 !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: .86rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0b2540 !important;
  }
  html body .inner-page__wrapper .cards.nw-list .cards-footer .sub { margin: 0 !important; padding: 0 !important; }
  html body .inner-page__wrapper .cards.nw-list .cards-footer .date,
  html body .inner-page__wrapper .cards.nw-list .cards-footer .date .text { margin: 0 !important; font-size: .66rem !important; }
}
