/* =========================
   GENEL AYARLAR & RENKLER
   ========================= */
:root {
    --primary: #1f3553;
    /* Üst mavi bant */
    --primary-dark: #182843;
    --accent: #2f8d4e;
    /* E-Belediye yeşili */
    --bg-light: #f4f5f8;
    --text-main: #222831;
    --text-muted: #7b8190;
    --border-soft: #e1e4ec;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* Linkler çok parlamasın */
a {
    color: inherit;
}

a:hover {
    color: inherit;
}

/* Bootstrap override'ları ufak dokunuşlar */
.bg-primary {
    background-color: var(--primary) !important;
}

.navbar-dark .navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.75rem 0.9rem;
    color: #e8edf7;
}

/* Logo boyutu */
.nav-logo {
    height: 42px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: .3px;
    padding: 10px 14px !important;
    color: #e2e8f0 !important;
    transition: 0.25s ease;
}

/* Hover efekti */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    padding: 8px 0;
    border-radius: 10px;
    background: #ffffff;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 8px 16px;
    color: #334155 !important;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

/* Fade-in effect */
.fade-menu {
    animation: fadeMenu .25s ease forwards;
}

@keyframes fadeMenu {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobil Menü */
.navbar-toggler {
    border: none;
}

.navbar-toggler i {
    font-size: 1.4rem;
    color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.3rem;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
}

/* Üst şerit */
.top-strip {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ana navbar */
.site-navbar {
    background: #1e3a8a;
    /* daha profesyonel lacivert */
    padding-top: 12px;
    padding-bottom: 12px;
}

/* NAV MENÜ DÜZELTME */
.site-navbar .navbar-nav .nav-link {
    display: inline-flex;
    /* ikon + yazı aynı hizada */
    align-items: center;
    /* dikey ortala */
    gap: 0.35rem;
    /* ikon ile yazı arası boşluk */
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: .3px;
    padding: 10px 14px !important;
    color: #e2e8f0 !important;
    white-space: nowrap;
    /* FAALİYET / PROJELER tek satır kalsın */
}

/* Logo yazısı */
.logo-text {
    font-size: 1rem;
    letter-spacing: 1.2px;
}

/* Navbar shadow */
.main-navbar {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

/* =========================
   HERO ALANI (Ana sayfa)
   ========================= */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.70),
            rgba(15, 23, 42, 0.80));
    z-index: 1;
}

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

/* Arama Barı */
.hero-search {
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
}

.hero-search input {
    padding-left: 10px;
}

.search-icon {
    background: #fff;
    font-size: 1.1rem;
}

.scroll-inner {
    align-items: center;
    /* Dikey ortalama (yüksekliği varsa) */
    justify-content: center;
    /* Yatay ortalama */
}


.scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.scroll-inner {
    display: flex;
    gap: 12px;
    padding: 0 12px;

    /* 🔥 kritik */
    justify-content: center;
    width: max-content;
    margin: 0 auto;
}

.info-item {
    flex: 0 0 auto;
    min-width: 160px;
}


