/* GTİP tablosu genel */
#tmg-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#tmg-table th, #tmg-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
  word-wrap: break-word;
}

#tmg-table th {
  background: #f9f9f9;
  font-weight: 600;
  text-align: center;
}

#tmg-table th .sort {
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 6px 8px;
}

#tmg-table tbody tr:nth-child(odd) {
  background: #fcfcfc;
}

#tmg-table tbody tr:hover {
  background: #f5f7fa;
}

/* Küçük ekranlar */
@media (max-width: 768px) {
  #tmg-table th, #tmg-table td {
    font-size: 0.85rem;
    padding: 6px;
  }
  #tmg-table colgroup col:nth-child(2) { width: 60% !important; }
  #tmg-table colgroup col:nth-child(3),
  #tmg-table colgroup col:nth-child(4) { width: 20% !important; text-align: center; }
  #tmg-table td:nth-child(3),
  #tmg-table td:nth-child(4) { text-align: center; }
}

@media (max-width: 480px) {
  #tmg-table th, #tmg-table td {
    font-size: 0.75rem;
    padding: 4px;
  }
}
/* === GTİP Tablosu: hizalama + responsive sabitleme === */

/* Dış sarmalayıcıda yatay kaydırma açık kalsın */
.card { overflow-x: auto; }

/* Tablo iskeleti */
#tmg-table{
  width:100%;
  /* başlık/kolonlar kaymasın, genişlikler uygulansın */
  table-layout: fixed;
  /* hücre sınırları net olsun */
  border-collapse: separate;
  border-spacing:0;
  /* dar ekranlarda kolonlar sıkışıp dağılmasın; yatay kaydırılsın */
  min-width: 760px;
  background:#fff;
}

/* Hücreler */
#tmg-table th,
#tmg-table td{
  padding:12px 10px;
  border:1px solid #dcdfe6;
  vertical-align:middle;
  text-align:left;
  word-break:break-word; /* uzun GTİP ve tanımlar taşarsa satır kır */
  white-space:normal;
  line-height:1.35;
}

/* Başlıklar: tam simetri + orta hizalı */
#tmg-table th{
  background:#f7f9fc;
  font-weight:700;
  text-align:center;
  letter-spacing:.02em;
}

/* Başlık içindeki butonları tamamen nötrle (görüntü bozulmasın) */
#tmg-table th .sort{
  all:unset;                 /* tema buton stillerini sıfırla */
  display:block;
  width:100%;
  text-align:center;
  cursor:pointer;
  padding:8px 6px;
  font:inherit;
  color:inherit;
}

/* Satır zebrala + hover */
#tmg-table tbody tr:nth-child(odd){ background:#fcfdff; }
#tmg-table tbody tr:hover{ background:#f5f7fa; }

/* 3. ve 4. sütunlar sayısal/ölçü: merkezle */
#tmg-table td:nth-child(3),
#tmg-table td:nth-child(4){
  text-align:center;
}

/* Caption düzeni */
#tmg-table caption{
  caption-side: top;
  text-align:left;
  padding:12px 12px 10px;
  color:#556;
  background:#f7f9fc;
  border:1px solid #dcdfe6;
  border-bottom:none;
  border-top-left-radius:8px;
  border-top-right-radius:8px;
}

/* Tabloya yumuşak köşeler */
#tmg-table,
#tmg-table thead th:first-child{ border-top-left-radius:8px; }
#tmg-table,
#tmg-table thead th:last-child{ border-top-right-radius:8px; }

/* Mobil/Tablet iyileştirmeleri */
@media (max-width: 992px){
  #tmg-table th, #tmg-table td{ padding:10px 8px; font-size:14.5px; }
}
@media (max-width: 768px){
  /* min-width sayesinde kolonlar bozulmadan yatay kaydırılır */
  #tmg-table{ min-width:720px; }
  #tmg-table th, #tmg-table td{ font-size:13.5px; padding:8px 6px; }
}
@media (max-width: 480px){
  #tmg-table{ min-width:680px; }
  #tmg-table th, #tmg-table td{ font-size:12.5px; padding:6px 6px; }
}

