/*
Theme Name: Tekirdag Haber
Author: Timucin Çınar
Version: 1.0
*/

/* =====================================================
   1) GENEL AYARLAR
===================================================== */
html, body{
  margin:0;
  padding:0;
  overflow-x:hidden;
  font-family: Arial, sans-serif;
  background:#f4f4f4;
}

*{ box-sizing:border-box; }

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 15px;
}

/* =====================================================
   2) HEADER & MENÜ
===================================================== */
.site-header{
  position:relative;
  z-index:50;
}

/* ÜST LOGO BAR */
.header-brandbar{
  background:#ffffff;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.brandbar-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
}

/* =====================================================
   LOGO SWITCH (TEK KAYNAK)
   Masaüstü: desktop logo
   Mobil: mobil logo
===================================================== */

/* =====================================================
   LOGO BOYUTLARI (Desktop büyük sorununu çözer)
===================================================== */
.logo-desktop{ max-height:152px !important; width:auto; }
.logo-mobile{  max-height:42px !important; width:auto; } /* brandbar'da mobil zaten gizlenecek */

/* Varsayılan: menubar ortası logo desktopta görünmesin */
.mobile-center-logo{ display:none; }
.search-toggle{ display:none; }
.header-search{ display:none; }

/* Mobil header: ☰  LOGO  🔍 */
@media (max-width:520px){

  /* Mobilde üst brandbar'ı kapat (iki logo görünmesin diye) */
  .header-brandbar{ display:none !important; }

  /* Menubar 3 kolon */
  .menubar-container{
    display:grid !important;
    grid-template-columns: 44px 1fr 44px;
    align-items:center;
    gap:10px;
  }

  .menu-toggle{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
  }

  .search-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.08);
    color:#fff;
    border-radius:10px;
    padding:10px 12px;
    cursor:pointer;
  }

  /* Orta logo */
  .mobile-center-logo{
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
  }

  .mobile-center-logo img{
    max-height:54px; /* mobilde logo boyutunu ayarlama */
    width:auto;
    display:block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  }

  .mobile-center-logo__text{
    color:#fff;
    font-weight:900;
    letter-spacing:.2px;
    font-size:16px;
  }

  /* Menü açılınca nav bir alt satıra düşsün */
  .main-nav{
    grid-column: 1 / -1;
    display:none; /* mobilde kapalı başlar */
    width:100%;
  }
  .main-nav.is-open{ display:block; }

  /* Mobil menü kutusu daha premium */
  .menu.main-menu{
    background:#0f172a;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    padding:10px;
  }

  /* Mobilde dropdownlar akışa girsin */
  .menu.main-menu li ul{
    position:static;
    display:block;
    background:transparent;
    border:0;
    padding:0 0 0 10px;
  }
}

/* Arama paneli */
.header-search{
  background:#0f172a;
  border-top:1px solid rgba(255,255,255,.10);
}
.header-search.is-open{ display:block; }

.header-search__inner{ padding:10px 0; }

.header-search input[type="search"]{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.08);
  color:#fff;
  outline:none;
}
.header-search input[type="search"]::placeholder{
  color:rgba(255,255,255,.65);
}
.header-search input[type="submit"]{
  margin-top:10px;
  padding:10px 14px;
  border-radius:12px;
  border:0;
  background:#dc2626;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
/* ÜST BAR MENÜ (logo yanı) */
.header-top-nav{
  display:flex;
  align-items:center;
}

.menu.header-top-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.menu.header-top-menu li{ margin:0; }

.menu.header-top-menu a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.3px;
  text-decoration:none;
  color:#1e293b;
  background:#f1f5f9;
  border-radius:8px;
  transition:all .2s ease;
}
.menu.header-top-menu a:hover{
  background:#dc2626;
  color:#fff;
  transform:translateY(-1px);
}
.menu.header-top-menu .current-menu-item a{
  background:#dc2626;
  color:#fff;
}

