/* ဒိုင်းနက် (သက္ကမ) အဖွဲ့အစည်း — Website ပုံစံ */
/* ရိုးရာအရောင်များ: Pinon/Hadi ဝတ်စုံ + အလံတော် အရောင်များ */
:root {
  /* Pinon Hadi — ဒိုင်းနက် (သက္ကမ) ရိုးရာဝတ်စုံ palette */
  /* အနီ = Hadi ရဲ့ အနီရောင်ကြား | နက်ပြာ = တံဆိပ်အပြာ + Pinon အပြာကြား | ရွှေ = ရက်ကန်းရွှေချည် */
  --brand: #c1121f;        /* အနီရောင် — primary */
  --brand-dark: #9a0e18;
  --brand-deep: #5f0a10;
  --brand-light: #f0a9b2;  /* dark theme အတွက် */
  --amber: #e09a1f;        /* ရွှေဝါရောင် — accent */
  --amber-dark: #b57a12;
  --navy: #0136a8;         /* နက်ပြာရောင် — secondary */
  --navy-deep: #012a80;
  --navy-soft: #dbe4ff;
  --gold: #c9a227;         /* ရွှေရောင် accents */
  --gold-dark: #a07d1c;
  --gold-light: #e8c84a;
  --pinon: #171210;        /* Pinon အနက် — dark base */
  /* Semantic colors */
  --primary: var(--brand);
  --primary-dark: var(--brand-dark);
  --accent: var(--amber);
  --danger: var(--brand);
  /* Chakma aliases (used across components) */
  --chakma-red: var(--brand);
  --chakma-red-dark: var(--brand-dark);
  --chakma-gold: var(--gold);
  --chakma-amber: var(--amber);
  --chakma-orange: var(--amber);
  --chakma-navy: var(--navy);
  --text: #232a33;
  --card-bg: #ffffff;
  --hover-bg: #f5f2e9;
  /* Light theme (default) */
  --ink: #232a33;
  --muted: #5d6672;
  --bg: #faf8f2;
  --card: #ffffff;
  --card-hover: #f5f2e9;
  --line: #e8e2d4;
  --input-bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(70, 25, 20, 0.08);
  --font: "Noto Sans Myanmar", "Myanmar Text", "Myanmar3", "Padauk", sans-serif;
}
/* Dark theme — Pinon အနက်ရောင် base */
html.dark {
  --text: #ece7db;
  --card-bg: #1d1712;
  --hover-bg: #261e17;
  --ink: #ece7db;
  --muted: #b3a894;
  --bg: #141110;           /* အနက်ရောင် — Pinon base */
  --card: #1d1712;
  --card-hover: #261e17;
  --line: #33291f;
  --input-bg: #221b14;
  --brand-light: #f0a9b2;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 17px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

img { max-width: 100%; height: auto; display: block; }

/* အပေါ်ဆုံး သုံးရောင်ခြယ် */
.tricolor { height: 6px; background: linear-gradient(to right, var(--brand) 0 40%, var(--gold) 40% 44%, var(--navy) 44% 56%, var(--gold) 56% 60%, var(--brand) 60% 100%); }

/* ===== ခေါင်းစဉ် — topbar + masthead + centered nav ===== */
.site-header { background: var(--card); }

/* --- အပေါ်ဆုံး utility bar --- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.lang-switch { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 2px; gap: 2px; }
.lang-btn { border: 0; background: transparent; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 8px; cursor: pointer; line-height: 1.4; }
.lang-btn:hover { color: var(--brand-dark); }
.lang-btn.active { background: rgba(193,18,31,.13); color: var(--brand-dark); }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar-date { color: var(--muted); white-space: nowrap; }
.ts-group { display: inline-flex; align-items: center; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.ts-group button { border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 13px; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 8px; cursor: pointer; line-height: 1; }
.ts-group button:hover { background: rgba(193,18,31,.10); }
#theme-toggle { font-size: 15px; }

/* --- အလယ် logo/title --- */
.masthead { text-align: center; padding-top: 30px; padding-bottom: 26px; }
.masthead-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; max-width: 100%; }
.masthead-logo { width: 88px; height: 88px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 4px 18px rgba(7,61,26,.18), 0 0 0 2px rgba(201,162,39,.40); margin-bottom: 8px; }
.masthead-abbr { font-size: 46px; font-weight: 800; letter-spacing: 8px; text-indent: 8px; color: var(--brand-deep); line-height: 1.25; font-family: "Noto Sans Myanmar", sans-serif; }
.masthead-latin { display: none; }
.masthead-title { font-size: 30px; font-weight: 700; color: var(--brand-dark); line-height: 1.75; }
.masthead-tagline { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.masthead-tagline-en { display: none; font-size: 14.5px; color: var(--muted); margin-top: 2px; letter-spacing: .3px; }
html.lang-en .masthead-tagline-en { display: block; }

/* --- nav bar (sticky) — အလယ်တည့် menu --- */
.navbar-sticky { position: sticky; top: 0; z-index: 200; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 8px 22px rgba(7,61,26,.07); }
.nav-bar { display: none; }
.main-nav > ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; list-style: none; }
@media (min-width: 1201px) {
  .main-nav > ul > li + li::before { content: "\00B7"; color: var(--muted); opacity: .55; margin: 0 6px; font-size: 16px; line-height: 1; }
}
.main-nav > ul > li > a { position: relative; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--brand-deep); font-weight: 600; font-size: 16.5px; padding: 13px 4px; white-space: nowrap; transition: color .15s ease; }
.main-nav > ul > li > a:hover { color: var(--brand-dark); }
.main-nav > ul > li > a.active { color: #fff; background: var(--brand); border-radius: 8px; padding: 8px 14px; }
.main-nav > ul > li > a.active::after { display: none; }
.main-nav > ul > li > a.drop-link.active { color: #fff; background: var(--brand); border-radius: 8px; }

/* ဌာနများ dropdown — desktop panel */
.has-dropdown .caret { font-size: 14px; margin-left: 4px; color: var(--brand-dark); font-weight: 700; display: inline-block; transition: transform .2s ease; }
.has-dropdown.open .caret { transform: rotate(180deg); }
.main-nav > ul > li.has-dropdown > a:hover { background: rgba(193,18,31,.10); border-radius: 10px; }
.main-nav ul.dropdown { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 14px); min-width: 256px; margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid rgba(7,61,26,.09); border-radius: 14px; box-shadow: 0 24px 60px rgba(7,61,26,.20); z-index: 500; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.main-nav ul.dropdown::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: var(--card); border-left: 1px solid rgba(7,61,26,.09); border-top: 1px solid rgba(7,61,26,.09); transform: translateX(-50%) rotate(45deg); }
.has-dropdown.open > ul.dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 8px); }
.dropdown li { list-style: none; }
.dropdown a { display: flex; align-items: center; color: var(--brand-deep); text-decoration: none; font-size: 16px; font-weight: 500; padding: 10px 14px; border-radius: 9px; white-space: nowrap; transition: background .12s ease, padding-left .12s ease; }
.dropdown a:hover { background: rgba(193,18,31,.09); color: var(--brand-dark); padding-left: 18px; }
.dropdown a.active { background: rgba(193,18,31,.13); color: var(--brand-dark); font-weight: 700; }
/* ဌာနများ dropdown — ၇ ခု ပါသဖြင့် desktop တွင် ၂ ကော်လံ grid */
@media (min-width: 1201px) {
  #dept-menu { min-width: 470px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; }
}