/* Tema/Global CSS çakışmalarını önlemek için bazı korumalar */
#tmg-table th *{ line-height:1.2; }
#tmg-table th button,
#tmg-table th a{ color:inherit; text-decoration:none; }
/* === GTİP sütunu genişlik ve tipografi düzeltmesi === */

/* Masaüstü varsayılan oranlar (toplam 100 olmalı) */
#tmg-table colgroup col:nth-child(1){ width:22% !important; } /* GTİP */
#tmg-table colgroup col:nth-child(2){ width:53% !important; } /* EŞYA TANIMI */
#tmg-table colgroup col:nth-child(3){ width:12% !important; } /* ÖLÇÜ BİRİMİ */
#tmg-table colgroup col:nth-child(4){ width:13% !important; } /* 474 VERGİ HADDİ */

/* GTİP hücrelerinde satır kırılmayı kapat, sayıları hizala */
#tmg-table th:nth-child(1),
#tmg-table td:nth-child(1){
  white-space: nowrap;          /* alta inmesin */
  overflow-wrap: normal;        /* otomatik kırma yok */
  word-break: normal;           /* kelime ortasından kırma yok */
  font-variant-numeric: tabular-nums;  /* sabit genişlikte rakamlar */
  font-feature-settings: "tnum" 1;
  /* İstersen tamamen monospace yapabilirsin:
     font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  */
  letter-spacing: .01em;        /* okunabilirlik */
}

/* 3. ve 4. sütunları kompakt tut (taşmayı önlemek için) */
#tmg-table td:nth-child(3),
#tmg-table td:nth-child(4){
  white-space: nowrap;
}

/* Tablet ayarı */
@media (max-width: 992px){
  #tmg-table colgroup col:nth-child(1){ width:26% !important; }
  #tmg-table colgroup col:nth-child(2){ width:49% !important; }
  #tmg-table colgroup col:nth-child(3){ width:12% !important; }
  #tmg-table colgroup col:nth-child(4){ width:13% !important; }

  /* Çok uzun GTİP'lerde ufak kırpma için (gerekirse aç) */
  /* #tmg-table td:nth-child(1){ text-overflow: ellipsis; overflow: hidden; } */
}

/* Telefon ayarı */
@media (max-width: 768px){
  #tmg-table colgroup col:nth-child(1){ width:32% !important; }
  #tmg-table colgroup col:nth-child(2){ width:43% !important; }
  #tmg-table colgroup col:nth-child(3){ width:12% !important; }
  #tmg-table colgroup col:nth-child(4){ width:13% !important; }

  /* Telefonlarda GTİP biraz daha küçük puntoda, ama tek satır */
  #tmg-table th:nth-child(1),
  #tmg-table td:nth-child(1){ font-size: .95em; }
}
/* ============================
   TarifeMevzuati - Haber Stili
   ============================ */

:root {
  /* Renkleri burada kolayca değiştirebilirsin */
  --tm-bg: #ffffff;
  --tm-border: #e2e8f0;
  --tm-border-strong: #cbd5e1;
  --tm-text: #1f2933;
  --tm-muted: #64748b;
  --tm-heading: #0f172a;
  --tm-accent: #1f6feb;      /* Link / vurgu rengi */
  --tm-accent-soft: #e0ecff; /* Info-box arka planı */
  --tm-badge-bg: #0f172a;
  --tm-badge-text: #ffffff;
  --tm-cta-bg: #f8fafc;
}

/* Genel makale yapısı */
.tm-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: var(--tm-bg);
  color: var(--tm-text);
  border-radius: 16px;
  border: 1px solid var(--tm-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  line-height: 1.7;
  font-size: 0.98rem;
}