/* MENÜ BAR (sticky) */
.header-menubar{
  background:#0f172a;
  position:sticky;
  top:0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.menubar-container{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  padding:10px 0;
}

/* ANA NAV */
.main-nav{ flex:1; }

.menu.main-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.menu.main-menu > li{
  margin:0;
  position:relative;
}

.menu.main-menu > li > a{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:10px;
  color:#e2e8f0;
  text-decoration:none;
  font-weight:600;
  transition:background .15s ease, color .15s ease;
}

.menu.main-menu > li > a:hover,
.menu.main-menu > li.current-menu-item > a{
  background:rgba(255,255,255,.12);
  color:#ffffff;
}

/* DROPDOWN */
.menu.main-menu li ul{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:220px;
  background:#111827;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:8px;
  list-style:none;
  z-index:999;
}
.menu.main-menu li:hover > ul{ display:block; }

.menu.main-menu li ul li a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  color:#e2e8f0;
  text-decoration:none;
}
.menu.main-menu li ul li a:hover{
  background:rgba(255,255,255,.10);
  color:#fff;
}

/* HAMBURGER */
.menu-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
}

/* Menü altı alan */
.menu-after-ticker-area{
  background:#ffffff;
  border-bottom:1px solid rgba(0,0,0,.06);
  padding:10px 0;
  margin:16px 0;
}

/* Mobilde üst bar menüsü gizli + hamburger açılır */
@media (max-width:900px){
  .header-top-nav{ display:none; }

  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .main-nav{
    display:none;
    width:100%;
  }
  .main-nav.is-open{ display:block; }

  .menu.main-menu{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding-top:10px;

    background:#0f172a;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    padding:10px;
  }

  .menu.main-menu > li > a{
    width:100%;
    justify-content:space-between;
  }

  /* Mobilde dropdownlar akışa girsin */
  .menu.main-menu li ul{
    position:static;
    display:block;
    background:transparent;
    border:0;
    padding:0 0 0 10px;
  }

  .menu.main-menu li ul li a{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
  }

  /* Ticker alanı mobilde kapalı (senin tercihin) */
  .menu-after-ticker-area{ display:none !important; }

  /* Logo mobilde biraz büyüsün ve ortalansın */
  .brandbar-container{
    justify-content:center;
    padding:18px 0;
  }
  .logo img{ max-height:70px; }
}

/* =====================================================
   3) SLIDER
===================================================== */
.slider{
  width:100%;
  position:relative;
  overflow:hidden;
  border-radius:12px;
}

.slides{
  display:flex;
  transition:0.5s;
  touch-action:pan-y;
}

.slide{
  min-width:100%;
  position:relative;
}

.slide-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.slide-link img{
  width:100%;
  height:450px;
  object-fit:cover;
  border-radius:12px;
}

/* Başlık resmin üzerinde */
.slide-link h2{
  position:absolute;
  bottom:30px;
  left:20px;
  color:#fff;
  background:rgba(0,0,0,0.6);
  padding:10px 14px;
  border-radius:8px;
  font-size:26px;
  max-width:80%;
  line-height:1.2;
  text-shadow:1px 1px 4px rgba(0,0,0,0.8);
}

/* Desktop numara navigasyon */
.slider-nav{
  display:flex;
  gap:8px;
  justify-content:center;
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  z-index:10;
}

.slider-nav .slide-num{
  width:38px;
  height:38px;
  border-radius:6px;
  background:#fff;
  border:2px solid #333;
  font-weight:bold;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:0.3s;
}

.slider-nav .slide-num.active,
.slider-nav .slide-num:hover{
  background:#ff3b3f;
  color:#fff;
  border-color:#ff3b3f;
}

/* Mobil dot */
.slider-dots{
  display:none;
  position:absolute;
  bottom:15px;
  left:50%;
  transform:translateX(-50%);
  z-index:10;
  gap:8px;
}

.slider-dots .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ccc;
  cursor:pointer;
  transition:0.3s;
}

.slider-dots .dot.active{
  background:#ff3b3f;
  transform:scale(1.2);
}

@media(max-width:768px){
  .slide-link img{ height:250px; }
  .slide-link h2{
    font-size:18px;
    padding:8px 12px;
    max-width:90%;
  }
  .slider-nav{ display:none; }
  .slider-dots{ display:flex; }
}

/* =====================================================
   LAYOUT: ROW + MAIN + SIDEBAR
   index.php ile birebir uyumlu
===================================================== */

/* Genel satır: ana içerik + sidebar */
.row{
  display:flex;
  gap:20px;
  align-items:flex-start;
  margin-bottom:30px;
}

/* Ana kolon: esnek büyür, taşma yapınca sidebarı ezmesin */
.col-main{
  flex:1 1 auto;
  min-width:0; /* kritik */
}

/* Sidebar: sabit genişlik (daralmasın) */
.col-sidebar{
  flex:0 0 340px;
  width:340px;
}

