/* ডেঙ্গু সচেতনতা — page styles. Builds on assets/css/style.css (colours, fonts, .section, .title, .btn). */

:root {
  --dg-green: #1c7a36;
  --dg-green-bg: #e8f3ea;
  --dg-amber: #b86a00;
  --dg-amber-bg: #fdf1dc;
  --dg-blue: #1f6f9c;
  --dg-blue-bg: #e3f0f7;
  --dg-red-bg: #fde9ea;
}

.dg-ico { flex: none; display: inline-block; vertical-align: middle; }
main [id] { scroll-margin-top: 136px; }

/* ---------- Hero ---------- */
.dg-hero { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.dg-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .1) 0 90px, transparent 91px),
  radial-gradient(circle at 92% 86%, rgba(0, 0, 0, .1) 0 150px, transparent 151px),
  radial-gradient(circle at 58% 8%, rgba(255, 255, 255, .07) 0 46px, transparent 47px);
  pointer-events: none; }
.dg-hero-in { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; padding-block: clamp(40px, 6vw, 76px) clamp(72px, 9vw, 116px); }
.dg-kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .2); border-radius: 999px; padding: 4px 16px 4px 12px; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.dg-hero h1 { font: 400 clamp(2.8rem, 7vw, 5rem)/1.25 var(--f-main); }
.lang-en .dg-hero h1 { line-height: 1.1; }
.dg-slogan { font: 400 clamp(1.2rem, 2.2vw, 1.6rem)/1.5 var(--f-sign); margin: 4px 0 14px; }
.dg-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 36em; margin-bottom: 28px; color: rgba(255, 255, 255, .95); }

.dg-hero-art { position: relative; width: min(100%, 340px); margin-inline: auto; }
.dg-hero-art > svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .22)); }
.dg-bubble { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.dg-b1 { left: -4%; top: 10%; background: var(--dg-blue); }
.dg-b2 { right: -5%; top: 28%; }
.dg-b3 { left: 4%; bottom: 2%; background: var(--dg-green); }
.dg-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4.5vw, 60px); display: block; }