/* Küçük ekranlarda nefes aldır */
@media (max-width: 768px) {
  .tm-article {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }
}

/* Etiket / kategori rozeti */
.tm-etiket {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--tm-badge-bg);
  color: var(--tm-badge-text);
  margin-bottom: 0.8rem;
}

.tm-etiket::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

/* Başlık & tarih */
.tm-article h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--tm-heading);
  margin: 0 0 0.4rem;
}

.tm-tarih {
  font-size: 0.78rem;
  color: var(--tm-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Info-box (kısa özet kutusu) */
.tm-summary {
  margin: 1.8rem 0 2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--tm-border-strong);
  background: var(--tm-accent-soft);
  position: relative;
  overflow: hidden;
}

.tm-summary::before {
  content: "Özet";
  position: absolute;
  top: 0.65rem;
  right: 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tm-muted);
}

.tm-summary-title {
  font-weight: 600;
  color: var(--tm-heading);
  margin-bottom: 0.4rem;
}

.tm-summary-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.tm-summary-list li {
  margin-bottom: 0.25rem;
}

/* İçerik başlıkları */
.tm-article h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--tm-heading);
}

.tm-article h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--tm-heading);
}

/* Listeler */
.tm-article ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.9rem;
}

.tm-article li {
  margin-bottom: 0.3rem;
}

/* Linkler */
.tm-article a {
  color: var(--tm-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(31, 111, 235, 0.4);
}

.tm-article a:hover {
  border-bottom-style: solid;
}

/* CTA kutusu */
.tm-cta {
  margin-top: 2.3rem;
  padding: 1.4rem 1.2rem;
  border-radius: 14px;
  background: var(--tm-cta-bg);
  border: 1px solid var(--tm-border);
}

.tm-cta h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.tm-cta p {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

/* MailPoet formu (varsayılanı biraz yumuşatmak için) */
.tm-cta form input[type="email"],
.tm-cta form input[type="text"] {
  width: 100%;
  max-width: 360px;
  border-radius: 999px;
  border: 1px solid var(--tm-border-strong);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.tm-cta form button,
.tm-cta form input[type="submit"] {
  margin-top: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}
/* ============================
   TarifeMevzuati - GTİP Haber Şablonu
   ============================ */

:root {
  /* Renkleri buradan yönetebilirsin */
  --tm-bg: #ffffff;
  --tm-border: #e2e8f0;
  --tm-border-strong: #cbd5e1;
  --tm-text: #1f2933;
  --tm-muted: #64748b;
  --tm-heading: #0f172a;
  --tm-accent: #1f6feb;
  --tm-accent-soft: #e0ecff;
  --tm-badge-bg: #0f172a;
  --tm-badge-text: #ffffff;
  --tm-cta-bg: #f8fafc;
}

/* Genel makale yapısı */
.tm-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: var(--tm-bg);
  color: var(--tm-text);
  border-radius: 16px;
  border: 1px solid var(--tm-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  line-height: 1.7;
  font-size: 0.98rem;
}

@media (max-width: 768px) {
  .tm-article {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }
}

/* Etiket / kategori rozeti */
.tm-etiket {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--tm-badge-bg);
  color: var(--tm-badge-text);
  margin-bottom: 0.8rem;
}

.tm-etiket::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

/* Başlık & tarih */
.tm-article h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--tm-heading);
  margin: 0 0 0.4rem;
}

.tm-tarih {
  font-size: 0.78rem;
  color: var(--tm-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Info-box (kısa özet kutusu) */
.tm-summary {
  margin: 1.8rem 0 2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--tm-border-strong);
  background: var(--tm-accent-soft);
  position: relative;
  overflow: hidden;
}

.tm-summary::before {
  content: "Özet";
  position: absolute;
  top: 0.65rem;
  right: 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tm-muted);
}

.tm-summary-title {
  font-weight: 600;
  color: var(--tm-heading);
  margin-bottom: 0.4rem;
}