/* hamburger / drawer / scrim — mobile only */
.nav-toggle { display: none; }
.nav-head { display: none; }
.nav-scrim { display: none; }
body.nav-open { overflow: hidden; }

@media (max-width: 1200px) {
  .topbar { font-size: 12.5px; }
  .topbar-date { display: none; }
  .masthead { padding-top: 22px; padding-bottom: 18px; }
  .masthead-logo { width: 64px; height: 64px; }
  .masthead-abbr { font-size: 32px; letter-spacing: 5px; text-indent: 5px; }
  .masthead-latin { font-size: 11.5px; letter-spacing: 2px; }
  .masthead-title { font-size: 22px; }
  .masthead-tagline { font-size: 13px; }
  .nav-bar { display: flex; align-items: center; padding-top: 7px; padding-bottom: 7px; }
  .nav-toggle { display: inline-block; position: relative; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; background: var(--brand-dark); border: 0; border-radius: 12px; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2.6px; border-radius: 3px; background: #fff; transition: top .22s ease, transform .22s ease, opacity .15s ease; }
  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 21px; }
  .nav-toggle span:nth-child(3) { top: 28px; }
  .nav-toggle.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 290; background: rgba(25,10,10,.55); border: 0; padding: 0; opacity: 0; transition: opacity .25s ease; }
  .nav-scrim.show { opacity: 1; }
  .nav-scrim[hidden] { display: none; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); margin: 0; z-index: 300; display: flex; flex-direction: column; background: var(--card); box-shadow: -18px 0 50px rgba(7,61,26,.22); transform: translateX(106%); transition: transform .3s cubic-bezier(.32,.72,.35,1); overflow-y: auto; }
  .main-nav.open { transform: none; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .nav-title { font-weight: 700; font-size: 17px; color: var(--brand-dark); }
  .nav-close { width: 38px; height: 38px; border: 0; border-radius: 11px; background: rgba(193,18,31,.10); color: var(--brand-dark); font-size: 16px; cursor: pointer; }
  .nav-close:hover { background: rgba(193,18,31,.18); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 12px 28px; }
  .main-nav > ul > li { display: block; }
  .main-nav > ul > li > a { display: flex; width: 100%; padding: 12px 14px; font-size: 16px; color: var(--ink); }
  .main-nav > ul > li > a:hover { background: rgba(193,18,31,.08); }
  .main-nav > ul > li > a.active { background: var(--brand); color: #fff; }
  .main-nav > ul > li > a.active::after { display: none; }
  .main-nav ul.dropdown { position: static; display: none; min-width: 0; margin: 2px 0 8px; padding: 4px; border: 0; border-radius: 10px; background: rgba(193,18,31,.06); box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .main-nav ul.dropdown::before { display: none; }
  .has-dropdown.open > ul.dropdown { display: block; opacity: 1; visibility: visible; transform: none; }
  .dropdown a { padding: 10px 14px 10px 26px; }
  .dropdown a:hover { padding-left: 30px; }
  .has-dropdown .caret { margin-left: auto; }
}

@media (max-width: 480px) {
  .masthead-abbr { font-size: 28px; }
  .masthead-title { font-size: 19px; }
  .ts-group button { min-width: 26px; padding: 0 6px; }
}

/* --- အမှောင် မုဒ် (dark mode) --- */
/* Dark theme variables defined in :root above */
html.dark body { background: var(--bg); color: var(--ink); }
html.dark .topbar { background: #1e1712; }
html.dark .ts-group { background: #2a211a; }
html.dark .lang-switch { background: #2a211a; }
html.dark .lang-btn.active { background: rgba(143,208,161,.16); color: #f0a9b2; }
/* English mode — latin title သာပြ (မြန်မာနာမည်/ဆောင်ပုဒ် မပေါ်) */
html.lang-en .masthead-latin { display: block; font-size: 30px; font-weight: 800; letter-spacing: 2px; color: var(--brand-dark); line-height: 1.4; }
html.lang-en .masthead-title, html.lang-en .masthead-tagline { display: none; }
@media (max-width: 1200px) {
  html.lang-en .masthead-latin { font-size: 22px; }
}
html.dark .masthead-abbr { color: #f3ecec; }
html.dark .masthead-latin { color: #f0a9b2; }
html.dark .masthead-title { color: #f0a9b2; }
html.dark .main-nav > ul > li > a { color: #e5d9d9; }
html.dark .main-nav > ul > li > a:hover, html.dark .main-nav > ul > li > a.active { color: #f0a9b2; }
html.dark .dropdown a { color: #e5d9d9; }
html.dark .dropdown a:hover, html.dark .dropdown a.active { color: #f0a9b2; }
html.dark .nav-title, html.dark .nav-close { color: #f0a9b2; }
html.dark .has-dropdown .caret { color: #f0a9b2; }
html.dark .card, html.dark .page-card, html.dark .dept-card { background: var(--card); border-color: var(--line); }
html.dark .svc-code, html.dark .date-badge { color: var(--brand-light); }
html.dark .page-head, html.dark .section-head { border-color: var(--line); }
html.dark h1, html.dark h2, html.dark h3 { color: var(--ink); }
html.dark .footer-note { color: var(--muted); }
/* Dark theme — အနီရောင်/အပြာရောင် စာသား contrast ဖြည့်စွက် (2026-10-25 watch) */
html.dark .card:hover h3 { color: var(--brand-light); }
html.dark .card .more, html.dark .card:hover .more { color: var(--brand-light); }
html.dark .more-btn { color: var(--brand-light); }
html.dark #org-dept-grid .dept-card .card-link { color: var(--brand-light); }
html.dark .appr-info-row span { color: var(--brand-light); }
html.dark .incomplete-panel h3 { color: var(--brand-light); }
html.dark .pending-list li span { color: var(--muted); }
/* စာသားထဲက သာမန် link များ (card/article/muted စာပိုဒ်) — dark မှာ အပြာနု */
.card-body p a, .article-body a, p.muted a { color: var(--navy); }
html.dark .card-body p a, html.dark .article-body a, html.dark p.muted a { color: #8ab4ff; }


/* အဓိက မိတ်ဆက်အပိုင်း */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, #8f1620 0%, var(--brand-deep) 70%);
  color: #fff; text-align: center; padding: 74px 22px 66px; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(to right, var(--brand) 0 40%, var(--gold) 40% 44%, var(--navy) 44% 56%, var(--gold) 56% 60%, var(--brand) 60% 100%); }
.hero-emblem { width: 120px; margin: 0 auto 18px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 8px; letter-spacing: .5px; }
.hero-flag-title { font-size: 27px; font-weight: 700; color: #fff; margin: 0 0 14px; letter-spacing: .5px; }
.hero .intro { max-width: 760px; margin: 0 auto 26px; color: #f7ecec; font-size: 17.5px; }
/* hero banner slider */
.hero-slider { position: relative; width: min(1120px, 100%); margin: 0 auto 22px; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); }
.hero-slides { position: relative; aspect-ratio: 16 / 9; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 34px; background: linear-gradient(to top, rgba(0,0,0,.68), transparent); color: #fff; text-align: left; }
.hero-caption strong { display: block; font-size: 19px; font-weight: 700; }
.hero-caption span { display: block; font-size: 14px; opacity: .92; margin-top: 2px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 3; transition: background .2s ease; padding: 0 0 3px; }
.hero-arrow:hover { background: rgba(0,0,0,.62); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease; }
.hero-dots button:hover { background: rgba(255,255,255,.8); }
.hero-dots button.active { background: #fff; transform: scale(1.3); }
/* Arrows and dots always visible - removed single-image hiding */
@media (max-width: 640px) {
  .hero-slider { width: 94%; }
  .hero-arrow { width: 38px; height: 38px; font-size: 22px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-caption { padding: 30px 14px 30px; }
  .hero-caption strong { font-size: 15px; }
  .hero-caption span { font-size: 12.5px; }
}

.btn { display: inline-block; text-decoration: none; font-family: var(--font); font-weight: 700; font-size: 16.5px;
  padding: 12px 30px; border-radius: 999px; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #e7bd45, var(--gold)); color: #3d2f05; box-shadow: 0 8px 20px rgba(201,162,39,.35); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(193,18,31,.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* စာမျက်နှာ ခေါင်းစဉ် */
.page-head { background: linear-gradient(180deg, #a3121d, var(--brand-deep)); color: #fff; padding: 52px 22px 46px; text-align: center; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(to right, var(--brand) 0 40%, var(--gold) 40% 44%, var(--navy) 44% 56%, var(--gold) 56% 60%, var(--brand) 60% 100%); }
.page-head h1 { font-size: 33px; margin-bottom: 6px; }
.page-head p { color: #eadcdc; max-width: 720px; margin: 0 auto; }

/* အကြောင်းအရာ */
.section { padding: 56px 0; }
.section h2 { font-size: 26px; color: var(--brand-dark); margin-bottom: 6px; }
.section .rule { width: 72px; height: 4px; background: var(--amber); border-radius: 4px; margin: 10px 0 22px; }
.section p { margin-bottom: 16px; color: var(--ink); }
.lead { font-size: 19px; color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,40,25,.12); }
.card h3 { font-size: 19px; color: var(--brand-dark); margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.card .more { display: inline-block; margin-top: 12px; color: var(--brand-dark); font-weight: 700; font-size: 15.5px; }
.more-btn { color: var(--brand); font-weight: 700; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.two-col > * { min-width: 0; }
.figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.figure img { border-radius: 8px; margin: 0 auto; }
.figure figcaption { font-size: 14.5px; color: var(--muted); margin-top: 12px; }

.fact-list { list-style: none; margin: 6px 0 18px; }
.fact-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(20,40,25,.05); }
.fact-list li strong { color: var(--brand-dark); }

.color-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 10px; }
.color-card { border-radius: var(--radius); padding: 24px 22px; color: #fff; box-shadow: var(--shadow); }
.color-card h3 { margin-bottom: 6px; font-size: 19px; }
.color-card p { font-size: 15.5px; margin: 0; color: rgba(255,255,255,.94); }
.color-row.news-list { grid-template-columns: 1fr; }
.color-green { background: linear-gradient(160deg, #12913c, #9a0e18); }
.color-orange { background: linear-gradient(160deg, #f7ad2e, #cf7f06); }
.color-red { background: linear-gradient(160deg, #dd3a26, #a31f12); }

.quote { background: var(--card); border-right: 6px solid var(--amber); border-radius: 12px; padding: 22px 26px; box-shadow: var(--shadow); font-size: 18.5px; color: var(--ink); margin: 26px 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html.dark .quote { color: var(--brand-light); }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.form-card label { display: block; font-weight: 700; margin: 14px 0 6px; color: var(--brand-dark); }
.form-card input, .form-card textarea { width: 100%; font-family: var(--font); font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg); color: var(--ink); }
.form-card textarea { min-height: 130px; resize: vertical; }

.notice { background: var(--card); border: 1px solid var(--gold); border-radius: 12px; padding: 18px 22px; color: var(--ink); margin: 20px 0; border-left: 4px solid var(--gold); }
html.dark .notice { background: #1a1a12; }

/* အောက်ခြေ */
.site-footer { background: var(--brand-deep); color: #eadcdc; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 44px 22px 30px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.footer-brand strong { display: block; color: #fff; font-size: 18px; }
.footer-brand span { font-size: 14.5px; color: #d9c6c6; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer ul a { color: #d9c6c6; text-decoration: none; font-size: 15.5px; line-height: 2.1; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); text-align: center; padding: 18px; font-size: 14.5px; color: #c4aeae; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .page-head h1 { font-size: 26px; }
  body { font-size: 16px; }
}

/* ဝန်ဆောင်မှုများ စာမျက်နှာ */
.dept-head { display: flex; align-items: center; gap: 16px; margin: 42px 0 2px; }
.dept-num { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 21px; box-shadow: var(--shadow); }
.dept-num.brand { background: linear-gradient(160deg, #d21f2e, #9a0e18); }
.dept-num.amber { background: linear-gradient(160deg, #eab543, #b57a12); }
.dept-num.navy { background: linear-gradient(160deg, #2b5fd9, #012a80); }
.dept-head h2 { margin-bottom: 0; }
.svc-card { display: flex; flex-direction: column; }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.svc-code { display: inline-block; background: var(--card-hover); color: var(--brand-dark); font-weight: 700; font-size: 13.5px; padding: 4px 12px; border-radius: 999px; letter-spacing: .5px; }
.svc-icon { font-size: 30px; line-height: 1; }
.svc-card p { flex: 1; }
.svc-btn { margin-top: 16px; text-align: center; }

/* တဘ်များ (သတင်းစာမျက်နှာ) */
.tabs { display: flex; gap: 10px; justify-content: center; margin: 26px 0 6px; flex-wrap: wrap; }
.tab-btn { font-family: var(--font); font-size: 17px; font-weight: 700; padding: 11px 30px; border-radius: 999px; border: 2px solid var(--brand); background: var(--card); color: var(--brand-dark); cursor: pointer; }
.tab-btn:hover { background: var(--card-hover); border-color: var(--brand-dark); }
.tab-btn.active { background: var(--brand); color: #fff; }
html.dark .tab-btn { color: var(--brand-light); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* အလှူရှင်ဂုဏ်ပြုကတ်များ */
.donor-card { border-top: 4px solid var(--gold); }
.date-badge { display: inline-block; background: var(--card-hover); color: var(--brand-dark); font-weight: 700; font-size: 13.5px; padding: 4px 14px; border-radius: 999px; margin-bottom: 10px; }
.sample-tag { display: inline-block; background: var(--card); border: 1px dashed var(--amber-dark); color: var(--amber-dark); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; margin-left: 8px; }
html.dark .sample-tag { color: var(--amber); }
/* သတင်းပုံများ — card cover */
.card-cover { margin: -26px -24px 18px; position: relative; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--card-hover); }
.card-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cover-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.62); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }

/* ဆောင်းပါးစာမျက်နှာ — magazine layout */
.article { max-width: 1120px; margin: 0 auto; }
.article-loading { text-align: center; padding: 60px 0; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--brand-dark); font-weight: 700; text-decoration: none; font-size: 15.5px; }
.back-link:hover { text-decoration: underline; }
.article-meta { margin-bottom: 12px; }
.cat-tag { display: inline-block; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-left: 6px; }
.article-title { font-size: 32px; line-height: 1.45; color: var(--brand-deep); margin: 6px 0 10px; }
.article-name { color: var(--muted); font-size: 16px; margin-bottom: 6px; }
.article-hero { margin: 20px 0 8px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.article-hero img { width: 100%; max-height: 52vh; object-fit: cover; display: block; }
.article-body { margin-top: 18px; }
.article-body p { font-size: 17.5px; line-height: 2.1; color: var(--ink); margin-bottom: 16px; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 22px 0; }
.article-gallery a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.article-gallery img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform .25s; }
.article-gallery a:hover img { transform: scale(1.04); }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin: 30px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-nav a { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--brand-dark); font-weight: 700; text-decoration: none; font-size: 15px; }
.article-nav a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.article-nav .prev { text-align: left; }
.article-nav .next { text-align: right; }
.related { margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--line); }
.related h3 { color: var(--brand-deep); margin-bottom: 14px; font-size: 21px; }
.related .card h3 { font-size: 16.5px; }
@media (max-width: 600px) {
  .article-title { font-size: 25px; }
  .article-body p { font-size: 16.5px; }
  .article-nav { flex-direction: column; }
}

/* PDF ဖိုင်များ */
.pdf-cover { display: flex; align-items: center; justify-content: center; min-height: 130px; background: #f4e8e2; }
.pdf-badge { display: inline-block; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 8px; letter-spacing: 1px; }
.pdf-badge.big { font-size: 20px; padding: 10px 22px; }
.pdf-card { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 20px 0 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; box-shadow: var(--shadow); }
.pdf-card:hover { border-color: var(--brand); }
.pdf-thumb { position: relative; display: block !important; min-height: 170px; background: #f4e8e2; }
.pdf-thumb img { width: 100%; height: 170px; object-fit: cover; display: block; }
.pdf-thumb .pdf-badge.sm { position: absolute; bottom: 8px; left: 8px; font-size: 11px; padding: 3px 10px; }
.pdf-thumb:not(:has(img)) { display: flex !important; align-items: center; justify-content: center; }
/* PDF viewer (multi-page) */
.pdf-viewer-wrap { margin: 20px 0 8px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card-hover); }
.pdf-viewer { width: 100%; height: 76vh; border: none; display: block; }
.article-gallery .pdf-viewer-wrap { grid-column: 1 / -1; margin: 6px 0; }
@media (max-width: 600px) { .pdf-viewer { height: 62vh; } }
/* Video embed — plays inline, no new tab */
.video-viewer-wrap { margin: 20px 0 8px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #000; }
.video-viewer { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.video-player { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.card-cover.video-cover { padding: 0; background: #000; }
.card-cover .video-embed, .card-cover .video-player { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.article-gallery .video-viewer-wrap, .article-images .video-viewer-wrap { grid-column: 1 / -1; margin: 6px 0; }
.fb-video video, .fb-video iframe { width: 100%; height: 100%; min-height: 200px; }
.gal-video { margin: 6px 0; border-radius: 12px; overflow: hidden; background: #000; }

/* news toolbar + grid/list toggle */
.news-toolbar { display: flex; justify-content: flex-end; margin: 12px 0 2px; }
.view-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; box-shadow: var(--shadow); }
.vt-btn { border: none; background: none; padding: 7px 11px; border-radius: 999px; cursor: pointer; color: var(--muted); display: flex; align-items: center; }
.vt-btn svg { width: 18px; height: 18px; }
.vt-btn.active { background: var(--brand); color: #fff; }
.vt-btn:not(.active):hover { background: var(--card-hover); }

/* list view — magazine style */
.card-grid.news-list { display: flex; flex-direction: column; gap: 14px; }
.card-grid.news-list .card { display: flex; gap: 20px; padding: 18px 20px; align-items: flex-start; }
.card-grid.news-list .donor-card { border-top: 1px solid var(--line); border-left: 4px solid var(--gold); }
.card-grid.news-list .card-cover, .card-grid.news-list .pdf-cover { margin: 0; width: 240px; flex: 0 0 240px; border-radius: 10px; align-self: stretch; }
.card-grid.news-list .card-cover img { height: 100%; min-height: 150px; aspect-ratio: auto; }
.card-grid.news-list .card-body { flex: 1; min-width: 0; }
.card-grid.news-list .card h3 { font-size: 18.5px; }
@media (max-width: 640px) {
  .news-toolbar { margin-top: 8px; }
  .card-grid.news-list .card { gap: 14px; padding: 14px; }
  .card-grid.news-list .card-cover, .card-grid.news-list .pdf-cover { width: 108px; flex-basis: 108px; min-height: 96px; }
  .card-grid.news-list .card-cover img { min-height: 96px; }
  .card-grid.news-list .card h3 { font-size: 16px; margin-bottom: 6px; }
  .card-grid.news-list .card p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-grid.news-list .date-badge { font-size: 12px; padding: 3px 10px; margin-bottom: 6px; }
}

/* ဌာန Page — ရည်မှန်းချက်/မျှော်မှန်းချက် */
.dept-mv { padding: 36px 0 8px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-card { background: var(--card); border-radius: var(--radius); padding: 24px 26px; box-shadow: 0 6px 22px rgba(90,20,25,.08); border-top: 4px solid var(--brand); }
.mv-card.mv-vision { border-top-color: var(--gold); }
.mv-card h3 { color: var(--brand-dark); margin: 0 0 10px; font-size: 19px; }
.mv-card p { margin: 0; color: var(--ink); line-height: 1.9; }
.dept-act-title { text-align: center; color: var(--brand-deep); margin: 0 0 20px; font-size: 24px; }
@media (max-width: 640px) {
  .mv-grid { grid-template-columns: 1fr; }
  .dept-act-title { font-size: 21px; }
}

/* ဌာန Page — ဆောင်ပုဒ် / ဆက်သွယ်ရန် */
.dept-motto { font-size: 21px; color: var(--gold); font-style: italic; margin: 8px 0 4px; line-height: 1.8; }
.dept-contact { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 640px) { .dept-motto { font-size: 18px; } }

/* အသင်းဝင်ရန် CTA band */

/* အသင်းဝင် အခြေအနေ + ID Card */
.member-search-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.member-search-box h2 { margin: 0 0 8px; font-size: 24px; }
.member-search-form { display: flex; gap: 10px; margin-top: 20px; }
.member-search-form input { flex: 1; padding: 13px 18px; border: 2px solid var(--line); border-radius: 999px; font-size: 15px; font-family: inherit; background: var(--bg); color: var(--ink); }
.member-search-form input:focus { outline: none; border-color: var(--brand); }
.member-msg { margin-top: 16px; color: var(--muted); }
.member-result { margin-top: 28px; }
/* Member ID card — sample-exact front/back with watermarks, flip */
.idcard-scene { perspective: 1600px; max-width: 780px; margin: 0 auto; }
.idcard-flip { position: relative; width: 100%; aspect-ratio: 1.72; transform-style: preserve-3d; transition: transform .7s ease; }
.idcard-flip.flipped { transform: rotateY(180deg); }
.idcard-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.20); background: var(--card); }
.idcard-face [hidden] { display: none !important; }
.idcard-front { display: flex; }
.incomplete-panel { background: var(--card); border-radius: 12px; padding: 30px 28px; max-width: 560px; margin: 6px auto 0; text-align: center; box-shadow: 0 14px 34px rgba(0,0,0,.20); color: var(--ink); }
.incomplete-icon { font-size: 40px; margin-bottom: 6px; }
.incomplete-panel h3 { margin: 0 0 8px; font-size: 22px; color: #0136a8; }
.incomplete-list { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; }
.incomplete-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-color: var(--line); border-radius: 8px; margin-bottom: 8px; font-weight: 600; }
.btn-sm { padding: 6px 16px; font-size: 14px; }
/* စိစစ်နေဆဲ လျှောက်လွှာ status panel */
.pending-list { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; }
.pending-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-color: var(--line); border-radius: 8px; margin-bottom: 8px; }
.pending-list li span { color: #6b7a90; font-size: 14.5px; }
.pending-list li b { color: var(--ink); font-size: 15.5px; }
.idcard-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg);
  border: 3px double #b3402e; color: #b3402e; background: rgba(255,255,255,.85);
  font-weight: 800; font-size: 30px; letter-spacing: 1px; padding: 10px 28px; border-radius: 8px;
  z-index: 6; pointer-events: none; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.idcard-front-left { position: relative; width: 37%; background: linear-gradient(165deg, #4b5066 0%, #3f4459 60%, #333848 100%); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 24px 14px 18px; overflow: hidden; }
.idcard-photo { width: 74%; aspect-ratio: 1/1.02; object-fit: cover; border-radius: 16px; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4); background: #4a586c; }
.idcard-photo-fb { width: 74%; aspect-ratio: 1/1.02; border-radius: 16px; border: 4px solid #fff; background: #4a586c; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 700; }
.idcard-name { margin-top: 12px; font-family: 'Anton', sans-serif; font-size: 24px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; text-align: left; line-height: 1.25; align-self: stretch; }
.idcard-role { margin-top: 2px; font-size: 13.5px; opacity: .85; letter-spacing: 1px; align-self: stretch; text-align: left; }
.idcard-qr { margin-top: auto; width: 100px; height: 100px; background: #fff; padding: 5px; border-radius: 6px; }
.idcard-seal-wm { position: absolute; left: 0%; top: 30%; width: 66%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; opacity: .62; pointer-events: none; }
.idcard-seal-wm img { width: 100%; height: 100%; object-fit: cover; }
.idcard-front-right { position: relative; width: 63%; padding: 20px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; color: #1c2733; }
.idcard-emblem { width: 60px; height: 60px; object-fit: contain; }
.idcard-org { margin-top: 5px; text-align: center; font-family: 'Anton', sans-serif; font-weight: 400; font-size: 23px; letter-spacing: .5px; color: #0136a8; line-height: 1.25; white-space: nowrap; }
.idcard-fields { width: 100%; margin-top: 5px; display: grid; gap: 7px; position: relative; z-index: 1; }
.idf label { display: block; font-size: 11px; color: #6b7a90; letter-spacing: .3px; }
.idf b { display: block; font-size: 16px; color: #0136a8; font-weight: 700; }
.idf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.idcard-emblem-wm { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); width: 80%; opacity: .18; pointer-events: none; }
.idcard-back { transform: rotateY(180deg); display: flex; flex-direction: column; padding: 16px 30px 0; }
.idcard-contact-line { position: relative; z-index: 1; margin: 8px 0 0; font-size: 12.5px; color: #33404f; }
.idcard-back-body { position: relative; flex: 1; overflow: hidden; min-height: 0; }
.idcard-terms { position: relative; z-index: 1; margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.4; color: #33404f; }
.idcard-back-wm { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 48%; opacity: .12; pointer-events: none; }
.idcard-back-web { text-align: center; position: relative; z-index: 1; }
.idcard-back-web span { display: inline-block; background: #edf0f4; border-radius: 12px 12px 0 0; padding: 7px 32px; font-weight: 800; font-size: 15px; color: #1c2733; }
.idcard-back-foot { background: linear-gradient(165deg, #3a4451, #232b34); margin: 0 -30px; padding: 9px 30px; display: flex; align-items: center; gap: 20px; color: #fff; }
.idcard-foot-emblem { width: 44px; height: 44px; object-fit: contain; filter: brightness(0) invert(1); flex: none; }
.idcard-contact { display: flex; align-items: center; gap: 10px; }
.idcard-contact svg { width: 26px; height: 26px; fill: #fff; opacity: .9; flex: none; }
.idcard-contact small { display: block; font-size: 11px; opacity: .75; }
.idcard-contact b { display: block; font-size: 15.5px; }
.member-actions { text-align: center; margin: 18px 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .member-search-form { flex-direction: column; }
  .member-search-form .btn { width: 100%; }
  .idcard-name { font-size: 15px; }
  .idf b { font-size: 12px; }
  .idcard-org { font-size: 13px; white-space: normal; }
  .idcard-terms { font-size: 11px; }
  .idcard-contact b { font-size: 12px; }
}
@media print {
  body * { visibility: hidden; }
  #member-result, #member-result * { visibility: visible; }
  .member-actions, #member-result > p.muted.small { display: none !important; }
  #member-result { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
  .idcard-scene { max-width: 100%; perspective: none; }
  .idcard-flip { transform: none !important; position: static; display: block; aspect-ratio: auto; }
  .idcard-face { position: static; transform: none !important; backface-visibility: visible; -webkit-backface-visibility: visible; height: 480px; margin-bottom: 16px; box-shadow: none; border: 1px solid #ccc; }
  .idcard-back { page-break-before: always; }
}

/* Sticky nav တွင် mini brand — scroll ချမှ ပေါ်မည် */
.nav-mini-brand { display: none; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.nav-mini-brand img { border-radius: 50%; background: #fff; }
.nav-mini-brand span { font-weight: 700; color: var(--brand-deep); font-size: 15px; white-space: nowrap; }
.navbar-sticky.scrolled .nav-mini-brand { display: inline-flex; }
/* 375px မိုဘိုင်းတွင် sticky brand စာသား ဖြတ်တောက်မခံရစေရန် — logo + hamburger သာ ပြပါ (2026-10-25 watch) */
@media (max-width: 640px) {
  .navbar-sticky.scrolled .nav-mini-brand span { display: none; }
}
@media (min-width: 1201px) {
  /* desktop scrolled: brand ဘည် + menu ပဲပြပြပဲပြပြပြ (menu နှင့်မထပ်ပါ်) */
  .navbar-sticky.scrolled { display: flex; align-items: center; }
  .navbar-sticky.scrolled .nav-bar {
    display: flex; align-items: center;
    position: static; transform: none;
    flex: 0 0 auto;
    margin-left: max(16px, calc((100% - 1120px) / 2));
    padding: 7px 0;
  }
  .navbar-sticky.scrolled .nav-toggle { display: none; }
  .navbar-sticky.scrolled .main-nav { flex: 1 1 auto; }
  .navbar-sticky.scrolled .main-nav > ul { justify-content: center; }
}
html.dark .navbar-sticky.scrolled .nav-mini-brand span { color: #f0a9b2; }

/* ===== ချပ်ကာရိုးရာ အလှဆင်မှုများ — Chakma textile-inspired decorations ===== */
:root {
  --chakma-red: #d21f2e;
  --chakma-red-dark: #9a0e18;
  --chakma-amber: #eab543;
  --chakma-orange: #eab543;
  --chakma-navy: #0136a8;
  --chakma-gold: #e8a020;
}

/* --- ရက်ကန်းအဆင် border (woven textile pattern) --- */
.weave-border {
  height: 10px;
  background: repeating-linear-gradient(90deg,
    var(--chakma-red) 0 14px,
    var(--chakma-gold) 14px 20px,
    var(--chakma-navy) 20px 34px,
    var(--chakma-orange) 34px 40px);
}
.weave-border-thin {
  height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--chakma-red) 0 10px,
    var(--chakma-gold) 10px 14px,
    var(--chakma-navy) 14px 24px,
    var(--chakma-orange) 24px 28px);
}

/* --- ကတ်များ hover effect --- */
.card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(200,16,46,.14);
  border-color: var(--chakma-gold);
}
.card:hover h3 { color: var(--chakma-red-dark); }
.card .more {
  transition: color .2s ease, letter-spacing .2s ease;
}
.card:hover .more { color: var(--chakma-red); letter-spacing: .4px; }

/* --- ခလုတ်များ hover --- */
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-gold:hover { background: var(--chakma-orange); }
.btn-brand:hover { background: var(--chakma-red); }

/* --- nav link hover underline animation --- */
.main-nav a {
  position: relative;
  transition: color .2s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--chakma-red), var(--chakma-gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--chakma-red-dark); }

/* --- hero buttons --- */
.hero-actions .btn:hover { transform: translateY(-3px) scale(1.02); }

/* --- section headings with textile accent --- */
.rule-chakma {
  height: 5px; width: 120px; border-radius: 3px; margin: 10px 0 22px;
  background: linear-gradient(90deg, var(--chakma-red), var(--chakma-orange), var(--chakma-gold));
}

/* --- stat cards --- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin: 26px 0;
}
.stat-grid.news-list { display: block; }
.stat-grid.news-list .stat-card { margin-bottom: 12px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 14px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--chakma-red), var(--chakma-orange), var(--chakma-gold), var(--chakma-navy));
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(200,16,46,.12); border-color: var(--chakma-gold); }
.stat-num {
  font-size: 34px; font-weight: 800; line-height: 1.2;
  background: linear-gradient(135deg, var(--chakma-red), var(--chakma-orange));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* --- department preview cards --- */
.dept-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 22px 0;
}
.dept-preview {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dept-preview::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--chakma-red), var(--chakma-gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.dept-preview:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,.1); }
.dept-preview:hover::after { transform: scaleX(1); }
.dept-preview h4 { color: var(--brand-deep); margin-bottom: 6px; transition: color .2s; }
html.dark .dept-preview h4 { color: var(--brand-light); }
.dept-preview:hover h4 { color: var(--chakma-red-dark); }
.dept-preview p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* --- news preview --- */
.news-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin: 22px 0;
}

/* --- CTA banner with textile gradient --- */
.cta-banner {
  border-radius: 18px; padding: 44px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--chakma-red-dark), var(--chakma-red) 45%, var(--chakma-orange));
  position: relative; overflow: hidden; margin: 30px 0;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.5) 18px 20px);
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; position: relative; }
.cta-banner p { opacity: .92; margin-bottom: 22px; position: relative; }
.cta-banner .btn { position: relative; }
.cta-banner .weave-border-thin { position: absolute; bottom: 0; left: 0; right: 0; }

/* --- footer links hover --- */
.site-footer a { transition: color .2s ease, padding-left .2s ease; }
.site-footer a:hover { color: var(--chakma-gold); padding-left: 4px; }

/* --- image hover zoom --- */
.zoom-hover { overflow: hidden; border-radius: var(--radius); }
.zoom-hover img { transition: transform .4s ease; }
.zoom-hover:hover img { transform: scale(1.06); }

/* --- dark mode adjustments --- */
html.dark .stat-card, html.dark .dept-preview { background: #1c2430; border-color: #2c3a4a; }
html.dark .stat-num { -webkit-text-fill-color: unset; color: var(--chakma-gold); background: none; }
html.dark .card:hover { box-shadow: 0 18px 44px rgba(0,0,0,.4); }

/* Organization page department cards */
#org-dept-grid .dept-card { text-decoration: none; color: inherit; display: block; }
#org-dept-grid .dept-card .card-link { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 600; font-size: 0.92em; }
#org-dept-grid .dept-card:hover .card-link { text-decoration: underline; }
#org-dept-grid.news-list { display: block; }
#org-dept-grid.news-list .dept-card { margin-bottom: 12px; }

/* List view for dept preview grid */
.dept-preview-grid.news-list { display: block; }
.dept-preview-grid.news-list .dept-preview { margin-bottom: 12px; }

/* Financial Transparency Page */
.balance-hero {
  background: linear-gradient(135deg, var(--brand-deep) 0%, #7d1219 100%);
  color: #f5e6c8;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  margin: 24px 0 36px;
}
.balance-label {
  font-size: 0.9em;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.balance-amount {
  font-size: 2.8em;
  font-weight: 700;
  margin: 8px 0;
}
.balance-sub {
  font-size: 0.9em;
  opacity: 0.7;
}
.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
  width: 100%;
}
.finance-grid .finance-card {
  min-width: 0;
}
/* Paginated lists: ensure grid takes full container width */
#member-fees-list.finance-grid,
#donor-fees-list.finance-grid,
#expenses-list.finance-grid,
#bank-accounts-list.finance-grid {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* Responsive: fewer columns on smaller screens */
@media (max-width: 900px) {
  .finance-grid:not(.news-list) {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
@media (max-width: 600px) {
  .finance-grid:not(.news-list) {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 400px) {
  .finance-grid:not(.news-list) {
    grid-template-columns: 1fr;
  }
}
/* List view must come AFTER grid definition to override */
.finance-grid.news-list {
  display: block;
  grid-template-columns: none;
}
.finance-grid.news-list .finance-card {
  margin-bottom: 8px;
  width: 100%;
}
.finance-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.finance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.finance-card .fin-name {
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
}
.finance-card .fin-amount {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 8px 0;
}
html.dark .finance-card .fin-amount { color: #ff8a7a; }
html.dark .finance-card .fin-name { color: #ff8a7a; }
.finance-card .fin-meta {
  font-size: 0.85em;
  color: var(--muted);
}
/* List view: compact horizontal rows - clearly distinct from grid cards */
.finance-grid.news-list .finance-card {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: left !important;
  padding: 8px 16px !important;
  margin-bottom: 6px !important;
  gap: 12px;
  border-left: 4px solid var(--brand) !important;
}
.finance-grid.news-list .finance-card > div:first-child {
  flex: 1 !important;
  min-width: 0;
}
.finance-grid.news-list .finance-card .fin-name {
  font-size: 0.9em !important;
  margin-bottom: 1px !important;
}
.finance-grid.news-list .finance-card .fin-meta {
  font-size: 0.75em !important;
  margin: 0 !important;
}
.finance-grid.news-list .finance-card .fin-amount {
  margin: 0 !important;
  font-size: 0.9em !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}
.finance-grid.news-list .finance-card:hover {
  transform: none !important;
}

/* Township filter (transparency page) */
.township-filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.township-filter {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font);
  max-width: 230px;
  cursor: pointer;
}
.township-filter:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.pagination button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 700;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-info {
  text-align: center;
  color: var(--muted);
  font-size: 0.9em;
  margin: 8px 0;
}

/* ===== Universal Image Lightbox (Facebook-style) ===== */
.img-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.img-lightbox.show { opacity: 1; }
.img-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  user-select: none;
  -webkit-user-select: none;
}
.img-lightbox iframe.pdf-viewer {
  width: 88vw;
  height: 86vh;
  border: none;
  border-radius: 8px;
  background: #fff;
}
.img-lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 100001;
}
.img-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.img-lightbox-prev, .img-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 100001;
}
.img-lightbox-prev { left: 16px; }
.img-lightbox-next { right: 16px; }
.img-lightbox-prev:hover, .img-lightbox-next:hover { background: rgba(255,255,255,0.3); }
.img-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  padding: 6px 16px;
  border-radius: 20px;
  z-index: 100001;
}
.img-lightbox-caption {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  text-align: center;
  max-width: 80vw;
  background: rgba(0,0,0,0.5);
  padding: 8px 20px;
  border-radius: 8px;
  z-index: 100001;
}
@media (max-width: 600px) {
  .img-lightbox-prev { left: 8px; width: 40px; height: 40px; }
  .img-lightbox-next { right: 8px; width: 40px; height: 40px; }
  .img-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}
/* Make card images clickable */
.card-cover img, .article-hero img {
  cursor: zoom-in;
}

/* Donor Appreciation cards: bigger image, title only */
.appr-card .card-cover.appr-cover {
  height: 280px;
  overflow: hidden;
}
.appr-card .card-cover.appr-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.appr-card .card-body h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 8px 0;
}
.appr-card .card-body .more-btn {
  margin-top: 4px;
}

/* Appreciation detail page */
.appr-detail .appr-hero img {
  cursor: zoom-in;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.appr-info-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 20px 0;
}
.appr-info-row {
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.appr-info-row:last-child { border-bottom: none; }
.appr-info-row span {
  font-weight: 600;
  color: var(--brand);
  min-width: 90px;
  display: inline-block;
}

/* Improved article body for long content */
.article-detail .article-body {
  font-size: 1.08rem;
  line-height: 2;
  color: var(--ink);
  margin: 24px 0;
}
.article-detail .article-body p {
  margin-bottom: 1.2em;
  text-align: justify;
}
.article-detail .article-body p:empty {
  margin-bottom: 0.6em;
}
/* Appreciation detail specific */
.appr-detail .article-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .appr-detail .article-body {
    padding: 20px;
    font-size: 1rem;
  }
}

/* Facebook-style image grid */
.article-detail .article-images {
  display: grid;
  gap: 4px;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}
.article-detail .article-images.fb-1 { grid-template-columns: 1fr; }
.article-detail .article-images.fb-2 { grid-template-columns: 1fr 1fr; }
.article-detail .article-images.fb-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.article-detail .article-images.fb-3 .fb-img:first-child { grid-row: 1 / 3; }
.article-detail .article-images.fb-4 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.article-detail .article-images.fb-4 .fb-img:first-child { grid-row: 1 / 4; }
.article-detail .article-images.fb-5 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.article-detail .article-images.fb-5 .fb-img:first-child { grid-row: 1 / 4; }
.article-detail .article-images .fb-img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 200px;
  background: #f0f0f0;
}
.article-detail .article-images.fb-1 {
  display: flex;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 12px;
}
.article-detail .article-images.fb-1 .fb-img {
  min-height: 0;
  background: none;
  max-width: 600px;
  width: 100%;
}
.article-detail .article-images.fb-1 .fb-img img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.article-detail .article-images:not(.fb-1) .fb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.article-detail .article-images .fb-more {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}
/* Related posts carousel */
.related-posts {
  margin: 40px 0 20px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related-posts h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--brand-deep);
}
.related-township {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--muted);
}
.related-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 4px 2px;
}
.related-track::-webkit-scrollbar { display: none; }
.related-card {
  flex: 0 0 280px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.related-thumb {
  height: 160px;
  overflow: hidden;
  background: var(--card-hover);
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-info {
  padding: 12px 14px;
}
.related-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.related-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-arrow {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s;
  z-index: 1;
}
.rel-arrow:hover {
  background: var(--card-hover);
}
@media (max-width: 600px) {
  .related-card { flex: 0 0 240px; }
  .rel-arrow { display: none; }
}

/* Article detail: full container width to match footer */
.article-detail {
  max-width: 100%;
  width: 100%;
}
.article-detail .article-body,
.article-detail .appr-info-box,
.article-detail .article-images,
.article-detail .related-posts {
  max-width: 100%;
}

/* Department banner slider */
.dept-banner-section {
  padding: 20px 0;
  background: var(--bg);
}
/* Dept banner uses same style as home page banner */

/* Department Activity Detail Page — professional magazine layout, full container width like footer */
.dept-detail { max-width: 100%; width: 100%; }
.dept-detail .article-meta { margin-bottom: 12px; }
.dept-forms-section { margin: 28px 0; padding: 20px; background: var(--card-bg, #f9f9f9); border-radius: 14px; border: 1px solid var(--line); }
.dept-forms-section h3 { margin: 0 0 14px; font-size: 1.15em; }
.dept-forms-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.form-btn { display: inline-block; padding: 12px 20px; background: var(--brand); color: #fff !important; border-radius: 10px; text-decoration: none; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.form-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.18); background: var(--brand-dark); }
html.dark .form-btn { background: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
html.dark .form-btn:hover { background: var(--brand-dark); }
/* Share button on article detail pages — copies the per-article share URL */
.share-row { margin: 12px 0 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; background: transparent; color: var(--brand); border: 1.5px solid var(--brand); border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.share-btn:hover { background: var(--brand); color: #fff; }
.article-back { margin-top: 24px; }
/* Pagination */
.pagination-wrap { text-align: center; padding: 16px 0; }
.pagination-info { margin-bottom: 10px; color: var(--muted, #666); font-size: .92em; }
.pagination-btns { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination-btns button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg, #fff); cursor: pointer; font-size: .95em; }
.pagination-btns button.active { background: var(--primary, #c1121f); color: #fff; border-color: var(--primary, #c1121f); }
.pagination-btns button:disabled { opacity: .4; cursor: not-allowed; }
.pagination-btns button:not(:disabled):hover { background: var(--hover-bg, #f0f0f0); }

/* Related posts — auto-scroll horizontal grid */
.dept-related-section { margin: 32px 0; }
.dept-related-section h3 { margin: 0 0 14px; font-size: 1.2em; }
.dept-related-track { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 2px 12px; scrollbar-width: thin; }
.dept-related-track::-webkit-scrollbar { height: 6px; }
.dept-related-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.dept-related-card { flex: 0 0 240px; background: var(--card-bg, #fff); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.dept-related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.dept-related-thumb { height: 130px; overflow: hidden; background: var(--hover-bg, #f5f5f5); }
.dept-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dept-related-body { padding: 10px 12px 14px; }
.dept-related-body h4 { margin: 6px 0; font-size: .98em; line-height: 1.4; }
.dept-related-body p { margin: 0; font-size: .85em; color: var(--muted, #666); line-height: 1.5; }

/* List view: video shows clickable thumbnail (not tiny inline player) */
.video-list-link { display: none; position: absolute; inset: 0; }
.card-grid.news-list .video-cover .video-embed,
.card-grid.news-list .video-cover .video-player { display: none; }
.card-grid.news-list .video-cover { position: relative; }
.card-grid.news-list .video-list-link { display: block; }
.video-list-link img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: rgba(0,0,0,.7); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.video-list-link:hover .video-play-btn { background: var(--primary, #c1121f); }

/* Page content images (e.g., Flag & Emblem) */
.page-img { margin: 16px 0; text-align: center; }
.page-img img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* Flag & Emblem page — 2-section professional layout */
.fe-section { margin: 36px 0; }
.fe-section:first-child { margin-top: 8px; }
.fe-header { text-align: center; margin-bottom: 20px; }
.fe-img-wrap { margin: 0 auto 16px; max-width: 520px; }
.fe-img-wrap img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.fe-header h2 { font-size: 1.6em; margin: 0; color: var(--primary, #c1121f); }
.fe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fe-card { background: var(--card-bg, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.fe-card h4 { margin: 0 0 8px; font-size: 1.05em; color: var(--primary, #c1121f); }
.fe-card p { margin: 0; line-height: 1.7; color: var(--text, #333); }
@media (max-width: 640px) {
  .fe-grid { grid-template-columns: 1fr; }
}

/* ID card forced light in dark mode (printable document) */
html.dark .idcard-face { background: #ffffff; }

/* ---- Image protection (Layer 1) ---- */
img, canvas.px-canvas {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
canvas.px-canvas { max-width: 100%; }
@media print {
  canvas.px-canvas { max-width: 100%; }
}