/* Kartlar */
.info-item {
    display: flex;
    flex-direction: column;
    /* Üst üste gelsin */
    justify-content: center;
    /* Dikey ortalama */
    align-items: center;
    /* Yatay ortalama */
    text-align: center;
    /* Metinleri ortala */
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    min-width: 140px;
    /* Kart genişliği sabit gibi */
    color: #000;
    text-decoration: none;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.info-item i {
    font-size: 1.7rem;
    display: block;
    margin-bottom: 8px;
}

.info-item small {
    opacity: 0.7;
    font-size: 0.75rem;
}


/* E-Belediye buton rengi */
.btn-success {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-success:hover {
    background-color: #276f3e;
    border-color: #276f3e;
}

/* =========================
   ALT KISIM – HABER / DUYURU STRIP
   ========================= */

.home-info-strip {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.info-box {
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.2s ease, transform 0.15s ease;
    color: var(--text-main);
    text-decoration: none;
}

.info-box:last-child {
    border-right: none;
}

.info-icon i {
    font-size: 1.3rem;
    color: var(--primary);
}

.info-title {
    font-size: 0.92rem;
}

.info-sub {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.info-box:hover {
    background: #f1f4fb;
    transform: translateY(-2px);
}

/* Mobilde kutular tam genişlik */
@media (max-width: 767.98px) {
    .home-info-strip {
        border-radius: 14px;
    }

    .info-box {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .info-box:last-child {
        border-bottom: none;
    }
}

/* =========================
   BAŞKAN BANNER (Hero sağ alt)
   ========================= */

.mayor-banner {
    right: 4%;
    bottom: 0;
}

/* Başkan kartı – istersen burada sadece isim yazacak */
.mayor-card {
    margin-bottom: 1rem;
    padding: 0.75rem 1.3rem;
    background: rgba(24, 40, 67, 0.92);
    border-radius: 14px 14px 0 0;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.mayor-name {
    font-size: 1rem;
}

.mayor-title {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* Eğer başkanın PNG'sini hero'ya oturtacaksan:
   .mayor-banner img { max-height: 360px; } gibi bir ayar ekleyebilirsin. */

/* =========================
   ANA SAYFA - İÇERİK
   ========================= */

.home-main {
    margin-top: -3rem;
    /* hero'dan hafif taşma efekti */
}

.home-main .card {
    border-radius: 16px;
    border-color: transparent;
    box-shadow: var(--shadow-soft);
}

.home-latest-news .card-title {
    font-size: 1rem;
}

.home-latest-news .card-text.small {
    font-size: 0.82rem;
}

/* Sidebar kart başlıkları */
.home-side-widgets .card-header {
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-soft);
}

/* =========================
   NEWS PAGE (haberler.html)
   ========================= */

.news-page {
    background: var(--bg-light);
}

.news-main .card {
    border-radius: 18px;
}

.news-list article {
    border-radius: 0;
}

.news-list .card-title,
.news-list h2 {
    font-size: 0.98rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 50%;
    margin: 0 2px;
    border: none;
    width: 32px;
    height: 32px;
    text-align: center;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: #ffffff;
}

/* =========================
   BAŞKAN SAYFASI (baskan.html)
   ========================= */

.mayor-page {
    background: #f0f2f6;
}

.mayor-page h1,
.mayor-page h2 {
    color: var(--primary-dark);
}

.mayor-page .ratio {
    background: #d9dde6;
}

/* Mayor mesaj kartı */
.mayor-message-card {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* =========================
   PROJELER / ETKİNLİKLER (projeler.html)
   ========================= */

.projects-page {
    background: var(--bg-light);
}

.projects-page .card {
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    border: none;
}

#projectTabs .nav-link {
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
}

#projectTabs .nav-link.active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

/* Quick action kartları */
.quick-action-card {
    border-radius: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-action-card .card-body {
    padding: 1.5rem 0.5rem;
}

.quick-action-card i {
    color: var(--primary);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* =========================
   PARTNER LOGO STRIP
   ========================= */

.partner-logos {
    background: #ffffff;
    border-top: 1px solid #e3e7f0;
    border-bottom: 1px solid #e3e7f0;
}

.partner-logo-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: #f3f5fb;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    background: #0f172a;
    /* daha modern koyu mavi-gri */
}

/* Footer Başlıkları */
.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Footer Linkleri */
.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 3px;
}

/* Sosyal Medya İkonları */
.footer-social .social-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.footer-social .social-icon:hover {
    background: #3b82f6;
}

/* Footer Logo */
.footer-logo {
    max-width: 150px;
}

/* Alt bar */
.footer-bottom {
    font-size: 0.8rem;
}


/* =========================
   KÜÇÜK DOKUNUŞLAR
   ========================= */

.small {
    font-size: 0.82rem !important;
}

/* Mobil padding’leri biraz daraltalım */
@media (max-width: 575.98px) {
    .hero-content {
        padding-inline: 0.5rem;
    }

    .home-main {
        margin-top: -2.1rem;
    }
}

/* Search suggest */
.search-suggest {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.search-suggest.active {
    display: block;
}

.suggest-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.85rem;
}

.suggest-item:hover {
    background: #f3f5f8;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 260px;
    height: 100%;
    background: #1f3553;
    color: white;
    padding: 20px;
    transition: .35s ease;
    z-index: 9999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-close {
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Haber kartı */
.news-card {
    transition: 0.25s ease;
    border-radius: 12px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* Görsel kapsayıcı */
.news-image-wrap {
    height: 100%;
    overflow: hidden;
}

.news-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.news-card:hover .news-image {
    transform: scale(1.08);
}

/* --- Featured News (Öne Çıkan Haberler) --- */

.featured-item {
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.25s ease;
}

.featured-item:last-child {
    border-bottom: none;
}

.featured-item:hover {
    background-color: #f8f9fc;
}

.featured-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.featured-item:hover img {
    transform: scale(1.07);
}

.extra-small {
    font-size: 11px;
}



/* --- Announcements (Duyurular) --- */

.announcement-item {
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.25s ease;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background-color: #f8f9fc;
}

.announcement-banner {
    background: linear-gradient(135deg, #0d6efd, #003f8c);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.weather-box .weather-temp {
    font-weight: 700;
}

.home-services {
    border-top: 1px solid #eef0f4;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5edff;
    color: #0d6efd;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.summary-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.summary-sub {
    font-size: 0.78rem;
}

.home-services {
    border-top: 1px solid #eef0f4;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5edff;
    color: #0d6efd;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.summary-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.summary-sub {
    font-size: 0.78rem;
}

.home-reservation .contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e7ecf5;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.home-reservation .contact-icon.whatsapp {
    background: #d1f7d8;
    color: #25d366;
}

.home-reservation input,
.home-reservation textarea,
.home-reservation select {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e1e5eb;
}

.home-reservation input:focus,
.home-reservation textarea:focus,
.home-reservation select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(66, 125, 255, 0.15);
}

/* Grid kartları */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    transition: transform .35s ease, filter .35s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.85);
}

/* Modal genel */
.gallery-modal .modal-content {
    background: radial-gradient(circle at top, #111 0, #000 55%);
}

/* Modal içindeki img */
.gallery-modal-inner {
    max-height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gallery-modal-img {
    max-height: 78vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

/* Caption */
.gallery-modal-caption {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Ok tuşları */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.55);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

.gallery-nav i {
    font-size: 1.1rem;
}

/* Küçük ekranlarda okları biraz indir */
@media (max-width: 576px) {
    .gallery-modal-inner {
        padding: 8px;
    }

    .gallery-nav {
        width: 34px;
        height: 34px;
    }
}

#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1d3d99;
    /* Belediye mavisi */
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .3s ease;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

#backToTop:hover {
    background: #16307a;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}