/*
Theme Name: Tekno Haber 2
Theme URI: https://teknobirader.com
Author: Teknobirader
Author URI: https://teknobirader.com
Description: SafirPanel benzeri kapsamlı ayar paneli olan modern haber teması (MVP iskelet).
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tekno-haber-2
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, translation-ready
*/

/* Mobilde site "küçük" görünmesin: Android/Chrome için hafif ölçek + metin ayarı */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 600px) {

  html,
  body {
    overflow-x: hidden;
  }

  body {
    zoom: 1.08;
  }

  /* Chrome/Android */
  .th2-header__bar {
    padding: 12px 0;
  }

  .th2-brand img {
    height: 46px;
  }

  .th2-hamburger,
  .th2-search-toggle,
  .th2-offcanvas__close,
  .th2-searchclose {
    padding: 10px;
    border-radius: 14px;
  }

  .th2-slider-link img {
    height: 300px;
  }
}

:root {
  --th2-primary: #0b6aa8;
  --th2-secondary: #ff9b2f;
  --th2-topbar: #ffffff;
  --th2-menu-icon: #0b6aa8;
  --th2-menu-hover: #ff9b2f;
  --th2-menu-search: #ff9b2f;
  --th2-footer-bg: #0b6aa8;
  --th2-heading: #0f172a;
  --th2-title: #0f172a;
  --th2-link: #0b6aa8;
  --th2-container-max: 1140px;
  --th2-container-pct: 92%;
}

body.th2-width-dar {
  --th2-container-max: 980px;
  --th2-container-pct: 92%;
}

body.th2-width-orta {
  --th2-container-max: 1140px;
  --th2-container-pct: 92%;
}

body.th2-width-genis {
  --th2-container-max: 1320px;
  --th2-container-pct: 94%;
}

body.th2-width-tam {
  --th2-container-max: 9999px;
  --th2-container-pct: 98%;
}

/* Mobilde site genişliği: içerik daha dolu görünsün */
@media (max-width: 600px) {
  :root {
    --th2-container-pct: 100%;
  }

  body.th2-width-dar {
    --th2-container-pct: 100%;
  }

  body.th2-width-orta {
    --th2-container-pct: 100%;
  }

  body.th2-width-genis {
    --th2-container-pct: 100%;
  }

  body.th2-width-tam {
    --th2-container-pct: 100%;
  }
}

@media (max-width: 400px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}



body {
  margin: 0;
  font-family: var(--th2-font-base, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  background: #f5f7fb;
  color: #111;
}

a {
  color: var(--th2-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Font seçimleri (Site Ayarları > Fontlar) */
.th2-nav,
.th2-mobile-nav,
.th2-offcanvas__panel {
  font-family: var(--th2-font-menu, inherit);
}

h1,
h2,
h3,
h4,
h5,
h6,
.th2-card h1,
.th2-card h2,
.th2-card h3,
.th2-card h4 {
  font-family: var(--th2-font-heading, inherit);
}

.entry {
  font-family: var(--th2-font-content, inherit);
}

.th2-post-tags {
  margin-top: 14px;
}

.th2-post-tags a {
  display: inline-block;
  padding: 4px 10px;
  margin: 6px 6px 0 0;
  background: #eef2f7;
  border-radius: 999px;
  font-size: 12px;
}

.container {
  width: min(var(--th2-container-max), var(--th2-container-pct));
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}


/* Footer copyright satırlarını Design By üstüne taşıyan blok */
.th2-footer-credit-top {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
}

.th2-footer-credit-top__line {
  opacity: .9;
  line-height: 1.45;
}

.th2-footer-credit-top__line+.th2-footer-credit-top__line {
  margin-top: 6px;
}

/* =====================
   Header / Menu
   ===================== */

/* eski sınıflar (geri uyum) */
.th2-topbar {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}

.th2-header {
  background: var(--th2-topbar);
  border-bottom: 1px solid #eef2f7;
  position: relative;
  z-index: 1000;
}

/* Site Ayarları > Header alanı yapışkan olsun (V2) */
body.th2-header-sticky-v2 .th2-header {
  position: sticky;
  top: 0;
}

.th2-header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.th2-hamburger,
.th2-search-toggle,
.th2-offcanvas__close,
.th2-searchclose {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--th2-menu-icon);
}

.th2-ico-close {
  display: none;
}

body.th2-search-open .th2-ico-search {
  display: none;
}

body.th2-search-open .th2-ico-close {
  display: inline;
}

.th2-hamburger:hover,
.th2-search-toggle:hover,
.th2-offcanvas__close:hover,
.th2-searchclose:hover {
  background: #f3f6fb;
}

.th2-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}

.th2-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.th2-brand-text {
  color: #111;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Desktop nav */
.th2-nav {
  display: none;
  margin-left: auto;
}

@media (min-width: 981px) {
  .th2-nav {
    display: block;
  }

  .th2-header__bar {
    gap: 18px;
  }

  .th2-brand {
    flex: 0;
    justify-content: flex-start;
  }

  .th2-hamburger {
    display: none;
  }
}

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

.th2-menu>li {
  position: relative;
}

.th2-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 12px;
  color: #2b2f36;
  font-weight: 600;
  text-decoration: none;
}

.th2-menu a:hover {
  background: #f3f6fb;
}

/* TeknoPanel: Menü hover çizgisi rengi */
.th2-menu>li>a {
  position: relative;
}

.th2-menu>li>a::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--th2-menu-hover);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(.6);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.th2-menu>li:hover>a::before,
.th2-menu>li.current-menu-item>a::before,
.th2-menu>li.current-menu-ancestor>a::before {
  opacity: 1;
  transform: scaleX(1);
}

/* TeknoPanel: Başlık rengi */
.entry h1,
.entry h2,
.entry h3,
.entry h4,
.entry h5,
.entry h6,
.widget-title,
/* TeknoPanel: Widget başlık rengi (sabit, light/dark uyumlu) */
.th2-related-title,
.th2-related-card-title,
.th2-slider-title,
.tb-kayan-head-title,
.tb-kayan-post-title,
.tb-popular-title,
.tb-timeline-title,
.th2-ahp-title,
.th2-city-feature-title,
.th2-city-item-title,
.th2-mag-title,
.th2-mhp-title {
  color: var(--th2-title);
}

/* TeknoPanel: İçerik başlık rengi (h1-h6) */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.single .entry-title,
.page .entry-title,
.archive .page-title,
.search .page-title,
h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading,
h5.wp-block-heading,
h6.wp-block-heading {
  color: var(--th2-heading);
}





.th2-menu li.menu-item-has-children>a::after {
  content: "▾";
  font-size: 12px;
  opacity: .7;
  transform: translateY(-1px);
}

.th2-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  left: 0;
  /*
    Eskiden "top: calc(100% + 8px)" olduğu için ana menü ile
    dropdown arasında 8px boşluk oluşuyordu. Mouse aşağı inerken
    bu boşlukta hover kaybolup menü kapanıyordu.
    Boşluğu görsel olarak korumak için margin-top kullanıyoruz;
    ayrıca ::before ile görünmez bir "köprü" alanı ekliyoruz.
  */
  top: 100%;
  margin-top: 8px;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
  display: none;
  z-index: 1100;
}

/* Dropdown ile ana menü arasındaki boşluğu kapatmak için görünmez köprü */
.th2-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: -10px;
  width: 100%;
  height: 10px;
}

.th2-menu .sub-menu a {
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 600;
  color: #111;
}

.th2-menu>li:hover>.sub-menu,
.th2-menu>li:focus-within>.sub-menu {
  display: block;
}

