/* ============================================================
   TEDB - Ana Stil Dosyası
   Renk: Koyu Lacivert #1a2a4a + Kırmızı #c0392b + Beyaz
   ============================================================ */

:root {
  --lacivert:    #1a2a4a;
  --lacivert-dk: #122038;
  --kirmizi:     #c0392b;
  --kirmizi-dk:  #a93226;
  --bej:         #f5f1eb;
  --gri:         #6c757d;
  --border:      #dee2e6;
}

/* ── Genel ────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #333;
  background: #fff;
  padding-top: 0;
}
a { color: var(--lacivert); text-decoration: none; transition: color .2s; }
a:hover { color: var(--kirmizi); }
img { max-width: 100%; }
h1,h2,h3,h4,h5,h6 { font-family: 'Oswald', sans-serif; }

/* ── Üst Bar ──────────────────────────────────────────────── */
.top-bar {
  background: var(--lacivert-dk);
  color: #cdd5e0;
  font-size: 13px;
  padding: 7px 0;
}
.top-bar a { color: #cdd5e0; }
.top-bar a:hover { color: #fff; }
.top-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: #cdd5e0;
  font-size: 12px;
  transition: background .2s, color .2s;
}
.top-social:hover { background: var(--kirmizi); color: #fff; }

/* ── Ticker ───────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--kirmizi);
  color: #fff;
  padding: 6px 0;
  overflow: hidden;
}
.ticker-row { display: flex; align-items: center; gap: 12px; }
.ticker-label {
  background: var(--kirmizi-dk);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  white-space: nowrap;
  border-radius: 2px;
  flex-shrink: 0;
}
.ticker-content { overflow: hidden; flex: 1; }
.ticker-inner {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-item { font-size: 13px; padding-right: 60px; }
.ticker-item a { color: #fff; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Navbar ───────────────────────────────────────────────── */
.main-navbar {
  background: var(--lacivert) !important;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.navbar-logo { height: 54px; width: auto; }
.navbar-brand-text { color: #fff; font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 600; }
.main-navbar .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 18px 14px !important;
  transition: color .2s, border-bottom .2s;
  border-bottom: 3px solid transparent;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: #fff !important;
  border-bottom-color: var(--kirmizi);
}
.dropdown-menu { border-radius: 0; border: none; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.dropdown-item { font-size: 13.5px; padding: 9px 18px; }
.dropdown-item:hover { background: var(--lacivert); color: #fff; }

/* ── Dropdown hover (masaüstü) ────────────────────────────── */
@media (min-width: 992px) {
  .main-navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeInDown .18s ease;
  }
  .main-navbar .nav-item.dropdown > .nav-link {
    pointer-events: auto;
  }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Breadcrumb ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--lacivert) 0%, var(--lacivert-dk) 100%);
  color: #fff;
  padding: 40px 0 30px;
}
.page-hero h1 { font-size: 28px; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-swiper { width: 100%; height: 520px; }
@media(max-width:768px) { .hero-swiper { height: 320px; } }
.hero-slide {
  position: relative;
  background: var(--lacivert);
  overflow: hidden;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero-caption {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  padding: 20px;
  z-index: 2;
}
.hero-caption h2 {
  font-size: clamp(22px, 4vw, 44px);
  font-family: 'Oswald', sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: 12px;
}
.hero-caption p { font-size: clamp(14px, 2vw, 18px); opacity: .9; max-width: 700px; }
.hero-caption .btn-hero {
  background: var(--kirmizi); color: #fff; border: none;
  font-size: 15px; font-weight: 600; padding: 10px 32px;
  border-radius: 2px; letter-spacing: .5px;
  margin-top: 16px;
  transition: background .2s, transform .2s;
}
.hero-caption .btn-hero:hover { background: var(--kirmizi-dk); transform: translateY(-2px); }
.swiper-pagination-bullet { background: rgba(255,255,255,.6); }
.swiper-pagination-bullet-active { background: var(--kirmizi); }

/* ── MLS Bandı ────────────────────────────────────────────── */
.mls-band {
  background: #f0f4fa;
  border-top: 3px solid var(--lacivert);
  padding: 14px 0;
}
.mls-band .container { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.mls-band a { font-weight: 700; color: var(--lacivert); font-size: 15px; }
.mls-band a:hover { color: var(--kirmizi); }

/* ── Reklam Bandı ─────────────────────────────────────────── */
.reklam-wrap { padding: 16px 0; background: #fff; }
.reklam-cerceve {
  max-width: 2000px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}
.reklam-cerceve .reklam-slide img { width: 100%; height: 300px; object-fit: cover; display: block; }
.reklam-slide.reklam-gizli { display: none; }
.mls-tag {
  background: var(--lacivert); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 2px; letter-spacing: 1px;
}

/* ── Bölüm Başlığı ────────────────────────────────────────── */
.section-wrap { padding: 56px 0; }
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--lacivert);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 32px;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--kirmizi);
}
.section-nav-tabs { border-bottom: 2px solid var(--lacivert); margin-bottom: 28px; }
.section-nav-tabs .nav-link {
  color: var(--gri); border: none; border-bottom: 3px solid transparent;
  font-weight: 600; font-size: 14px; padding: 10px 20px; margin-bottom: -2px;
}
.section-nav-tabs .nav-link.active,
.section-nav-tabs .nav-link:hover { color: var(--lacivert); border-bottom-color: var(--kirmizi); }

/* ── Haber Kartı ──────────────────────────────────────────── */
.news-card {
  border: none;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.news-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.14); transform: translateY(-4px); }
.news-card-img-wrap {
  height: 200px;
  overflow: hidden;
  background: #eee;
}
.news-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-card:hover .news-card-img-wrap img { transform: scale(1.06); }
.news-card-body { padding: 16px; }
.news-card-date { font-size: 12px; color: var(--gri); }
.news-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  color: var(--lacivert);
  margin: 6px 0 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--kirmizi); }
