/* =========================================================
   SukiFinds — Main Stylesheet
   Hand-crafted utility classes (Tailwind-like) + components.
   No build step required — works directly in the browser.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-xl  { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.pt-2{padding-top:.5rem} .pt-3{padding-top:.75rem} .pt-6{padding-top:1.5rem}
.pb-4{padding-bottom:1rem} .pb-6{padding-bottom:1.5rem}
.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}
.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}
.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}
.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}
.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}
.my-6{margin-top:1.5rem;margin-bottom:1.5rem}
.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}
.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-10{gap:2.5rem}

.flex { display: flex; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; top: 0; }
.top-0 { top: 0; } .left-3{left:.75rem} .left-4{left:1rem} .right-3{right:.75rem} .top-2\.5{top:.625rem} .top-3\.5{top:.875rem} .top-3{top:.75rem}
.overflow-hidden { overflow: hidden; }
.z-50 { z-index: 50; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; } .h-16img { height: 4rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }
.w-56 { width: 14rem; } .w-64 { width: 16rem; }

/* Icon & small element sizing (w-N / h-N where N = 0.25rem units) */
.w-3{width:.75rem}.h-3{height:.75rem}
.w-3\.5{width:.875rem}.h-3\.5{height:.875rem}
.w-4{width:1rem}.h-4{height:1rem}
.w-5{width:1.25rem}.h-5{height:1.25rem}
.w-6{width:1.5rem}.h-6{height:1.5rem}
.w-12{width:3rem}.h-12{height:3rem}
.w-14{width:3.5rem}.h-14{height:3.5rem}
.w-16{width:4rem}.h-16{height:4rem}
.w-20{width:5rem}.h-20{height:5rem}
.aspect-\[16\/10\] { aspect-ratio: 16/10; }

/* grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.lg\:col-span-2 { }

/* ---------- Typography ---------- */
.text-xs{font-size:.75rem}.text-sm{font-size:.875rem}.text-base{font-size:1rem}
.text-lg{font-size:1.125rem}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}
.text-3xl{font-size:1.875rem}.text-4xl{font-size:2.25rem}.text-5xl{font-size:3rem}.text-7xl{font-size:4.5rem}
.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-extrabold{font-weight:800}
.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}
.tracking-wide{letter-spacing:.025em}.tracking-tight{letter-spacing:-.025em}
.leading-none{line-height:1}.leading-tight{line-height:1.25}.leading-snug{line-height:1.375}.leading-relaxed{line-height:1.625}
.underline{text-decoration:underline}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- Colors ---------- */
.bg-white{background:#fff}.bg-gray-50{background:#f9fafb}.bg-gray-100{background:#f3f4f6}
.bg-gray-900{background:#111827}.bg-orange-50{background:#fff7ed}.bg-orange-100{background:#ffedd5}
.bg-orange-500{background:#f97316}.bg-orange-600{background:#ea580c}
.bg-purple-50{background:#faf5ff}.bg-purple-600{background:#9333ea}
.bg-red-50{background:#fef2f2}.bg-red-500{background:#ef4444}
.bg-green-50{background:#f0fdf4}
.text-white{color:#fff}.text-gray-400{color:#9ca3af}.text-gray-500{color:#6b7280}
.text-gray-600{color:#4b5563}.text-gray-700{color:#374151}.text-gray-800{color:#1f2937}.text-gray-900{color:#111827}
.text-orange-500{color:#f97316}.text-orange-600{color:#ea580c}.text-orange-300{color:#fdba74}.text-orange-200{color:#fed7aa}
.text-orange-50{color:#fff7ed}.text-purple-600{color:#9333ea}.text-yellow-400{color:#facc15}.text-gray-200{color:#e5e7eb}
.text-green-600{color:#16a34a}.text-red-500{color:#ef4444}.text-green-700{color:#15803d}.text-red-700{color:#b91c1c}
.text-purple-700{color:#7e22ce}.text-orange-700{color:#c2410c}
.border{border-width:1px;border-style:solid}.border-gray-200{border-color:#e5e7eb}.border-gray-100{border-color:#f3f4f6}
.border-gray-300{border-color:#d1d5db}.border-gray-800{border-color:#1f2937}.border-dashed{border-style:dashed}
.border-orange-200{border-color:#fed7aa}.border-purple-200{border-color:#e9d5ff}.border-green-200{border-color:#bbf7d0}.border-red-200{border-color:#fecaca}
.border-t{border-top-width:1px;border-top-style:solid}.border-b{border-bottom-width:1px;border-bottom-style:solid}
.rounded{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}
.rounded-full{border-radius:9999px}
.shadow-sm{box-shadow:0 1px 2px rgba(0,0,0,.05)}.shadow-md{box-shadow:0 4px 6px rgba(0,0,0,.07)}.shadow-lg{box-shadow:0 10px 15px rgba(0,0,0,.08)}

.bg-gradient-to-br{background-image:linear-gradient(to bottom right, var(--g1), var(--g2))}
.from-orange-500{--g1:#f97316}.via-orange-400{}.to-amber-400{--g2:#fbbf24}
.from-orange-50{--g1:#fff7ed}.to-orange-100{--g2:#ffedd5}

/* ---------- Buttons / Forms ---------- */
input, textarea, select { font: inherit; }
.transition { transition: all .2s ease; }
.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}

/* ---------- Object-fit ---------- */
.object-cover{object-fit:cover}
.group:hover .group-hover\:scale-105{transform:scale(1.05)}
.group:hover .group-hover\:text-orange-600{color:#ea580c}
.group:hover .group-hover\:text-orange-400{color:#fb923c}

/* ---------- Prose (article content) ---------- */
.prose { color: #374151; font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 1rem; color: #111827; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 .75rem; color: #111827; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 1rem 0 1.1rem 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { margin: 1.5rem 0; border-radius: .75rem; }
.prose a { color: #ea580c; text-decoration: underline; }
.prose blockquote { border-left: 4px solid #f97316; padding-left: 1rem; font-style: italic; color: #6b7280; margin: 1.5rem 0; }
.prose strong { font-weight: 700; color: #111827; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; display: table; }
.prose thead { display: table-header-group; }
.prose tbody { display: table-row-group; }
.prose tr { display: table-row; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: .6rem .85rem; text-align: left; font-size: .9rem; vertical-align: top; display: table-cell; }
.prose th { background: #f97316; color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) td { background: #fafafa; }

/* ---------- Misc ---------- */
.list-disc { list-style: disc; }
.list-inside { list-style-position: inside; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-orange-500:hover { color: #f97316; }
.hover\:text-orange-600:hover { color: #ea580c; }
.hover\:text-orange-400:hover { color: #fb923c; }
.hover\:bg-gray-100:hover { background: #f3f4f6; }
.hover\:bg-orange-100:hover { background: #ffedd5; }
.hover\:bg-orange-600:hover { background: #ea580c; }
.hover\:bg-purple-700:hover { background: #7e22ce; }
.hover\:border-orange-400:hover { border-color: #fb923c; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px rgba(0,0,0,.07); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px rgba(0,0,0,.08); }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #fb923c66; }
.focus\:ring-4:focus { box-shadow: 0 0 0 4px #ffffff4d; }

/* ---------- Ad slot ---------- */
.ad-slot { width: 100%; }

/* ---------- Hero: Top Categories (Tozi-style) ---------- */
.hero-categories {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 55%, #fbbf24 100%);
}
.hero-deco { position: absolute; pointer-events: none; opacity: .5; }
.hero-deco-dots {
  top: 30px; left: 40px; width: 260px; height: 160px;
  background-image: radial-gradient(rgba(255,255,255,.45) 2.5px, transparent 2.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 35%, transparent 70%);
}
.hero-deco-leaf {
  top: 20px; right: 30px; width: 220px; height: 220px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 0 75% 0 75%;
  transform: rotate(15deg);
}

/* Category pills */
.hero-pills {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.hero-pill {
  background: rgba(0,0,0,.18);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all .2s ease;
}
.hero-pill:hover { background: rgba(0,0,0,.28); }
.hero-pill.active { background: #111827; color: #fff; }

/* Hero article cards */
.hero-cards { transition: opacity .2s ease; }
.hero-card {
  background: #fff;
  border-radius: .9rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.18); }
.hero-card-img { aspect-ratio: 16/11; background: #f3f4f6; overflow: hidden; }
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-noimg { width: 100%; height: 100%; background: linear-gradient(135deg,#fff7ed,#ffedd5); }
.hero-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.hero-card-badge {
  display: inline-block; background: #ffedd5; color: #c2410c;
  font-size: .72rem; font-weight: 700; padding: .25rem .7rem;
  border-radius: 9999px; margin-bottom: .6rem;
}
.hero-card-title {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: #111827; line-height: 1.35; margin-bottom: .6rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card-date { font-size: .8rem; color: #9ca3af; }

@media (max-width: 640px) {
  .hero-deco-dots { width: 140px; left: 10px; }
  .hero-deco-leaf { width: 120px; height: 120px; right: 10px; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .sm\:flex-row{flex-direction:row}
  .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sm\:block{display:block}
  .sm\:text-5xl{font-size:3rem}
  .sm\:text-4xl{font-size:2.25rem}
  .sm\:text-3xl{font-size:1.875rem}
  .sm\:text-2xl{font-size:1.5rem}
  .sm\:text-lg{font-size:1.125rem}
  .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}
  .sm\:py-20{padding-top:5rem;padding-bottom:5rem}
  .sm\:items-center{align-items:center}
  .sm\:w-auto{width:auto}
}
@media (min-width: 768px) {
  .md\:hidden{display:none}
  .md\:flex{display:flex}
}
@media (min-width: 1024px) {
  .lg\:px-8{padding-left:2rem;padding-right:2rem}
  .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .lg\:col-span-2{grid-column:span 2 / span 2}
}

/* Mobile menu toggle (JS-controlled via main.js) */
#mobile-menu.show { display: flex; }

/* ===== Article Table of Contents (auto-generated) ===== */
.article-toc {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article-toc strong {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #c2410c;
  margin-bottom: .75rem;
  font-family: 'Poppins', sans-serif;
}
.article-toc ul { list-style: none; margin: 0; padding: 0; }
.article-toc li { margin: .35rem 0; }
.article-toc a {
  color: #ea580c;
  text-decoration: none;
  font-size: .92rem;
  border-bottom: 1px dotted #fdba74;
}
.article-toc a:hover { color: #c2410c; border-bottom-style: solid; }

/* ===== Article content tables ===== */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.prose table th {
  background: #f97316;
  color: #fff;
  text-align: left;
  padding: .6rem .85rem;
  font-weight: 600;
}
.prose table td {
  border: 1px solid #e5e7eb;
  padding: .6rem .85rem;
}
.prose table tr:nth-child(even) td { background: #fafafa; }

/* Smooth scroll for TOC anchor jumps */
html { scroll-behavior: smooth; }

/* ===== Floating share buttons ===== */
.share-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: transform .15s ease, opacity .15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  text-decoration: none;
}
.share-btn:hover { transform: scale(1.12); opacity: .92; }
.share-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.share-row .share-btn { width: 36px; height: 36px; }








/* ===== Article meta row (aligned) ===== */
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.article-meta-row .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}
.article-meta-row .meta-item svg {
  width: 15px;
  height: 15px;
  color: #9ca3af;
  flex-shrink: 0;
  display: block;
}

/* ===== Article Info Tabs (Summary / Contents) — button-pill style ===== */
.article-tabs {
  margin: 0 0 1.75rem;
}
.article-tabs-nav {
  display: flex;
  gap: .6rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eef0f2;
  flex-wrap: wrap;
}
.article-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1px solid #e2e5e9;
  background: #fff;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all .15s ease;
}
.article-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.article-tab .tab-caret { width: 14px; height: 14px; transition: transform .2s ease; opacity: .7; }
.article-tab:hover { border-color: #fdba74; color: #ea580c; }
.article-tab.active {
  border-color: #f97316;
  color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 1px 2px rgba(249,115,22,.12);
}
.article-tab.active .tab-caret { transform: rotate(180deg); }

/* Quote-style panel */
.article-tab-panel {
  display: none;
  margin-top: 1rem;
  padding: 1.1rem 1.4rem;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 0 .6rem .6rem 0;
}
.article-tab-panel.active { display: block; animation: tabFade .2s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.takeaways-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.takeaways-list li { display: flex; gap: .6rem; font-size: .92rem; color: #4b3621; line-height: 1.55; font-style: italic; }
.takeaways-list .tk-check { color: #f97316; font-weight: 800; flex-shrink: 0; font-style: normal; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: .4rem 0; display: flex; align-items: flex-start; gap: .5rem; }
.toc-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: .15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.toc-list li.toc-h2 { margin-left: 0; font-weight: 600; }
.toc-list li.toc-h3 { margin-left: 1.25rem; }
.toc-list li.toc-h4 { margin-left: 2.5rem; font-size: .85rem; }
.toc-list li.toc-h3::before, .toc-list li.toc-h4::before { opacity: .65; transform: scale(.85); }
.toc-list a { color: #ea580c; text-decoration: none; font-size: .9rem; border-bottom: 1px dotted #fdba74; }
.toc-list li.toc-h2 > a { font-size: .95rem; }
.toc-list a:hover { color: #c2410c; border-bottom-style: solid; }

/* ===== FAQ (compact boxed, like reference) ===== */
.faq-section { margin: 2.5rem 0; }
.faq-box {
  border: 1px solid #e5e7eb;
  border-left: 3px solid #f97316;
  border-radius: .5rem;
  overflow: hidden;
  background: #fbfbfc;
}
.faq-box-head {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4b5563;
  padding: .8rem 1.1rem;
  background: #f6f7f8;
  border-bottom: 1px solid #eceef0;
  font-family: 'Poppins', sans-serif;
}
.faq-wrap { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid #eceef0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-size: .9rem;
  font-weight: 600;
  color: #1f2937;
  transition: background .12s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #fff7ed; color: #f97316; }
.faq-q { line-height: 1.4; }
.faq-plus {
  flex-shrink: 0;
  color: #f97316;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 400;
  transition: transform .2s ease, color .2s ease;
}
.faq-item[open] summary { color: #f97316; }
.faq-item[open] .faq-plus { transform: rotate(45deg); color: #ea580c; }
.faq-a {
  padding: 0 1.1rem .9rem;
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.65;
}

/* ===== Wrapped tables (sf-table-wrap) ===== */
.prose .sf-table-wrap, .sf-table-wrap { margin: 1.5rem 0; overflow-x: auto; }
.sf-table-wrap table { width: 100%; border-collapse: collapse; }
.sf-table-wrap th { background: #f97316; color: #fff; font-weight: 600; text-align: left; padding: .6rem .85rem; border: 1px solid #ea580c; }
.sf-table-wrap td { border: 1px solid #e5e7eb; padding: .6rem .85rem; }
.sf-table-wrap tbody tr:nth-child(even) td { background: #fafafa; }

/* ===== YugaTech-style article header ===== */
.article-cat-badge {
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: .35rem;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: background .15s ease;
}
.article-cat-badge:hover { background: #ea580c; }

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eef0f2;
}
.article-meta-bar .article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #6b7280;
  margin: 0;
  padding: 0;
  border: none;
}
.article-meta-bar .meta-item { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta-bar .meta-item svg { width: 15px; height: 15px; color: #9ca3af; }
.article-meta-bar .meta-sep { color: #d1d5db; }

.article-share-inline { display: flex; align-items: center; gap: .4rem; }
.share-mini {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: transform .12s ease, opacity .12s ease;
}
.share-mini:hover { transform: scale(1.1); opacity: .9; }

/* Inline featured image (after first paragraph) */
.article-inline-featured { margin: 1.5rem 0; }
.article-inline-featured img { width: 100%; border-radius: .75rem; display: block; }

/* ===== READ ALSO (inline, kami.com.ph style) ===== */
.read-also {
  border-top: 2px solid #f97316;
  border-bottom: 2px solid #f97316;
  padding: .9rem 0;
  margin: 1.75rem 0;
}
.read-also-label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: .35rem;
  font-family: 'Poppins', sans-serif;
}
.read-also-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f97316;
  text-decoration: none;
  line-height: 1.35;
  font-family: 'Poppins', sans-serif;
}
.read-also-link:hover { color: #ea580c; text-decoration: underline; }

/* ===== Related Articles (grid) ===== */
.related-section { margin: 2rem 0 1.5rem; }
.related-heading {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #f97316;
  display: inline-block;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: .6rem;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
  background: #fff;
}
.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-2px); }
.related-card-img { aspect-ratio: 16/9; background: #f3f4f6; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: .55rem .7rem .7rem; }
.related-card-cat {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #f97316;
}
.related-card-title {
  font-size: .8rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin-top: .2rem;
  font-family: 'Poppins', sans-serif;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.related-card:hover .related-card-title { color: #ea580c; }

/* ===== Other Stories (list) ===== */
.other-stories {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid #111827;
  border-bottom: 2px solid #111827;
}
.other-stories-heading {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: #111827;
  margin-bottom: 1rem;
}
.other-stories-list { list-style: none; margin: 0; padding: 0; }
.other-stories-list li { padding: .55rem 0; border-bottom: 1px solid #f3f4f6; }
.other-stories-list li:last-child { border-bottom: none; }
.other-stories-list a {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.4;
}
.other-stories-list a:hover { color: #ea580c; }

/* ===== Popular Posts (sidebar) rank number ===== */
.popular-rank {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: #f97316;
  font-weight: 800;
  font-size: .85rem;
  border-radius: 50%;
  font-family: 'Poppins', sans-serif;
}
.group:hover .popular-rank { background: #f97316; color: #fff; }

/* ===== TOC list inside the Contents tab (reuses inserted TOC) ===== */
.toc-list-wrap ul { list-style: none; margin: 0; padding: 0; }
.toc-list-wrap li { margin: .35rem 0; }
.toc-list-wrap a { color: #ea580c; text-decoration: none; font-size: .92rem; border-bottom: 1px dotted #fdba74; white-space: pre-wrap; }
.toc-list-wrap a:hover { color: #c2410c; border-bottom-style: solid; }

/* ===== Ad slots & placeholders ===== */
.ad-slot { margin: 1.5rem 0; display: flex; justify-content: center; }
.ad-slot--article-top-banner { margin-top: 0; margin-bottom: 1.5rem; }

/* Constrain the LIVE responsive ad (<ins>) to the same footprint as the
   placeholder, so AdSense fills the box instead of picking its own size. */
.ad-slot--size-banner .adsbygoogle {
  display: block !important;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 0 auto;
}
.ad-slot--size-box .adsbygoogle {
  display: block !important;
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  margin: 0 auto;
}
.ad-slot--size-tall .adsbygoogle {
  display: block !important;
  width: 300px;
  max-width: 100%;
  min-height: 600px;
  margin: 0 auto;
}
.ad-placeholder {
  width: 100%;
  background: #f3f4f6;
  border: 1px dashed #cbd5e1;
  border-radius: .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  color: #9ca3af;
}
/* Proper sizes so you can see how big each ad will be */
.ad-placeholder--banner {
  max-width: 728px;
  min-height: 90px;
  margin: 0 auto;
}
.ad-placeholder--box {
  max-width: 300px;
  min-height: 250px;
  margin: 0 auto;
}
.ad-placeholder--tall {
  max-width: 300px;
  min-height: 600px;
  margin: 0 auto;
}
.ad-placeholder-label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}
.ad-placeholder-size {
  font-size: .65rem;
  color: #b0b8c4;
  letter-spacing: .04em;
}

/* ===== Sidebar (sticky) ===== */
.article-sidebar { position: relative; }
.sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (max-width: 1023px) {
  .sidebar-sticky { position: static; }
}

/* ===== Top Articles (Trending) ===== */
.top-articles {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: 1.1rem 1.25rem;
}
.top-articles-head {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111827;
  padding-bottom: .75rem;
  margin-bottom: .25rem;
  border-bottom: 2px solid #f97316;
  font-family: 'Poppins', sans-serif;
}
.top-articles-list { display: flex; flex-direction: column; }
.top-article-item {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
}
.top-article-item:last-child { border-bottom: none; }
.top-article-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: .5rem;
  overflow: hidden;
  background: #f3f4f6;
}
.top-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-article-rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: #f97316;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-right-radius: .4rem;
  font-family: 'Poppins', sans-serif;
}
.top-article-body { min-width: 0; }
.top-article-title {
  font-size: .85rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
  margin: 0 0 .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-article-item:hover .top-article-title { color: #ea580c; }
.top-article-date { font-size: .72rem; color: #9ca3af; }

/* ===== 3-column article layout (article | ads | trending) ===== */
.article-ads-col, .article-trending-col { position: relative; }
/* On tablet/mobile (below lg) the grid is 1-col. Hide the dedicated ads column
   there (those ad units don't fit a narrow stacked layout); the Top Articles
   column still shows below the article. */
@media (max-width: 1023px) {
  .article-ads-col { display: none; }
  .article-ads-col .sidebar-sticky,
  .article-trending-col .sidebar-sticky { position: static; }
}

/* ===== Affiliate disclosure block ===== */
.affiliate-disclosure {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: .5rem;
  padding: .9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: .88rem;
  line-height: 1.55;
  color: #78350f;
}
.affiliate-disclosure strong { color: #b45309; }

/* ===== In-article image with caption (figure.sf-img) ===== */
.prose figure.sf-img, figure.sf-img { margin: 1.5rem auto; text-align: center; }
figure.sf-img img { border-radius: .6rem; max-width: 100%; height: auto; }
figure.sf-img figcaption {
  margin-top: .5rem;
  font-size: .85rem;
  color: #6b7280;
  font-style: italic;
  text-align: center;
}

/* ===== News-portal homepage ===== */
/* Big hero */
.home-hero { display:block; text-decoration:none; border-radius:.75rem; overflow:hidden; }
.home-hero-img { position:relative; aspect-ratio:16/10; background:#e5e7eb; }
.home-hero-img img { width:100%; height:100%; object-fit:cover; display:block; }
.home-hero-noimg { width:100%; height:100%; background:linear-gradient(135deg,#fb923c,#ea580c); }
.home-hero-overlay {
  position:absolute; left:0; right:0; bottom:0; padding:1.5rem 1.25rem 1.25rem;
  background:linear-gradient(transparent, rgba(0,0,0,.85));
}
.home-hero-badge {
  display:inline-block; background:#f97316; color:#fff; font-size:.65rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.04em; padding:.25rem .6rem; border-radius:.3rem; margin-bottom:.5rem;
  font-family:'Poppins',sans-serif;
}
.home-hero-title {
  color:#fff; font-size:1.4rem; font-weight:800; line-height:1.25; font-family:'Poppins',sans-serif;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.home-hero-meta { color:rgba(255,255,255,.85); font-size:.78rem; margin-top:.5rem; }

/* Top News list */
.top-news { display:flex; flex-direction:column; }
.top-news-head {
  font-size:1.1rem; font-weight:800; color:#dc2626; font-family:'Poppins',sans-serif;
  padding-bottom:.6rem; margin-bottom:.4rem; border-bottom:2px solid #dc2626;
}
.top-news-list { display:flex; flex-direction:column; }
.top-news-item {
  display:flex; gap:.75rem; align-items:flex-start; justify-content:space-between;
  padding:.7rem 0; border-bottom:1px solid #f0f0f0; text-decoration:none;
}
.top-news-item:last-child { border-bottom:none; }
.top-news-text { flex:1; min-width:0; }
.top-news-cat { font-size:.62rem; font-weight:700; text-transform:uppercase; color:#f97316; letter-spacing:.03em; }
.top-news-title {
  font-size:.9rem; font-weight:600; color:#1f2937; line-height:1.35; margin-top:.15rem;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.top-news-item:hover .top-news-title { color:#dc2626; }
.top-news-thumb { width:72px; height:54px; flex-shrink:0; border-radius:.4rem; overflow:hidden; background:#f3f4f6; }
.top-news-thumb img { width:100%; height:100%; object-fit:cover; }

/* More stories grid */
.more-stories { margin-top:2.5rem; }
.section-head {
  font-size:1.3rem; font-weight:800; color:#111827; font-family:'Poppins',sans-serif;
  padding-bottom:.5rem; margin-bottom:1.25rem; border-bottom:2px solid #f97316; display:inline-block;
}
.story-card { display:block; text-decoration:none; border:1px solid #eee; border-radius:.7rem; overflow:hidden; transition:box-shadow .15s, transform .15s; background:#fff; }
.story-card:hover { box-shadow:0 6px 18px rgba(0,0,0,.08); transform:translateY(-2px); }
.story-card-img { aspect-ratio:16/9; background:#f3f4f6; }
.story-card-img img { width:100%; height:100%; object-fit:cover; }
.story-card-noimg { width:100%; height:100%; background:linear-gradient(135deg,#fdba74,#fb923c); }
.story-card-body { padding:.85rem 1rem 1rem; }
.story-card-cat { font-size:.62rem; font-weight:700; text-transform:uppercase; color:#f97316; letter-spacing:.03em; }
.story-card-title {
  font-size:.98rem; font-weight:700; color:#1f2937; line-height:1.35; margin:.25rem 0;
  font-family:'Poppins',sans-serif;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.story-card:hover .story-card-title { color:#ea580c; }
.story-card-date { font-size:.72rem; color:#9ca3af; }

/* Ad rail */
.home-ad-rail { position:sticky; top:90px; display:flex; flex-direction:column; gap:1.5rem; }
@media (max-width:1023px) { .home-ad-rail { position:static; flex-direction:row; flex-wrap:wrap; } }

/* ===== Header search bar (pill with orange button) ===== */
.sf-search {
  display: flex; align-items: center;
  width: 18rem; max-width: 100%;
  border: 1.5px solid #f97316;
  border-radius: 9999px;
  padding: 3px 3px 3px 0;
  background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.sf-search:focus-within { box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.sf-search-input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  padding: .5rem .25rem .5rem 1.1rem;
  font-size: .875rem; color: #1f2937;
}
.sf-search-input::placeholder { color: #9ca3af; }
.sf-search-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: none; border-radius: 9999px;
  background: #f97316; color: #fff; cursor: pointer;
  transition: background .15s;
}
.sf-search-btn:hover { background: #ea580c; }
.sf-search-btn svg { width: 17px; height: 17px; }
@media (min-width: 1024px) { .sf-search { width: 22rem; } }

/* ===== In-article image alignment (kept in sync with align batch) ===== */
img.sf-align-left, figure.sf-img.sf-align-left { float: left; margin: .5rem 1.5rem 1rem 0; max-width: 50%; }
img.sf-align-right, figure.sf-img.sf-align-right { float: right; margin: .5rem 0 1rem 1.5rem; max-width: 50%; }
img.sf-align-center, figure.sf-img.sf-align-center { display: block !important; margin-left: auto !important; margin-right: auto !important; float: none !important; }
p:has(> img.sf-align-center) { text-align: center; }
.prose::after, .article-content::after { content: ""; display: table; clear: both; }

/* ===== Homepage robust grid (explicit, not Tailwind-dependent) ===== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
.home-main-col { min-width: 0; }
.home-ad-col {
  display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: 90px; align-self: start;
}
@media (max-width: 1023px) {
  .home-ad-col { position: static; flex-direction: row; flex-wrap: wrap; }
  .home-ad-col > * { flex: 1; min-width: 240px; }
}

/* Most Viewed: big hero + 2 stacked cards beside it */
.home-mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .home-mv-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.home-mv-side { display: flex; flex-direction: column; gap: 1.25rem; }

/* Trending grid: responsive cards */
.home-trending-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .home-trending-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .home-trending-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Header menu row (explicit CSS, not Tailwind-dependent) ===== */
.sf-menu-row {
  display: none;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
@media (min-width: 768px) { .sf-menu-row { display: block; } }
.sf-menu-nav {
  display: flex; align-items: center; gap: 1.75rem;
  height: 2.75rem;
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  font-family: 'Poppins', sans-serif;
  overflow-x: auto;
}
.sf-menu-nav a { color: #1f2937; white-space: nowrap; text-decoration: none; transition: color .15s; }
.sf-menu-nav a:hover { color: #f97316; }

/* ===== Homepage: reference-matched feature row ===== */
.home-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .home-feature-row { grid-template-columns: 1.35fr 1fr; align-items: start; }
}
.home-feature-left { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.home-feature-right { min-width: 0; }

/* Small horizontal cards under the hero (thumbnail left, text right) */
.home-mini {
  display: flex; gap: .85rem; align-items: center;
  text-decoration: none; padding: .5rem 0; border-top: 1px solid #f0f0f0;
}
.home-mini:first-of-type { border-top: none; }
.home-mini-thumb {
  width: 96px; height: 70px; flex-shrink: 0;
  border-radius: .5rem; overflow: hidden; background: #f3f4f6;
}
.home-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-mini-text { min-width: 0; }
.home-mini-cat { font-size: .6rem; font-weight: 700; text-transform: uppercase; color: #f97316; letter-spacing: .03em; }
.home-mini-title {
  font-size: .92rem; font-weight: 700; color: #1f2937; line-height: 1.3; margin: .15rem 0;
  font-family: 'Poppins', sans-serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-mini:hover .home-mini-title { color: #dc2626; }
.home-mini-date { font-size: .72rem; color: #9ca3af; }

/* ===== Header menu dropdown submenus ===== */
.sf-menu-item { position: relative; display: flex; align-items: center; }
.sf-menu-item > a { display: inline-flex; align-items: center; gap: .25rem; }
.sf-sub-caret { font-size: .6rem; opacity: .7; }
.sf-submenu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid #eee; border-radius: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: .4rem; display: none; flex-direction: column; z-index: 60;
}
.sf-menu-item.has-sub:hover .sf-submenu { display: flex; }
.sf-submenu a {
  padding: .5rem .75rem; border-radius: .4rem; font-size: .8rem;
  font-weight: 600; text-transform: none; letter-spacing: 0; color: #374151; white-space: nowrap;
}
.sf-submenu a:hover { background: #fff7ed; color: #f97316; }

/* ===== Comments Section (redesigned) ===== */
.comments-section { margin: 2.5rem 0; }
.comments-heading {
  font-size: 1.2rem; font-weight: 800; color: #1f2937;
  font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem;
  padding-bottom: .75rem; border-bottom: 2px solid #f3f4f6;
}
.comments-count {
  background: #f97316; color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: .15rem .55rem; border-radius: 9999px;
}
.comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.comment-card {
  display: flex; gap: .875rem; align-items: flex-start;
  background: #fff; border: 1px solid #f0f0f0;
  border-radius: .75rem; padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.comment-avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 9999px; background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.comment-author { font-weight: 700; font-size: .88rem; color: #1f2937; }
.comment-date { font-size: .75rem; color: #9ca3af; }
.comment-text { font-size: .875rem; color: #4b5563; line-height: 1.65; margin: 0; }
.comments-empty { font-size: .875rem; color: #9ca3af; margin-bottom: 1.5rem; }
.comment-alert { font-size: .875rem; padding: .75rem 1rem; border-radius: .5rem; margin-bottom: 1rem; }
.comment-alert-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.comment-alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

.comment-form-wrap {
  background: #fff7ed; border: 1.5px solid #fed7aa;
  border-radius: .875rem; padding: 1.5rem;
}
.comment-form-title { font-size: 1rem; font-weight: 800; color: #f97316; margin: 0 0 1rem; font-family: 'Poppins', sans-serif; }
.comment-form { display: flex; flex-direction: column; gap: .75rem; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 600px) { .comment-form-row { grid-template-columns: 1fr; } }
.comment-input {
  width: 100%; padding: .65rem 1rem; font-size: .875rem;
  border: 1.5px solid #fed7aa; border-radius: .5rem;
  background: #fff; color: #1f2937; outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.comment-input:focus { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.comment-textarea { resize: vertical; min-height: 110px; }
.comment-submit {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #f97316; color: #fff;
  border: none; border-radius: 9999px;
  padding: .7rem 1.75rem; font-size: .875rem; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s;
  width: fit-content;
}
.comment-submit:hover { background: #ea580c; transform: translateY(-1px); }

/* ===== Share Bar — YugaTech style ===== */
.share-bar-yt {
  display: flex; align-items: center; flex-wrap: nowrap; gap: .4rem;
  border: 1.5px solid #fed7aa; border-radius: 9999px;
  padding: .45rem .9rem; margin: 1.75rem 0 1.5rem;
  background: #fff7ed; overflow: hidden;
}
.share-bar-yt-label {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; font-weight: 700; color: #92400e; white-space: nowrap;
  padding-right: .5rem; border-right: 1px solid #fbb96c; flex-shrink: 0;
}
.share-bar-yt-icons { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.syt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9999px;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity .15s, transform .1s; color: #fff; flex-shrink: 0;
}
.syt-btn:hover { opacity: .85; transform: translateY(-1px); }
.syt-fb  { background: #1877f2; }
.syt-msg { background: #0084ff; }
.syt-wa  { background: #25d366; }
.syt-x   { background: #111; }
.syt-pt  { background: #e60023; }
.syt-copy { background: #6b7280; }
.share-bar-yt-url {
  font-size: .68rem; color: #9ca3af; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  border-left: 1px solid #fbb96c; padding-left: .55rem; margin-left: .15rem;
  min-width: 0; flex: 1;
}
@media (max-width: 600px) { .share-bar-yt-url { display: none; } }

/* ===== Footer (explicit CSS, not Tailwind-dependent) ===== */
.sf-footer { background: #111827; color: #d1d5db; margin-top: 4rem; }
.sf-footer-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem 1.5rem; }
.sf-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 768px) { .sf-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sf-footer-grid { grid-template-columns: 1fr; } }
.sf-footer-logo {
  font-size: 1.4rem; font-weight: 900;
  font-family: 'Poppins', sans-serif;
  display: block; margin-bottom: .75rem;
  color: #fff;
}
.sf-footer-logo-suki { color: #f97316; }
.sf-footer-desc { font-size: .85rem; color: #9ca3af; line-height: 1.65; margin: 0; }
.sf-footer-heading {
  color: #fff; font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .85rem;
}
.sf-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.sf-footer-links a { color: #9ca3af; text-decoration: none; font-size: .875rem; transition: color .15s; }
.sf-footer-links a:hover { color: #f97316; }
.sf-footer-bottom {
  border-top: 1px solid #1f2937; margin-top: 0; padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .5rem; font-size: .75rem; color: #6b7280;
}
.sf-footer-bottom a { color: #9ca3af; text-decoration: underline; }
.sf-footer-bottom a:hover { color: #f97316; }
.sf-footer-nav {
  border-top: 1px solid #1f2937; padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
}
.sf-footer-nav a { color: #9ca3af; font-size: .85rem; text-decoration: none; }
.sf-footer-nav a:hover { color: #f97316; }

/* ===== Contact Page ===== */
.contact-card { background:#fff;border:1px solid #e5e7eb;border-radius:1rem;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.07); }
.contact-form { padding:1.75rem 1.5rem; }
.contact-form-row { display:grid;grid-template-columns:1fr 1fr;gap:1rem; }
@media (max-width:560px) { .contact-form-row { grid-template-columns:1fr; } }
.contact-form-group { display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem; }
.contact-label { font-size:.82rem;font-weight:700;color:#374151; }
.contact-req { color:#f97316; }
.contact-input-wrap { position:relative;display:flex;align-items:center; }
.contact-ico {
  position:absolute;left:.85rem;top:50%;transform:translateY(-50%);
  width:16px !important;height:16px !important;
  min-width:16px;min-height:16px;max-width:16px;max-height:16px;
  flex-shrink:0;pointer-events:none;color:#9ca3af;stroke:currentColor;fill:none;
  overflow:hidden;
}
.contact-ico-ta { top:.85rem;transform:none; }
.contact-input {
  width:100%;padding:.7rem 1rem .7rem 2.5rem;
  border:1.5px solid #e5e7eb;border-radius:.6rem;
  font-size:.875rem;color:#1f2937;background:#fff;outline:none;
  transition:border-color .15s,box-shadow .15s;box-sizing:border-box;
}
.contact-input:focus { border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.12); }
.contact-textarea { padding-left:1rem;min-height:150px;resize:vertical;padding-bottom:1.75rem; }
.contact-submit {
  display:inline-flex;align-items:center;gap:.6rem;
  background:#f97316;color:#fff;border:none;border-radius:9999px;
  padding:.85rem 2.5rem;font-size:.95rem;font-weight:700;cursor:pointer;
  transition:background .15s,transform .1s;
}
.contact-submit:hover { background:#ea580c;transform:translateY(-1px); }

/* ===== Mobile Menu — burger + slide-in drawer ===== */
.sf-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
}
.sf-burger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #1f2937;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.sf-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.sf-burger.is-open span:nth-child(2) { opacity: 0; }
.sf-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.sf-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, .5);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 998;
}
.sf-drawer-overlay.show { opacity: 1; visibility: visible; }

.sf-drawer {
  position: fixed; top: 0; right: 0;
  height: 100%;
  width: 82%; max-width: 320px;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 999;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sf-drawer.show { transform: translateX(0); }

.sf-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.sf-drawer-logo { font-size: 1.3rem; font-weight: 900; font-family: 'Poppins', sans-serif; color: #1f2937; }
.sf-drawer-logo-suki { color: #f97316; }
.sf-drawer-close {
  background: #f8fafc; border: none; border-radius: 8px;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: #64748b; cursor: pointer;
}
.sf-drawer-close:hover { background: #f1f5f9; color: #1f2937; }

.sf-drawer-search {
  display: flex; align-items: center;
  margin: 1rem 1.25rem;
  border: 1.5px solid #e5e7eb; border-radius: 9999px;
  overflow: hidden;
}
.sf-drawer-search input {
  flex: 1; border: none; outline: none;
  padding: .6rem .95rem; font-size: .85rem; color: #1f2937;
  background: transparent;
}
.sf-drawer-search button {
  border: none; background: #f97316; color: #fff;
  width: 40px; align-self: stretch;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sf-drawer-search button:hover { background: #ea580c; }

.sf-drawer-links { display: flex; flex-direction: column; padding: .25rem 0 1.5rem; }
.sf-drawer-link {
  padding: .85rem 1.35rem;
  font-size: .95rem; font-weight: 700;
  color: #1f2937; text-decoration: none;
  border-bottom: 1px solid #f8fafc;
  transition: background .15s, color .15s;
}
.sf-drawer-link:hover, .sf-drawer-link:active { background: #fff7ed; color: #ea580c; }
.sf-drawer-sublink {
  padding: .65rem 1.35rem .65rem 2.25rem;
  font-size: .85rem; font-weight: 500;
  color: #64748b; text-decoration: none;
  border-bottom: 1px solid #f8fafc;
  position: relative;
}
.sf-drawer-sublink::before { content: "—"; position: absolute; left: 1.35rem; color: #cbd5e1; }
.sf-drawer-sublink:hover { background: #fff7ed; color: #ea580c; }

/* Show burger only on mobile; keep body from scrolling when drawer open */
@media (max-width: 767px) {
  .sf-burger { display: flex; }
}
body.sf-drawer-open { overflow: hidden; }

/* ===== Category / Archive page with sidebar ===== */
.cat-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-sidebar { display: none; } /* hide ad/popular rail on small screens to keep focus on articles */
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-sidebar-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.5rem; }
.cat-widget {
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: .9rem;
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cat-widget-title {
  font-size: 1rem; font-weight: 800; font-family: 'Poppins', sans-serif;
  color: #111827; margin: 0 0 .9rem; padding-bottom: .55rem;
  border-bottom: 2px solid #f97316; display: block;
  text-transform: uppercase; letter-spacing: .03em;
}
.cat-top-list { display: flex; flex-direction: column; }
.cat-top-item {
  display: flex; gap: .75rem; align-items: center;
  text-decoration: none; padding: .7rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.cat-top-item:last-child { border-bottom: none; }
.cat-top-thumb {
  position: relative; flex: 0 0 auto;
  width: 64px; height: 64px; border-radius: .55rem; overflow: hidden;
  background: #f3f4f6; display: block;
}
.cat-top-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-top-thumb-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#fed7aa,#fdba74); }
.cat-top-num {
  position: absolute; top: 0; left: 0;
  width: 22px; height: 22px;
  background: #f97316; color: #fff;
  font-size: .8rem; font-weight: 800; font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 0 .5rem 0;
  z-index: 2; line-height: 1;
}
.cat-top-info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.cat-top-headline {
  font-size: .85rem; font-weight: 700; color: #1f2937; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: 'Poppins', sans-serif;
}
.cat-top-item:hover .cat-top-headline { color: #ea580c; }
.cat-top-date { font-size: .72rem; color: #9ca3af; }

/* ===== Author Box (brand-matched) ===== */
.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 60%);
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.author-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #f97316, #ea580c);
}
.author-box-avatar {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(249, 115, 22, .3);
  overflow: hidden;
}
.author-box-avatar--img { background: #fff; border: 2px solid #fed7aa; padding: 4px; }
.author-box-avatar--img img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.author-box-body { flex: 1; min-width: 0; }
.author-box-head { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .5rem; }
.author-box-name {
  font-size: 1.05rem; font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: #111827;
}
.author-box-role {
  font-size: .78rem; font-weight: 600;
  color: #f97316;
  text-transform: uppercase; letter-spacing: .03em;
}
.author-box-bio {
  font-size: .9rem; line-height: 1.6;
  color: #4b5563; margin: 0;
}

/* ===== Author Card (YugaTech-style) ===== */
.author-card {
  margin: 2.5rem 0 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.author-card-head {
  background: #f9fafb;
  border-bottom: 1px solid #f1f5f9;
  padding: .85rem 1.5rem;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #6b7280;
}
.author-card-body {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.5rem;
}
@media (max-width: 560px) { .author-card-body { flex-direction: column; gap: 1rem; align-items: center; text-align: center; } }
.author-card-avatar {
  flex: 0 0 auto;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; font-family: 'Poppins', sans-serif;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(249,115,22,.28);
}
.author-card-avatar--img { background: #fff; border: 3px solid #fed7aa; padding: 4px; }
.author-card-avatar--img img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.author-card-info { flex: 1; min-width: 0; }
.author-card-name-row {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-bottom: .6rem;
}
@media (max-width: 560px) { .author-card-name-row { justify-content: center; } }
.author-card-name {
  font-size: 1.35rem; font-weight: 800;
  font-family: 'Poppins', sans-serif; color: #111827;
}
.author-card-badge {
  background: #f97316; color: #fff;
  font-size: .65rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 9999px;
}
.author-card-bio {
  font-size: .95rem; line-height: 1.7;
  color: #4b5563; margin: 0 0 1rem;
}
.author-card-socials {
  display: flex; gap: .5rem;
  padding-top: 1rem; border-top: 1px solid #f1f5f9;
}
@media (max-width: 560px) { .author-card-socials { justify-content: center; } }
.author-social {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; text-decoration: none;
  transition: all .15s;
}
.author-social:hover { background: #f97316; border-color: #f97316; color: #fff; transform: translateY(-2px); }