/* Search panel */
.th2-searchpanel {
  display: none;
  background: #fff;
  border-top: 1px solid #eef2f7;
}

body.th2-search-open .th2-searchpanel {
  display: block;
}

.th2-searchpanel__inner {
  padding: 12px 0 14px;
}

.th2-searchform {
  display: flex;
  gap: 10px;
  align-items: center;
}

.th2-searchform input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
}

.th2-searchform input:focus {
  border-color: rgba(11, 106, 168, .5);
  box-shadow: 0 0 0 3px rgba(11, 106, 168, .12);
}

.th2-searchsubmit {
  background: var(--th2-menu-search);
  color: #111;
  border: 0;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.th2-searchsubmit:hover {
  filter: brightness(.97);
}

/* Offcanvas mobile menu */
.th2-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

body.th2-offcanvas-open {
  overflow: hidden;
}

body.th2-offcanvas-open .th2-offcanvas {
  display: block;
}

.th2-offcanvas__panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d0d0f 0%, #121216 100%);
  color: #fff;
  padding: 14px 16px 18px;
  overflow: auto;
}

.th2-offcanvas__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.th2-offcanvas__brand img {
  display: block;
  height: 32px;
  width: auto;
}

.th2-offcanvas__close {
  color: #fff;
}

.th2-offcanvas__close:hover {
  background: rgba(255, 255, 255, .08);
}

.th2-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.th2-mobile-menu>li {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.th2-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .1px;
  flex: 1;
}

.th2-mobile-menu a:hover {
  background: rgba(255, 255, 255, .06);
}

.th2-mobile-menu .sub-menu {
  list-style: none;
  margin: 0 0 8px 0;
  padding: 0 0 0 12px;
  display: none;
  width: 100%;
}

.th2-mobile-menu li.is-open>.sub-menu {
  display: block;
}

.th2-mobile-menu .sub-menu a {
  font-weight: 600;
  opacity: .92;
  padding: 10px 10px;
}

.th2-mm-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.th2-mm-toggle:hover {
  background: rgba(255, 255, 255, .09);
}

.th2-offcanvas__social {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.th2-social {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.th2-social:hover {
  background: rgba(255, 255, 255, .10);
}

.th2-main {
  padding: 18px 0 26px;
}

.th2-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.th2-grid.has-left.has-right {
  grid-template-columns: 320px 1fr 320px;
}

.th2-grid.has-left:not(.has-right) {
  grid-template-columns: 320px 1fr;
}

.th2-grid.has-right:not(.has-left) {
  grid-template-columns: 1fr 320px;
}

.th2-grid:not(.has-left):not(.has-right) {
  grid-template-columns: 1fr;
}

@media (max-width: 980px) {
  .th2-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive: has-left/has-right grid varyasyonları mobilde tek kolona düşsün (boş kolon bırakmasın) */
  .th2-grid.has-left.has-right,
  .th2-grid.has-left:not(.has-right),
  .th2-grid.has-right:not(.has-left) {
    grid-template-columns: 1fr !important;
  }

  .th2-maincol {
    min-width: 0;
  }

  .th2-sidebar--right {
    order: 2;
  }

  .th2-sidebar--left {
    order: 3;
  }

  /* Site Ayarları > Mobilde sidebarları gizle */
  body.th2-hide-sidebars-mobile .th2-sidebar {
    display: none !important;
  }

  /* Site Ayarları > Mobilde yazı etiketlerini gizle */
  body.th2-hide-post-tags-mobile .th2-post-tags {
    display: none !important;
  }

  /* Site Ayarları > Mobil footer gizleme seçenekleri */
  body.th2-hide-footer-logo-social-mobile .th2-footer .th2-footer-brand,
  body.th2-hide-footer-logo-social-mobile .th2-footer .th2-footer-social {
    display: none !important;
  }

  body.th2-hide-footer-menu-1-mobile .th2-footer .th2-footer-menu-1 {
    display: none !important;
  }

  body.th2-hide-footer-menu-2-mobile .th2-footer .th2-footer-menu-2 {
    display: none !important;
  }

  body.th2-hide-footer-featured-mobile .th2-footer .th2-footer-featured {
    display: none !important;
  }

  body.th2-hide-footer-bottom-text-mobile .th2-footer .th2-footer-bottom {
    display: none !important;
  }

  /* Site Ayarları > Arşivde üst kısım yapışkan olsun (Mobil) */
  body.th2-archive-sticky-mobile .th2-archive-top {
    position: sticky;
    top: 64px;
    background: #fff;
    z-index: 5;
    border-bottom: 1px solid #eef2f7;
  }
}

@media (min-width: 981px) {

  /* Site Ayarları > Sidebar yapışkan olsun */
  body.th2-sidebar-sticky .th2-sidebar {
    position: sticky;
    top: 86px;
    align-self: start;
  }

  /* Site Ayarları > Boxlar yapışkan gösterilsin (... ) */
  body.th2-boxes-sticky .th2-sidebar .widget.th2-card:first-child {
    position: sticky;
    top: 86px;
  }
}


/* Sol ana sütun (slider + anasayfa bileşenleri + içerikler) */
.th2-maincol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.th2-card {
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(17, 24, 39, .06);
  overflow: hidden;
}

.th2-card .p {
  padding: 14px;
}

.th2-post {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #eef2f7;
}

.th2-post:last-child {
  border-bottom: 0;
}

.th2-post img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 600px) {
  .th2-post {
    grid-template-columns: 1fr;
  }

  .th2-post img {
    height: 200px;
  }
}

.th2-meta {
  font-size: 12px;
  opacity: .75;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 0;
}

.th2-meta span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* =====================
   HABER SLIDER (Tekno Haber 2)
   1 büyük slider + altta thumb şeridi
   ===================== */
.th2-slider {
  margin-bottom: 0;
  position: relative;
}

.th2-slider-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  border: 1px solid #e9edf5;
  box-shadow: 0 10px 36px rgba(17, 24, 39, .08);
}

.th2-slider-track {
  display: flex;
  width: 100%;
  transform: translateX(0%);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}

.th2-slider-item {
  min-width: 100%;
  position: relative;
}

.th2-slider-link {
  display: block;
  position: relative;
  color: #fff;
  text-decoration: none;
}

.th2-slider-link:hover {
  text-decoration: none;
}

.th2-slider-link img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: saturate(1.12) contrast(1.08) brightness(.92);
}

/* Site genişliği "Geniş / Tam" seçiliyken masaüstünde slider biraz daha yüksek olsun */
@media (min-width: 981px) {
  body.th2-width-genis .th2-slider-link img {
    height: 480px;
  }

  body.th2-width-tam .th2-slider-link img {
    height: 520px;
  }
}

@media (max-width: 980px) {
  .th2-slider-link img {
    height: 340px;
  }
}

@media (max-width: 600px) {
  .th2-slider-link img {
    height: 260px;
  }
}

.th2-slider-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 500px at 50% 10%, rgba(0, 0, 0, .35), rgba(0, 0, 0, .75)),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .72));
}

.th2-slider-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Yazıları görselin alt kısmına indir */
  justify-content: flex-end;
  text-align: center;
  padding: 18px 14px 36px;
  gap: 10px;
}

.th2-slider-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #c40000;
  color: #fff;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  max-width: min(680px, 94%);
}

.th2-slider-title {
  display: block;
  margin: 0;
  max-width: min(860px, 96%);
  font-weight: 1000;
  text-transform: uppercase;
  line-height: 1.03;
  font-size: clamp(22px, 4.2vw, 50px);
  color: #f2f4ff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, .30),
    0 10px 28px rgba(0, 0, 0, .55);
  -webkit-text-stroke: 2px rgba(0, 0, 0, .35);
}