.news-card-excerpt { font-size: 13px; color: #555; line-height: 1.6; }

/* ── Duyuru List ──────────────────────────────────────────── */
.duyuru-item {
  border-left: 3px solid var(--kirmizi);
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
  transition: background .2s;
}
.duyuru-item:hover { background: #f0f4fa; }
.duyuru-item-date { font-size: 11px; color: var(--gri); }
.duyuru-item-title { font-size: 14.5px; font-weight: 500; color: var(--lacivert); margin: 2px 0 0; }
.duyuru-item-title a:hover { color: var(--kirmizi); }

/* ── İl Temsilcisi Kartı ──────────────────────────────────── */
.temsilci-card {
  background: var(--lacivert);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 20px 16px 18px;
  margin-bottom: 6px;
}
.temsilci-foto-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid rgba(255,255,255,.25);
}
.temsilci-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.temsilci-bilgi .temsilci-ad {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
  text-align: center;
}
.temsilci-bilgi .temsilci-tel {
  font-size: 14px;
  font-weight: 700;
  color: #8ba4c8;
  letter-spacing: .5px;
  text-align: center;
}

/* ── Başkan Mesajı ────────────────────────────────────────── */
.baskan-wrap {
  background: var(--lacivert);
  color: #fff;
  padding: 56px 0;
}
.baskan-foto {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,.25);
}
.baskan-isim { font-size: 22px; font-family: 'Oswald', sans-serif; margin: 12px 0 2px; }
.baskan-unvan { font-size: 14px; opacity: .75; margin-bottom: 16px; }
.baskan-mesaj { font-size: 15px; line-height: 1.8; opacity: .9; max-width: 700px; }

