/* ============================================================
   Savaştepe Belediyesi — Tema Uyarlama Katmanı
   (Hazır temanın kurum kimliğine uyarlanması +
    Font Awesome 6 Free köprüsü + iç sayfa içerik stilleri)
   ============================================================ */

/* ---- Font Awesome 6 Pro sınıflarını Free sürüme köprüle ----
   Tema fa-light / fa-thin (Pro) kullanıyor; Free sürümde bu
   ağırlıklar yok, ikonlar boş kutu görünür. Solid'e eşliyoruz. */
.fa-light,
.fa-thin,
.fal,
.fat {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* ---- Logo kilidi (armalı yatay logo) ---- */
.hdr-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.hdr-logo-link:hover {
    font-weight: normal !important;
}

.hdr-logo-link img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    flex: 0 0 auto;
}

.hdr-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.hdr-logo-tc {
    font-size: 12px;
    letter-spacing: 3px;
    color: #6b6b6b;
    font-family: 'Sofia Pro Light', sans-serif;
}

.hdr-logo-title {
    font-size: 25px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: .5px;
}

.hdr-logo-sub {
    font-size: 14px;
    color: var(--colorred);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Kurum numarası temadaki kısa numaradan uzun;
   alt bilgide satır kırılmasın diye ölçekliyoruz. */
footer .foot_phone {
    font-size: 27px;
    line-height: 1.2;
    white-space: nowrap;
}

footer .foot_phone2 {
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
}

footer .mail_text {
    letter-spacing: 0.06em;
    font-size: 13px;
}

footer .foot_logo_lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

footer .foot_logo_lockup img {
    width: 96px;
    height: auto;
}

footer .foot_logo_lockup span {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .hdr-logo-link {
        justify-content: center;
        margin-bottom: 14px;
    }

    .hdr-logo-link img {
        width: 54px;
        height: 54px;
    }

    .hdr-logo-title {
        font-size: 20px;
    }
}

/* ---- Slider: veritabanından gelen görsellerin oranını koru ---- */
#carouselExampleCaptions .carousel-item img {
    width: 100%;
    height: 720px;
    max-height: 78vh;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1200px) {
    #carouselExampleCaptions .carousel-item img {
        height: 520px;
    }
}

@media (max-width: 991px) {
    #carouselExampleCaptions .carousel-item img {
        height: 360px;
    }
}

@media (max-width: 575px) {
    #carouselExampleCaptions .carousel-item img {
        height: 260px;
    }
}

/* ---- Ana sayfa duyuru/ilan/karar kutuları ----
   Temada satır yüksekliği 70px sabit; başlıklarımız tarih satırıyla birlikte
   iki satıra çıkabildiği için taşmayı önlüyoruz. */
#notice_area .notice_item {
    height: auto;
    min-height: 70px;
}

#notice_area .n_left {
    flex: 0 0 55px;
}

#notice_area .n_right {
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
}

#notice_area .d-left {
    min-width: 0;
    font-size: 13px;
}

#notice_area .d-left small {
    color: #9a9a9a;
    font-size: 12px;
    margin-bottom: 2px;
}

#notice_area .d-left span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

#notice_area .d-right {
    flex: 0 0 auto;
}

/* ---- Haber/duyuru kutuları eşit yükseklik ---- */
#page_news_area .news_box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#page_news_area .news_box img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

#page_news_area .news_box .news_content {
    flex: 1 1 auto;
}

/* ---- Sayfalama ---- */
.stp_pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 30px 0 10px;
}

.stp_pager a,
.stp_pager span {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-family: 'Sofia Pro Light', sans-serif;
}

.stp_pager a:hover {
    border-color: var(--colorred);
    color: var(--colorred) !important;
    font-weight: normal;
}

.stp_pager span.current {
    background: var(--colorred);
    border-color: var(--colorred);
    color: #fff;
}

/* ---- İç sayfa serbest içerik (CKEditor çıktısı) ---- */
.stp_content {
    font-family: 'Sofia Pro Light', sans-serif;
    line-height: 1.8;
    color: #333;
}

.stp_content h1,
.stp_content h2,
.stp_content h3,
.stp_content h4 {
    margin: 22px 0 12px;
}

.stp_content h2 {
    font-size: 24px;
}

.stp_content h3 {
    font-size: 20px;
}

.stp_content p {
    margin-bottom: 14px;
}

