/* TDoor blog — palette: cream #fcf7ef, gold #987c52, ink #1a1a1a, dark #191919, sand #eadfcc, brown #6b5d4a */
.tb-archive,
.tb-single {
  --tb-bg: #fcf7ef;
  --tb-card: #fbf7ef;
  --tb-gold: #987c52;
  --tb-ink: #1a1a1a;
  --tb-dark: #191919;
  --tb-sand: #eadfcc;
  --tb-brown: #6b5d4a;
  --tb-cream-text: #ffeac9;
  font-family: "Alexandria", system-ui, sans-serif;
  color: var(--tb-ink);
  padding: 20px 20px 80px;
}

.tb-archive a,
.tb-single a { text-decoration: none; }

/* Hero */
.tb-hero { text-align: center; padding: 40px 0 28px; }
.tb-eyebrow { display: block; color: var(--tb-gold); font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.tb-hero-title { font-size: 44px; font-weight: 700; line-height: 1.4; color: #000; margin: 0 0 12px; }
.tb-hero-desc { max-width: 620px; margin: 0 auto; font-size: 16px; line-height: 1.9; color: var(--tb-brown); }

/* Category filters */
.tb-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 40px; }
.tb-filters a {
  font-size: 14px; font-weight: 500; color: var(--tb-ink);
  border: 1px solid var(--tb-gold); border-radius: 30px; padding: 8px 18px;
  transition: background .2s, color .2s;
}
.tb-filters a:hover,
.tb-filters a.is-active { background: var(--tb-gold); color: #fff; }

/* Grid + cards */
.tb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tb-card {
  background: var(--tb-card);
  border: 1px solid var(--tb-sand);
  border-top-right-radius: 25px;
  border-bottom-left-radius: 25px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tb-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -14px rgba(80, 55, 20, .3); }
.tb-thumb { display: block; aspect-ratio: 16 / 10; background: var(--tb-sand); overflow: hidden; }
.tb-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tb-card:hover .tb-thumb-img { transform: scale(1.04); }
.tb-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--tb-sand), #f4ead9); }
.tb-thumb-fallback img { width: 90px; height: auto; opacity: .85; }
.tb-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.tb-card-title { font-size: 20px; font-weight: 600; line-height: 1.6; margin: 0; }
.tb-card-title a { color: #000; transition: color .2s; }
.tb-card-title a:hover { color: var(--tb-gold); }
.tb-card-excerpt { font-size: 14px; line-height: 1.9; color: var(--tb-brown); margin: 0 0 8px; flex: 1; }

/* Meta */
.tb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--tb-brown); }
.tb-cat { background: var(--tb-gold); color: #fff !important; border-radius: 20px; padding: 3px 12px; font-weight: 500; }
.tb-dot { opacity: .5; }

/* Signature button (same shape as the header's "اكتشف المنيو") */
.tb-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--tb-dark); color: var(--tb-cream-text) !important;
  font-size: 15px; font-weight: 400; padding: 13px 26px;
  border-top-right-radius: 25px; border-bottom-left-radius: 25px;
  transition: opacity .2s;
}
.tb-btn:hover { opacity: .85; }