/* Widget kutuları çok taşarsa kır */
.col-main,
.col-sidebar{
  overflow-wrap:anywhere;
}

/* Mobil: tek kolon */
@media (max-width:900px){
  .row{
    flex-direction:column;
  }
  .col-sidebar{
    flex:0 0 auto;
    width:100%;
  }
}

/* =====================================================
   5) SON DAKİKA / HABER GRID
===================================================== */
.latest-news-title{
  font-size:24px;
  font-weight:700;
  color:#ff3b3f;
  text-align:left;
  margin-bottom:25px;
  position:relative;
}
.latest-news-title::after{
  content:'';
  display:block;
  width:60px;
  height:3px;
  background:#ff3b3f;
  margin:10px 0 0 0;
  border-radius:2px;
}

.news-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.news-item{
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:transform 0.3s, box-shadow 0.3s;
  display:flex;
  flex-direction:column;
}
.news-item:hover{
  transform:translateY(-5px);
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

.news-item a{
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  height:100%;
}

.news-thumb img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-bottom:1px solid #eee;
}

.news-content{
  padding:15px;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.news-content h2{
  font-size:16px;
  font-weight:600;
  margin:10px 0 8px;
  line-height:1.3;
}

.news-content p{
  font-size:14px;
  color:#555;
  margin-bottom:10px;
}

.news-content .news-date{
  font-size:13px;
  color:#999;
}

@media(max-width:1024px){
  .news-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:768px){
  .news-grid{ grid-template-columns:1fr; }
  .latest-news-title{ font-size:20px; }
  .news-content h2{ font-size:15px; }
  .news-content p{ font-size:13px; }
}

/* =====================================================
   6) SINGLE SAYFA
===================================================== */
.single-layout{
  display:grid;
  grid-template-columns:2.5fr 1fr;
  gap:30px;
  margin-top:30px;
}

.single-sidebar{
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.single-thumbnail img{
  width:100%;
  height:auto;
  max-height:500px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:20px;
}

.single-title{
  font-size:32px;
  margin-bottom:10px;
}

.post-meta{
  font-size:14px;
  color:#777;
  margin-bottom:20px;
}

.single-content{
  font-size:17px;
  line-height:1.8;
}

@media(max-width:768px){
  .single-layout{ grid-template-columns:1fr; }
  .single-title{ font-size:22px; }
  .single-content{ font-size:15px; }
  .single-thumbnail img{ max-height:300px; }
}

/* =====================================================
   7) FOOTER
===================================================== */
.site-footer{
  background:#222;
  color:#fff;
  padding:30px 0;
  margin-top:40px;
}

.footer-container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.footer-col h3{
  color:#ff3b3f;
  margin-bottom:15px;
}

.footer-col ul{
  list-style:none;
  padding:0;
}
.footer-col ul li a{
  color:#fff;
  text-decoration:none;
}
.footer-col ul li a:hover{ color:#ff3b3f; }

.footer-bottom{
  text-align:center;
  margin-top:20px;
  border-top:1px solid rgba(255,255,255,0.2);
  padding-top:15px;
}

@media(max-width:768px){
  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }
}

/* =====================================================
   8) YAZAR WIDGET
===================================================== */
.author-widget-list{
  list-style:none;
  padding:0;
  margin:0;
}

.author-widget{
  background:#fff;
  padding:15px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.author-widget .author-item{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  transition:transform 0.3s, box-shadow 0.3s;
}

.author-widget .author-item:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 15px rgba(0,0,0,0.12);
}

.author-widget .author-item img{
  border-radius:50%;
  width:60px;
  height:60px;
  object-fit:cover;
  flex-shrink:0;
}

.author-widget .author-info{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.author-widget .author-info a.author-name{
  font-weight:600;
  font-size:16px;
  color:#222;
  margin-bottom:4px;
  transition:color 0.3s;
}
.author-widget .author-info a.author-name:hover{ color:#ff3b3f; }

.author-widget .author-info a.last-post-title{
  font-size:14px;
  color:#555;
  transition:color 0.3s;
}
.author-widget .author-info a.last-post-title:hover{ color:#ff3b3f; }

@media(max-width:768px){
  .author-widget .author-item{ gap:10px; }
  .author-widget .author-info a.author-name{ font-size:14px; }
  .author-widget .author-info a.last-post-title{ font-size:13px; }
  .author-widget .author-item img{ width:50px; height:50px; }
}

/* =====================================================
   9) SLIDER YANI HABER / BENZER HABERLER
===================================================== */
.slider-side-news{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.side-news-item a{
  display:flex;
  gap:10px;
  text-decoration:none;
  color:#222;
  border-bottom:1px solid #eee;
  padding-bottom:10px;
}

.side-news-thumb img{
  width:90px;
  height:70px;
  object-fit:cover;
}

.side-news-title{
  font-size:14px;
  margin:0 0 5px 0;
}

.side-news-date{
  font-size:12px;
  color:#888;
}

.related-posts{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.related-item a{
  display:flex;
  gap:10px;
  text-decoration:none;
  color:#222;
  border-bottom:1px solid #eee;
  padding-bottom:10px;
}

.related-thumb img{
  width:80px;
  height:60px;
  object-fit:cover;
}

.related-content h4{
  font-size:14px;
  margin:0 0 5px 0;
}

.related-content span{
  font-size:12px;
  color:#888;
}

/* =====================================================
   10) TICKER (Son Dakika Şeridi)
===================================================== */
.tdc-ticker{
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 18px;
  border-radius:14px;
  background:linear-gradient(135deg,#ffffff,#f8f9fb);
  box-shadow:0 4px 18px rgba(0,0,0,0.06);
  border:1px solid rgba(0,0,0,0.05);
  overflow:hidden;
  position:relative;
}

.tdc-ticker__label{
  background:#e10600;
  color:#fff;
  font-weight:700;
  font-size:14px;
  padding:6px 12px;
  border-radius:50px;
  white-space:nowrap;
  letter-spacing:.3px;
  box-shadow:0 3px 10px rgba(225,6,0,0.3);
}

.tdc-ticker__viewport{
  position:relative;
  overflow:hidden;
  flex:1;
}

.tdc-ticker__viewport::before,
.tdc-ticker__viewport::after{
  content:"";
  position:absolute;
  top:0;
  width:60px;
  height:100%;
  z-index:2;
  pointer-events:none;
}
.tdc-ticker__viewport::before{
  left:0;
  background:linear-gradient(to right,#fff 0%,rgba(255,255,255,0) 100%);
}
.tdc-ticker__viewport::after{
  right:0;
  background:linear-gradient(to left,#fff 0%,rgba(255,255,255,0) 100%);
}

.tdc-ticker__track{
  display:flex;
  width:max-content;
  gap:40px;
  animation:tdcTickerScroll var(--tdc-ticker-duration, 30s) linear infinite;
}

.tdc-ticker__items{
  display:flex;
  align-items:center;
  gap:18px;
  white-space:nowrap;
}

.tdc-ticker__item{
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  color:#222;
  transition:all .3s ease;
  position:relative;
}
.tdc-ticker__item:hover{ color:#e10600; }

.tdc-ticker__item::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-3px;
  width:0%;
  height:2px;
  background:#e10600;
  transition:.3s ease;
}
.tdc-ticker__item:hover::after{ width:100%; }

.tdc-ticker__sep{
  opacity:.3;
  font-weight:bold;
  user-select:none;
}

.tdc-ticker:hover .tdc-ticker__track{
  animation-play-state:paused;
}

@keyframes tdcTickerScroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

@media (max-width:768px){
  .tdc-ticker{
    padding:10px 12px;
    border-radius:10px;
  }
  .tdc-ticker__label{
    font-size:12px;
    padding:5px 10px;
  }
  .tdc-ticker__item{ font-size:14px; }
  .tdc-ticker__viewport::before,
  .tdc-ticker__viewport::after{ width:30px; }
}

/* =====================================================
   11) PİYASALAR WIDGET
===================================================== */
.tdc-piyasalar{
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  background:linear-gradient(135deg,#ffffff,#f7f8fb);
  box-shadow:0 6px 22px rgba(0,0,0,.06);
  padding:12px;
}

.tdc-piyasalar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.05);
  margin-bottom:10px;
}

.tdc-piyasalar-left{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.tdc-piyasalar-name{
  font-weight:800;
  font-size:14px;
}
.tdc-piyasalar-code{
  font-size:12px;
  opacity:.65;
}

.tdc-piyasalar-right{
  display:flex;
  align-items:baseline;
  gap:10px;
}

.tdc-piyasalar-price{
  font-weight:900;
  font-size:15px;
}

.tdc-piyasalar-change{
  font-size:12px;
  font-weight:900;
  padding:3px 8px;
  border-radius:999px;
}

.tdc-piyasalar-change.up{
  color:#0a7a2f;
  background:rgba(10,122,47,.10);
}
.tdc-piyasalar-change.down{
  color:#b00020;
  background:rgba(176,0,32,.10);
}

.tdc-piyasalar-foot{
  margin-top:8px;
  font-size:12px;
  opacity:.7;
}

.tdc-piyasalar-error{
  padding:10px 12px;
  border-radius:10px;
  background:rgba(176,0,32,.08);
  color:#b00020;
  font-weight:800;
}

/* =====================================================
   12) YATAY KART ŞERİDİ (MOBİL TAŞMA FIX)
===================================================== */
.tdc-hcards{ overflow:hidden; }

.tdc-hcards__row{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:10px;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  max-width:100%;
}

.tdc-hcards__card{
  flex:0 0 240px;
  max-width:240px;
  position:relative;
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.08);
  background:#0f172a;
  scroll-snap-align:start;
}

.tdc-hcards__img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
  opacity:.92;
}

.tdc-hcards__overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:12px;
  background:linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.9) 70%);
}

.tdc-hcards__t{
  color:#fff;
  font-weight:900;
  line-height:1.2;
}

@media (max-width:600px){
  .tdc-hcards__card{
    flex-basis:78%;
    max-width:78%;
  }
}

/* =====================================================
   13) HAVA DURUMU WIDGET
===================================================== */
.tdc-weather{
  background:#ffffff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
}

.tdc-weather__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.tdc-weather__place{
  font-weight:900;
  color:#0f172a;
}

.tdc-weather__badge{
  font-size:12px;
  font-weight:800;
  color:#fff;
  background:#dc2626;
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
}

.tdc-weather__now{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 6px;
}

.tdc-weather__icon{
  font-size:26px;
  line-height:1;
}

.tdc-weather__temp{
  font-size:42px;
  font-weight:950;
  color:#0f172a;
  letter-spacing:-1px;
}

.tdc-weather__meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}

.tdc-weather__meta div{
  background:rgba(15,23,42,.04);
  border-radius:14px;
  padding:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}

.tdc-weather__meta span{
  font-size:12px;
  opacity:.75;
  color:#0f172a;
}

.tdc-weather__meta b{
  font-weight:900;
  color:#0f172a;
}

.tdc-weather__days{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:10px;
}

.tdc-weather__day{
  background:rgba(15,23,42,.04);
  border-radius:14px;
  padding:10px;
  text-align:center;
}

.tdc-weather__dayname{
  font-weight:900;
  font-size:12px;
  color:#0f172a;
  opacity:.85;
  margin-bottom:6px;
  text-transform:capitalize;
}

.tdc-weather__dayicon{
  font-size:18px;
  line-height:1;
  margin-bottom:6px;
}

.tdc-weather__range{
  display:flex;
  justify-content:center;
  gap:8px;
  font-size:12px;
}

.tdc-weather__range b{
  font-weight:900;
  color:#0f172a;
}
.tdc-weather__range span{
  opacity:.7;
  color:#0f172a;
}

.tdc-weather--error{
  padding:12px;
  border-radius:14px;
  background:rgba(220,38,38,.08);
  border:1px solid rgba(220,38,38,.20);
  color:#0f172a;
  font-weight:700;
}

/* =====================================================
   DESKTOP FIX: menubardaki mobil logo desktopta görünmesin
===================================================== */

/* Desktop varsayılan */
.mobile-center-logo{ display:none !important; }

/* Desktop'ta menubar eski düzende kalsın */
@media (min-width:901px){
  .menubar-container{
    display:flex !important;
    align-items:center;
    justify-content:flex-start;
    gap:14px;
  }

  /* Arama ikonunu desktopta istemiyorsan kapat (istersen açarız) */
  .search-toggle{ display:none !important; }

  /* Nav desktopta görünür kalsın */
  .main-nav{ display:block !important; }
}

/* Mobilde göster */
@media (max-width:900px){
  .mobile-center-logo{ display:flex !important; }
}

.tdc-video-block__grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap:14px;
}

.tdc-video-block__frame{
  position:relative;
  width:100%;
  padding-top:56.25%;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:#000;
}

.tdc-video-block__frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.tdc-video-block__empty{
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(15,23,42,.04);
}

.tdc-video-block__list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.tdc-video-block__item{
  text-decoration:none;
  font-weight:800;
  color:#0f172a;
  padding:12px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
}
.tdc-video-block__item:hover{background:rgba(220,38,38,.10)}

@media (max-width:900px){
  .tdc-video-block__grid{grid-template-columns:1fr;}
}

.tdc-section-head{margin:18px 0 12px}
.tdc-section-title{font-size:22px;font-weight:900;margin:0;color:#0f172a;position:relative;padding-left:12px}
.tdc-section-title:before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;border-radius:4px;background:#dc2626}

.tdc-3colcats__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.tdc-3colcats__col{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:12px;
}

.tdc-3colcats__badge{
  display:inline-flex;
  font-weight:900;
  font-size:12px;
  color:#fff;
  background:#dc2626;
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:10px;
}

.tdc-3colcats__lead{
  display:block;
  text-decoration:none;
}
.tdc-3colcats__img{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:14px;
  display:block;
  margin-bottom:10px;
}
.tdc-3colcats__h{
  margin:0;
  font-size:16px;
  font-weight:900;
  line-height:1.2;
  color:#0f172a;
}

.tdc-3colcats__list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.tdc-3colcats__item{
  text-decoration:none;
  color:#0f172a;
  font-weight:700;
  line-height:1.25;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(15,23,42,.04);
}
.tdc-3colcats__item:hover{background:rgba(220,38,38,.10)}

@media (max-width:900px){
  .tdc-3colcats__grid{grid-template-columns:1fr; }
  .tdc-3colcats__img{height:190px;}
}

/* Orta alan manşet bloğu */
.tdc-feature-block{
  margin: 18px 0;
}

.tdc-feature-block__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}

.tdc-feature-block__title{
  font-size:22px;
  font-weight:900;
  margin:0;
  color:#0f172a;
  position:relative;
  padding-left:12px;
}

.tdc-feature-block__title:before{
  content:"";
  position:absolute;
  left:0;
  top:3px;
  bottom:3px;
  width:4px;
  border-radius:4px;
  background:#dc2626;
}

.tdc-feature-block__grid{
  display:grid;
  grid-template-columns: 1.35fr 1fr;
  gap:14px;
}

.tdc-feature-main__link{
  display:block;
  text-decoration:none;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease;
}

.tdc-feature-main__link:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.tdc-feature-main__img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
}

.tdc-feature-main__body{
  padding:14px 14px 16px;
}

.tdc-feature-main__h{
  margin:0 0 8px;
  font-size:22px;
  font-weight:900;
  line-height:1.15;
  color:#0f172a;
}

.tdc-feature-main__p{
  margin:0;
  color:rgba(15,23,42,.80);
  line-height:1.45;
}

.tdc-feature-side{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.tdc-feature-card__link{
  display:flex;
  gap:10px;
  align-items:stretch;
  text-decoration:none;
  padding:10px;
  border-radius:16px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.08);
  transition:transform .15s ease, box-shadow .15s ease;
}

.tdc-feature-card__link:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}

.tdc-feature-card__thumb{
  flex:0 0 110px;
}

.tdc-feature-card__img{
  width:110px;
  height:80px;
  object-fit:cover;
  border-radius:14px;
  display:block;
}

.tdc-feature-card__body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}