.th2-slider-meta {
  margin: 0;
  font-size: 12px;
  opacity: .95;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .12);
}

.th2-slider-meta .th2-dot {
  opacity: .7;
}

.th2-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform .15s ease, background .15s ease;
}

.th2-slider-arrow:hover {
  background: rgba(0, 0, 0, .55);
}

.th2-slider-arrow:active {
  transform: translateY(-50%) scale(.96);
}

.th2-slider-prev {
  left: 12px;
}

.th2-slider-next {
  right: 12px;
}

.th2-slider-thumbs {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e9edf5;
  box-shadow: 0 8px 26px rgba(17, 24, 39, .06);
}

.th2-slider-thumbs::-webkit-scrollbar {
  height: 8px;
}

.th2-slider-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  text-decoration: none;
  line-height: 0;
}

.th2-slider-thumbimg {
  /* span inline olduğu için (tema reset'lerinde) width/height uygulanmayabiliyor.
     Thumbnails görünmüyorsa bunun sebebi genelde display:inline kalmasıdır. */
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
  border: 3px solid rgba(255, 255, 255, .9);
  outline: 2px solid transparent;
  transition: transform .15s ease, outline .15s ease;
}

.th2-slider-thumb:hover .th2-slider-thumbimg {
  transform: translateY(-1px);
}

.th2-slider-thumb.is-active .th2-slider-thumbimg {
  outline: 2px solid var(--th2-primary);
}

/* Reklam thumb 'R' göstergesi - Premium Görünüm */
.th2-slider-thumb--ad .th2-slider-thumbimg {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.th2-slider-thumb--ad .th2-slider-thumbimg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

/* Thumb hover önizleme kaldırıldı */

/* Mobilde thumb seçicileri tamamen gizle (server-side de basmıyoruz ama güvenlik için) */
@media (max-width: 768px) {
  .th2-slider-thumbs {
    display: none !important;
  }
}

/* =====================
   SON DAKİKA ALT YAZI (Ticker)
   Sağdan sola akar, sol etiket üstüne bindiği için yazı etikete gelince "kaybolur".
   ===================== */
.th2-breaking {
  --th2-break-bg: #111;
  --th2-break-label-bg: #c40000;
  --th2-break-text: #fff;
  --th2-break-speed: 22s;
  position: relative;
  height: 46px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--th2-break-bg);
  color: var(--th2-break-text);
  border: 1px solid #e9edf5;
  box-shadow: 0 8px 26px rgba(17, 24, 39, .06);
}

.th2-breaking-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--th2-break-label-bg);
  color: #fff;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 10px 0 24px rgba(0, 0, 0, .25);
}

.th2-breaking-track {
  position: absolute;
  inset: 0;
  padding-left: 150px;
  /* etiket alanı */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.th2-breaking-track:before,
.th2-breaking-track:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
  z-index: 2;
}

.th2-breaking-track:before {
  left: 150px;
  background: linear-gradient(90deg, var(--th2-break-bg), rgba(17, 17, 17, 0));
}

.th2-breaking-track:after {
  right: 0;
  background: linear-gradient(270deg, var(--th2-break-bg), rgba(17, 17, 17, 0));
}

.th2-breaking-move {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  will-change: transform;
  animation: th2Marquee var(--th2-break-speed) linear infinite;
  padding-left: 18px;
}

.th2-breaking-item {
  font-weight: 700;
}

.th2-breaking-item a {
  color: var(--th2-break-text);
  text-decoration: none;
}

.th2-breaking-item a:hover {
  text-decoration: underline;
}

.th2-breaking-sep {
  opacity: .75;
}

.th2-breaking:hover .th2-breaking-move {
  animation-play-state: paused;
}

/* Widget içine yerleştirildiğinde kart iç boşluğu olmasın (alt yazı gibi dursun) */
.widget_th2_breaking_ticker .p {
  padding: 0;
}

@keyframes th2Marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .th2-breaking {
    height: 44px;
    border-radius: 14px;
  }

  .th2-breaking-label {
    width: 120px;
    font-size: 13px;
  }

  .th2-breaking-track {
    padding-left: 120px;
  }

  .th2-breaking-track:before {
    left: 120px;
  }
}

.th2-sidebar .widget {
  margin-bottom: 16px;
}

.th2-sidebar .widget-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: #111;
}

/* Anasayfa bileşen alanları */
.th2-home-widgets .widget {
  margin-bottom: 16px;
}

.th2-footer {
  background: var(--th2-footer-bg);
  color: #fff;
  padding: 28px 0 16px;
  margin-top: 18px;
}

.th2-footer a {
  color: #fff;
  text-decoration: none;
}

.th2-footer a:hover {
  text-decoration: underline;
}

.th2-footer .cols {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.1fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1100px) {
  .th2-footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .th2-footer .cols {
    grid-template-columns: 1fr;
  }
}

.th2-footer-heading {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.th2-footer-heading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 3px;
  background: var(--th2-secondary);
  border-radius: 3px;
}

.th2-footer-logo {
  height: 38px;
  width: auto;
  display: block;
  margin: 0 0 10px;
}

.th2-footer-text1 {
  opacity: .92;
  font-size: 14px;
  line-height: 1.45;
}

.th2-footer-social {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.th2-footer-social__item {
  opacity: .9;
  font-size: 13px;
}

.th2-footer-social__item:hover {
  opacity: 1;
}

.th2-footer .menu,
.th2-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.th2-footer .menu li {
  margin: 8px 0;
}

.th2-footer .menu a {
  display: inline-block;
  opacity: .95;
}

/* Son Eklenenler */
.th2-footer-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.th2-footer-post {
  display: flex;
  gap: 10px;
  align-items: center;
}

.th2-footer-post__thumb {
  width: 64px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
}

.th2-footer-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th2-footer-post__meta {
  min-width: 0;
}

.th2-footer-post__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  font-size: 13px;
}

.th2-footer-post__date {
  opacity: .85;
  display: block;
  margin-top: 4px;
}

/* Footer alt satır */
.th2-footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.th2-footer-bottom__texts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.th2-footer-bottom-text {
  opacity: .92;
}

/* Brand credit: alt satırda border/margin kaldır */
.th2-footer-bottom .th2-brand-credit {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}

.th2-footer-bottom .th2-brand-credit small {
  opacity: .92;
}

.th2-footer-bottom .th2-brand-credit a {
  font-weight: 800;
}

/* Genel brand credit */
.th2-brand-credit {
  text-align: center;
}

.th2-brand-credit a {
  text-decoration: none;
  font-weight: 800;
}

/* =========================
   TH2: Gelişmiş Yazılar Ana Sayfa (3 Sütun)
   ========================= */
.th2-ahp {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  padding: 18px 18px 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.th2-ahp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.th2-ahp-col {
  min-width: 0;
}

.th2-ahp-heading {
  margin: 0 0 14px;
  color: #111111;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.th2-ahp-heading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 3px;
  background: #ff7a00;
  border-radius: 3px;
}

.th2-ahp-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.th2-ahp-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.th2-ahp-item.no-thumb {
  grid-template-columns: 1fr;
}

.th2-ahp-thumb {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f5f7;
  flex: none;
}

.th2-ahp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th2-ahp-cat {
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 0, 0, .62);
  margin-bottom: 4px;
}

.th2-ahp-title {
  display: inline-block;
  color: #111111;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.th2-ahp-title:hover {
  text-decoration: underline;
}

.th2-ahp-meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, .55);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.th2-ahp-meta i {
  opacity: .85;
}