.stp_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.stp_content ul,
.stp_content ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.stp_content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.stp_content table td,
.stp_content table th {
    border: 1px solid #eaeaea;
    padding: 10px 12px;
}

.stp_content table th {
    background: #f7f7f7;
}

/* ---- Bilgi kartı / boş durum ---- */
.stp_empty {
    padding: 40px 20px;
    text-align: center;
    color: #9a9a9a;
    border: 1px dashed #e4e4e4;
    border-radius: 10px;
    font-family: 'Sofia Pro Light', sans-serif;
}

/* ---- Liste satırı (dosya/karar/telefon vb.) ---- */
.stp_row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    text-decoration: none;
    color: #222;
    transition: .2s;
}

.stp_row:hover {
    border-color: var(--colorred);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    color: #222 !important;
    font-weight: normal;
}

.stp_row_icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--colorred);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stp_row_icon.bg_orange {
    background: var(--colororange);
}

.stp_row_icon.bg_yellow {
    background: var(--coloryellow);
}

.stp_row_body {
    flex: 1 1 auto;
    min-width: 0;
}

.stp_row_body b {
    display: block;
    font-size: 15px;
    line-height: 1.4;
}

.stp_row_body small {
    color: #9a9a9a;
    font-size: 13px;
}

.stp_row_go {
    flex: 0 0 auto;
    color: var(--colorred);
}

/* ---- Kişi kartı (meclis üyesi, muhtar, başkan yrd.) ---- */
.stp_person {
    text-align: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 14px;
    height: 100%;
    transition: .2s;
}

.stp_person:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
}

.stp_person img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f4f4f4;
}

.stp_person b {
    display: block;
    margin-top: 10px;
    font-size: 15px;
}

.stp_person small {
    display: block;
    color: #8b8b8b;
    font-size: 13px;
}

/* ---- Form ---- */
.stp_form label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    font-family: 'Sofia Pro Light', sans-serif;
}

.stp_form .form-control,
.stp_form .form-select {
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #e4e4e4;
    font-family: 'Sofia Pro Light', sans-serif;
}

.stp_form .form-control:focus,
.stp_form .form-select:focus {
    border-color: var(--colorred);
    box-shadow: none;
}

.stp_btn {
    background: var(--colorred);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    transition: .2s;
}

.stp_btn:hover {
    background: #d92f28;
    color: #fff;
}

/* ---- Başkan mesajı görseli: temadaki dış bağlantıyı ez ---- */
@media screen and (min-width: 992px) {
    .president_area {
        background-image: none !important;
        height: auto !important;
    }

    .president_area img:first-child {
        display: block !important;
        width: 100%;
        border-radius: 10px;
    }
}

/* ---- Hızlı erişim menüsü açılır kutusu ---- */
.slider_box2 .dropdown-content a {
    display: block;
}

/* ---- Sosyal medya alanı ----
   Temanın sabit 430px yüksekliği, sağdaki foto şeridi boşken devasa bir
   boşluk bırakıyor; içeriğe göre büyümesini sağlıyoruz. */
#social_area {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 45px;
}

#social_area .cst_row .row > [class*="col-"] {
    margin-bottom: 14px;
}

/* ============================================================
   Yeni bileşenler
   ============================================================ */

/* ---- Müdürlük kutuları ---- */
#management_area a {
    text-decoration: none;
    color: #1c1c1c;
}

#management_area a:hover {
    font-weight: normal;
}

.management_box .icon_area {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--colorred);
    transition: .4s;
}

.management_box:hover .icon_area {
    color: #fff;
}

.management_box .text_area {
    padding-right: 16px;
    font-weight: 600;
    line-height: 1.35;
}

/* ---- Müdürlük künyesi ---- */
.management_info .text_area small,
.management_info .bg_gry small {
    color: #8b8b8b;
    font-size: 12px;
}

.management_info .text_area b {
    font-size: 14px;
    line-height: 1.35;
    padding-right: 12px;
}

.management_info .bg_gry h5 {
    font-size: 16px;
    margin: 2px 0 0;
}

@media (max-width: 991px) {
    .management_info .bg_gry,
    .management_info .text_area {
        height: auto;
        min-height: 70px;
        padding: 12px;
        border-radius: 10px;
    }
}

/* ---- PDF / doküman kutusu ---- */
.pdf_box {
    background: #F5F5F5;
    border-radius: 10px;
    padding: 14px;
    height: 100%;
    transition: .3s;
}