.tdc-feature-card__h{
  margin:0;
  font-size:15px;
  font-weight:800;
  line-height:1.25;
  color:#0f172a;
}

.tdc-feature-card__date{
  font-size:12px;
  opacity:.7;
  color:#0f172a;
}

/* Mobil uyum */
@media (max-width: 900px){
  .tdc-feature-block__grid{
    grid-template-columns: 1fr;
  }
  .tdc-feature-main__img{
    height:220px;
  }
  .tdc-feature-card__thumb{ flex-basis: 96px; }
  .tdc-feature-card__img{ width:96px; height:72px; }
}


/* ECZANE WIDGET */

.tdc-eczane-list{
display:flex;
flex-direction:column;
gap:12px;
}

.tdc-eczane-card{

background:#fff;
border-radius:14px;
padding:14px;

box-shadow:0 2px 10px rgba(0,0,0,0.06);
border-left:4px solid #e11d48;

transition:all .2s;
}

.tdc-eczane-card:hover{
transform:translateY(-2px);
box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.eczane-name{

font-weight:800;
font-size:16px;
color:#111;

margin-bottom:6px;
}

.eczane-address{

font-size:13px;
color:#666;

margin-bottom:8px;
}

.eczane-phone a{

display:inline-block;

background:#ef4444;
color:#fff;

padding:6px 12px;
border-radius:8px;

font-size:13px;
font-weight:600;
text-decoration:none;
}

.eczane-phone a:hover{
background:#dc2626;
}

.eczane-empty{

padding:12px;
background:#fff3f3;
border-radius:10px;
font-size:13px;
}

/* =========================
   NÖBETÇİ ECZANE (Premium)
========================= */

.widget .tdc-eczane-wrap{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Widget içi başlık (senin widget-title yapına göre) */
.widget .widget-title{
  position:relative;
}

/* Kart */
.tdc-eczane-card{
  position:relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:14px 14px 12px;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* Sol kırmızı şerit */
.tdc-eczane-card:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#dc2626;
  border-radius:18px 0 0 18px;
}

/* Hover */
.tdc-eczane-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15,23,42,.10);
  border-color: rgba(220,38,38,.25);
}

