:root {
  --renk-siyah:    #1c1c1c; 
  --renk-gri:      #2b2d2e; 
  --renk-yesil:    #8ecf0b; 
  --renk-yesil-koyu: #5fa100;
  --renk-antrasit: #fdfdfd; 
  --renk-beyaz:    #fff;    
  --renk-acikgri:  #f0f0f0; 
  --renk-kutu:     #f8f9fb;
  --k-shadow:      0 2px 12px #0001;
}

body {
  background: var(--renk-kutu);
  color: var(--renk-siyah);
  font-family: 'Segoe UI', Arial, sans-serif;
  padding-top: 64px !important;
}

/* NAVBAR GENEL */
.navbar.fixed-top {
  min-height: 64px !important;
  background: var(--renk-beyaz) !important;
  box-shadow: var(--k-shadow);
  z-index: 1060 !important;
  border-bottom: 1.5px solid var(--renk-acikgri);
  padding: 0 !important;
}

.navbar .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 6px 18px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo Tam Ortada */
.navbar .navbar-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  color: var(--renk-yesil) !important;
  font-weight: 700;
  letter-spacing: .5px;
  pointer-events: none; 
}
.navbar .navbar-brand img { pointer-events: auto; }
.navbar .navbar-brand:hover { color: #b4fc1f !important; }

@media (min-width: 992px) {
  .navbar .navbar-brand {
    position: static !important;
    left: unset !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    pointer-events: auto;
  }
}

#kirmiziMenuToggle {
  margin-right: auto;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 2rem;
  background: transparent;
  border: none;
}

@media (max-width: 991px) {
  .navbar .container { justify-content: flex-start !important; }
  #kirmiziMenuToggle { order: 1; }
  .navbar .navbar-brand { order: 2; left: 50%; transform: translateX(-50%);}
  .ust-sag-butonlar { display: none !important; }
}
@media (min-width: 992px) {
  #kirmiziMenuToggle { display: none !important; }
}

.ust-sag-butonlar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s;
}
.ust-sag-butonlar .btn,
.ust-sag-butonlar .hover-btn {
  border-radius: 8px;
  transition: background 0.14s;
}

.sosyal-icon {
  color: #7c7c7c !important;
  font-size: 1.2rem;
  transition: color .15s, background .15s, transform .13s;
}
.sosyal-icon .bi-facebook { color: #1877f3 !important; }
.sosyal-icon .bi-instagram { color: #E1306C !important; }
.sosyal-icon .bi-youtube { color: #FF0000 !important; }
.sosyal-icon:hover, .sosyal-icon:focus-visible {
  background: #f7f7fa;
  color: var(--renk-yesil) !important;
  transform: scale(1.13);
}

/* Arama inputu */
.search-anim-wrap {
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: #f6f7fa;
  padding: 1px 6px;
  border: 1.3px solid #e1e1e7;
  box-shadow: 0 1.5px 6px #2221;
  margin-right: 3px;
}
.search-anim-input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--renk-siyah);
  font-size: 1rem;
  padding: 7px 3px;
  min-width: 140px;
}
.search-anim-input:focus { background: #fff; }
.search-icon-btn { 
  border: none; background: none; color: #949494; font-size: 1.18em; margin-left: 1px;
  cursor: pointer; display: flex; align-items: center;
}
.search-icon-btn:active { color: var(--renk-yesil); }

@media (max-width: 450px) {
  .search-anim-input { min-width: 90px; font-size: .98rem; }
}
#aramaKutuMobil {
  width: 70%;
  background: #f6f7fa;
  border-radius: 10px;

  box-sizing: border-box;
  display: flex;
  align-items: center;
  border: 1.4px solid #e1e1e7;
  box-shadow: 0 1.5px 6px #2221;
  gap: 8px;
}

#aramaInputMobil {
  flex: 1 1 100%;
  border: none;
  background: transparent;
  outline: none;
  color: #222;
  font-size: 1.04rem;
  padding: 9px 2px;
  min-width: 0;
}