.pdf_box:hover {
    background: #EAEAEA;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
}

.pdf_box .pdf_kapak {
    width: 100%;
    height: 165px;
    border-radius: 8px;
    padding: 14px;
    background: linear-gradient(135deg, var(--colorred) 0%, #d92f28 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.pdf_box .pdf_kapak img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.pdf_box .pdf_kapak span {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.3;
}

.pdf_box b {
    font-size: 14px;
    line-height: 1.35;
}

.pdf_box .pdf_yil {
    display: block;
    color: var(--colorred);
    font-size: 12px;
    margin-top: 2px;
}

/* ---- Sık sorulan sorular (accordion) ---- */
.accordion-button {
    font-family: 'Sofia Pro Medium', sans-serif;
    font-size: 15px;
}

.accordion-button:not(.collapsed) {
    color: var(--colorred);
    background: #F5F5F5;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #eaeaea;
}

.accordion-body {
    font-family: 'Sofia Pro Light', sans-serif;
    line-height: 1.8;
}

/* ---- Vefat ilanı kartı ---- */
.vefat_kart {
    border-left: solid 2px var(--colorred);
    background: #f9f9f9;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    height: 100%;
}

.vefat_kart .ad {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.vefat_kart .tarih {
    font-weight: 600;
    color: var(--colorred);
    font-size: 13px;
    margin-bottom: 6px;
}

.vefat_kart div {
    font-size: 13px;
    color: #444;
    font-family: 'Sofia Pro Light', sans-serif;
}

/* ---- Albüm kapak kutusu ---- */
.album_kart {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #F0F0F0;
    text-decoration: none;
    color: #1c1c1c;
    height: 100%;
}

.album_kart:hover {
    color: #1c1c1c !important;
    font-weight: normal;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.album_kart img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.album_kart .album_bilgi {
    padding: 12px 14px;
}

.album_kart .album_bilgi b {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.album_kart .album_bilgi small {
    color: var(--colorred);
    font-size: 12px;
}

/* ---- Tesis kartı ---- */
.tesis_kart img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
}

/* ---- Açılış duyurusu (popup) ---- */
#acilisDuyurusu .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

#acilisDuyurusu .modal-body {
    padding: 0;
    position: relative;
}

#acilisDuyurusu img {
    width: 100%;
    height: auto;
    display: block;
}

#acilisDuyurusu .kapat {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    z-index: 5;
}

/* ---- Savaştepe TV bölümü ----
   Temanın hazır kuralları yabancı amblemli bir arka plan görseli kullanıyordu;
   o dosya kaldırıldı, bölüm kurum kimliğiyle yeniden tanımlandı. */
#savastepe_tv {
    width: 100%;
    margin-top: -13px;
    padding: 25px 0;
    background: #fff;
}

#savastepe_tv h4 {
    color: var(--colorred) !important;
    font-weight: bold;
}

/* ---- Haber detay galerisi ----
   Temanın .slider_resp kuralı yüksekliği 400px'e sabitliyor, Owl da genişliği
   %100 yapıyor; object-fit olmadığı için görseller eziliyordu. Sahneyi
   letterbox'a çevirip arkaya bulanık kopya koyuyoruz: hiçbir foto bozulmuyor,
   dikey fotoğraflarda da boşluk göze batmıyor. */
#big .haber_sahne {
    position: relative;
    height: 460px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: #1c1c1c;
}

#big .haber_sahne::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(26px) brightness(.5);
    -webkit-backdrop-filter: blur(26px) brightness(.5);
    background: rgba(0, 0, 0, .28);
}

#big .haber_sahne img {
    position: relative;
    z-index: 1;
    width: auto !important;
    max-width: 100%;
    height: 100% !important;
    object-fit: contain;
}

#big .owl-nav button.owl-next,
#big .owl-nav button.owl-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

#big .owl-nav button.owl-prev { left: 14px; }
#big .owl-nav button.owl-next { right: 14px; }

#big .owl-nav button:hover {
    background: var(--colorred) !important;
}

/* Küçük resim şeridi: eşit boyutlu, kırpılmış küçük görseller */
#thumbs {
    margin-top: 10px;
}

/* Tema style.css'te .item 70px yükseklik + overflow:hidden veriyor; buradaki 88px'lik
   görselin altı kesiliyordu. Kabı görsele göre serbest bırakıyoruz. */