.tm-summary-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.tm-summary-list li {
  margin-bottom: 0.25rem;
}

/* İçerik başlıkları */
.tm-article h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--tm-heading);
}

.tm-article h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--tm-heading);
}

/* Listeler */
.tm-article ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.9rem;
}

.tm-article li {
  margin-bottom: 0.3rem;
}

/* Linkler */
.tm-article a {
  color: var(--tm-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(31, 111, 235, 0.4);
}

.tm-article a:hover {
  border-bottom-style: solid;
}

/* CTA kutusu */
.tm-cta {
  margin-top: 2.3rem;
  padding: 1.4rem 1.2rem;
  border-radius: 14px;
  background: var(--tm-cta-bg);
  border: 1px solid var(--tm-border);
}

.tm-cta h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.tm-cta p {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

/* MailPoet formu */
.tm-cta form input[type="email"],
.tm-cta form input[type="text"] {
  width: 100%;
  max-width: 360px;
  border-radius: 999px;
  border: 1px solid var(--tm-border-strong);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.tm-cta form button,
.tm-cta form input[type="submit"] {
  margin-top: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}
/* ============================
   TarifeMevzuati - BTB Listesi
   ============================ */

/* Ana makale yine tm-article içinde */
.btb-article h1 {
  margin-bottom: 0.2rem;
}

.btb-article .tm-tarih {
  margin-bottom: 1.2rem;
}

/* BTB liste bloğu */
.btb-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* BTB kartları */
.btb-card {
  border-radius: 14px;
  border: 1px solid var(--tm-border, #e2e8f0);
  padding: 1rem 1.1rem;
  background: #ffffff;
}

.btb-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.btb-title {
  font-weight: 600;
  color: var(--tm-heading, #0f172a);
  font-size: 0.98rem;
}

/* BTB üst bilgi satırı (BTB No, GTİP, Geçerlilik) */
.btb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.btb-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--tm-border-strong, #cbd5e1);
  background: #eff6ff; /* istersen tema rengine göre değiştirirsin */
  color: #0f172a;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.btb-tag-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.btb-tag-value {
  font-size: 0.86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/* details / summary yapısı */
.btb-body details {
  border-radius: 10px;
  border: 1px dashed var(--tm-border, #e2e8f0);
  padding: 0.6rem 0.8rem;
  background: #f9fafb;
}

.btb-body details + details {
  margin-top: 0.5rem;
}

.btb-body summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tm-heading, #0f172a);
}

.btb-body summary::-webkit-details-marker {
  display: none;
}

.btb-body summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.8rem;
  transform: translateY(-1px);
}

.btb-body details[open] summary::before {
  content: "▾";
}

.btb-body p {
  margin: 0.4rem 0 0.2rem;
  font-size: 0.9rem;
}

.btb-body ul {
  margin: 0.2rem 0 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* Alt CTA */
.btb-cta-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--tm-muted, #64748b);
}
/* ============================
   TarifeMevzuati - BTB Listesi
   ============================ */

.btb-article h1 {
  margin-bottom: 0.2rem;
}

.btb-article .tm-tarih {
  margin-bottom: 1.2rem;
}

/* BTB liste bloğu */
.btb-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* BTB kartları */
.btb-card {
  border-radius: 14px;
  border: 1px solid var(--tm-border, #e2e8f0);
  padding: 1rem 1.1rem 1.1rem;
  background: #ffffff;
}

/* Kart başlığı */
.btb-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.btb-title {
  font-weight: 600;
  color: var(--tm-heading, #0f172a);
  font-size: 1rem;
}

/* BTB üst bilgi satırı (BTB No, GTİP, Geçerlilik) */
.btb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.btb-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--tm-border-strong, #cbd5e1);
  background: #eff6ff; /* istersen tema rengine göre güncelleyebilirsin */
  color: #0f172a;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.btb-tag-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.btb-tag-value {
  font-size: 0.86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}

/* BTB görseli */
.btb-image {
  margin: 0.6rem 0 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tm-border, #e2e8f0);
}

.btb-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* details / summary yapısı */
.btb-body details {
  border-radius: 10px;
  border: 1px dashed var(--tm-border, #e2e8f0);
  padding: 0.6rem 0.8rem;
  background: #f9fafb;
}

.btb-body details + details {
  margin-top: 0.5rem;
}

.btb-body summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tm-heading, #0f172a);
}

.btb-body summary::-webkit-details-marker {
  display: none;
}

.btb-body summary::before {
  content: "▾"; /* açık başlıyor, ikon aşağı baksın */
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.8rem;
  transform: translateY(-1px);
}

/* Kapandığında oku yukarı çevirmek istersen: */
.btb-body details:not([open]) summary::before {
  content: "▸";
}

.btb-body p {
  margin: 0.4rem 0 0.2rem;
  font-size: 0.9rem;
}

.btb-body ul {
  margin: 0.2rem 0 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* Alt not */
.btb-cta-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--tm-muted, #64748b);
}
/* Sayfa genel boşluk */
.tm-btb-page {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 16px 32px;
}

/* FİLTRE KARTI */
.tm-btb-filters {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 24px;
    margin: 24px 0 32px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.tm-btb-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: flex-end;
}

.tm-btb-field {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    flex: 1 1 0;
}

.tm-btb-field label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
    letter-spacing: .02em;
}

.tm-btb-field input[type="text"],
.tm-btb-field select {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.tm-btb-field input[type="text"]:focus,
.tm-btb-field select:focus {
    border-color: #fb5c5c;
    box-shadow: 0 0 0 1px rgba(251,92,92,.1);
}

/* Checkbox + buton */
.tm-btb-checkbox-field {
    flex: 0 0 auto;
}

.tm-btb-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
}

.tm-btb-submit-field {
    flex: 0 0 auto;
}

.tm-btb-submit {
    border: none;
    border-radius: 999px;
    padding: 10px 26px;
    background: #fb5c5c;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(251,92,92,.4);
    transition: transform .08s ease-out, box-shadow .08s ease-out, background .12s;
}

.tm-btb-submit:hover {
    background: #f34444;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(251,92,92,.45);
}

/* Kartlar */
.tm-btb-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.tm-btb-card-header {
    display: flex;
	  justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
}

.tm-btb-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
    font-size: 12px;
}

.tm-btb-meta {
    font-size: 13px;
    color: #6b7280;
}

.tm-btb-card-body {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.tm-btb-card-main {
    flex: 1 1 auto;
}

.tm-btb-card-image {
    flex: 0 0 auto;
}

.tm-btb-card-image img {
    border-radius: 14px;
    display: block;
}

/* GTİP ve metinler */
.tm-btb-gtip {
    display: flex;
    gap: 6px;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 15px;
}

.tm-btb-gtip-label {
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #9ca3af;
}

.tm-btb-gtip-value {
    font-weight: 700;
    color: #111827;
}

.tm-btb-validity {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.tm-btb-desc p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.tm-btb-desc-foreign {
    margin-top: 8px;
    font-size: 13px;
    color: #4b5563;
}

.tm-btb-link {
    margin-top: 10px;
    font-size: 13px;
}

.tm-btb-link a {
    color: #2563eb;
    text-decoration: none;
}

.tm-btb-link a:hover {
    text-decoration: underline;
}

/* Sayfalama */
.tm-btb-pagination ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 18px 0 0;
}

.tm-btb-pagination a,
.tm-btb-pagination span {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    text-decoration: none;
}

.tm-btb-pagination .current {
    background: #fb5c5c;
    border-color: #fb5c5c;
    color: #fff;
}

/* Mobil uyumu */
@media (max-width: 768px) {
    .tm-btb-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tm-btb-field,
    .tm-btb-checkbox-field,
    .tm-btb-submit-field {
        width: 100%;
    }

    .tm-btb-card-body {
        flex-direction: column;
    }

    .tm-btb-card-image {
        align-self: flex-start;
    }
}
.tm-btb-card-image img {
    max-width: 240px; 
    max-height: 200px;
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.tm-btb-submit-field {
    display: flex;
    align-items: flex-end;
}
.tm-btb-checkbox-field {
    display: flex;
    align-items: center;
    padding-bottom: 6px;
}
.tm-btb-checkbox-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 28px; /* Diğer inputlarla aynı hizada olması için */
}

.tm-btb-checkbox-field label,
.tm-btb-checkbox-field span {
    font-size: 15px;
    color: #333;
}
/* --- Aranan kelime highlight --- */
.tm-btb-highlight {
    background: #fff3c4;
    padding: 0 0.08em;
    border-radius: 3px;
}

/* --- Sonuç sayacı --- */
.tm-btb-result-count {
    font-size: 14px;
    color: #6b7280;
    margin: 12px 0 4px;
}

/* --- Kart hover animasyonu --- */
.tm-btb-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px 26px 22px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    margin-bottom: 22px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tm-btb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.tm-btb-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tm-btb-card-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tm-btb-card-content {
    flex: 1 1 auto;
}

.tm-btb-card-image {
    flex: 0 0 auto;
    max-width: 320px;
}

.tm-btb-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

/* GTIP satırı */
.tm-btb-gtip-line {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.tm-btb-gtip-value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-left: 6px;
}

/* Badge ve meta */
.tm-btb-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}

.tm-btb-meta {
    font-size: 13px;
    color: #6b7280;
}

/* Tanım blokları */
.tm-btb-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

.tm-btb-desc--foreign {
    color: #4b5563;
}

/* Resmi göster linki */
.tm-btb-link {
    margin-top: 10px;
}

.tm-btb-link a {
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.tm-btb-link a:hover {
    text-decoration: underline;
}

/* --- Form küçük responsive ayar --- */
@media (max-width: 900px) {
    .tm-btb-form-row {
        grid-template-columns: 1fr 1fr;
    }

    .tm-btb-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tm-btb-card-image {
        max-width: 100%;
        margin-top: 14px;
    }
}

@media (max-width: 640px) {
    .tm-btb-form-row {
        grid-template-columns: 1fr;
    }

    .tm-btb-form-group--submit {
        justify-content: flex-start;
    }
}
/* FORM ANA GRID YAPISI */
.tm-btb-form-card {
    background: #fff;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

.tm-btb-form-row {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto;
    align-items: end;
    gap: 20px;
}

/* Form elemanı */
.tm-btb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.tm-btb-form-group input,
.tm-btb-form-group select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
}

.tm-btb-form-group--checkbox {
    display: flex;
    align-items: center;
    height: 48px;
    margin-top: 22px;
}

.tm-btb-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #374151;
}

.tm-btb-form-group--submit button.tm-btb-submit {
    height: 48px;
    width: 100%;
    padding: 0 32px;
    border-radius: 12px;
    background: #f87171;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.tm-btb-form-group--submit button.tm-btb-submit:hover {
    background: #ef4444;
}

/* TABLET */
@media (max-width: 992px) {
    .tm-btb-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* MOBİL */
@media (max-width: 600px) {
    .tm-btb-form-row {
        grid-template-columns: 1fr;
    }
}
/* Checkbox kutusunu küçültüp hizayı düzelt */
.tm-btb-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #f87171;
    cursor: pointer;
}

/* Checkbox ve yazıyı yatay doğru hizala */
.tm-btb-checkbox-group {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    white-space: nowrap;
}

/* Checkbox yazısını daha iyi hizala */
.tm-btb-checkbox-group span {
    font-size: 15px;
    line-height: 1;
    color: #374151;
}
/* Checkbox ve yazıyı tam dikey ortala */
.tm-btb-checkbox-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding-top: 5px; /* çok hafif aşağı alır */
}

/* Checkbox kutusunun tam merkezde durması */
.tm-btb-checkbox-group input[type="checkbox"] {
    margin-top: 0 !important;
}
/* Checkbox container */
.tm-btb-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px; /* diğer alanlarla hizalama */
}

/* Custom checkbox */
.tm-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.tm-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tm-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover efekti */
.tm-checkbox:hover .checkmark {
    border-color: #ff6f66;
}

/* Checked state */
.tm-checkbox input:checked + .checkmark {
    background-color: #ff6f66;
    border-color: #ff6f66;
}

/* Tick işareti */
.tm-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.tm-checkbox input:checked + .checkmark:after {
    display: block;
}

.tm-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Checkbox kapsayıcı hizalama */
.tm-btb-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Gizli checkbox */
.tm-checkbox input[type="checkbox"] {
    display: none;
}

/* Görünen özel kutu */
.tm-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.8px solid #cfd3dd;
    background: #ffffff;
    position: relative;
    display: inline-block;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05),
                0 2px 6px rgba(0,0,0,0.06);
    transition: all .25s ease;
}

