/* =============================================================================
   AVESTA KURD - Profesyonel Tasarım v2 (Header + Slider + Mobil)
   Dosya: css/avesta-custom.css  |  Güncelleme: 2026-07
   Newsmag (tagDiv) teması için güvenli override. Çekirdeğe dokunulmaz.
   ============================================================================= */

/* ===========================================================================
   1) TAM GENİŞLİK HEADER (slider gibi kenardan kenara)
   =========================================================================== */
/* header container'ının kendisini tam genişlik yap (tema ~1068px ortalıyordu) */
.td-header-style-1.td-header-container.td-header-wrap,
.td-header-container.td-header-wrap.td-header-style-1 {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* üst bar */
.td-header-style-1 .td-top-bar-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  box-sizing: border-box !important;
}
/* logo satırı + ana menü satırı */
.td-header-style-1 .td-header-header .td-container,
.td-header-style-1 #td-header-menu {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  box-sizing: border-box !important;
}
.td-header-style-1 .td-header-menu-wrap,
.td-header-style-1 .td-header-main-menu { width: 100% !important; }

/* tam genişlikte tagDiv menü JS'i öğeleri visibility:hidden yapabiliyor;
   bol yer olduğu için hepsini görünür zorla (menü boş görünmesin) */
.td-header-style-1 #td-header-menu .sf-menu > li,
.td-header-style-1 #td-header-menu .sf-menu > li > a,
.td-header-style-1 #td-header-menu .sf-menu > li > a > * {
  visibility: visible !important;
}

/* ===========================================================================
   2) ÜST HEADER (top bar) — koyu, profesyonel
   =========================================================================== */