#thumbs .item {
    height: auto !important;
    line-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

#thumbs .item img {
    height: 88px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s;
}

#thumbs .owl-item.current img,
#thumbs .item img:hover {
    opacity: 1;
}

@media (max-width: 991px) {
    #big .haber_sahne { height: 300px; }
    #thumbs .item img { height: 60px; }
}

@media (max-width: 575px) {
    #big .haber_sahne { height: 230px; }
}

/* ---- Ana sayfa: "Savaştepe'de Neler Yapabilirsiniz" haritası ---- */
.harita_kutu {
    background: #F5F5F5;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.harita_baslik {
    padding: 20px 22px 14px;
}

.harita_baslik small {
    color: #9a9a9a;
    font-size: 13px;
    letter-spacing: 1px;
    font-family: 'Sofia Pro Light', sans-serif;
}

.harita_baslik h4 {
    color: var(--colorred);
    font-size: 22px;
    margin: 2px 0 8px;
    line-height: 1.2;
}

.harita_baslik p {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-family: 'Sofia Pro Light', sans-serif;
}

#savastepeHarita {
    flex: 1 1 auto;
    min-height: 300px;
    width: 100%;
    z-index: 1;
}

.harita_efsane {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 22px 20px;
    background: #fff;
}

.harita_efsane_oge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    background: #fff;
    font-size: 12.5px;
    font-family: 'Sofia Pro Light', sans-serif;
    color: #666;
    cursor: pointer;
    transition: .18s;
    opacity: .45;
}

.harita_efsane_oge.aktif {
    opacity: 1;
    border-color: #dcdcdc;
    color: #1c1c1c;
}

.harita_efsane_oge:hover {
    border-color: var(--colorred);
}

.harita_efsane_oge .nokta {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

/* Harita işaretleri ve balonu */
.harita-pin span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.harita-balon {
    max-width: 220px;
    font-family: 'Sofia Pro Light', sans-serif;
}

.harita-balon img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.harita-balon b {
    display: block;
    font-size: 14px;
    font-family: 'Sofia Pro Medium', sans-serif;
}

.harita-balon small {
    color: var(--colorred);
    font-size: 11.5px;
}

.harita-balon p {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
}

.harita-balon a {
    display: inline-block;
    margin-top: 8px;
    color: var(--colorred);
    font-size: 12.5px;
    text-decoration: none;
}

@media (max-width: 991px) {
    .harita_kutu { margin-top: 8px; }
    #savastepeHarita { min-height: 320px; }
}

/* Harita: sade gri zemin + iki sütunlu efsane */
.harita_kutu {
    background: #fff;
    border: 1px solid #ececec;
}

#savastepeHarita {
    background: #F0F0F0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.harita_efsane_2li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 16px 22px 20px;
}

.harita_efsane_2li .harita_efsane_oge {
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    padding: 4px 0;
    background: none;
    font-size: 13.5px;
}

.harita_efsane_2li .harita_efsane_oge:hover {
    color: var(--colorred);
}

.harita_efsane_2li .nokta {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .04);
}

/* Leaflet katkı yazısını sadeleştir */
.leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, .7) !important;
}

@media (max-width: 575px) {
    .harita_efsane_2li { grid-template-columns: 1fr; }
}

/* Harita zeminini soluk gri göster (harici servis gerekmez) */
#savastepeHarita .leaflet-tile-pane {
    filter: grayscale(1) contrast(.92) brightness(1.06);
}

/* Harita atfı: lisans gereği kalır, görsel olarak geri planda dursun */
#savastepeHarita .leaflet-control-attribution {
    background: transparent !important;
    color: #b0b0b0;
    font-size: 9px;
    padding: 0 5px;
    margin: 0;
    box-shadow: none;
}

#savastepeHarita .leaflet-control-attribution a {
    color: #b0b0b0;
    text-decoration: none;
}

#savastepeHarita .leaflet-control-attribution:hover {
    color: #6b6b6b;
}

/* ============================================================
   ANA SAYFA — haber bloğu (büyük görsel + dikey liste) ve harita
   İki kutu eşit sütunda ve aynı yükseklikte durur.
   ============================================================ */
:root {
    --anasayfa-blok: 470px;
}

/* ---- Blok: solda büyük görsel, sağda dikey haber listesi ---- */
#carouselMedia.haber_blok {
    display: flex;
    gap: 14px;
    align-items: stretch;
    height: var(--anasayfa-blok);
}