/* İsim */
.tdc-eczane-name{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:950;
  font-size:16px;
  color:#0f172a;
  margin:0 0 6px;
  line-height:1.2;
}

/* küçük ikon */
.tdc-eczane-name:before{
  content:"🏥";
  font-size:16px;
  line-height:1;
  opacity:.95;
}

/* Adres */
.tdc-eczane-address{
  font-size:13px;
  color: rgba(15,23,42,.78);
  line-height:1.45;
  margin:0 0 10px;
}

/* Butonlar */
.tdc-eczane-actions{
  display:flex;
  gap:10px;
}

/* Ortak buton */
.tdc-eczane-btn{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  font-size:13px;
  text-decoration:none;
  border:1px solid rgba(15,23,42,.10);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}

/* Ara butonu */
.tdc-eczane-btn--tel{
  background:#dc2626;
  color:#fff;
  border-color: rgba(220,38,38,.45);
}
.tdc-eczane-btn--tel:before{
  content:"📞";
}
.tdc-eczane-btn--tel:hover{
  background:#b91c1c;
  transform: translateY(-1px);
}

/* Harita butonu */
.tdc-eczane-btn--map{
  background: rgba(15,23,42,.04);
  color:#0f172a;
}
.tdc-eczane-btn--map:before{
  content:"🗺️";
}
.tdc-eczane-btn--map:hover{
  background: rgba(220,38,38,.10);
  border-color: rgba(220,38,38,.25);
  transform: translateY(-1px);
}