/* Pagination */
.tb-pagination { margin-top: 50px; }
.tb-pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tb-pagination .page-numbers {
  display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--tb-sand); border-radius: 50%; color: var(--tb-ink); font-size: 15px; transition: all .2s;
}
.tb-pagination a.page-numbers:hover,
.tb-pagination .page-numbers.current { background: var(--tb-gold); border-color: var(--tb-gold); color: #fff; }
.tb-pagination .dots { border: 0; }

.tb-empty { text-align: center; padding: 60px 0; color: var(--tb-brown); }
.tb-empty .tb-btn { align-self: auto; margin-top: 16px; }

/* Single */
.tb-article { max-width: 780px; margin: 0 auto; }
.tb-article-head { padding: 30px 0 10px; }
.tb-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--tb-brown); margin-bottom: 18px; }
.tb-crumbs a { color: var(--tb-gold); }
.tb-article-title { font-size: 40px; font-weight: 700; line-height: 1.6; color: #000; margin: 14px 0 0; }
.tb-article-cover { margin: 28px 0 8px; border-top-right-radius: 25px; border-bottom-left-radius: 25px; overflow: hidden; background: var(--tb-sand); }
.tb-article-cover img { width: 100%; height: auto; display: block; }

.tb-content { font-size: 18px; line-height: 2.1; color: var(--tb-ink); padding: 24px 0; }
.tb-content > * + * { margin-top: 1.1em; }
.tb-content h2,
.tb-content h3,
.tb-content h4 { color: #000; font-weight: 600; line-height: 1.6; margin-top: 1.8em; }
.tb-content h2 { font-size: 28px; padding-right: 14px; border-right: 4px solid var(--tb-gold); }
.tb-content h3 { font-size: 22px; }
.tb-content a { color: var(--tb-gold); text-decoration: underline !important; text-underline-offset: 4px; }
.tb-content img { max-width: 100%; height: auto; border-radius: 8px; }
.tb-content ul,
.tb-content ol { padding-right: 1.4em; }
.tb-content blockquote {
  background: var(--tb-card); border: 1px solid var(--tb-sand); border-right: 4px solid var(--tb-gold);
  border-top-left-radius: 0; padding: 18px 22px; color: var(--tb-brown); font-weight: 500;
}

.tb-article-foot { border-top: 1px solid var(--tb-sand); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-tags a { font-size: 13px; color: var(--tb-brown); border: 1px solid var(--tb-sand); border-radius: 20px; padding: 4px 12px; }
.tb-tags a:hover { border-color: var(--tb-gold); color: var(--tb-gold); }
.tb-share { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tb-brown); }
.tb-share a { color: var(--tb-ink); border: 1px solid var(--tb-gold); border-radius: 30px; padding: 6px 16px; transition: all .2s; }
.tb-share a:hover { background: var(--tb-gold); color: #fff; }

.tb-postnav { max-width: 780px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tb-postnav-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: var(--tb-card); border: 1px solid var(--tb-sand); border-top-right-radius: 25px; border-bottom-left-radius: 25px; color: var(--tb-ink); transition: border-color .2s; }
.tb-postnav-item:hover { border-color: var(--tb-gold); }
.tb-postnav-item small { color: var(--tb-gold); font-size: 12px; }
.tb-postnav-item strong { font-size: 15px; font-weight: 600; line-height: 1.6; }

.tb-related { margin-top: 70px; }
.tb-related-title { font-size: 28px; font-weight: 700; text-align: center; margin: 0 0 30px; color: #000; }

@media (max-width: 1024px) { .tb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .tb-archive, .tb-single { padding: 10px 16px 60px; }
  .tb-grid { grid-template-columns: 1fr; }
  .tb-hero-title { font-size: 32px; }
  .tb-article-title { font-size: 28px; }
  .tb-content { font-size: 16px; }
  .tb-content h2 { font-size: 22px; }
  .tb-postnav { grid-template-columns: 1fr; }
}

/* Home page latest-posts slider */
.tb-home { --tb-bg:#fcf7ef; --tb-card:#fbf7ef; --tb-gold:#987c52; --tb-ink:#1a1a1a; --tb-dark:#191919; --tb-sand:#eadfcc; --tb-brown:#6b5d4a; --tb-cream-text:#ffeac9;
  font-family: "Alexandria", system-ui, sans-serif; color: var(--tb-ink); width: 100%; max-width: 1280px; margin: 0 auto; padding: 70px 20px; }
.tb-home a { text-decoration: none; }
.tb-home-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.tb-home .tb-eyebrow { display: block; color: var(--tb-gold); font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.tb-home-title { font-size: 38px; font-weight: 700; color: #000; margin: 0; line-height: 1.4; }
.tb-home-actions { display: flex; align-items: center; gap: 10px; }
.tb-nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--tb-gold); background: transparent; color: var(--tb-gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.tb-nav:hover { background: var(--tb-gold); color: #fff; }
.tb-nav.swiper-button-disabled { opacity: .4; cursor: default; }
.tb-home .tb-all { align-self: auto; margin-inline-start: 6px; }
.tb-home .tb-swiper { padding: 6px 2px 14px; }
.tb-home .swiper-slide { height: auto; }
.tb-home .tb-card { height: 100%; }
.tb-home .tb-btn { align-self: flex-start; }
@media (max-width: 640px) {
  .tb-home { padding: 40px 16px; }
  .tb-home-title { font-size: 28px; }
}