#carouselMedia .haber_ana {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#carouselMedia .carousel-item { height: 100%; }

#carouselMedia .haber_slayt {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

#carouselMedia .haber_slayt:hover { color: inherit !important; font-weight: normal; }

#carouselMedia .haber_sahne {
    flex: 1 1 auto;
    min-height: 0;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Tema .slider_resp'i 400px'e sabitleyip z-index:-1 ile geri plana atıyor */
#carouselMedia .haber_sahne .slider_resp {
    position: static;
    z-index: auto;
    width: auto !important;
    max-width: 100%;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

#carouselMedia .haber_bant {
    flex: 0 0 auto;
    padding: 13px 18px 15px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

#carouselMedia .haber_bant .news_date {
    display: block;
    color: var(--colorred);
    font-size: 12.5px;
    margin-bottom: 4px;
}

#carouselMedia .haber_bant h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    color: #1c1c1c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#carouselMedia .haber_slayt:hover .haber_bant h4 { color: var(--colorred); }

/* ---- Dikey haber listesi (carousel göstergeleri) ---- */
#carouselMedia .haber_liste {
    position: static;
    flex: 0 0 236px;
    width: 236px;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
}

#carouselMedia .haber_liste_baslik {
    flex: 0 0 auto;
    padding: 12px 15px;
    font-family: 'Sofia Pro Medium', sans-serif;
    font-size: 12.5px;
    letter-spacing: 1.2px;
    color: #fff;
    background: var(--colorred);
}

#carouselMedia .haber_liste_oge {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid #f2f2f2;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: #fff;
    text-align: left;
    text-indent: 0;
    opacity: 1;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}

#carouselMedia .haber_liste_oge:hover { background: #fafafa; }

#carouselMedia .haber_liste_oge.active {
    background: #fdf4f3;
    border-left-color: var(--colorred);
}

#carouselMedia .haber_liste_oge img {
    flex: 0 0 52px;
    width: 52px !important;
    height: 40px !important;
    margin: 0 !important;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    box-shadow: none;
}

#carouselMedia .haber_liste_metin {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#carouselMedia .haber_liste_metin small {
    color: var(--colorred);
    font-size: 10.5px;
    line-height: 1;
    font-family: 'Sofia Pro Light', sans-serif;
}

#carouselMedia .haber_liste_metin b {
    font-family: 'Sofia Pro Medium', sans-serif;
    font-size: 12.5px;
    line-height: 1.3;
    color: #1c1c1c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#carouselMedia .haber_liste_oge.active .haber_liste_metin b { color: var(--colorred); }

#carouselMedia .haber_liste_tumu {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    color: var(--colorred);
    font-family: 'Sofia Pro Medium', sans-serif;
    font-size: 12.5px;
    text-decoration: none;
    transition: background .18s, color .18s;
}

#carouselMedia .haber_liste_tumu:hover {
    background: var(--colorred);
    color: #fff !important;
    font-weight: normal;
}

/* ---- Oklar: yalnızca büyük görselin üstünde ---- */
#carouselMedia .carousel-control-prev,
#carouselMedia .carousel-control-next {
    height: 100%;
    width: 46px;
    opacity: 0;
    transition: opacity .2s;
}

#carouselMedia:hover .carousel-control-prev,
#carouselMedia:hover .carousel-control-next { opacity: .9; }

#carouselMedia .carousel-control-prev { left: 0; right: auto; }
#carouselMedia .carousel-control-next { left: auto; right: 250px; }

#carouselMedia .carousel-control-prev-icon,
#carouselMedia .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, .45);
    border-radius: 50%;
    padding: 15px;
    background-size: 45%;
}

/* ---- Harita kutusu aynı yükseklikte ---- */
@media (min-width: 992px) {
    .harita_kutu { height: var(--anasayfa-blok); }
}

/* ---- Duyarlılık ---- */
@media (max-width: 1399px) {
    :root { --anasayfa-blok: 420px; }
    #carouselMedia .haber_liste { flex-basis: 200px; width: 200px; }
    #carouselMedia .carousel-control-next { right: 214px; }
    #carouselMedia .haber_bant h4 { font-size: 15.5px; }
}