/* Veri yok mesajı */
.tdc-eczane-empty{
  padding:12px;
  border-radius:16px;
  background: rgba(220,38,38,.07);
  border:1px solid rgba(220,38,38,.18);
  color:#0f172a;
  font-weight:800;
}

/* Daha sıkı mobil görünüm */
@media (max-width: 900px){
  .tdc-eczane-card{
    padding:14px;
  }
  .tdc-eczane-actions{
    gap:8px;
  }
  .tdc-eczane-btn{
    padding:10px 10px;
    border-radius:12px;
  }
}

/* HCards: kaydırma yok, alana sığan grid */
.tdc-hcards{
  width:100%;
  max-width:100%;
}

.tdc-hcards__row{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;

  overflow: visible !important;
  max-width:100%;
  width:100%;
}

/* Kart: alana sığsın */
.tdc-hcards__card{
  position:relative;
  display:block;
  width:100%;
  max-width:100%;
  min-width:0 !important;   /* en kritik */
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.08);
  background:#0f172a;
}

/* Görsel boyutu */
.tdc-hcards__img{
  width:100%;
  height:170px;
  object-fit:cover;
  display:block;
}

/* Overlay */
.tdc-hcards__overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:12px;
  background:linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.92) 70%);
}
.tdc-hcards__t{
  color:#fff;
  font-weight:900;
  line-height:1.2;
}