/* Checkbox işaretli olunca görünüm */
.tm-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #ff6c6c;
    border-color: #ff6c6c;
    box-shadow: 0 0 0 4px rgba(255,108,108,0.2);
}

/* İçteki tik işareti */
.tm-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tm-checkbox input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

/* Mobil optimizasyon */
@media (max-width: 767px) {
    .tm-checkbox .checkmark {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }
}
/* Mobilde filtre alanlarını düzenleme */
@media (max-width: 768px) {

    .tm-btb-form { 
        gap: 20px !important;
    }

    .tm-btb-checkbox-group {
        margin-top: 15px !important;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .tm-btb-checkbox-group label {
        margin: 0 !important;
    }
}
/* Tür rozeti */
.tm-btb-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-right: 0.75rem;
    background: #ffe9e5;
    color: #c43b36;
}

/* Tür'e göre renk varyasyonları */
.tm-btb-type-turk-btb,
.tm-btb-type-turk-btib,
.tm-btb-type-turk-bt {
    background: #ffe9e5;
    color: #c43b36;
}

.tm-btb-type-ab-btb {
    background: #e5f1ff;
    color: #225ea8;
}

.tm-btb-type-abd-cross {
    background: #e8f6f0;
    color: #13795b;
}

.tm-btb-type-izahname {
    background: #f6f0ff;
    color: #5b3ec7;
}