#aramaBtnMobil {
  border: none;
  background: none;
  color: #7e7e7e;
  font-size: 1.22em;
  margin-left: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color .16s;
}
#aramaBtnMobil:hover {
  color: var(--renk-yesil);
}

@media (max-width: 500px) {
  #aramaKutuMobil {
    padding: 3px 4px;
  }
  #aramaInputMobil {
    font-size: .97rem;
    padding: 7px 2px;
  }
}

/* Kategori Bar */
.kirmizi-navbar {
  position: fixed;
  width: 100vw;
  z-index: 1059 !important;
  background: var(--renk-gri);
  border-top: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 4px 24px #0002;
}
.kirmizi-navbar .container,
.kirmizi-navbar .container-fluid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.kirmizi-menu {
  display: flex !important;
  flex-direction: row;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--renk-acikgri) var(--renk-beyaz);
  z-index: 3001 !important;
  overflow: visible !important; /* <-- bu çakışıyor olabilir */
  position: relative !important;
  background: transparent;
}


.kirmizi-menu .nav-link {
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 15px;
  border-radius: 7px;
  color: var(--renk-beyaz) !important;
  background: transparent;
  transition: all 0.17s;
  white-space: nowrap;
}
.kirmizi-menu .nav-link:hover,
.kirmizi-menu .nav-link.active {
  background: var(--renk-yesil) !important;
  color: var(--renk-siyah) !important;
  text-decoration: underline;
}
/******************************/
/* ===== MOBİL KATEGORİ ===== */
/******************************/
.mobil-kategori-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--renk-siyah) !important;
  z-index: 9999;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  border-top: 4px solid var(--renk-yesil);
  box-shadow: 0 4px 30px #0003;
  color: #fff !important;
}
.mobil-kategori-menu.active { display: flex; }

.mobil-menu-header { 
  border-bottom: 1px solid var(--renk-gri); 
  color: #fff !important;
  position: relative;
  padding-right: 50px !important;
}
.mobil-menu-header strong { 
  color: #fff !important; 
  font-weight: 700 !important;
  font-size: 1.13rem !important;
  letter-spacing: .1px;
}

/* Menüdeki yazılar */
.mobil-menu-body ul, .mobil-menu-body li { list-style: none; padding: 0; margin: 0; }
.mobil-menu-body li {
  padding: 10px 0;
  border-bottom: 1px solid var(--renk-gri);
}
.mobil-menu-body a, .mobil-menu-body summary {
  background: transparent !important;
  font-weight: 600;
  font-size: 1.09rem;
  color: #fff !important;
  padding: 2px 0 2px 0;
  transition: color .16s;
}
.mobil-menu-body a:hover,
.mobil-menu-body summary:hover { color: var(--renk-yesil) !important; }
.mobil-menu-body li .alt-kat { padding-left: 16px; font-size: 0.97rem; color: var(--renk-beyaz) !important; }

/* Üyelik Butonu ve Dropdown (Mobil) */
.uye-btn-wrap { position:relative; display:inline-block; z-index: 5000 !important;}
#uyeBtnMobileMenu {
  display: flex; align-items: center; gap: 4px; min-width: 120px; cursor:pointer;
  border-radius: 8px; padding: 5px 11px; background: #222; font-size: 1.03rem;
  font-weight: 600; color: #fff;
}
#uyeBtnMobileMenu:hover, #uyeBtnMobileMenu.active { background: #222 !important; color: #b4fc1f !important; }
#uyeBtnMobileCaret { color:#7ad300; margin-left:2px; font-size:1.1em; }