/* Responsive */
@media (max-width: 1100px){
  .tdc-hcards__row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdc-hcards__img{ height:190px; }
}
@media (max-width: 650px){
  .tdc-hcards__row{ grid-template-columns: 1fr; }
  .tdc-hcards__img{ height:210px; }
}


/* BİK İlk Sayfa Grid (Orta Alan) */
.tdc-bik-frontpages{
  margin:18px 0;
}

.tdc-bik-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.tdc-bik-title{
  margin:0;
  font-size:22px;
  font-weight:950;
  color:#0f172a;
  position:relative;
  padding-left:12px;
}
.tdc-bik-title:before{
  content:"";
  position:absolute;
  left:0;
  top:3px;
  bottom:3px;
  width:4px;
  border-radius:4px;
  background:#dc2626;
}

.tdc-bik-source{
  font-size:12px;
  font-weight:900;
  text-decoration:none;
  color:#0f172a;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.08);
  padding:7px 10px;
  border-radius:999px;
}
.tdc-bik-source:hover{
  background:rgba(220,38,38,.10);
  border-color:rgba(220,38,38,.22);
}

.tdc-bik-grid{
  display:grid;
  grid-template-columns: repeat(var(--tdc-bik-cols, 3), minmax(0, 1fr));
  gap:12px;
}