.th2-ahp-empty {
  font-size: 13px;
  color: rgba(0, 0, 0, .55);
  padding: 10px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .th2-ahp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .th2-ahp {
    padding: 14px;
  }

  .th2-ahp-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .th2-ahp-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .th2-ahp-thumb {
    width: 72px;
    height: 72px;
  }
}


/* =========================
   TH2: Gelişmiş Yazılar Mobil Anasayfa (Yatay Kaydırmalı)
   ========================= */
.th2-mhp {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.th2-mhp-block+.th2-mhp-block {
  margin-top: 18px;
}

.th2-mhp-heading {
  margin: 0 0 12px;
  color: #111111;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.th2-mhp-heading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 3px;
  background: #ff7a00;
  border-radius: 3px;
}

.th2-mhp-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.th2-mhp-row::-webkit-scrollbar {
  height: 8px;
}

.th2-mhp-row::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .05);
  border-radius: 999px;
}

.th2-mhp-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .20);
  border-radius: 999px;
}

.th2-mhp-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.th2-mhp-link {
  display: block;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none;
  height: 100%;
}

.th2-mhp-media {
  display: block;
  background: #f3f5f7;
}

.th2-mhp-media img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.th2-mhp-noimg {
  display: block;
  width: 100%;
  height: 120px;
}

.th2-mhp-body {
  display: block;
  padding: 10px 12px 12px;
}

.th2-mhp-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: rgba(0, 0, 0, .62);
  margin-bottom: 6px;
}

.th2-mhp-title {
  display: block;
  color: #111111;
  font-weight: 800;
  line-height: 1.25;
  font-size: 13px;
}

.th2-mhp-meta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, .55);
}

.th2-mhp-empty {
  font-size: 13px;
  color: rgba(0, 0, 0, .55);
  padding: 8px 0 2px;
}

@media (max-width: 600px) {
  .th2-mhp {
    padding: 14px;
  }

  .th2-mhp-card {
    flex-basis: 180px;
  }

  .th2-mhp-media img,
  .th2-mhp-noimg {
    height: 108px;
  }
}



/* TH2: Şehir / Kategori Blok (Anasayfa) */

.th2-city-block {
  width: 100%;
}

.th2-city-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.th2-city-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--th2-secondary);
  flex: 0 0 auto;
}

.th2-city-label {
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 14px;
  color: #111;
}

.th2-city-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.th2-city-feature {
  border: 1px solid #e9edf5;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.th2-city-feature-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.th2-city-feature-link:hover .th2-city-feature-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.th2-city-feature-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.th2-city-feature-placeholder {
  width: 100%;
  height: 360px;
  background: #f3f4f6;
}

.th2-city-feature-body {
  padding: 12px 12px 14px;
  background: #fff;
}

.th2-city-feature-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.th2-city-feature-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.th2-city-side {
  border: 1px solid #e9edf5;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.th2-city-side-list {
  display: block;
}

.th2-city-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eef2f7;
}

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

.th2-city-item:hover .th2-city-item-title {
  text-decoration: underline;
}

.th2-city-item-thumb {
  width: 78px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #eef2f7;
}

.th2-city-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th2-city-item-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
}

.th2-city-item-body {
  min-width: 0;
}

.th2-city-item-title {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th2-city-item-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.th2-city-side-footer {
  margin-top: auto;
  padding: 10px 12px 12px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.th2-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #dbe3f2;
  color: var(--th2-primary);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.th2-btn-outline:hover {
  border-color: var(--th2-primary);
}

.th2-city-empty {
  padding: 14px;
  color: #6b7280;
  background: #fff;
}

.th2-city-empty.small {
  padding: 12px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .th2-city-grid {
    grid-template-columns: 1fr;
  }

  .th2-city-feature-media img,
  .th2-city-feature-placeholder {
    height: 260px;
  }
}

/* =====================
   Altın Piyasası Bileşeni
   ===================== */
.th2-gold-market {
  width: 100%;
}

.th2-gold-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.th2-gold-item {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.th2-gold-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #111827;
  opacity: .9;
  margin-bottom: 6px;
}

.th2-gold-price {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
}

.th2-gold-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  opacity: .85;
}

.th2-gold-buy {
  color: #475569;
}

.th2-gold-change {
  font-weight: 800;
}

.th2-gold-change.up {
  color: #16a34a;
}

.th2-gold-change.down {
  color: #dc2626;
}

.th2-gold-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: #6b7280;
}

.th2-gold-stale {
  opacity: .75;
}


/* =====================
   Para Piyasaları Bileşeni
   ===================== */
.th2-fx-market {
  width: 100%;
}

.th2-fx-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.th2-fx-item {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.th2-fx-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.th2-fx-code {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 106, 168, .08);
  color: var(--th2-primary);
}

.th2-fx-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #111827;
  opacity: .9;
}

.th2-fx-price {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
}

.th2-fx-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  opacity: .85;
}

.th2-fx-buy {
  color: #475569;
}

.th2-fx-change {
  font-weight: 800;
}

.th2-fx-change.up {
  color: #16a34a;
}

.th2-fx-change.down {
  color: #dc2626;
}

.th2-fx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: #6b7280;
}

.th2-fx-stale {
  opacity: .75;
}


/* =====================
   Kripto Para Piyasası Bileşeni
   ===================== */
.th2-crypto-market {
  width: 100%;
}

.th2-crypto-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.th2-crypto-item {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.th2-crypto-name {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
}

.th2-crypto-code {
  font-weight: 800;
  font-size: 13px;
  color: #111827;
  letter-spacing: .2px;
}

.th2-crypto-label {
  font-size: 12px;
  color: #6b7280;
}

.th2-crypto-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.th2-crypto-try {
  font-weight: 800;
  font-size: 16px;
  color: #111827;
}

.th2-crypto-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.th2-crypto-usd {
  opacity: .9;
}

.th2-crypto-change {
  font-weight: 700;
}

.th2-crypto-change.up {
  color: #16a34a;
}

.th2-crypto-change.down {
  color: #dc2626;
}

.th2-crypto-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: #6b7280;
}

.th2-crypto-stale {
  opacity: .75;
}



/* =====================
   Hava Durumu Bileşeni
   ===================== */
.th2-weather-market {
  width: 100%;
  border: 1px solid var(--th2-border);
  background: var(--th2-card);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .04);
}

.th2-weather-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.th2-weather-main {
  flex: 1;
  min-width: 0;
}

.th2-weather-city {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  color: var(--th2-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.th2-weather-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.th2-weather-temp {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--th2-primary);
  line-height: 1;
}

.th2-weather-desc {
  font-size: 12px;
  font-weight: 800;
  color: var(--th2-muted);
  text-align: right;
  line-height: 1.2;
}

.th2-weather-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--th2-border);
  font-size: 11px;
  color: var(--th2-muted);
}

.th2-weather-refresh {
  appearance: none;
  border: 1px solid var(--th2-border);
  background: #fff;
  color: var(--th2-text);
  font-weight: 800;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.th2-weather-refresh:hover {
  border-color: var(--th2-primary);
  color: var(--th2-primary);
}

.th2-weather-note {
  margin-top: 8px;
  color: var(--th2-muted);
}

.th2-weather-stale {
  opacity: .75;
}

/* Icon Base */
.th2-weather-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11, 106, 168, .10), rgba(11, 106, 168, .02));
  border: 1px solid rgba(11, 106, 168, .12);
  position: relative;
  overflow: hidden;
  flex: 0 0 58px;
}

.th2-weather-icon * {
  box-sizing: border-box;
}

/* show/hide layers by condition */
.th2-weather-sun,
.th2-weather-clouds,
.th2-weather-rain,
.th2-weather-snow {
  position: absolute;
  inset: 0;
  display: none;
}