.tm-btb-type-siniflandirma {
    background: #fff4d9;
    color: #c28516;
}

/* GTIP satırı */
.tm-btb-gtip {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.tm-btb-gtip-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #8b8fa3;
}

.tm-btb-gtip-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: #111827;
}

/* Tarih satırı */
.tm-btb-dates {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.tm-btb-date-label {
    font-weight: 500;
}

.tm-btb-date-sep {
    padding: 0 0.4rem;
}

/* Tanım blokları */
.tm-btb-desc-main,
.tm-btb-desc-foreign {
    margin-top: 0.4rem;
}

.tm-btb-desc-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.15rem;
}

.tm-btb-desc-foreign {
    font-size: 0.85rem;
    color: #4b5563;
    opacity: 0.9;
}

/* Kaynak butonu */
.tm-btb-source-wrap {
    margin-top: 0.75rem;
}

.tm-btb-source-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #f97373;
    color: #b91c1c;
    background: #fff5f5;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tm-btb-source-btn:hover {
    background: #f97373;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.35);
}

/* Kart genel yapısı ile uyum için (senin mevcut tasarımına dokunmadan küçük dokunuş) */
.tm-btb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tm-btb-card-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tm-btb-no {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Kart gövdesi */
.tm-btb-card-body {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.tm-btb-card-text {
    flex: 1 1 auto;
}

/* Resim tarafı */
.tm-btb-image {
    flex: 0 0 auto;
    max-width: 320px;
}

.tm-btb-image img {
    border-radius: 1rem;
    display: block;
}

/* Mobile uyum */
@media (max-width: 767px) {
    .tm-btb-card-body {
        flex-direction: column;
    }

    .tm-btb-image {
        max-width: 100%;
        margin-top: 1rem;
    }
}
.tm-btb-highlight {
    background-color: #ffd8d8;
    color: #c20000;
    padding: 2px 4px;
    border-radius: 4px;
}
.tm-btb-desc-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.tm-btb-toggle {
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 99, 99, 0.3);
    background: #fff;
    color: #f04b4b;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.tm-btb-toggle:hover {
    background: #f04b4b;
    color: #fff;
    box-shadow: 0 6px 16px rgba(240, 75, 75, 0.25);
}
/* Devamını Göster butonu tanımın hemen altında dursun */
.tm-btb-desc-toggle {
    display: inline-block;
    margin-bottom: 12px !important;
}

/* Kaynak butonları ayrı satıra alınsın */
.tm-btb-extra {
    display: block;
    margin-top: 10px !important;
}

/* Kaynak butonları arasında boşluk */
.tm-btb-extra a {
    display: inline-block;
    margin-top: 6px;
}
/* Varsayılan: sadece kısa özet görünsün */
.tm-btb-desc-content .tm-btb-desc-full {
    display: none;
}

/* Kart açıldığında: tüm tanımlarda FULL metin görünsün, özet gizlensin */
.tm-btb-card.tm-btb-open .tm-btb-desc-content .tm-btb-desc-full {
    display: block;
}

.tm-btb-card.tm-btb-open .tm-btb-desc-content .tm-btb-desc-preview {
    display: none;
}
.jetpack-promo-banner,
.jp-footer,
.jp-branding,
div[data-module="jetpack"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Jetpack'in Safari'de görünen kredi/branding mesajını tamamen gizle */
.jetpack-pageload-message,
.jetpack-pageload-message *,
.jetpack-lazy-images-powered-by,
.jetpack-lazy-images-powered-by *,
.jetpack-credit,
.jetpack-credit *,
#jp-plugin',
.jp-plugin *,
footer[role="contentinfo"] .jetpack-credit,
footer .jetpack-credit {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* ================================
   BTB Haber – Görsel Boyut Kontrolü
   (Legacy template – COVER)
   ================================ */

/* Görsel kapsayıcı */
.btb-card .btb-image {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

/* Görselin kendisi */
.btb-card .btb-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;      /* Desktop varsayılan */
  object-fit: cover;     /* KIRPARAK doldurur */
}

/* Tablet */
@media (max-width: 1024px) {
  .btb-card .btb-image img {
    max-height: 260px;
  }
}

/* Mobil */
@media (max-width: 640px) {
  .btb-card .btb-image img {
    max-height: 220px;
  }
}
/* ================================
   BTB Haber – Görsel Boyut Kontrolü
   (Legacy template – CONTAIN)
   ================================ */

/* BTB görsel alanı: contain ama daha dolu görünüm */
.btb-card .btb-image{
  margin:12px 0;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:#f8f9fb;
  display:flex;
  align-items:center;
  justify-content:center;

  /* Yeni: Görsel alanına kontrollü bir yükseklik ver */
  height: 360px;          /* Desktop: 320–420 arası deneyebilirsiniz */
}

/* Yeni: img artık alanı tamamen kullanacak, contain ile kırpmadan sığacak */
.btb-card .btb-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;    /* KIRPMA YOK */
  display:block;
}

/* Tablet */
@media (max-width: 1024px){
  .btb-card .btb-image{ height: 300px; }
}

/* Mobil */
@media (max-width: 640px){
  .btb-card .btb-image{ height: 240px; }
}