.uye-mobile-dropdown-menu {
  display: none;
  position: absolute;
  top: 110%; left: 0;
  min-width: 170px;
  background: #232323;
  color: #fff;
  border-radius: 12px;
  padding: 12px 0;
  box-shadow: 0 2px 16px #0002;
  z-index: 999;
}
.uye-mobile-dropdown-menu .dropdown-item-mobil {
  color: #1db954;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s;
}
.uye-mobile-dropdown-menu .dropdown-item-mobil:hover { background: #333 !important; }
.dropdown-divider-mobil {
  height:1px; background:#fff2; margin:4px 0 7px 0;
}

#mobilMenuKapatBtn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10001;
  color: #fff !important;
  background: #222 !important;
  border-radius: 50%;
  border: 1.5px solid #444 !important;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: background 0.14s, color 0.14s;
}
#mobilMenuKapatBtn:hover {
  background: var(--renk-yesil) !important;
  color: #111 !important;
  border-color: var(--renk-yesil) !important;
  opacity: 1;
}


/* Mobil Social Row */
.mobil-social-row {
  gap: 11px !important;
  margin-top: 5px !important;
}
.mobil-social-row a {
  font-size: 1.23rem;
  color: #fff !important;
  background: #232323;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  transition: background .17s, color .15s;
}
.mobil-social-row a:hover { background: #222d !important; color: var(--renk-yesil) !important; }

/* Üyelik formları (mobil açılır) */
.mobil-uye-dropdown { background: #232323 !important; color: #fff !important; border-radius: 13px; margin-top:8px;}
.mobil-uye-dropdown .uye-tab-mobil {
  background: #222 !important; color: #fff !important;
  border-radius: 6px; margin-right: 4px; font-weight: 600; border: none !important;
  padding: 6px 16px; transition: background .2s, color .2s;
}
.mobil-uye-dropdown .uye-tab-mobil.aktif {
  background: #8ecf0b !important; color: #1c1c1c !important;
}
.mobil-uye-dropdown input.form-control { background: #e9eef5 !important; color: #222 !important; }
.mobil-uye-dropdown form { margin-top: 8px; }

/* -------- Responsive ve ekler -------- */
@media (max-width: 991px) {
  .kirmizi-navbar, .kirmizi-navbar .container-fluid, .kirmizi-menu { margin: 0 !important; padding: 0 !important; }
  .kirmizi-navbar { display: none !important; }

}
@media (min-width: 992px) {
  .mobil-kategori-menu { display: none !important; }
}
.dropdown-menu .dropdown-item {
  transition: background 0.16s, color 0.14s;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: var(--renk-yesil) !important;  /* senin ana yeşilin */
  color: var(--renk-siyah) !important;       /* koyu yazı rengi */
}
::-webkit-scrollbar { width: 8px; background: #e0e0e0; }
::-webkit-scrollbar-thumb { background: #b9b9b9; border-radius: 10px; }

/* Card, slider, grid ve daha fazlası için buradan sonra ayrı bir dosyada devam edebilirsin... */
/* ==== MODERN KART TASARIMLARI ==== */
.haber-card,
.card-news {
  background: var(--renk-beyaz);
  border-radius: 18px;
  box-shadow: 0 2px 18px #0001, 0 1px 4px #1111;
  padding: 0;
  overflow: hidden;
  margin-bottom: 22px;
  transition: box-shadow .14s, transform .13s;
  border: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.haber-card:hover, .card-news:hover {
  box-shadow: 0 8px 32px #8ecf0b18, 0 3px 10px #2222;
  transform: translateY(-2px) scale(1.011);
}

.haber-card .card-img-top,
.card-news img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  min-height: 128px;
}

.haber-card .card-body, .card-news .card-body {
  padding: 17px 15px 12px 15px;
  flex: 1 1 100%;
}

.haber-card .card-title,
.card-news .card-title {
  font-size: 1.10rem;
  font-weight: 700;
  color: var(--renk-siyah);
  margin-bottom: 7px;
  line-height: 1.25;
}

.haber-card .card-text,
.card-news .card-text {
  color: #444c;
  font-size: .96rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* SLIDER/ANA HABER HERO */
.slider-main,
.slider-hero {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 28px auto;
  border-radius: 24px;
  box-shadow: 0 4px 32px #0003;
  background: #161616;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.slider-main .slider-img,
.slider-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.67) saturate(1.05);
  position: absolute;
  top: 0; left: 0; z-index: 1;
}
.slider-main .slider-title,
.slider-hero .slider-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-shadow: 0 4px 16px #000b, 0 1px 2px #333b;
  margin-bottom: 24px;
  padding: 0 28px;
}
.slider-main .slider-nav,
.slider-hero .slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.slider-main .slider-arrow,
.slider-hero .slider-arrow {
  pointer-events: auto;
  background: #232323bb;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s;
  cursor: pointer;
}
.slider-main .slider-arrow:hover,
.slider-hero .slider-arrow:hover {
  background: var(--renk-yesil);
  color: #fff;
}

/* BUTON & INPUT GENEL */
.btn-modern, .btn-success {
  background: var(--renk-yesil);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 0;
  transition: background .16s, color .16s;
  font-size: 1.07rem;
  box-shadow: 0 1px 7px #0002;
}
.btn-modern:hover, .btn-success:hover {
  background: var(--renk-yesil-koyu);
  color: #fff;
}
.btn-modern:disabled {
  opacity: 0.68;
  background: #aacb83;
  color: #eee;
}

/* Üyelik formları: Modern Style */
.mobil-uye-dropdown form input,
.uye-modal input,
.uye-modal input[type="text"],
.uye-modal input[type="email"],
.uye-modal input[type="password"] {
  border-radius: 8px;
  background: #f7f7fa;
  border: 1px solid #e1e1e1;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--renk-siyah);
  padding: 10px 12px;
  transition: border .17s, box-shadow .16s;
}
.mobil-uye-dropdown form input:focus,
.uye-modal input:focus {
  border: 2px solid var(--renk-yesil);
  box-shadow: 0 0 0 2px #8ecf0b44;
  background: #fff;
  outline: none;
}

/* Mobil formlarda kutu arka ve animasyon */
.mobil-uye-dropdown form {
  background: #232323 !important;
  border-radius: 12px;
  padding: 8px 8px 6px 8px;
  box-shadow: 0 2px 14px #0002;
  margin-bottom: 2px;
}

.mobil-uye-dropdown .btn-success {
  width: 100%;
  border-radius: 9px;
  margin-top: 6px;
  font-weight: 700;
}

/* ---- Responsive Card & Grid ---- */
@media (max-width: 700px) {
  .haber-card, .card-news { border-radius: 10px; }
  .haber-card .card-img-top, .card-news img { border-radius: 10px 10px 0 0; }
  .slider-main, .slider-hero { border-radius: 12px; }
}

/* ------ Grid sistem önerisi (haberler için) ------- */
.haber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 28px 18px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2vw 22px 2vw;
}

@media (max-width: 800px) {
  .haber-grid { gap: 20px 9px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 530px) {
  .haber-grid { gap: 14px 5px; grid-template-columns: 1fr; }
}

/* Son - Temiz bir görünüm için ufak detaylar */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  outline: none !important;
  box-shadow: none !important;
}

::-webkit-input-placeholder { color: #bbb !important; }
::-moz-placeholder { color: #bbb !important; }
:-ms-input-placeholder { color: #bbb !important; }
::placeholder { color: #bbb !important; }
.nav-link:focus, .dropdown-toggle:focus, .dropdown-item:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* Navbar kategori dropdown yapışık olsun */
.kirmizi-navbar .dropdown-menu {
  margin-top: 0 !important;
  top: 100% !important;
  border-radius: 0 0 12px 12px !important;
  /* Aşağıya çeken transform'u sıfırla */
  transform: none !important;
  /* Gerekirse box-shadow'u azalt ya da sıfırla */
  box-shadow: 0 8px 20px #0001 !important;
}
.mobil-uye-dropdown {
  display: none !important;
}
.mobil-uye-dropdown.active {
  display: block !important;
}