.th2-weather-icon[data-condition="clear"] .th2-weather-sun {
  display: block;
}

.th2-weather-icon[data-condition="clouds"] .th2-weather-clouds {
  display: block;
}

.th2-weather-icon[data-condition="rain"] .th2-weather-clouds,
.th2-weather-icon[data-condition="rain"] .th2-weather-rain {
  display: block;
}

.th2-weather-icon[data-condition="snow"] .th2-weather-clouds,
.th2-weather-icon[data-condition="snow"] .th2-weather-snow {
  display: block;
}

/* Sun (sunrise) */
.th2-sun-core {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--th2-secondary);
  left: 18px;
  top: 44px;
  transform: translateY(0);
  animation: th2SunRise 2.6s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(255, 155, 47, .45);
}

.th2-sun-rays {
  position: absolute;
  left: 14px;
  top: 40px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 155, 47, .45);
  animation: th2RaySpin 3.2s linear infinite;
  transform-origin: center;
}

@keyframes th2SunRise {
  0% {
    transform: translateY(10px);
    opacity: .75;
  }

  50% {
    transform: translateY(-16px);
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: .75;
  }
}

@keyframes th2RaySpin {
  0% {
    transform: rotate(0deg);
    opacity: .5;
  }

  50% {
    opacity: .9;
  }

  100% {
    transform: rotate(360deg);
    opacity: .5;
  }
}

/* Clouds */
.th2-cloud {
  position: absolute;
  width: 34px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
  top: 22px;
  left: -40px;
  animation: th2CloudMove 4.6s linear infinite;
}

.th2-cloud:before,
.th2-cloud:after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, .95);
  border-radius: 50%;
}

.th2-cloud:before {
  width: 16px;
  height: 16px;
  left: 6px;
  top: -8px;
}

.th2-cloud:after {
  width: 20px;
  height: 20px;
  left: 14px;
  top: -12px;
}

.th2-cloud.c2 {
  top: 34px;
  width: 28px;
  height: 14px;
  opacity: .85;
  animation-duration: 5.6s;
  animation-delay: -1.2s;
}

@keyframes th2CloudMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(110px);
  }
}

/* Rain */
.th2-drop {
  position: absolute;
  width: 2px;
  height: 10px;
  background: rgba(11, 106, 168, .55);
  border-radius: 999px;
  top: 30px;
  left: 18px;
  animation: th2Rain 1.0s linear infinite;
}

.th2-drop.d2 {
  left: 26px;
  animation-delay: -.2s;
  height: 12px;
}

.th2-drop.d3 {
  left: 34px;
  animation-delay: -.45s;
  height: 9px;
}

.th2-drop.d4 {
  left: 42px;
  animation-delay: -.15s;
  height: 11px;
}

@keyframes th2Rain {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(24px);
    opacity: 0;
  }
}

/* Snow */
.th2-flake {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  top: 26px;
  left: 18px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, .08);
  animation: th2Snow 1.8s linear infinite;
}

.th2-flake.f2 {
  left: 28px;
  animation-delay: -.35s;
  width: 4px;
  height: 4px;
  opacity: .95;
}

.th2-flake.f3 {
  left: 38px;
  animation-delay: -.7s;
  width: 5px;
  height: 5px;
  opacity: .85;
}

.th2-flake.f4 {
  left: 46px;
  animation-delay: -.15s;
  width: 3px;
  height: 3px;
  opacity: .9;
}

@keyframes th2Snow {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translateY(26px) translateX(6px);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .th2-weather-temp {
    font-size: 22px;
  }

  .th2-weather-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
}

/* =====================
   TB KAYAN YAZI (Sidebar)
   ===================== */
.tb-kayan {
  width: 100%;
}

.tb-kayan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tb-kayan-head-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  color: #111;
}

.tb-kayan-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(11, 106, 168, .08);
  color: var(--th2-primary);
}

.tb-kayan-nav {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--th2-primary);
  transition: transform .12s ease, background .12s ease;
}

.tb-kayan-nav:hover {
  transform: translateY(-1px);
  background: rgba(11, 106, 168, .05);
}

.tb-kayan-line {
  height: 2px;
  width: 64px;
  margin: 10px auto 12px;
  border-radius: 999px;
  background: var(--th2-primary);
  opacity: .85;
}

.tb-kayan-stage {
  position: relative;
}

.tb-kayan-slide {
  display: none;
}

.tb-kayan-slide.is-active {
  display: block;
}

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

.tb-kayan-img {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f5f7;
}

.tb-kayan-img img {
  width: 100%;
  height: auto;
  display: block;
}

.tb-kayan-img-ico {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  backdrop-filter: blur(2px);
}

.tb-kayan-body {
  padding: 12px 6px 0;
}

.tb-kayan-post-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 8px;
  color: #111;
}

.tb-kayan-excerpt {
  font-size: 13px;
  line-height: 1.5;
  opacity: .85;
  margin: 0 0 10px;
}

.tb-kayan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  opacity: .75;
}

.tb-kayan-meta-date .tb-kayan-meta-ico {
  margin-right: 6px;
}

/* Renk temaları */
.tb-kayan--site .tb-kayan-line {
  background: var(--th2-primary);
}

.tb-kayan--site .tb-kayan-nav {
  color: var(--th2-primary);
}

.tb-kayan--site .tb-kayan-ico {
  color: var(--th2-primary);
  background: rgba(11, 106, 168, .08);
}

.tb-kayan--white .tb-kayan-line {
  background: rgba(0, 0, 0, .18);
}

.tb-kayan--white .tb-kayan-nav {
  color: #111;
}

.tb-kayan--white .tb-kayan-ico {
  color: #111;
  background: rgba(0, 0, 0, .06);
}

@media (max-width: 480px) {
  .tb-kayan-head-title {
    font-size: 16px;
  }

  .tb-kayan-nav {
    width: 32px;
    height: 32px;
  }
}

/* =====================
   TB ZAMAN TUNELI (Sidebar)
   ===================== */
.tb-timeline {
  width: 100%;
}

.tb-timeline-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  color: #111;
}

.tb-timeline-head-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(11, 106, 168, .08);
  color: var(--th2-primary);
}

.tb-timeline-head-line {
  height: 1px;
  background: rgba(0, 0, 0, .08);
  margin: 10px 0 14px;
  position: relative;
}

.tb-timeline-head-line span {
  display: block;
  width: 84px;
  height: 2px;
  border-radius: 999px;
  background: var(--th2-primary);
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
}

.tb-timeline-list {
  position: relative;
}

.tb-timeline-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 18px;
}

/* dikey çizgi + noktalar */
.tb-timeline-item:before {
  content: '';
  position: absolute;
  left: 70px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .12);
}

.tb-timeline-item:after {
  content: '';
  position: absolute;
  left: 73px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, .10);
}

.tb-timeline-item:last-child:after {
  display: none;
}

.tb-timeline-time {
  width: 58px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: var(--th2-primary);
  flex: 0 0 58px;
}

.tb-timeline-content {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.tb-timeline-title {
  display: block;
  text-decoration: none;
  color: #111;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.22;
  margin: 0 0 8px;
}

.tb-timeline-title:hover {
  text-decoration: underline;
}

.tb-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: rgba(0, 0, 0, .60);
}

.tb-timeline-mi {
  margin-right: 6px;
  opacity: .85;
}

/* Renk temaları */
.tb-timeline--site .tb-timeline-head-ico {
  color: var(--th2-primary);
  background: rgba(11, 106, 168, .08);
}

.tb-timeline--site .tb-timeline-head-line span {
  background: var(--th2-primary);
}

.tb-timeline--site .tb-timeline-time {
  background: var(--th2-primary);
}