@media (max-width: 991px) {
    :root { --anasayfa-blok: auto; }

    #carouselMedia.haber_blok { flex-direction: column; height: auto; }
    #carouselMedia .haber_ana { height: 300px; }
    #carouselMedia .haber_liste { flex: 1 1 auto; width: 100%; }

    #carouselMedia .carousel-control-prev,
    #carouselMedia .carousel-control-next { height: 300px; }
    #carouselMedia .carousel-control-next { right: 0; }
}

@media (max-width: 575px) {
    #carouselMedia .haber_ana { height: 220px; }
    #carouselMedia .carousel-control-prev,
    #carouselMedia .carousel-control-next { height: 220px; }
    #carouselMedia .haber_bant h4 { font-size: 15px; }
}

/* Harita kutusu sabit yükseklikte: efsane tam görünsün, yeri haritadan alınsın */
@media (min-width: 992px) {
    #savastepeHarita {
        flex: 1 1 auto;
        min-height: 0;
    }

    .harita_efsane_2li {
        flex: 0 0 auto;
    }
}

/* Efsanede kapalı kategori: soluk ve üstü çizili nokta */
.harita_efsane_oge:not(.aktif) .nokta {
    background: #d4d4d4 !important;
    box-shadow: none;
}

/* ============================================================
   İç sayfa görsel slider'ı (.sayfa-slider)
   Tarihçe / okul / ulaşım gibi sayfalarda görseller yana kayar.
   NOT: Bu bölüm eksikti; stil olmadığı için görseller alt alta diziliyordu.
   ============================================================ */
.sayfa-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #101010;
    margin-bottom: 22px;
    -webkit-user-select: none;
    user-select: none;
}

.sayfa-slider-track {
    display: flex;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.sayfa-slider-slide {
    position: relative;
    flex: 0 0 100%;
    max-width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Dikey/yatay karışık fotoğraflar ezilmesin diye arkada bulanık kopya durur */
.sayfa-slider-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(26px) brightness(.5);
    -webkit-backdrop-filter: blur(26px) brightness(.5);
    background: rgba(0, 0, 0, .28);
}

.sayfa-slider-slide img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sayfa-slider-caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}

/* Yalnızca birden fazla görsel varsa oklar ve noktalar basılıyor */
.sayfa-slider-btn {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.sayfa-slider-btn:hover,
.sayfa-slider-btn:focus-visible { background: var(--colorred); }
.sayfa-slider-prev { left: 14px; }
.sayfa-slider-next { right: 14px; }

.sayfa-slider-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.sayfa-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: background .2s, width .2s;
}

.sayfa-slider-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 5px;
}

/* Altta küçük resim şeridi (JS üretir) */
.sayfa-slider-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: -12px 0 22px;
    scrollbar-width: thin;
}

.sayfa-slider-thumb {
    flex: 0 0 auto;
    width: 108px;
    height: 72px;
    border: none;
    padding: 0;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    opacity: .55;
    background: #eee;
    transition: opacity .2s, box-shadow .2s;
}

.sayfa-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sayfa-slider-thumb:hover { opacity: .85; }

.sayfa-slider-thumb.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--colorred);
}

@media (max-width: 991px) {
    .sayfa-slider-slide { height: 320px; }
    .sayfa-slider-thumb { width: 88px; height: 58px; }
}

@media (max-width: 575px) {
    .sayfa-slider-slide { height: 230px; }
    .sayfa-slider-btn { width: 36px; height: 36px; font-size: 14px; }
    .sayfa-slider-prev { left: 8px; }
    .sayfa-slider-next { right: 8px; }
    .sayfa-slider-caption { font-size: 12.5px; padding: 20px 14px 12px; }
    .sayfa-slider-thumb { width: 74px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .sayfa-slider-track { transition: none; }
}

/* ============================================================
   Üst menü: aktif/üzerine gelinen öğe keskin kutu yerine hap (pill)
   Tıklama alanı tam yükseklikte kalıyor; kırmızı zemin ayrı bir
   katman olarak çiziliyor ki açılır menüye geçerken boşluk oluşmasın.
   ============================================================ */
.menu_bar .navbar-nav .nav-link {
    position: relative;
    z-index: 1;
}

/* Temanın keskin köşeli dolgusunu iptal et */
.menu_bar .navbar-nav .nav-link:hover,
.menu_bar .navbar-nav .nav-link.active,
.menu_bar .navbar-nav .nav-item:hover > .nav-link,
.menu_bar .navbar-nav .nav-item.show > .nav-link {
    background: transparent !important;
    color: #fff !important;
}

.menu_bar .navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 1px;
    right: 1px;
    top: 11px;
    bottom: 11px;
    border-radius: 999px;
    background: var(--colorred);
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s ease, transform .22s cubic-bezier(.34, 1.4, .64, 1);
}