.js .dg-hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.js .dg-hero-text > :nth-child(2) { animation-delay: .1s; }
.js .dg-hero-text > :nth-child(3) { animation-delay: .2s; }
.js .dg-hero-text > :nth-child(4) { animation-delay: .3s; }
.js .dg-hero-text > :nth-child(5) { animation-delay: .4s; }
.js .dg-hero-art { animation: dg-pop .8s cubic-bezier(.2, .9, .3, 1.2) .15s both; }
.dg-mosq { transform-origin: 160px 160px; animation: dg-hover 3.4s ease-in-out infinite alternate; }
.dg-wing { animation: dg-flap .16s linear infinite alternate; }
.dg-wing-l { transform-origin: 160px 140px; }
.dg-wing-r { transform-origin: 160px 140px; animation-delay: -.08s; }
.dg-bubble { animation: dg-bob 3s ease-in-out infinite alternate; }
.dg-b2 { animation-delay: -1s; } .dg-b3 { animation-delay: -2s; }
@keyframes dg-pop { from { opacity: 0; transform: scale(.8) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes dg-hover { from { transform: translate(-3px, 2px) rotate(-3deg); } to { transform: translate(3px, -3px) rotate(3deg); } }
@keyframes dg-flap { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes dg-bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }

/* ---------- Quick links ---------- */
.dg-jump { position: sticky; top: 72px; z-index: 40; background: rgba(252, 249, 245, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.dg-jump ul { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.dg-jump ul::-webkit-scrollbar { display: none; }
.dg-jump a { display: block; white-space: nowrap; padding: 4px 14px; border: 1.500px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.dg-jump a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.dg-intro { max-width: 46em; margin: -8px 0 28px; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- About + cycle ---------- */
.dg-hero-art { max-width: 100%; }
.dg-about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.dg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dg-tags li { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); border-radius: 999px; padding: 5px 16px 5px 12px; font-weight: 700; font-size: .95rem; }
.dg-tags .dg-ico { color: var(--red); }

.dg-cycle { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-inline: auto; }
.dg-cycle-ring { position: absolute; inset: 12%; width: 76%; height: 76%; animation: dg-turn 40s linear infinite; }
@keyframes dg-turn { to { transform: rotate(360deg); } }
.dg-step { position: absolute; width: 40%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transform: translate(-50%, -50%); }
.dg-step span { width: 62px; height: 62px; border-radius: 50%; background: var(--white); border: 2px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(27, 20, 19, .08); }
.dg-step b { font-size: .86rem; line-height: 1.35; background: var(--paper); padding-inline: 4px; }
.dg-s1 { left: 50%; top: 15%; } .dg-s2 { left: 86%; top: 50%; } .dg-s3 { left: 50%; top: 86%; } .dg-s4 { left: 14%; top: 50%; }
.dg-s1 span { background: var(--red); color: #fff; }
.dg-cycle-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); font: 400 1.9rem/1.2 var(--f-sign); color: var(--red); white-space: nowrap; }

.dg-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.dg-facts li { position: relative; background: var(--ink); color: #fff; border-radius: 14px; padding: 22px 20px 20px; overflow: hidden; }
.dg-facts li::after { content: ""; position: absolute; right: -28px; bottom: -28px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.dg-fact-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--red); align-items: center; justify-content: center; margin-bottom: 10px; }
.dg-facts b { display: block; font: 400 2.2rem/1.3 var(--f-sub); }
.dg-facts p { font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .82); }

/* ---------- Shared grid + tiles ---------- */
.dg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dg-badge { display: inline-flex; width: 58px; height: 58px; border-radius: 16px; background: var(--dg-red-bg); color: var(--red-deep); align-items: center; justify-content: center; margin-bottom: 12px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s; }
.dg-tile, .dg-step-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dg-tile:hover, .dg-step-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 12px 26px rgba(27, 20, 19, .1); }
.dg-tile:hover .dg-badge, .dg-step-card:hover .dg-badge { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.06); }
.dg-tile h3, .dg-step-card h3 { font: 700 1.14rem/1.45 var(--f-body); margin-bottom: 4px; }
.dg-tile p, .dg-step-card p { font-size: .96rem; line-height: 1.6; color: var(--ink-soft); }
.dg-tile-note { background: var(--ink); border-color: var(--ink); color: #fff; }
.dg-tile-note p { color: rgba(255, 255, 255, .82); }
.dg-tile-note .dg-badge { background: var(--red); color: #fff; }

/* ---------- Phases ---------- */
.dg-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.dg-phase { --c: var(--dg-amber); --bg: var(--dg-amber-bg); background: var(--bg); padding: 0 22px 24px; position: relative; }
.dg-p2 { --c: var(--red-deep); --bg: var(--dg-red-bg); }
.dg-p3 { --c: var(--dg-green); --bg: var(--dg-green-bg); }
.dg-phase + .dg-phase { border-left: 1px dashed rgba(27, 20, 19, .25); }
.dg-phase svg:not(.dg-ico) { display: block; width: calc(100% + 44px); margin-inline: -22px; height: 84px; background: rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(27, 20, 19, .08); }
.dg-phase svg:not(.dg-ico) path { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dg-days { display: inline-block; margin-top: 16px; background: var(--c); color: #fff; border-radius: 999px; padding: 1px 14px; font-weight: 700; font-size: .9rem; }
.dg-phase h3 { display: flex; align-items: center; gap: 8px; font: 400 1.6rem/1.4 var(--f-sub); color: var(--c); margin: 8px 0 4px; }
.dg-phase p { font-size: .98rem; line-height: 1.65; }

/* ---------- Warning signs ---------- */
.dg-alert { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 84px); position: relative; overflow: hidden; }
.dg-alert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--red) 0 16px, #fff 16px 32px); }
.dg-alert-head { display: flex; gap: 20px; align-items: center; margin-bottom: 30px; }
.dg-siren { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; animation: dg-pulse 1.6s ease-out infinite; }
@keyframes dg-pulse { from { box-shadow: 0 0 0 0 rgba(237, 27, 37, .6); } to { box-shadow: 0 0 0 24px rgba(237, 27, 37, 0); } }
.dg-alert h2 { font: 400 clamp(1.8rem, 3.6vw, 2.7rem)/1.35 var(--f-sub); }
.dg-alert-head p { color: rgba(255, 255, 255, .85); max-width: 44em; }
.dg-warn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dg-warn li { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-left: 4px solid var(--red); border-radius: 10px; padding: 14px 16px; font-weight: 700; line-height: 1.45; }
.dg-warn li span { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; }
.dg-risk { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; background: rgba(237, 27, 37, .2); border-radius: 10px; padding: 14px 18px; line-height: 1.6; }
.dg-risk .dg-ico { margin-top: 3px; }

/* ---------- Breeding sites ---------- */
.dg-site { text-align: center; background: var(--dg-blue-bg); border-radius: 14px; padding: 24px 14px 18px; transition: transform .2s, box-shadow .2s; }
.dg-site:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(31, 111, 156, .18); }
.dg-site-ico { position: relative; display: inline-flex; width: 76px; height: 76px; border-radius: 50%; background: var(--white); color: var(--dg-blue); align-items: center; justify-content: center; margin-bottom: 12px; }
.dg-site-ico i { position: absolute; right: -2px; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); border: 3px solid var(--dg-blue-bg); }
.dg-site-ico i::before, .dg-site-ico i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2.500px; background: #fff; border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); }
.dg-site-ico i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dg-site p { font-weight: 700; line-height: 1.45; }

/* ---------- Prevention ---------- */
.dg-step-card { position: relative; }
.dg-step-card .dg-badge { background: var(--dg-green-bg); color: var(--dg-green); }
.dg-step-card:hover { border-color: var(--dg-green); }
.dg-step-card:hover .dg-badge { background: var(--dg-green); }
.dg-no { position: absolute; right: 16px; top: 10px; font: 400 2.2rem/1 var(--f-sub); color: var(--line); }

/* ---------- Do / Don't ---------- */
.dg-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dg-col { --c: var(--dg-green); --bg: var(--dg-green-bg); border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 14px; background: var(--white); padding: 24px; }
.dg-dont { --c: var(--red); --bg: var(--dg-red-bg); }
.dg-col h3 { display: flex; align-items: center; gap: 12px; font: 400 1.8rem/1.4 var(--f-sub); color: var(--c); margin-bottom: 14px; }
.dg-col h3 span { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; }
.dg-col li { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); line-height: 1.6; }
.dg-col li .dg-ico { box-sizing: content-box; padding: 7px; border-radius: 10px; background: var(--bg); color: var(--c); }
.dg-col li span { padding-top: 5px; }

/* ---------- Myths ---------- */
.dg-myths { grid-template-columns: repeat(3, 1fr); }
.dg-myth { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.dg-myth-top { position: relative; background: var(--dg-red-bg); padding: 18px 20px 22px; overflow: hidden; }
.dg-myth-top p { font-weight: 700; font-size: 1.08rem; line-height: 1.5; text-decoration: line-through; text-decoration-color: rgba(237, 27, 37, .55); text-decoration-thickness: 2px; padding-right: 44px; }
.dg-myth-ico { position: absolute; right: 10px; bottom: 6px; color: var(--red); opacity: .22; }
.dg-myth-bot { flex: 1; padding: 18px 20px 20px; }
.dg-myth-bot p { line-height: 1.6; }
.dg-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 1px 12px 1px 8px; font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.dg-pill-x { background: var(--red); }
.dg-pill-ok { background: var(--dg-green); }

/* ---------- Checklist ---------- */
.dg-check { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.dg-check-side { position: sticky; top: 150px; }
.dg-ring { position: relative; width: 150px; height: 150px; margin: 22px 0 12px; }
.dg-ring svg { width: 100%; height: 100%; }
.dg-ring circle { fill: none; stroke-width: 10; }
.dg-ring-bg { stroke: var(--line); }
.dg-ring-fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .5s cubic-bezier(.2, .8, .2, 1), stroke .3s; }
.dg-ring.done .dg-ring-fg { stroke: var(--dg-green); }
.dg-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 2.1rem/1 var(--f-sub); }
.dg-ring.done b { color: var(--dg-green); }
.dg-check-msg { font-weight: 700; min-height: 1.75em; margin-bottom: 14px; }
.dg-check-list { display: grid; gap: 10px; }
.dg-check-list label { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1.500px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 700; line-height: 1.5; transition: border-color .15s, background .15s; }
.dg-check-list label:hover { border-color: var(--ink-soft); }
.dg-check-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dg-box { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--ink-soft); display: flex; align-items: center; justify-content: center; color: transparent; transition: background .15s, border-color .15s, transform .2s; }
.dg-check-list input:checked + .dg-box { background: var(--dg-green); border-color: var(--dg-green); color: #fff; transform: scale(1.08); }
.dg-check-list input:focus-visible + .dg-box { outline: 3px solid var(--ink); outline-offset: 3px; }
.dg-check-list label:has(input:checked) { background: var(--dg-green-bg); border-color: var(--dg-green); }

/* ---------- Helplines ---------- */
.dg-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dg-call { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.dg-call:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 12px 26px rgba(27, 20, 19, .1); color: var(--ink); }
.dg-call > span { width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.dg-call b { font: 400 3rem/1.2 var(--f-sub); color: var(--red); }
.dg-call b.dg-call-text { font-size: 1.9rem; line-height: 1.5; color: var(--ink); }
.dg-call-plain > span { background: var(--ink); }
.dg-call strong { font-size: 1.1rem; }
.dg-call small { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }

.dg-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; background: var(--paper); border: 1px dashed var(--ink-soft); border-radius: 14px; padding: 18px 22px; }
.dg-share > p:first-child { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dg-share .dg-ico { color: var(--red); }
.dg-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .92rem; line-height: 1.65; color: var(--ink-soft); }
.dg-note .dg-ico { margin-top: 3px; }

/* ---------- Reveal on scroll (classes added by dengue.js) ---------- */
.dg-hide { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1); }
.dg-hide.dg-in { opacity: 1; transform: none; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1020px) {
  .dg-grid, .dg-warn { grid-template-columns: repeat(2, 1fr); }
  .dg-myths { grid-template-columns: repeat(2, 1fr); }
  .dg-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .dg-hero-in { grid-template-columns: 1fr; gap: 24px; }
  .dg-hero-art { order: -1; width: 190px; margin: 0 auto; }
  .dg-hero-text { text-align: center; }
  .dg-hero-text .dg-lead { margin-inline: auto; }
  .dg-hero-text .actions { justify-content: center; }
  .dg-bubble { width: 40px; height: 40px; }
  .dg-bubble .dg-ico { width: 18px; height: 18px; }
  .dg-about, .dg-check, .dg-dodont { grid-template-columns: 1fr; }
  .dg-check-side { position: static; }
  .dg-phases { grid-template-columns: 1fr; }
  .dg-phase + .dg-phase { border-left: 0; border-top: 1px dashed rgba(27, 20, 19, .25); }
  .dg-help { grid-template-columns: 1fr; }
  .dg-alert-head { align-items: flex-start; }
  .dg-siren { width: 58px; height: 58px; }
  .dg-siren .dg-ico { width: 30px; height: 30px; }
}
@media (max-width: 560px) {
  .dg-warn, .dg-myths { grid-template-columns: 1fr; }
  .dg-grid { gap: 12px; }
  .dg-tile, .dg-step-card { padding: 16px 14px; }
  .dg-badge { width: 48px; height: 48px; border-radius: 14px; }
  .dg-facts { gap: 12px; }
  .dg-facts li { padding: 16px 14px; }
  .dg-facts b { font-size: 1.8rem; }
  .dg-step b { font-size: .78rem; }
  .dg-s2 { left: 80%; } .dg-s4 { left: 20%; }
  .dg-step span { width: 52px; height: 52px; }
  .dg-cycle-mid { font-size: 1.5rem; }
  .dg-col { padding: 18px 16px; }
  .dg-call b { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-hide { opacity: 1 !important; transform: none !important; }
}
@media print {
  .dg-jump, .dg-share, #dg-check-reset, .site-header, .cta { display: none; }
  .dg-hide { opacity: 1 !important; transform: none !important; }
}