.tb-timeline--white .tb-timeline-head-ico {
  color: #111;
  background: rgba(0, 0, 0, .06);
}

.tb-timeline--white .tb-timeline-head-line span {
  background: rgba(0, 0, 0, .18);
}

.tb-timeline--white .tb-timeline-time {
  background: #1f2a44;
}

@media (max-width: 480px) {
  .tb-timeline-head {
    font-size: 16px;
  }

  .tb-timeline-item {
    gap: 12px;
  }

  .tb-timeline-item:before {
    left: 66px;
  }

  .tb-timeline-item:after {
    left: 69px;
  }

  .tb-timeline-time {
    width: 54px;
    flex-basis: 54px;
  }
}


/* =========================
   TB SIDEBAR POPÜLER YAZILAR
   ========================= */
.tb-popular {
  width: 100%;
}

.tb-popular--site {}

.tb-popular--white {}

.tb-popular-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 4px;
}

.tb-popular-head-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #111;
}

.tb-popular--site .tb-popular-head-center {
  color: #111;
}

.tb-popular-head-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(11, 106, 168, .08);
  color: var(--th2-primary);
}

.tb-popular-line {
  height: 2px;
  width: 58px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--th2-primary);
  opacity: .9;
}

.tb-popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tb-popular-item {
  width: 100%;
}