.menu_bar .navbar-nav .nav-link:hover::before,
.menu_bar .navbar-nav .nav-link.active::before,
.menu_bar .navbar-nav .nav-item:hover > .nav-link::before,
.menu_bar .navbar-nav .nav-item.show > .nav-link::before {
    opacity: 1;
    transform: scale(1);
}

/* Açılır menüyü de hap biçimiyle uyumlu yumuşat */
.menu_bar .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #efefef;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
    overflow: hidden;
    padding: 6px;
}

.menu_bar .dropdown-menu .dropdown-item {
    border-radius: 8px;
}

@media (max-width: 991px) {
    /* Mobilde menü dikey açıldığı için hap yerine yumuşak köşe yeterli */
    .menu_bar .navbar-nav .nav-link::before {
        top: 3px;
        bottom: 3px;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu_bar .navbar-nav .nav-link::before { transition: none; transform: none; }
}


/* ============================================================
   Nöbetçi Eczaneler kutusu — her gün değişen bilgi olduğu için
   dikkat çeksin diye yavaş nabız halkası + ışık geçişi.
   .icon4 kutunun kendi background-image'ını kullandığından
   efektler ayrı katmanlarda (::before / ::after) çiziliyor.
   ============================================================ */
.slider_box.icon4 {
    position: relative;
    overflow: hidden;
    animation: eczaneNabiz 2.8s ease-in-out infinite;
}

/* Dışa doğru açılan halka */
.slider_box.icon4::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #F9423A;
    opacity: 0;
    animation: eczaneHalka 2.8s ease-out infinite;
    pointer-events: none;
}

/* Soldan sağa süzülen ışık */
.slider_box.icon4::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-18deg);
    animation: eczaneParilti 4.6s ease-in-out infinite;
    pointer-events: none;
}

/* Fareyle üzerine gelince kutu beyaza döndüğü için efektler durur */
.slider_box.icon4:hover {
    animation: none;
}

.slider_box.icon4:hover::before,
.slider_box.icon4:hover::after {
    animation: none;
    opacity: 0;
}

@keyframes eczaneNabiz {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 66, 58, .55); }
    50%      { box-shadow: 0 0 18px 4px rgba(249, 66, 58, .38); }
}

@keyframes eczaneHalka {
    0%   { transform: scale(1);    opacity: .65; }
    70%  { transform: scale(1.14); opacity: 0; }
    100% { transform: scale(1.14); opacity: 0; }
}

@keyframes eczaneParilti {
    0%, 55%  { left: -60%; }
    85%, 100% { left: 115%; }
}

@media (prefers-reduced-motion: reduce) {
    .slider_box.icon4,
    .slider_box.icon4::before,
    .slider_box.icon4::after { animation: none; }
    .slider_box.icon4::before { opacity: .5; }
}

/* ============================================================
   Kart ve kutu etkileşimleri
   Temada haber kartları için tek bir hover kuralı yoktu.
   ============================================================ */

/* ---- Haber / duyuru kartları ---- */
.news_box {
    transition: transform .28s cubic-bezier(.4, 0, .2, 1),
                box-shadow .28s cubic-bezier(.4, 0, .2, 1);
}

/* Görselin yakınlaşması kartın dışına taşmasın */
.news_box > a:first-of-type {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.news_box img {
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.news_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .13);
}

.news_box:hover img { transform: scale(1.07); }

.news_box .news_title b {
    transition: color .2s ease;
}

.news_box:hover .news_title b { color: var(--colorred); }

/* "Devamı" düğmesindeki ok hafifçe ilerlesin */
.news_box .news_button i {
    transition: transform .25s ease;
}

.news_box:hover .news_button i { transform: translateX(4px); }

/* ---- Ana sayfa hızlı erişim kutuları ---- */
/* Temada geçiş 0.3s ama yalnızca renk değişiyordu; yükselme ve gölge eklendi */
.slider_box,
.slider_box2 {
    transition: background .28s ease,
                color .28s ease,
                transform .28s cubic-bezier(.4, 0, .2, 1),
                box-shadow .28s cubic-bezier(.4, 0, .2, 1);
}

