/* ═══════════════════════════════════════════════════════════════
   det_page.css — Complete Responsive CSS
   OVERFLOW-PROOF: Nothing goes outside the screen on any device.
   Tested breakpoints: 320px → 1440px+
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Syne:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ─────────────────────────────────────────
   GLOBAL OVERFLOW RESET
   This is the #1 fix — every element must
   be constrained to the viewport width.
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent ANY horizontal scroll on the page */
html {
  overflow-x: hidden;
  /* Tells mobile browsers the viewport width is the screen width */
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* All images are constrained — the #2 most common overflow cause */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All containers can't overflow */
.det-hero,
.det-body,
.det-hero-inner,
.det-container,
.det-layout,
.det-main,
.det-sidebar,
.det-img-card,
.det-article,
.share-bar {
  max-width: 100%;
  min-width: 0; /* critical for flex/grid children */
}

/* ─────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────── */
:root {
  --g1: #1b5e20; --g2: #2e7d32; --g3: #388e3c; --g4: #43a047; --g5: #66bb6a;
  --g6: #a5d6a7; --g7: #e8f5e9; --g8: #f4faf4;
  --text: #0f1a10; --text2: #2d3d2f; --text3: #5a6b5c;
  --border: rgba(46,125,50,0.11);
  --radius: 20px;
  --shadow-sm: 0 2px 14px rgba(27,94,32,.07);
  --shadow-md: 0 8px 32px rgba(27,94,32,.13);
}

/* ═══════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════ */
.det-hero {
  background: linear-gradient(150deg, #071409 0%, #0d2710 50%, #152e18 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden; /* clips decorative bg, NOT content */
  width: 100%;
}
.det-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 75% at 5% 50%, rgba(46,125,50,.32) 0%, transparent 58%),
    radial-gradient(ellipse 40% 55% at 95% 25%, rgba(105,240,174,.06) 0%, transparent 60%),
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
}
.det-hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.det-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* wraps on small screens — no overflow */
  gap: .4rem;
  margin-bottom: 1.5rem;
  font-family: 'Syne', sans-serif;
  font-size: .66rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.32);
  width: 100%;
}
.det-breadcrumb a {
  color: rgba(255,255,255,.32);
  text-decoration: none;
  transition: color .2s;
  padding: .25rem 0;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
.det-breadcrumb a:hover { color: #69f0ae; }
.det-breadcrumb .sep { color: rgba(255,255,255,.16); flex-shrink: 0; }
.det-breadcrumb .cur {
  color: #a5d6a7;
  /* cur text can be long — allow it to wrap */
  word-break: break-word;
}

/* Eyebrow */
.det-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Syne', sans-serif;
  font-size: .62rem; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: #69f0ae;
  margin-bottom: .85rem;
  /* allow wrap on very small screens */
  flex-wrap: wrap;
  max-width: 100%;
}
.det-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: #69f0ae; border-radius: 2px;
  display: block; flex-shrink: 0;
}

/* H1 — clamp prevents overflow on all screen sizes */
.det-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4.5vw, 3.4rem);
  font-weight: 700; color: #fff;
  line-height: 1.15; letter-spacing: -.3px;
  margin-bottom: .75rem;
  /* CRITICAL: prevents long words overflowing */
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  animation: fadeUp .7s ease forwards; opacity: 0;
}
.det-hero h1 em { font-style: italic; font-weight: 400; color: #a5d6a7; }

.det-rule {
  width: 48px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #69f0ae, transparent);
  margin-bottom: 1rem;
}

/* Tags */
.det-hero-tags {
  display: flex;
  flex-wrap: wrap; /* wraps — never overflows */
  gap: .5rem;
  margin-top: 1.2rem;
  max-width: 100%;
  animation: fadeUp .85s ease .2s forwards; opacity: 0;
}
.det-tag {
  background: rgba(105,240,174,.1);
  border: 1px solid rgba(105,240,174,.2);
  color: #a5d6a7;
  font-family: 'Syne', sans-serif;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: .22rem .75rem; border-radius: 50px;
  /* allow text wrap — no nowrap */
  white-space: normal;
  word-break: break-word;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   BODY + DESKTOP TWO-COLUMN LAYOUT
═══════════════════════════════════════ */
.det-body {
  background: #fafdf8;
  padding: 3.5rem 0 5rem;
  width: 100%;
  overflow: hidden; /* clips nothing visible, stops body scroll */
}
.det-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Desktop: two columns */
.det-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2.8rem;
  align-items: start;
  width: 100%;
}

/* Main column */
.det-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0; /* prevents grid blowout */
  width: 100%;
}