.tdc-bik-card{
  display:block;
  text-decoration:none;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(15,23,42,.06);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-width:0;
}

.tdc-bik-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(15,23,42,.10);
  border-color:rgba(220,38,38,.22);
}

.tdc-bik-thumb{
  background:rgba(15,23,42,.04);
  padding:10px;
}

.tdc-bik-thumb img{
  width:100%;
  height:340px;
  object-fit:contain; /* ilk sayfa kırpılmasın */
  display:block;
}

.tdc-bik-name{
  padding:10px 12px 12px;
  font-weight:950;
  color:#0f172a;
  line-height:1.15;
  font-size:13px;
}

.tdc-bik-empty{
  padding:12px;
  border-radius:16px;
  background:rgba(220,38,38,.07);
  border:1px solid rgba(220,38,38,.18);
  font-weight:800;
  color:#0f172a;
}

@media (max-width: 1100px){
  .tdc-bik-thumb img{height:320px;}
}
@media (max-width: 900px){
  .tdc-bik-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
  .tdc-bik-thumb img{height:300px;}
}
@media (max-width: 520px){
  .tdc-bik-grid{grid-template-columns: 1fr;}
  .tdc-bik-thumb img{height:360px;}
}

.single-dates{
  margin-top: 18px;
  padding: 10px 12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:14px;
}

.single-share{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.single-share-label{
  font-weight:700;
  margin-right:6px;
}

.single-share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  text-decoration:none;
  font-size:14px;
  line-height:1;
  cursor:pointer;
}

.single-share-btn:hover{
  border-color: rgba(0,0,0,.22);
}

.single-authorbox{
  margin-top: 18px;
  padding: 14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.single-authorbox .author-avatar img{
  border-radius:50%;
}

.author-name a{
  font-weight:800;
  text-decoration:none;
}

.author-desc{
  margin-top:6px;
  font-size:14px;
  opacity:.9;
}

.site-footer{
  background:#0b1220;
  color:rgba(255,255,255,.85);
  margin-top:30px;
}

.footer-container{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:24px;
  padding:34px 0;
}

.site-footer h3{
  margin:0 0 12px;
  font-size:16px;
  color:#fff;
  letter-spacing:.2px;
}

.footer-logo a{
  display:inline-block;
  font-size:22px;
  font-weight:800;
  color:#fff;
  text-decoration:none;
  margin-bottom:10px;
}

.footer-desc{
  margin:0 0 14px;
  line-height:1.55;
  font-size:14px;
  opacity:.95;
}

.footer-social{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.footer-social-link{
  display:inline-flex;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
  font-size:13px;
}

.footer-social-link:hover{
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}

.footer-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-list li{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}

.footer-list a{
  color:rgba(255,255,255,.9);
  text-decoration:none;
  font-size:14px;
  line-height:1.35;
  flex: 1;
}

.footer-list a:hover{
  color:#fff;
  text-decoration:underline;
}

.footer-date,
.footer-count{
  font-size:12px;
  opacity:.7;
  white-space:nowrap;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.10);
  padding:14px 0;
}

.footer-bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer-copy{
  margin:0;
  font-size:13px;
  opacity:.85;
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.footer-links a{
  color:rgba(255,255,255,.85);
  text-decoration:none;
  font-size:13px;
}

.footer-links a:hover{
  color:#fff;
  text-decoration:underline;
}

/* Responsive */
@media (max-width: 900px){
  .footer-container{
    grid-template-columns: 1fr;
    padding:26px 0;
  }
}