.slider_box:hover,
.slider_box2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

/* ---- Liste satırı ve doküman kartları ---- */
.stp_row {
    transition: border-color .2s ease, box-shadow .22s ease, transform .22s ease;
}

.stp_row:hover { transform: translateX(3px); }

.stp_row_go i {
    transition: transform .25s ease;
}

.stp_row:hover .stp_row_go i { transform: translateX(4px); }


/* ============================================================
   Erişilebilirlik
   ============================================================ */

/* İçeriğe atla: klavye kullanıcıları menüyü her seferinde geçmesin */
.stp_atla {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 12px 22px;
    background: var(--colorred);
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 10px 0;
    font-weight: 600;
}

.stp_atla:focus {
    left: 0;
    color: #fff !important;
}

/* Klavyeyle gezinirken odak görünür olsun (fareyle tıklayınca çıkmaz) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #1f6feb;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Kırmızı zemin üzerinde mavi halka okunmuyor; beyaza çeviriyoruz */
.menu_bar .nav-link:focus-visible,
.right_menu_box a:focus-visible,
.slider_box a:focus-visible,
.stp_btn:focus-visible,
.sayfa-slider-btn:focus-visible {
    outline-color: #fff;
}

/* Ekran okuyucuya özel metin */
.stp_gizli {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .news_box,
    .news_box img,
    .slider_box,
    .slider_box2,
    .stp_row { transition: none; }

    .news_box:hover,
    .slider_box:hover,
    .slider_box2:hover,
    .stp_row:hover { transform: none; }

    .news_box:hover img { transform: none; }
}

/* ============================================================
   Detay sayfası kapak görseli (.stp_sahne)
   Görseller w-100 idi ve yükseklik sınırı yoktu; dikey ya da çok
   büyük fotoğraflar sayfanın tamamını kaplıyordu. Sahne sabit
   yükseklikte, görsel oranını koruyor, arkada bulanık kopya var.
   ============================================================ */
.stp_sahne {
    position: relative;
    height: 420px;
    margin-bottom: 26px;
    border-radius: 10px;
    overflow: hidden;
    background: #101010;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stp_sahne::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(26px) brightness(.5);
    -webkit-backdrop-filter: blur(26px) brightness(.5);
    background: rgba(0, 0, 0, .28);
}

.stp_sahne img {
    position: relative;
    z-index: 1;
    width: auto !important;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

@media (max-width: 991px) { .stp_sahne { height: 320px; } }
@media (max-width: 575px) { .stp_sahne { height: 225px; } }

/* Portre görseller (müdür, üye fotoğrafı) — oranı koru, taşmasın */
.stp_portre {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-inline: auto;
}

/* ============================================================
   Ana sayfa tanıtım videosu
   Slider görselleriyle aynı ölçüleri kullanır ki düzen kaymasın.
   ============================================================ */
.anasayfa_video {
    display: block;
    width: 100%;
    height: 720px;
    max-height: 78vh;
    object-fit: cover;
    object-position: center;
    background: #0d2b1e;   /* yüklenene kadar koyu yeşil zemin */
}

@media (max-width: 1200px) { .anasayfa_video { height: 520px; } }
@media (max-width: 991px)  { .anasayfa_video { height: 360px; } }
@media (max-width: 575px)  { .anasayfa_video { height: 260px; } }

/* Video yüklenmemişken poster görseli kadraja otursun */
.anasayfa_video[poster] { background-size: cover; background-position: center; }

/* ============================================================
   Üst menüdeki sosyal medya kutusu
   (Savaştepe TV ve E-Belediye düğmelerinin yerini aldı)
   ============================================================ */
.sosyal_kutu {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 14px;
    margin-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, .28);
}

.sosyal_bag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 16px;
    background: rgba(255, 255, 255, .14);
    transition: background .2s ease, transform .2s ease, color .2s ease;
}

.sosyal_bag:hover,
.sosyal_bag:focus-visible {
    background: #fff;
    color: var(--colorred) !important;
    transform: translateY(-2px);
    font-weight: normal !important;
}

@media (max-width: 991px) {
    .sosyal_kutu {
        height: auto;
        padding: 10px 0 10px 14px;
        justify-content: center;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .28);
        margin-left: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sosyal_bag { transition: none; }
    .sosyal_bag:hover { transform: none; }
}