/* Sidebar — sticky on desktop */
.det-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: sticky;
  top: 2rem;
  min-width: 0;
  width: 100%;
}

/* ═══════════════════════════════════════
   IMAGE CARD
═══════════════════════════════════════ */
.det-img-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(27,94,32,.08);
  overflow: hidden;
  width: 100%;
}
.det-img-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--g2), var(--g5), transparent);
}
.det-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.det-img-wrap img {
  width: 100%;         /* fills container */
  max-width: 100%;     /* never wider than container */
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.det-img-card:hover .det-img-wrap img { transform: scale(1.03); }
.det-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(4,20,7,.45) 100%);
  pointer-events: none;
}
.det-img-caption {
  padding: .9rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem; font-style: italic;
  color: var(--text3); text-align: center;
  border-top: 1px solid var(--border);
  word-break: break-word;
}

/* ═══════════════════════════════════════
   ARTICLE CARD
═══════════════════════════════════════ */
.det-article {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(27,94,32,.08);
  overflow: hidden;
  width: 100%;
}
.det-article-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--g2), var(--g5), transparent);
}
.det-article-body { padding: 2rem 2.2rem 2.4rem; }

/* Rich content */
.det-content {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; line-height: 1.88; color: #1c2b1d;
  /* CRITICAL overflow fixes for rich CMS content */
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}
/* All elements inside content must be contained */
.det-content * {
  max-width: 100%;
}
.det-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
}
.det-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 700; color: var(--text);
  margin-top: 2.5rem; margin-bottom: .9rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--g7);
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}
.det-content h2::before {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 40px; height: 2px; background: var(--g4); border-radius: 2px;
}
.det-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(.95rem, 2vw, 1.05rem);
  font-weight: 700; color: var(--g2);
  margin-top: 1.8rem; margin-bottom: .65rem;
  word-break: break-word;
}
.det-content p { margin-bottom: 1.1rem; }
.det-content ul,
.det-content ol { margin: 1rem 0 1.2rem 1.4rem; }
.det-content li { margin-bottom: .45rem; }
.det-content strong { color: var(--text); font-weight: 600; }
.det-content a {
  color: var(--g2); text-decoration: underline;
  text-underline-offset: 3px;
  /* long URLs break — don't overflow */
  word-break: break-all;
}
.det-content a:hover { color: var(--g3); }

/* ── TABLE: Scrollable wrapper (add via JS snippet below) ── */
.det-content .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5rem 0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(27,94,32,.09);
}
.det-content table {
  /* min-width forces scroll on small screens instead of squashing */
  min-width: 380px;
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
/* Desktop: table without wrapper still looks fine */
.det-content > table {
  border-radius: 14px; overflow: hidden;
  margin: 1.5rem 0; box-shadow: 0 4px 20px rgba(27,94,32,.09);
}
.det-content thead {
  background: linear-gradient(135deg, var(--g2), var(--g3));
}
.det-content thead th {
  color: #fff; font-family: 'Syne', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: .9rem 1.1rem; text-align: left; border: none;
  /* DO NOT use nowrap on th — breaks mobile */
  white-space: normal;
  word-break: break-word;
}
.det-content tbody tr { transition: background .2s; }
.det-content tbody tr:nth-child(even) { background: var(--g8); }
.det-content tbody tr:hover { background: var(--g7); }
.det-content td {
  padding: .75rem 1.1rem; color: var(--text2);
  border-bottom: 1px solid rgba(46,125,50,.07);
  vertical-align: top;
  word-break: break-word;
}

/* ═══════════════════════════════════════
   SHARE BAR
═══════════════════════════════════════ */
.share-bar {
  background: #fff; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(27,94,32,.08);
  overflow: hidden; width: 100%;
}
.share-bar-top {
  height: 3px;
  background: linear-gradient(90deg, var(--g2), var(--g5), transparent);
}
.share-bar-body { padding: 1.6rem 1.8rem; }
.share-bar-label {
  font-family: 'Syne', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--text3);
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.1rem; flex-wrap: wrap;
}
.share-bar-label::before {
  content: ''; width: 16px; height: 2px;
  background: var(--g4); border-radius: 2px;
  display: block; flex-shrink: 0;
}
.share-btns {
  display: flex;
  flex-wrap: wrap; /* NEVER overflow — always wraps */
  gap: .6rem;
}
.sbtn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .3px;
  text-decoration: none; border: none; cursor: pointer;
  min-height: 44px;
  /* NO white-space:nowrap — it causes overflow on narrow screens */
  white-space: normal;
  word-break: break-word;
  transition: transform .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.sbtn:hover { transform: translateY(-2px); }