.tb-popular-img {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.tb-popular-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tb-popular-thumb--ph {
  background: linear-gradient(135deg, rgba(11, 106, 168, .12), rgba(0, 0, 0, .04));
}

.tb-popular-cat {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 106, 168, .92);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  max-width: 88%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-popular--white .tb-popular-cat {
  background: rgba(11, 106, 168, .92);
}

.tb-popular-img-ico {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  color: var(--th2-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.tb-popular-title {
  margin: 10px 2px 6px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.tb-popular-title a {
  color: #111;
  text-decoration: none;
}

.tb-popular-title a:hover {
  color: var(--th2-primary);
}

.tb-popular-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #8a8a8a;
  font-size: 12px;
  margin: 0 2px;
}

.tb-popular-mi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #b0b0b0;
  margin-right: 2px;
}

.tb-popular-mt {
  color: #8a8a8a;
}

.tb-popular-meta>span {
  display: inline-flex;
  align-items: center;
}

.tb-popular--white .tb-popular-title a {
  color: #111;
}

.tb-popular--white .tb-popular-meta {
  color: #8a8a8a;
}

@media (max-width: 480px) {
  .tb-popular-title {
    font-size: 13px;
  }

  .tb-popular-img {
    border-radius: 12px;
  }
}

/* ------------------------------------------------------------
   TH2: Mobil Anasayfa Gelişmiş Yazı (Grid)
   Mobil: 2 sütun  |  Masaüstü: 3 sütun
------------------------------------------------------------ */
.th2-mag-grid {
  width: 100%;
}

.th2-mag-grid--site {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.th2-mag-grid--white {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.th2-mag-head {
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
}

.th2-mag-head-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.th2-mag-head-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #111;
}

.th2-mag-head-ico i {
  font-size: 18px;
}

.th2-mag-line {
  height: 2px;
  width: 68px;
  margin: 0 auto 14px;
  background: var(--th2-primary);
  border-radius: 2px;
}

.th2-mag-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.th2-mag-card {
  width: 100%;
}

.th2-mag-media {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f3f5;
}

.th2-mag-thumb {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.th2-mag-thumb--ph {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .02));
}

.th2-mag-cat {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(14, 20, 33, .80);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.th2-mag-img-ico {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  color: #111;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .10);
}

.th2-mag-title {
  margin: 10px 0 6px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.th2-mag-title a {
  color: #111;
  text-decoration: none;
}

.th2-mag-title a:hover {
  color: var(--th2-primary);
}

.th2-mag-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #8a8a8a;
  font-size: 12px;
}

.th2-mag-mi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #b0b0b0;
  margin-right: 2px;
}

.th2-mag-mt {
  color: #8a8a8a;
}

.th2-mag-meta>span {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 920px) {
  .th2-mag-cards {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .th2-mag-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .th2-mag-title {
    font-size: 13px;
  }

  .th2-mag-thumb,
  .th2-mag-thumb--ph {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 380px) {
  .th2-mag-cards {
    gap: 12px;
  }

  .th2-mag-cat {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* =====================
   Scroll To Top (Footer Ayarı)
   ===================== */
.th2-scrolltop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 9999;
}

.th2-scrolltop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.th2-scrolltop .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

/* --- Reklam alanları --- */
.th2-ad {
  margin: 14px 0;
  text-align: center;
}

.th2-ad ins.adsbygoogle {
  display: block !important;
}

/* Tekil: resim + reklam yan yana (boxed_image_side_ad) */
.th2-featured-ad-wrap {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  align-items: stretch;
}

.th2-featured-ad-wrap .th2-featured-img {
  flex: 1 1 0;
  min-width: 0;
}

.th2-featured-ad-wrap .th2-featured-ad {
  flex: 0 0 350px;
  max-width: 350px;
}

@media (max-width: 860px) {
  .th2-featured-ad-wrap {
    flex-direction: column;
  }

  .th2-featured-ad-wrap .th2-featured-ad {
    flex: 1 1 auto;
    max-width: 100%;
  }
}

/* === TB2 SIDEBAR HIDE GRID SAFETY (landscape/large phones/tablets) === */
@media (max-width: 1200px) {

  body.th2-hide-sidebars-mobile .th2-grid.has-left.has-right,
  body.th2-hide-sidebars-mobile .th2-grid.has-left:not(.has-right),
  body.th2-hide-sidebars-mobile .th2-grid.has-right:not(.has-left) {
    grid-template-columns: 1fr !important;
  }
}


/* =====================
   TB2 Tablet+Mobile Sidebar Collapse
   Ayar: "Mobilde sidebarları gizle" açıksa, tablet çözünürlüklerinde de kolonları erken kaldır.
   ===================== */
@media (max-width: 1199.98px) {

  body.th2-hide-sidebars-mobile .th2-sidebar,
  body.th2-hide-sidebars-mobile .th2-sidebar--left,
  body.th2-hide-sidebars-mobile .th2-sidebar--right {
    display: none !important;
  }

  body.th2-hide-sidebars-mobile .th2-grid,
  body.th2-hide-sidebars-mobile .th2-grid.has-left,
  body.th2-hide-sidebars-mobile .th2-grid.has-right,
  body.th2-hide-sidebars-mobile .th2-grid.has-left.has-right {
    grid-template-columns: 1fr !important;
  }

  body.th2-hide-sidebars-mobile .th2-maincol {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
}


/* =========================
   TB2 - Paylaş (Sadece ikon)
   WhatsApp / X / Facebook / Telegram
   ========================= */
.th2-share {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.th2-share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9edf5;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.th2-share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.th2-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}


/* =========================
   TB2 - İlgili Konular (Mobilde 2 sütun)
   ========================= */
.th2-related {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.th2-related-title {
  margin: 0 0 10px;
}

.th2-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.th2-related-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f5f9;
}

.th2-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th2-related-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.25;
}

@media (max-width: 991.98px) {
  .th2-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .th2-related-card .p {
    padding: 10px;
  }

  .th2-related-card-title {
    font-size: 15px;
  }

  .th2-related-card .th2-meta {
    font-size: 12px;
  }
}



/* =========================================================
   TB2 DARK MODE (Açık/Koyu Tema) - v1
   - OS tercihi: prefers-color-scheme
   - Manuel: header'daki buton + localStorage (th2_theme)
   ========================================================= */
:root {
  --th2-bg: #ffffff;
  --th2-surface: #ffffff;
  --th2-surface-2: #f6f8fb;
  --th2-text: #0f172a;
  --th2-muted: #64748b;
  --th2-border: #e5e7eb;

  /* link rengi (açık tema) */
  --th2-link2: var(--th2-link, #0b6aa8);
}

/* Koyu tema: html.tb-dark */
html.tb-dark {
  --th2-bg: #0b1220;
  --th2-surface: #0f172a;
  --th2-surface-2: #111c2f;
  --th2-text: #e5e7eb;
  --th2-muted: #94a3b8;
  --th2-title: #e5e7eb;
  --th2-border: #22304a;

  /* link rengi (koyu tema) */
  --th2-link2: #7dd3fc;
}

/* Otomatik koyu (manuel seçim yoksa) */
@media (prefers-color-scheme: dark) {
  html.th2-darkmode-enabled:not(.tb-dark):not(.tb-light) {
    --th2-bg: #0b1220;
    --th2-surface: #0f172a;
    --th2-surface-2: #111c2f;
    --th2-text: #e5e7eb;
    --th2-muted: #94a3b8;
    --th2-border: #22304a;
    --th2-link2: #7dd3fc;
  }
}

/* Temel yüzeyler */
html,
body {
  background: var(--th2-bg);
  color: var(--th2-text);
}

a {
  color: var(--th2-link2);
}

a:hover {
  opacity: .92;
}

/* Kart / kutu / panel arka planları */
.th2-card,
.th2-widget,
.widget,
.th2-post-card,
.th2-related-card,
.th2-searchpanel__inner,
.th2-offcanvas,
.th2-offcanvas__inner,
.th2-single,
.th2-single .th2-entry,
.th2-archive-item,
.th2-sidebar,
.th2-footer,
.th2-header,
.th2-header__bar {
  background: var(--th2-surface);
  color: var(--th2-text);
}

/* İkincil yüzeyler */
.th2-topline,
.th2-searchpanel,
.th2-offcanvas__head,
.th2-offcanvas__foot {
  background: var(--th2-surface-2);
  color: var(--th2-text);
}

/* Sınırlar */
.th2-card,
.th2-widget,
.widget,
.th2-archive-item,
.th2-offcanvas,
.th2-searchpanel__inner,
.th2-single,
.th2-single .th2-entry,
.th2-related-card {
  border-color: var(--th2-border) !important;
}

/* Metinler */
.th2-meta,
.th2-meta span,
.th2-date,
.th2-muted,
.th2-footer,
.th2-footer a,
.th2-menu a {
  color: var(--th2-muted);
}

.th2-title,
.th2-title a,
.th2-heading,
.th2-heading a,
.th2-single h1,
.th2-single h2,
.th2-single h3,
.th2-archive-title {
  color: var(--th2-text);
}

/* Formlar */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
  background: var(--th2-surface);
  color: var(--th2-text);
  border-color: var(--th2-border);
}

input::placeholder,
textarea::placeholder {
  color: var(--th2-muted);
}

/* Header butonları (hamburger/search/theme) */
.th2-hamburger,
.th2-search-toggle,
.th2-theme-toggle {
  background: transparent;
}

/* Dark mode toggle görünümü */
.th2-theme-toggle {
  border: 0;
  padding: 8px;
  margin-left: 6px;
  border-radius: 10px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--th2-menu-icon, var(--th2-text));
}

.th2-theme-toggle:active {
  transform: translateY(1px);
}

/* ikon swap: koyu temada güneş göster, açıkta ay göster */
.th2-theme-toggle .th2-ico-sun {
  display: none;
}

html.tb-dark .th2-theme-toggle .th2-ico-sun {
  display: inline;
}

html.tb-dark .th2-theme-toggle .th2-ico-moon {
  display: none;
}

/* Görsel üzeri badge/label'lar koyu temada okunaklı */
html.tb-dark .th2-cat-badge,
html.tb-dark .th2-cat-pill {
  background: rgba(125, 211, 252, .15);
  color: #7dd3fc;
}

/* Scrollbar (destekleyenlerde) */
html.tb-dark {
  color-scheme: dark;
}



/* =========================================================
   TB2 DARK MODE FIX PACK - v2 (Widget/Modül Arkaplanları)
   Bazı bileşenlerde sabit #fff kullanıldığı için koyu temada beyaz blok kalıyordu.
   Bu paket sadece html.tb-dark durumunda override eder.
   ========================================================= */

/* Slider thumb şeridi */
html.tb-dark .th2-slider-thumbs {
  background: var(--th2-surface);
  border-color: var(--th2-border);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}

html.tb-dark .th2-slider-thumbimg {
  border-color: rgba(15, 23, 42, .85);
}

/* Son Dakika ticker */
html.tb-dark .th2-breaking {
  border-color: var(--th2-border);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}

/* Kart/Modül kapları (mhp/ahp/mag) */
html.tb-dark .th2-mag-grid--site,
html.tb-dark .th2-mag-grid--white,
html.tb-dark .th2-mhp,
html.tb-dark .th2-ahp,
html.tb-dark .th2-mhp-link {
  background: var(--th2-surface);
  border-color: var(--th2-border);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
}

/* Başlıklar / ikonlar */
html.tb-dark .th2-mag-head-center,
html.tb-dark .th2-mhp-heading,
html.tb-dark .th2-ahp-heading {
  color: var(--th2-text);
  border-color: var(--th2-border);
}

html.tb-dark .th2-mag-head-ico {
  color: var(--th2-muted);
}

/* Medya placeholder arkaplanları */
html.tb-dark .th2-mag-media,
html.tb-dark .th2-mhp-media,
html.tb-dark .th2-related-thumb {
  background: var(--th2-surface-2);
}

/* Başlık ve meta renkleri */
html.tb-dark .th2-mag-title a,
html.tb-dark .th2-mhp-title,
html.tb-dark .th2-mhp-title a {
  color: var(--th2-text) !important;
}

html.tb-dark .th2-mag-meta,
html.tb-dark .th2-mhp-meta,
html.tb-dark .th2-meta {
  color: var(--th2-muted) !important;
}

/* Etiketler */
html.tb-dark .th2-post-tags a {
  background: rgba(125, 211, 252, .10);
  color: var(--th2-text);
}

/* Mobil yatay liste scrollbar */
html.tb-dark .th2-mhp-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
}

html.tb-dark .th2-mhp-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}


/* =========================================================
   TB SIDEBAR POPÜLER YAZILAR - DARK MODE
   (Başlık/linkler sabit #111 olduğu için koyu temada görünmüyordu)
   ========================================================= */
html.tb-dark .tb-popular-head-center,
html.tb-dark .tb-popular--site .tb-popular-head-center,
html.tb-dark .tb-popular--white .tb-popular-head-center {
  color: var(--th2-text) !important;
}

html.tb-dark .tb-popular-title a,
html.tb-dark .tb-popular--white .tb-popular-title a,
html.tb-dark .tb-popular--site .tb-popular-title a {
  color: var(--th2-text) !important;
}

html.tb-dark .tb-popular-meta,
html.tb-dark .tb-popular-mt {
  color: var(--th2-muted) !important;
}

html.tb-dark .tb-popular-mi {
  color: var(--th2-muted) !important;
}

html.tb-dark .tb-popular-img {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

html.tb-dark .tb-popular-thumb--ph {
  background: linear-gradient(135deg, rgba(125, 211, 252, .12), rgba(0, 0, 0, .18));
}




/* =========================================================
   TB ZAMAN TUNELI - DARK MODE
   (Bazı alanlar sabit siyah olduğu için koyu temada okunmuyordu)
   ========================================================= */
html.tb-dark .tb-timeline-head,
html.tb-dark .tb-timeline-head-text,
html.tb-dark .tb-timeline-title {
  color: var(--th2-text) !important;
}

html.tb-dark .tb-timeline-meta,
html.tb-dark .tb-timeline-mi {
  color: var(--th2-muted) !important;
}

html.tb-dark .tb-timeline-head-line {
  background: rgba(255, 255, 255, .08) !important;
}

html.tb-dark .tb-timeline-item:before {
  background: rgba(255, 255, 255, .22) !important;
}

html.tb-dark .tb-timeline-item:after {
  background: rgba(255, 255, 255, .14) !important;
}

/* =========================================================
   TB2 DARK MODE FIX PACK - v4 (Market/City/Weather iç kartlar)
   Masaüstünde bazı bileşenlerin içindeki kutular sabit #fff olduğu için
   koyu temada beyaz kalıyordu.
   Sadece html.tb-dark durumunda override eder.
   ========================================================= */

/* Şehir/Kategori blok (sağ liste + buton) */
html.tb-dark .th2-city-label {
  color: var(--th2-text) !important;
}

html.tb-dark .th2-city-feature,
html.tb-dark .th2-city-side {
  background: var(--th2-surface) !important;
  border-color: var(--th2-border) !important;
}

html.tb-dark .th2-city-feature-body,
html.tb-dark .th2-city-side-footer,
html.tb-dark .th2-city-empty {
  background: var(--th2-surface) !important;
}

html.tb-dark .th2-city-item {
  border-bottom-color: var(--th2-border) !important;
}

html.tb-dark .th2-city-item-thumb {
  background: var(--th2-surface-2) !important;
  border-color: var(--th2-border) !important;
}

html.tb-dark .th2-city-item-ph {
  background: var(--th2-surface-2) !important;
}

html.tb-dark .th2-city-feature-meta,
html.tb-dark .th2-city-item-meta {
  color: var(--th2-muted) !important;
}

html.tb-dark .th2-btn-outline {
  background: transparent !important;
  border-color: var(--th2-border) !important;
  color: var(--th2-link2) !important;
}

/* Altın / Döviz / Kripto iç kartları */
html.tb-dark .th2-gold-item,
html.tb-dark .th2-fx-item,
html.tb-dark .th2-crypto-item {
  background: var(--th2-surface) !important;
  border-color: var(--th2-border) !important;
}

html.tb-dark .th2-gold-name,
html.tb-dark .th2-fx-label,
html.tb-dark .th2-crypto-code,
html.tb-dark .th2-crypto-try {
  color: var(--th2-text) !important;
}

html.tb-dark .th2-gold-price,
html.tb-dark .th2-fx-price {
  color: var(--th2-text) !important;
}

html.tb-dark .th2-gold-buy,
html.tb-dark .th2-gold-foot,
html.tb-dark .th2-fx-buy,
html.tb-dark .th2-fx-foot,
html.tb-dark .th2-crypto-label,
html.tb-dark .th2-crypto-sub,
html.tb-dark .th2-crypto-foot {
  color: var(--th2-muted) !important;
}

/* Hava durumu: yenile butonu beyaz kalmasın */
html.tb-dark .th2-weather-market {
  background: var(--th2-surface) !important;
  border-color: var(--th2-border) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

html.tb-dark .th2-weather-refresh {
  background: transparent !important;
  border-color: var(--th2-border) !important;
  color: var(--th2-text) !important;
}

/* Anasayfa Kategori Kolonları (AHP) - kategori etiketi siyah kalıyordu */
html.tb-dark .th2-ahp-cat,
html.tb-dark .th2-mhp-cat {
  color: var(--th2-muted) !important;
}

/* AHP meta satırı (tarih/ikonlar) koyu temada okunabilir olsun */
html.tb-dark .th2-ahp-meta {
  color: var(--th2-muted) !important;
}


/* TeknoPanel: Başlık rengi (genel) */
.entry h1,
.entry h2,
.entry h3,
.entry h4,
.entry h5,
.entry h6,
.widget-title,
/* TeknoPanel: Widget başlık rengi (sabit, light/dark uyumlu) */
.th2-related-title,
.th2-related-card-title,
.th2-slider-title,
.tb-kayan-head-title,
.tb-kayan-post-title,
.tb-popular-title,
.tb-timeline-title,
.th2-ahp-title,
.th2-city-feature-title,
.th2-city-item-title,
.th2-mag-title,
.th2-mhp-title {
  color: var(--th2-title);
}



/* =========================
   TB2 - Light Mode restore (AHP/MHP kategori etiketi)
   v6: Açık modda görünmeme sorunu için
   ========================= */
html:not(.tb-dark) .th2-ahp-cat,
html:not(.tb-dark) .th2-mhp-cat {
  color: rgba(0, 0, 0, .62) !important;
}

html:not(.tb-dark) .th2-ahp-meta,
html:not(.tb-dark) .th2-mhp-meta {
  color: rgba(0, 0, 0, .55) !important;
}

/* =========================================================
   FIX: Dark mode widget başlıkları + Slider başlık rengi
   - Altın / Para / Kripto / Hava Durumu bileşen başlıkları koyu modda siyah kalıyordu
   - Ana sayfa slider başlığı light modda da beyaz olsun
   ========================================================= */

/* Koyu modda sidebar/home widget başlıkları görünür olsun */
html.tb-dark .th2-sidebar .widget-title,
html.tb-dark .th2-home-widgets .widget-title,
html.tb-dark .widget .widget-title {
  color: var(--th2-text) !important;
}

/* Slider başlığı her modda beyaz */
.th2-slider .th2-slider-title,
.th2-slider-main .th2-slider-title {
  color: #fff !important;
}


/* Ad Support Styles - Kesin Kurallar */
.th2-content-area-module {
  display: block !important;
  margin: 0;
  text-align: left;
  clear: none;
  min-height: 1px;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto;
  /* % genişlik YASAK */
  float: none;
  /* float YASAK */
}

/* Zorunlu boyutlar */
.ad-yatay,
.th2-content-area-module--home_mobile,
.th2-single-bottom-ad {
  min-height: 250px !important;
  display: block;
  clear: both;
  /* Sadece yataylarda alt satıra geçmesi için izin verilebilir ama kurala göre clear yavaşlatabilir. Ancak yataylar genelde tek başına. */
}

.ad-dikey,
.th2-content-area-module--left_vertical,
.th2-content-area-module--right_vertical {
  width: 300px !important;
  min-height: 600px !important;
  margin: 0;
  display: block;
  clear: none !important;
  /* Sidebar dikey reklamlarında clear YASAK */
  overflow: visible !important;
  /* Reklamın kesilmesini önle */
}

.th2-content-area-module--right_vertical {
  position: sticky;
  top: 80px;
}

/* Slider içi reklam desteği */
.th2-slider-item--ad {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.02);
  min-height: 420px;
  transform: none !important;
  padding: 0 !important;
  z-index: 1;
}

@media (max-width: 980px) {
  .th2-slider-item--ad {
    min-height: 340px;
  }
}

@media (max-width: 600px) {
  .th2-slider-item--ad {
    min-height: 260px;
  }
}

.th2-f-asset-wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 20px 0;
}

.th2-f-asset-wrap>.th2-featured-img {
  flex: 1;
}

.th2-f-asset-wrap>.th2-f-asset {
  width: 336px;
  flex-shrink: 0;
  min-height: 280px;
}

@media (max-width: 768px) {
  .th2-f-asset-wrap {
    flex-direction: column;
  }

  .th2-f-asset-wrap>.th2-f-asset {
    width: 100%;
    min-height: 250px;
  }
}