/* ── Detay Sayfası ────────────────────────────────────────── */
.detail-wrap { padding: 48px 0; }
.detail-cover-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; margin-bottom: 24px; }
.detail-title { font-size: 30px; font-family: 'Oswald', sans-serif; color: var(--lacivert); }
.detail-meta { font-size: 13px; color: var(--gri); margin-bottom: 20px; }
.detail-content { font-size: 15.5px; line-height: 1.9; color: #333; }
.detail-content img { max-width: 100%; border-radius: 4px; }

/* ── Form ─────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--lacivert);
  box-shadow: 0 0 0 .2rem rgba(26,42,74,.18);
}
.btn-primary-tedb {
  background: var(--lacivert);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 2px;
  transition: background .2s;
}
.btn-primary-tedb:hover { background: var(--lacivert-dk); color: #fff; }
.btn-danger-tedb {
  background: var(--kirmizi);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 2px;
}
.btn-danger-tedb:hover { background: var(--kirmizi-dk); color: #fff; }

/* ── Footer ───────────────────────────────────────────────── */
.footer-main {
  background: var(--lacivert);
  color: #aab8cc;
  padding: 56px 0 0;
}
.footer-logo { height: 50px; }
.footer-brand { color: #fff; font-size: 18px; }
.footer-desc { font-size: 13.5px; line-height: 1.7; color: #97abc0; }
.footer-title {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--kirmizi);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: #97abc0; font-size: 13.5px; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { display: flex; gap: 10px; font-size: 13.5px; color: #97abc0; margin-bottom: 10px; }
.footer-contact-list li i { color: var(--kirmizi); flex-shrink: 0; margin-top: 3px; }
.footer-contact-list a { color: #97abc0; }
.footer-contact-list a:hover { color: #fff; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  color: #97abc0;
  font-size: 13px;
  margin-right: 6px;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--kirmizi); border-color: var(--kirmizi); color: #fff; }
.footer-hr { border-color: rgba(255,255,255,.1); margin: 36px 0 0; }
.footer-bottom { background: var(--lacivert-dk); color: #6d8199; font-size: 13px; padding: 14px 0; }
.footer-bottom p { margin: 0; }

/* ── Çerez ────────────────────────────────────────────────── */
.cookie-notice {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(26,42,74,.97);
  color: #cdd5e0;
  padding: 14px 0;
  font-size: 13.5px;
}

/* ── Admin ────────────────────────────────────────────────── */
.admin-sidebar {
  background: var(--lacivert);
  min-height: 100vh;
  width: 260px;
  position: fixed; left: 0; top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: width .25s;
}
.admin-sidebar-logo {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar-logo img { height: 42px; }
.admin-sidebar-logo span { color: #fff; font-family: 'Oswald', sans-serif; font-size: 18px; }
.admin-nav-group { padding: 10px 0 4px; }
.admin-nav-label {
  color: rgba(255,255,255,.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 20px 4px;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.78);
  padding: 9px 20px;
  font-size: 13.5px;
  transition: background .2s, color .2s;
}
.admin-nav-link i { width: 18px; text-align: center; font-size: 14px; }
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.active { background: rgba(255,255,255,.12); color: #fff; border-left: 3px solid var(--kirmizi); }
.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  background: #f4f6fa;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e0e6ef;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-page-wrap { padding: 24px; }
.admin-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-card-title { font-size: 18px; font-weight: 600; color: var(--lacivert); margin-bottom: 20px; }
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 16px;
}
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  background: var(--lacivert);
  flex-shrink: 0;
}
.stat-card-icon.red { background: var(--kirmizi); }
.stat-card-icon.green { background: #27ae60; }
.stat-card-icon.orange { background: #e67e22; }
.stat-card-num { font-size: 26px; font-weight: 700; color: #1e293b; }
.stat-card-lbl { font-size: 12px; color: var(--gri); }

/* ── Utility ──────────────────────────────────────────────── */
.badge-durum-aktif  { background: #27ae60; color: #fff; }
.badge-durum-pasif  { background: #95a5a6; color: #fff; }
.text-lacivert { color: var(--lacivert) !important; }
.bg-lacivert   { background: var(--lacivert) !important; }
.border-lacivert { border-color: var(--lacivert) !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .admin-sidebar { width: 0; overflow: hidden; }
  .admin-content { margin-left: 0; }
  .admin-sidebar.show { width: 260px; }
}
@media (max-width: 768px) {
  .hero-swiper { height: 260px; }
  .section-wrap { padding: 36px 0; }
  .baskan-wrap  { padding: 36px 0; }
}