.sbtn i { font-size: .82rem; flex-shrink: 0; }
.sbtn-fb { background: #1877f2; color: #fff; }
.sbtn-fb:hover { box-shadow: 0 6px 18px rgba(24,119,242,.35); color: #fff; text-decoration: none; }
.sbtn-wa { background: #25d366; color: #fff; }
.sbtn-wa:hover { box-shadow: 0 6px 18px rgba(37,211,102,.35); color: #fff; text-decoration: none; }
.sbtn-tw { background: #111; color: #fff; }
.sbtn-tw:hover { box-shadow: 0 6px 18px rgba(0,0,0,.3); color: #fff; text-decoration: none; }
.sbtn-tg { background: #0088cc; color: #fff; }
.sbtn-tg:hover { box-shadow: 0 6px 18px rgba(0,136,204,.35); color: #fff; text-decoration: none; }
.sbtn-cp { background: var(--g7); color: var(--g2); border: 1.5px solid rgba(46,125,50,.2); }
.sbtn-cp:hover { background: var(--g2); color: #fff; box-shadow: 0 6px 18px rgba(46,125,50,.28); }

/* ═══════════════════════════════════════
   SIDEBAR CARDS
═══════════════════════════════════════ */
.sb-card {
  background: #fff; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(27,94,32,.08);
  overflow: hidden; width: 100%;
}
.sb-card-bar { height: 3px; background: linear-gradient(90deg, var(--g2), var(--g5), transparent); }
.sb-card-head { padding: 1.2rem 1.4rem .9rem; border-bottom: 1px solid rgba(46,125,50,.07); }
.sb-card-title {
  font-family: 'Syne', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--text3);
  display: flex; align-items: center; gap: .5rem;
  word-break: break-word;
}
.sb-card-title::before {
  content: ''; width: 14px; height: 2px;
  background: var(--g4); border-radius: 2px;
  display: block; flex-shrink: 0;
}

/* Quick info */
.qi-body { padding: 1.3rem 1.4rem; }
.qi-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; /* gap prevents them touching */
  padding: .65rem 0; border-bottom: 1px solid rgba(46,125,50,.07);
  font-family: 'DM Sans', sans-serif;
}
.qi-row:last-child { border-bottom: none; }
.qi-key {
  font-size: .78rem; color: var(--text3); font-weight: 500;
  flex-shrink: 0; /* key labels don't shrink */
}
.qi-val {
  font-size: .8rem; font-weight: 700; color: var(--g2);
  font-family: 'Syne', sans-serif;
  text-align: right;
  word-break: break-word; /* long values wrap */
}

/* Related list */
.rel-list {
  padding: .5rem .5rem .7rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.rel-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem .9rem; border-radius: 14px;
  text-decoration: none; min-height: 52px;
  transition: background .25s, transform .3s;
  -webkit-tap-highlight-color: transparent;
  /* Prevent item overflowing its container */
  width: 100%; min-width: 0;
}
.rel-item:hover { background: var(--g7); transform: translateX(4px); }
.rel-item:active { background: var(--g7); }
.rel-img {
  flex: 0 0 54px; width: 54px; height: 54px;
  border-radius: 10px; overflow: hidden;
  border: 1.5px solid rgba(46,125,50,.1);
  flex-shrink: 0; /* image never squashes */
}
.rel-img img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s; display: block;
}
.rel-item:hover .rel-img img { transform: scale(1.1); }
.rel-body {
  flex: 1;
  min-width: 0; /* CRITICAL: lets text truncate instead of overflow */
}
.rel-name {
  font-family: 'Syne', sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--text); line-height: 1.3; margin-bottom: .2rem;
  /* truncate long names instead of overflow */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.rel-cat {
  font-size: .6rem; font-weight: 600;
  color: var(--g3); letter-spacing: .6px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rel-badge {
  font-family: 'Syne', sans-serif; font-size: .6rem; font-weight: 700;
  background: var(--g7); color: var(--g2);
  border: 1px solid rgba(46,125,50,.15);
  padding: .15rem .55rem; border-radius: 50px;
  flex-shrink: 0; /* badge stays fixed size */
  white-space: nowrap;
  max-width: 80px; /* prevents very long badge text overflowing */
  overflow: hidden; text-overflow: ellipsis;
}

/* Nav links */
.nav-card-body {
  padding: .8rem .9rem 1rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.nav-lnk {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .85rem; border-radius: 12px;
  text-decoration: none; font-family: 'DM Sans', sans-serif;
  font-size: .84rem; font-weight: 500; color: var(--text2);
  min-height: 44px; width: 100%;
  transition: background .25s, color .25s, transform .3s;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.nav-lnk:hover { background: var(--g7); color: var(--g2); border-color: rgba(46,125,50,.12); transform: translateX(4px); text-decoration: none; }
.nav-lnk:active { background: var(--g7); color: var(--g2); }
.nav-lnk.active { background: var(--g7); color: var(--g2); border-color: rgba(46,125,50,.18); font-weight: 700; }
.nav-lnk-ico { font-size: 1.05rem; flex-shrink: 0; line-height: 1; }
.nav-lnk-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-lnk-arr { font-size: .72rem; color: var(--g5); opacity: 0; transition: opacity .25s, transform .25s; flex-shrink: 0; }
.nav-lnk:hover .nav-lnk-arr,
.nav-lnk.active .nav-lnk-arr { opacity: 1; transform: translateX(2px); }

.det-updated { font-size:.82rem; opacity:.75; margin-top:.5rem;color:white;}
/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Each breakpoint tightens spacing & sizes.
   Nothing is ever hidden — only repositioned.
═══════════════════════════════════════════ */

/* ── iPad Pro landscape (≤1180px) ── */
@media (max-width: 1180px) {
  .det-hero-inner,
  .det-container { padding: 0 1.4rem; }
  .det-layout { gap: 2rem; }
  .det-article-body { padding: 1.8rem 2rem 2.2rem; }
}

/* ── iPad landscape / Tablet (≤1040px) ──
   Sidebar drops BELOW content as a flex row */
@media (max-width: 1040px) {
  .det-layout {
    grid-template-columns: 1fr; /* single column */
    gap: 2rem;
  }
  .det-sidebar {
    position: static; /* unstick */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.4rem;
  }
  .det-sidebar .sb-card {
    flex: 1 1 250px;
    min-width: 0; /* flex child can shrink */
  }
  .det-img-wrap img { max-height: 420px; }
  .det-article-body { padding: 1.8rem 2rem; }
  .share-bar-body { padding: 1.5rem 1.6rem; }
  .det-main { gap: 1.8rem; }
}

/* ── iPad portrait (≤820px) ── */
@media (max-width: 820px) {
  .det-hero { padding: 3.2rem 0 2.5rem; }
  .det-hero-inner,
  .det-container { padding: 0 1.2rem; }
  .det-body { padding: 2.5rem 0 4rem; }
  .det-hero h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .det-img-wrap img { max-height: 360px; }
  .det-article-body { padding: 1.6rem 1.5rem; }
  .share-bar-body { padding: 1.3rem 1.4rem; }
  .det-content { font-size: .96rem; }
  .det-content h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); margin-top: 2rem; }
  .det-content h3 { font-size: .98rem; }
  .det-content thead th,
  .det-content td { padding: .7rem .85rem; }
  .det-sidebar { gap: 1.2rem; }
  .det-sidebar .sb-card { flex: 1 1 220px; }
}

/* ── Large phones landscape (≤680px) ── */
@media (max-width: 680px) {
  .det-hero { padding: 2.8rem 0 2.2rem; }
  .det-hero-inner,
  .det-container { padding: 0 1rem; }
  .det-body { padding: 2rem 0 3.5rem; }
  .det-hero h1 { font-size: clamp(1.4rem, 5.5vw, 2rem); }
  .det-eyebrow { font-size: .57rem; letter-spacing: 2.5px; }
  .det-breadcrumb { font-size: .6rem; }
  .det-tag { font-size: .55rem; padding: .18rem .6rem; }
  .det-img-wrap img { max-height: 280px; }
  .det-article-body { padding: 1.4rem 1.2rem; }
  .share-bar-body { padding: 1.2rem 1.2rem; }
  .det-content { font-size: .91rem; line-height: 1.82; }
  .det-content h2 { font-size: 1.15rem; }
  .det-content thead th,
  .det-content td { padding: .62rem .75rem; font-size: .83rem; }
  .sbtn { font-size: .67rem; padding: .5rem .9rem; }
  /* Sidebar cards go full width */
  .det-sidebar { flex-direction: column; }
  .det-sidebar .sb-card { flex: 1 1 100%; }
  .det-main { gap: 1.4rem; }
}

/* ── iPhone Plus / Android large (≤480px) ── */
@media (max-width: 480px) {
  .det-hero { padding: 2.5rem 0 1.8rem; }
  .det-hero-inner,
  .det-container { padding: 0 .9rem; }
  .det-body { padding: 1.8rem 0 3rem; }
  .det-hero h1 { font-size: clamp(1.3rem, 7vw, 1.75rem); letter-spacing: -.2px; }
  .det-rule { margin-bottom: .8rem; }
  .det-breadcrumb { font-size: .56rem; gap: .25rem; }
  .det-eyebrow { font-size: .54rem; letter-spacing: 2px; }
  .det-tag { font-size: .52rem; padding: .15rem .55rem; }
  .det-hero-tags { gap: .38rem; margin-top: .9rem; }

  .det-img-wrap img { max-height: 230px; }
  .det-img-caption { padding: .65rem .9rem; font-size: .7rem; }

  .det-article-body { padding: 1.1rem 1rem 1.3rem; }
  .det-content { font-size: .87rem; line-height: 1.76; }
  .det-content h2 { font-size: 1.05rem; margin-top: 1.5rem; }
  .det-content h3 { font-size: .92rem; margin-top: 1.3rem; }
  .det-content ul,
  .det-content ol { margin-left: 1.1rem; }
  .det-content thead th { font-size: .6rem; padding: .58rem .65rem; }
  .det-content td { padding: .58rem .65rem; font-size: .8rem; }

  .share-bar-body { padding: 1rem .95rem; }
  .share-bar-label { font-size: .6rem; margin-bottom: .85rem; }
  /* Share buttons: 2 per row */
  .sbtn { font-size: .64rem; padding: .46rem .82rem; flex: 1 1 calc(50% - .3rem); }

  .qi-body { padding: 1rem 1.05rem; }
  .qi-key { font-size: .72rem; }
  .qi-val { font-size: .74rem; }
  .rel-item { padding: .62rem .75rem; min-height: 50px; }
  .rel-img { flex: 0 0 44px; width: 44px; height: 44px; }
  .rel-name { font-size: .76rem; }
  .rel-cat { font-size: .56rem; }
  .nav-lnk { font-size: .8rem; padding: .52rem .78rem; }
  .nav-lnk-ico { font-size: .98rem; }
  .det-main { gap: 1.1rem; }
  .det-sidebar { gap: .9rem; }
}

/* ── iPhone SE / standard (≤390px) ── */
@media (max-width: 390px) {
  .det-hero-inner,
  .det-container { padding: 0 .8rem; }
  .det-hero { padding: 2.1rem 0 1.6rem; }
  .det-hero h1 { font-size: clamp(1.2rem, 7.5vw, 1.5rem); }
  .det-eyebrow { font-size: .52rem; }
  .det-breadcrumb { font-size: .53rem; }
  .det-tag { font-size: .5rem; padding: .13rem .5rem; }

  .det-img-wrap img { max-height: 210px; }
  .det-img-caption { font-size: .67rem; padding: .6rem .8rem; }

  .det-article-body { padding: 1rem .9rem 1.1rem; }
  .det-content { font-size: .84rem; }
  .det-content h2 { font-size: .98rem; }
  .det-content h3 { font-size: .88rem; }
  .det-content thead th { font-size: .57rem; padding: .52rem .6rem; }
  .det-content td { padding: .52rem .6rem; font-size: .77rem; }

  .share-bar-body { padding: .95rem .85rem; }
  /* Full-width share buttons on tiny screens */
  .sbtn { flex: 1 1 100%; justify-content: center; font-size: .62rem; }

  .rel-img { flex: 0 0 40px; width: 40px; height: 40px; }
  .rel-name { font-size: .72rem; }
  .qi-body { padding: .85rem .9rem; }
  .qi-key { font-size: .7rem; }
  .qi-val { font-size: .72rem; }
  .nav-lnk { font-size: .77rem; padding: .5rem .72rem; }
}

/* ── iPhone SE 1st gen (≤320px) ── */
@media (max-width: 320px) {
  .det-hero-inner,
  .det-container { padding: 0 .7rem; }
  .det-hero { padding: 1.9rem 0 1.5rem; }
  .det-hero h1 { font-size: 1.15rem; }
  .det-img-wrap img { max-height: 185px; }
  .det-content { font-size: .82rem; line-height: 1.7; }
  .det-content h2 { font-size: .94rem; }
  .det-content h3 { font-size: .85rem; }
  .det-content thead th,
  .det-content td { padding: .45rem .55rem; font-size: .73rem; }
  .sbtn { font-size: .6rem; padding: .44rem .7rem; }
  .rel-img { flex: 0 0 36px; width: 36px; height: 36px; }
  .rel-name { font-size: .68rem; }
  .nav-lnk { font-size: .74rem; }
}

/* ═══════════════════════════════════════
   TOUCH DEVICE FIXES (iPhone/iPad/Android)
═══════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover transforms (jarring on tap) */
  .det-img-card:hover .det-img-wrap img { transform: none; }
  .rel-item:hover { transform: none; background: transparent; }
  .nav-lnk:hover { transform: none; }
  .sbtn:hover { transform: none; box-shadow: none; }

  /* Active (tap) feedback */
  .rel-item:active { background: var(--g7) !important; }
  .nav-lnk:active { background: var(--g7) !important; color: var(--g2) !important; }
  .sbtn:active { opacity: .76; transform: scale(.95) !important; }
  .sbtn-cp:active { background: var(--g2); color: #fff; }

  /* Always show arrows — no hover on touch */
  .nav-lnk-arr { opacity: .4; }

  /* Sidebar MUST NOT be sticky on touch (iOS scroll freezes) */
  .det-sidebar { position: static !important; }

  /* Comfortable tap targets */
  .nav-lnk  { min-height: 50px; }
  .rel-item { min-height: 56px; }
  .sbtn     { min-height: 48px; }
  .det-breadcrumb a { padding: .38rem 0; min-height: 32px; display: inline-block; }
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION — Appended to det_page.css
   Fully responsive, accessible, smooth animation
═══════════════════════════════════════════════════════════ */

/* Card wrapper */
.faq-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(27,94,32,.08);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

/* Green top bar */
.faq-card-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--g2), var(--g5), transparent);
  flex-shrink: 0;
}

/* Card header */
.faq-card-head {
  padding: 1.6rem 2rem 1.2rem;
  border-bottom: 1px solid rgba(46,125,50,.08);
}
.faq-card-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .35rem;
}
.faq-title-ico {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq-card-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  color: var(--text3);
  line-height: 1.5;
  padding-left: 2rem; /* aligns under title text */
  word-break: break-word;
}

/* FAQ list */
.faq-list {
  padding: .5rem 0 .8rem;
}

/* Single FAQ item */
.faq-item {
  border-bottom: 1px solid rgba(46,125,50,.07);
}
.faq-item:last-child {
  border-bottom: none;
}

/* Question button */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.1rem 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px; /* comfortable tap target */
}
.faq-q:hover {
  background: var(--g7);
}
.faq-item.open .faq-q {
  background: var(--g7);
}

/* Number badge */
.faq-q-num {
  font-family: 'Syne', sans-serif;
  font-size: .62rem;
  font-weight: 800;
  color: var(--g2);
  background: rgba(46,125,50,.1);
  border: 1px solid rgba(46,125,50,.18);
  border-radius: 50px;
  padding: .15rem .55rem;
  flex-shrink: 0;
  min-width: 32px;
  text-align: center;
  letter-spacing: .5px;
}

/* Question text */
.faq-q-text {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
}
.faq-item.open .faq-q-text {
  color: var(--g2);
}

/* Chevron icon */
.faq-q-icon {
  flex-shrink: 0;
  color: var(--g4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(46,125,50,.07);
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .2s, color .2s;
}
.faq-item.open .faq-q-icon {
  transform: rotate(180deg);
  background: var(--g2);
  color: #fff;
}

/* Answer panel — CSS-only smooth expand using max-height */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-a {
  /* Large enough for any answer — adjust if content is very long */
  max-height: 600px;
}

/* Answer inner content */
.faq-a-inner {
  padding: .2rem 1.8rem 1.3rem 4.2rem; /* left-aligned under question text */
  font-family: 'DM Sans', sans-serif;
  font-size: .93rem;
  line-height: 1.82;
  color: var(--text2);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── FAQ Responsive ── */

/* iPad portrait (≤820px) */
@media (max-width: 820px) {
  .faq-card-head { padding: 1.4rem 1.6rem 1rem; }
  .faq-q { padding: 1rem 1.4rem; gap: .75rem; }
  .faq-a-inner { padding: .2rem 1.4rem 1.1rem 3.8rem; font-size: .9rem; }
  .faq-card-sub { padding-left: 1.85rem; }
}

/* Large phones landscape (≤680px) */
@media (max-width: 680px) {
  .faq-card-head { padding: 1.2rem 1.3rem .9rem; }
  .faq-card-title { font-size: .92rem; }
  .faq-card-sub { font-size: .78rem; padding-left: 1.75rem; }
  .faq-q { padding: .9rem 1.2rem; gap: .7rem; min-height: 50px; }
  .faq-q-text { font-size: .88rem; }
  .faq-q-num { font-size: .58rem; min-width: 28px; padding: .12rem .48rem; }
  .faq-q-icon { width: 24px; height: 24px; }
  .faq-q-icon svg { width: 15px; height: 15px; }
  .faq-a-inner { padding: .15rem 1.2rem 1rem 3.4rem; font-size: .86rem; line-height: 1.76; }
}

/* iPhone Plus / Android (≤480px) */
@media (max-width: 480px) {
  .faq-card-head { padding: 1.1rem 1rem .85rem; }
  .faq-card-title { font-size: .88rem; gap: .55rem; }
  .faq-title-ico { font-size: 1.1rem; }
  .faq-card-sub { font-size: .75rem; padding-left: 1.65rem; }
  .faq-q { padding: .85rem 1rem; gap: .62rem; min-height: 48px; }
  .faq-q-text { font-size: .84rem; }
  .faq-q-num { font-size: .56rem; min-width: 26px; padding: .1rem .42rem; }
  .faq-q-icon { width: 22px; height: 22px; }
  .faq-q-icon svg { width: 14px; height: 14px; }
  /* On small phones, answer aligns to left edge (no large indent) */
  .faq-a-inner { padding: .15rem 1rem .95rem 1rem; font-size: .83rem; }
}

/* iPhone SE (≤390px) */
@media (max-width: 390px) {
  .faq-card-head { padding: 1rem .9rem .8rem; }
  .faq-card-title { font-size: .84rem; }
  .faq-card-sub { padding-left: 0; font-size: .72rem; }
  .faq-q { padding: .8rem .9rem; gap: .55rem; }
  .faq-q-text { font-size: .8rem; }
  .faq-q-num { font-size: .54rem; min-width: 24px; }
  .faq-a-inner { padding: .12rem .9rem .88rem .9rem; font-size: .8rem; }
}

/* iPhone SE 1st gen (≤320px) */
@media (max-width: 320px) {
  .faq-q { padding: .75rem .8rem; }
  .faq-q-text { font-size: .77rem; }
  .faq-a-inner { padding: .1rem .8rem .82rem .8rem; font-size: .77rem; }
  .faq-q-num { display: none; } /* hide number on tiny screens to save space */
}

/* Touch: remove hover bg flash on tap */
@media (hover: none) and (pointer: coarse) {
  .faq-q:hover { background: none; }
  .faq-item.open .faq-q:hover { background: var(--g7); }
  .faq-q:active { background: var(--g7) !important; }
  .faq-q { min-height: 54px; } /* bigger tap area on touch */
}


/* ═══════════════════════════════════════
   RELATED BLOGS SECTION
═══════════════════════════════════════ */
.blogs-section {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(27,94,32,.08);
  overflow: hidden;
  width: 100%;
}
.blogs-section-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--g2), var(--g5), transparent);
}
.blogs-section-head {
  padding: 1.2rem 1.8rem .9rem;
  border-bottom: 1px solid rgba(46,125,50,.08);
}
.blogs-section-title {
  font-family: 'Syne', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.blogs-section-title::before {
  content: '';
  width: 14px; height: 2px;
  background: var(--g4);
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 1.4rem 1.6rem 1.8rem;
}
.blog-card {
  background: var(--g8);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(27,94,32,.13);
  text-decoration: none;
}
.blog-card-img {
  position: relative;
  overflow: hidden;
  height: 150px;
  background: var(--g7);
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-cat-badge {
  position: absolute;
  top: .65rem; left: .65rem;
  background: var(--g2);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 50px;
}
.blog-card-body {
  padding: .9rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .65rem;
  color: var(--text3);
}
.blog-meta-dot {
  width: 3px; height: 3px;
  background: var(--g5);
  border-radius: 50%;
  flex-shrink: 0;
}
.blog-card-title {
  font-family: 'Syne', sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
  word-break: break-word;
}
.blog-excerpt {
  font-size: .75rem;
  color: var(--text3);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: 'Syne', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--g2);
  margin-top: .2rem;
  text-decoration: none;
}
.blog-read-more svg { transition: transform .2s; }
.blog-card:hover .blog-read-more svg { transform: translateX(4px); }

/* ── Responsive ── */
@media (max-width: 1040px) {
  .blogs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.2rem 1.3rem;
  }
}
@media (max-width: 480px) {
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: 1rem;
  }
  .blog-card-img { height: 130px; }
}
.blogs-view-all {
  padding: 0 1.6rem 1.6rem;
  display: flex;
  justify-content: center;
}
.blogs-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 2rem;
  background: transparent;
  border: 1.5px solid var(--g2);
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g2);
  text-decoration: none;
  transition: background .25s, color .25s, transform .3s, box-shadow .3s;
}
.blogs-view-all-btn:hover {
  background: var(--g2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,.25);
  text-decoration: none;
}
.blogs-view-all-btn svg { transition: transform .2s; }
.blogs-view-all-btn:hover svg { transform: translateX(4px); }

@media (max-width: 480px) {
  .blogs-view-all { padding: 0 1rem 1.3rem; }
  .blogs-view-all-btn { width: 100%; justify-content: center; font-size: .66rem; }
}