.td-header-style-1 .td-header-top-menu {
  background: linear-gradient(90deg, #14171c 0%, #262b33 100%) !important;
  border: none !important;
}
.td-header-style-1 .td-top-bar-container { background: transparent !important; }
.td-header-style-1 .td-header-top-menu,
.td-header-style-1 .td-header-top-menu a,
.td-header-style-1 .td-header-top-menu span,
.td-header-style-1 .td-header-top-menu i,
.td-header-style-1 .td-header-top-menu .td_data_time,
.td-header-style-1 .td-header-top-menu .top-header-menu a { color: #e9e9e9 !important; }
.td-header-style-1 .td-header-top-menu a:hover,
.td-header-style-1 .td-header-top-menu .top-header-menu a:hover { color: #f2c94c !important; }

/* --- üst bar AÇILIR menüleri (beyaz açılıyordu -> koyu/profesyonel) --- */
.td-header-style-1 .td-header-top-menu .sub-menu,
.td-header-style-1 .top-header-menu .sub-menu {
  background: #1c2027 !important;
  border: none !important;
  border-top: 3px solid #c1272d !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
  border-radius: 0 0 4px 4px;
  padding: 6px 0 !important;
}
.td-header-style-1 .td-header-top-menu .sub-menu li a,
.td-header-style-1 .top-header-menu .sub-menu li a {
  color: #d7d7d7 !important;
  padding: 9px 18px !important;
  border: none !important;
  transition: all .18s ease;
}
.td-header-style-1 .td-header-top-menu .sub-menu li a:hover,
.td-header-style-1 .top-header-menu .sub-menu li a:hover {
  background: #c1272d !important;
  color: #fff !important;
  padding-left: 22px !important;
}

/* ===========================================================================
   3) LOGO SATIRI — temiz beyaz + marka vurgusu
   =========================================================================== */
.td-header-style-1 .td-header-header {
  background: #ffffff !important;
  padding: 10px 0 !important;
  border-bottom: 3px solid #c1272d !important;
}

/* ===========================================================================
   4) ALT HEADER (ana menü) — marka gradyanı + altın vurgu
   =========================================================================== */
.td-header-style-1 .td-header-menu-wrap,
.td-header-style-1 .td-header-main-menu {
  background: linear-gradient(90deg, #c1272d 0%, #9e1b20 100%) !important;
  border-top: none !important;
  border-bottom: 3px solid #f2c94c !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18) !important;
}
.td-header-style-1 .sf-menu > li > a {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.td-header-style-1 .sf-menu > li:hover > a,
.td-header-style-1 .sf-menu > li.current-menu-item > a,
.td-header-style-1 .sf-menu > li.sfHover > a {
  background: rgba(0, 0, 0, 0.20) !important;
  color: #f2c94c !important;
}

/* --- ANA MENÜ AÇILIR (dropdown) — profesyonel --- */
.td-header-style-1 .sf-menu ul.sub-menu {
  background: #ffffff !important;
  border: none !important;
  border-top: 3px solid #c1272d !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20) !important;
  border-radius: 0 0 5px 5px;
  padding: 8px 0 !important;
  min-width: 230px !important;
}
.td-header-style-1 .sf-menu ul.sub-menu li a {
  color: #23282d !important;
  background: transparent !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 11px 20px !important;
  border-bottom: 1px solid #f2f2f2 !important;
  transition: all .18s ease;
}
.td-header-style-1 .sf-menu ul.sub-menu li:last-child a { border-bottom: none !important; }
.td-header-style-1 .sf-menu ul.sub-menu li a:hover {
  background: #c1272d !important;
  color: #ffffff !important;
  padding-left: 26px !important;
}
.td-header-style-1 .sf-menu ul.sub-menu li.sfHover > a { background: #c1272d !important; color:#fff !important; }

/* ===========================================================================
   5) PROFESYONEL SLIDER (JS ile kurulur) — tam genişlik, otomatik geçiş
   =========================================================================== */
/* tam genişlik breakout */
.avesta-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  height: 580px;
  overflow: hidden;
  background: #0e0e0e;
}
.avesta-slider-track { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.avesta-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  display: block; text-decoration: none;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease;
  z-index: 0;
}
.avesta-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.avesta-slide-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,0) 72%);
  display: flex; align-items: flex-end;
}
.avesta-slide-content {
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 0 40px 52px 40px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.avesta-slide.is-active .avesta-slide-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease .45s, transform .6s ease .45s;
}
.avesta-slide-cat {
  display: inline-block;
  background: #c1272d; color: #fff;
  font: 700 12px/1 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 7px 13px; border-radius: 2px; margin-bottom: 15px;
}
.avesta-slide-title {
  margin: 0;
  color: #ffffff;
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-size: 40px; line-height: 1.18; font-weight: 800;
  letter-spacing: -0.3px;
  max-width: 960px;
  text-shadow: 0 2px 16px rgba(0,0,0,.65);
}
.avesta-slide-title a { color: #fff !important; text-decoration: none; }
.avesta-slide-date { display: block; margin-top: 13px; color: #e2e2e2; font-size: 13px; }

/* oklar */
.avesta-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 50px; height: 50px; padding: 0;
  border: none; cursor: pointer; border-radius: 50%;
  background: rgba(0,0,0,.42); color: #fff; font-size: 20px; line-height: 50px;
  transition: background .2s ease, transform .2s ease;
}
.avesta-arrow:hover { background: #c1272d; }
.avesta-prev { left: 24px; } .avesta-next { right: 24px; }

/* noktalar */
.avesta-dots {
  position: absolute; z-index: 4; bottom: 22px; right: 42px;
  display: flex; gap: 9px;
}
.avesta-dot {
  width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: transparent; cursor: pointer;
  transition: all .2s ease;
}
.avesta-dot.is-active { background: #f2c94c; border-color: #f2c94c; transform: scale(1.15); }

/* JS kurulmadan önce big grid'i gizle (flash önleme) - JS eklenince görünür */
.home .td_block_big_grid .td-big-grid-wrapper:empty { min-height: 580px; background:#0e0e0e; }

/* ===========================================================================
   6) KAYAN HABER (trending) — slider altına alınır (JS taşır), stil
   =========================================================================== */
.home .td_block_trending_now {
  margin-top: 0 !important;
}
.home .avesta-trending-moved { margin-top: 22px !important; }

/* ===========================================================================
   7) MOBİL / RESPONSIVE
   =========================================================================== */
@media (max-width: 1023px) {
  .avesta-slider { height: 420px; }
  .avesta-slide-title { font-size: 28px; }
  .avesta-slide-content { padding: 0 28px 38px 28px; }
  .home .td_block_big_grid .td-big-grid-wrapper:empty { min-height: 420px; }
}
@media (max-width: 767px) {
  .td-header-style-1 .td-top-bar-container,
  .td-header-style-1 #td-header-menu { padding-left: 14px !important; padding-right: 14px !important; }
  .avesta-slider { height: 300px; }
  .avesta-slide { background-position: center center; }
  .avesta-slide-content { padding: 0 16px 20px 16px; }
  .avesta-slide-cat { font-size: 10px; padding: 5px 10px; margin-bottom: 9px; }
  .avesta-slide-title { font-size: 18px; line-height: 1.25; }
  .avesta-slide-date { font-size: 11px; margin-top: 8px; }
  .avesta-arrow { width: 38px; height: 38px; font-size: 16px; line-height: 38px; }
  .avesta-prev { left: 8px; } .avesta-next { right: 8px; }
  .avesta-dots { right: 14px; bottom: 12px; gap: 6px; }
  .avesta-dot { width: 9px; height: 9px; }
  .home .td_block_big_grid .td-big-grid-wrapper:empty { min-height: 300px; }
}
@media (max-width: 480px) {
  .avesta-slider { height: 240px; }
  .avesta-slide-title { font-size: 15px; }
  .home .td_block_big_grid .td-big-grid-wrapper:empty { min-height: 240px; }
}

/* ===========================================================================
   8) SLIDER İLERLEME ÇUBUĞU (progress bar) + rafine
   =========================================================================== */
.avesta-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: 4px; background: rgba(255, 255, 255, 0.18);
}
.avesta-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #f2c94c, #c1272d);
}
/* okları daha profesyonel (kare, yumuşak) */
.avesta-arrow {
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}
.avesta-arrow:hover { background: #c1272d; transform: translateY(-50%) scale(1.06); }

/* ===========================================================================
   9) PROFESYONEL BLOK BAŞLIKLARI (Magazîn, Nivîskar, Dosya...)
   =========================================================================== */
.td-pb-span8 .block-title,
.td-pb-span8 .td-block-title,
.td_block_wrap .block-title > span,
.td_block_wrap .block-title > a {
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.td-pb-span8 .td-block-title-wrap,
.td-pb-span8 h4.block-title {
  position: relative;
}
/* başlık altına ince çizgi + kırmızı vurgu */
.td-pb-span8 h4.block-title {
  border-bottom: 2px solid #ececec !important;
  padding-bottom: 0 !important;
  margin-bottom: 18px !important;
}
.td-pb-span8 h4.block-title > a,
.td-pb-span8 h4.block-title > span {
  display: inline-block !important;
  background: linear-gradient(90deg, #c1272d 0%, #9e1b20 100%) !important;
  color: #ffffff !important;
  padding: 8px 16px 8px 16px !important;
  border-radius: 3px 3px 0 0 !important;
  font-size: 15px !important;
  border: none !important;
  position: relative;
  top: 2px;
}
.td-pb-span8 h4.block-title > a:hover { color: #f2c94c !important; }
/* tema bazı bloklarda .td-block-title kullanır */
.td-pb-span8 a.td-block-title,
.td-pb-span8 span.td-block-title {
  background: linear-gradient(90deg, #c1272d 0%, #9e1b20 100%) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 3px 3px 0 0 !important;
}

/* ===========================================================================
   10) PROFESYONEL MODÜL KARTLARI (hover efektleri)
   =========================================================================== */
.td-pb-span8 .td_module_wrap {
  transition: transform .2s ease;
}
.td-pb-span8 .td-module-image .entry-thumb,
.td-pb-span8 .td-module-thumb .entry-thumb {
  transition: transform .45s ease, filter .3s ease;
}
.td-pb-span8 .td_module_wrap:hover .td-module-image .entry-thumb,
.td-pb-span8 .td_module_wrap:hover .td-module-thumb .entry-thumb {
  transform: scale(1.06);
}
.td-pb-span8 .td-module-thumb { overflow: hidden; }
.td-pb-span8 .td-module-title a { transition: color .2s ease; }
.td-pb-span8 .td_module_wrap:hover .td-module-title a { color: #c1272d !important; }

/* ===========================================================================
   11) HEADER RAFİNE (profesyonel dokunuşlar)
   =========================================================================== */
/* üst bar: hafif alt çizgi + dikey ortalama */
.td-header-style-1 .td-header-top-menu {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
/* üst bar menü öğeleri arası ayraç */
.td-header-style-1 .td-header-top-menu .top-header-menu > li {
  position: relative;
}
/* ana menü öğelerine yumuşak geçiş */
.td-header-style-1 .sf-menu > li > a {
  transition: background .2s ease, color .2s ease;
}
/* logo satırı hafif gölge */
.td-header-style-1 .td-header-header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ===========================================================================
   12) MOBİL — profesyonel ince ayar
   =========================================================================== */
@media (max-width: 767px) {
  /* mobil menü butonu ve üst bar dengesi */
  .td-header-style-1 .td-header-top-menu { font-size: 11px; }
  .td-header-style-1 .td-affix .td-header-menu-wrap,
  .td-header-style-1 .td-header-menu-wrap { padding: 0 !important; }
  /* mobil blok başlıkları biraz küçült */
  .td-pb-span8 h4.block-title > a,
  .td-pb-span8 h4.block-title > span { font-size: 13px !important; padding: 7px 12px !important; }
  /* slider ilerleme çubuğu biraz kalın */
  .avesta-progress { height: 3px; }
  /* mobilde modül hover zoom kapat (dokunmatikte gereksiz) */
  .td-pb-span8 .td_module_wrap:hover .entry-thumb { transform: none; }
}

/* ===========================================================================
   13) KAYAN HABER (trending ticker) — slider altında TAM GENİŞLİK uzun şerit
   =========================================================================== */
.home .td_block_trending_now.avesta-trending-moved {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 26px !important;
  background: #ffffff !important;
  border: none !important;
  border-top: 1px solid #ececec !important;
  border-bottom: 1px solid #e6e6e6 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}
.home .td_block_trending_now .td_block_inner,
.home .td_block_trending_now .td-block-row { border: none !important; }
.home .td_block_trending_now .td-trending-now-wrapper {
  display: flex !important;
  align-items: stretch;
  min-height: 58px;
  margin: 0 !important;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 18px;
}
/* sol rozet: NÛÇEYA DAWÎN */
.home .td_block_trending_now .td-trending-now-title {
  background: linear-gradient(90deg, #c1272d 0%, #9e1b20 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 13px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
  padding: 0 26px 0 18px !important;
  margin: 0 !important;
  white-space: nowrap;
  position: relative;
  border: none !important;
}
/* canlı yanıp sönen nokta */
.home .td_block_trending_now .td-trending-now-title:before {
  content: '';
  display: inline-block;
  width: 9px; height: 9px; border-radius: 50%;
  background: #ffffff; margin-right: 10px;
  animation: avestaPulse 1.4s infinite;
}
@keyframes avestaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
/* rozet sonrası ok (chevron) */
.home .td_block_trending_now .td-trending-now-title:after {
  content: '';
  position: absolute; right: -11px; top: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 27px 0 27px 11px;
  border-color: transparent transparent transparent #9e1b20;
  z-index: 2;
}
/* kayan başlık alanı — "paragraf" görünümü */
.home .td_block_trending_now .td-trending-now-display-area {
  flex: 1;
  display: flex !important;
  align-items: center;
  padding: 0 22px 0 28px !important;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #fbf7f2 0%, #ffffff 40%);
}
.home .td_block_trending_now .td_module_trending_now {
  padding: 0 !important; margin: 0 !important;
}
.home .td_block_trending_now .td_module_trending_now .entry-title {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
.home .td_block_trending_now .td_module_trending_now .entry-title a {
  color: #1a1a1a !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}
.home .td_block_trending_now .td_module_trending_now .entry-title a:hover {
  color: #c1272d !important;
}
/* trending prev/next okları (varsa) sadeleştir */
.home .td_block_trending_now .td-next-prev-wrap {
  margin: 0 4px 0 0 !important;
}
.home .td_block_trending_now .td-next-prev-wrap a {
  border-color: #e2e2e2 !important;
  color: #c1272d !important;
}
.home .td_block_trending_now .td-next-prev-wrap a:hover {
  background: #c1272d !important;
  color: #fff !important;
  border-color: #c1272d !important;
}
/* mobil trending */
@media (max-width: 767px) {
  .home .td_block_trending_now .td-trending-now-title {
    font-size: 11px !important;
    padding: 0 18px 0 12px !important;
  }
  .home .td_block_trending_now .td-trending-now-title:after { border-width: 27px 0 27px 9px; right: -9px; }
  .home .td_block_trending_now .td-trending-now-display-area { padding: 0 12px 0 18px !important; }
  .home .td_block_trending_now .td_module_trending_now .entry-title { font-size: 13px !important; line-height: 1.35 !important; }
  .home .td_block_trending_now .td-trending-now-wrapper { min-height: 48px; }
}

/* ===========================================================================
   14) YATAY KAYDIRMA (status bar) DÜZELTMESİ
   100vw tam genişlik öğeleri yatay scrollbar oluşturuyordu -> engelle
   =========================================================================== */
html { overflow-x: hidden !important; }
body { overflow-x: hidden !important; max-width: 100%; }

/* ===========================================================================
   15) MAGAZÎN & ANA KOLON BLOKLARI -> bağımsız KART modüller
   (slider ve kayan haber hariç) -> sağdaki sidebar'dan ayrışır
   =========================================================================== */
.home .td-pb-span8 .td_block_wrap:not(.td_block_trending_now):not(.td_block_big_grid):not(.avesta-slider-mode) {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 7px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
  padding: 8px 18px 22px 18px !important;
  margin-bottom: 28px !important;
}
/* kart padding'i iç ızgarayı daralttığı için sütunları yüzdeye zorla (taşma/wrap önle)
   SADECE masaüstü; mobilde tema kendi tek-sütun düzenini korusun */
@media (min-width: 768px) {
  .home .td-pb-span8 .td_block_wrap .td-block-span6 { width: 50% !important; }
  .home .td-pb-span8 .td_block_wrap .td-block-span4 { width: 33.333% !important; }
  .home .td-pb-span8 .td_block_wrap .td-block-span3 { width: 25% !important; }
  .home .td-pb-span8 .td_block_wrap .td-block-span8 { width: 66.666% !important; }
  .home .td-pb-span8 .td_block_wrap .td-block-span12 { width: 100% !important; }
}
/* kart içindeki blok başlığı (kırmızı rozet) kartın üstüne otursun */
.home .td-pb-span8 .td_block_wrap:not(.td_block_trending_now):not(.td_block_big_grid) h4.block-title {
  margin-top: 6px !important;
}
/* kart içindeki öne çıkan büyük görsel köşe yuvarlatma */
.home .td-pb-span8 .td_block_wrap .td-module-thumb { border-radius: 4px; }

/* ===========================================================================
   16) ÜST MENÜ AÇILIRLARI (Medya Kurdî/Tirkî/Erebî) -> çok sütunlu, kompakt
   çok aşağı uzuyordu -> 2 sütun, daha derli toplu
   =========================================================================== */
.td-header-style-1 .td-header-top-menu .sub-menu {
  width: 440px !important;
  max-width: 440px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start;
  padding: 8px 0 !important;
}
.td-header-style-1 .td-header-top-menu .sub-menu li {
  width: 50% !important;
  float: none !important;
  box-sizing: border-box !important;
}
.td-header-style-1 .td-header-top-menu .sub-menu li a {
  padding: 8px 16px !important;
  font-size: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
/* mobilde açılır menü tek sütun kalsın */
@media (max-width: 767px) {
  .td-header-style-1 .td-header-top-menu .sub-menu { width: 100% !important; max-width: 100% !important; }
  .td-header-style-1 .td-header-top-menu .sub-menu li { width: 100% !important; }
}



