:root {
  --emerald-900: #083d2e;
  --emerald-700: #0f6b4f;
  --emerald-50: #eef5f1;
  --gold: #c9a227;
  --gold-soft: #e3c25b;
  --ink: #17261f;
  --muted: #5b6b63;
  --line: #dbe5df;
  --page: #f5f8f6;
  --serif: "Source Serif 4", "Noto Sans Myanmar", Georgia, serif;
  --sans: "Noto Sans", "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--page); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--emerald-900); margin: 0 0 .5em; }
a { color: var(--emerald-700); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.topbar { background: var(--emerald-900); color: #cfe3d9; font-size: .82rem; padding: 6px 0; }
.mainbar { background: #fff; }
.mainbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--emerald-700); }
.brand-text strong { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--emerald-900); }
.brand-text small { display: block; font-size: .8rem; color: var(--muted); }

.menu-btn { display: grid; gap: 5px; padding: 10px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--emerald-900); }

.main-nav { display: none; background: #fff; border-top: 1px solid var(--line); border-bottom: 3px solid var(--gold); }
.nav-open .main-nav { display: block; }
.main-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.main-nav a:hover, .main-nav a.active { color: var(--emerald-700); }
.main-nav a.active { font-weight: 600; }

main { min-height: 60vh; }

.site-footer { background: var(--emerald-900); color: #cfe3d9; margin-top: 60px; padding: 36px 0 28px; border-top: 4px solid var(--gold); }
.site-footer strong { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.site-footer p { margin: .4em 0 0; max-width: 460px; font-size: .92rem; }
.footer-in { display: grid; gap: 20px; }
.footer-in .copy { font-size: .82rem; color: #9fbcae; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .main-nav { display: block; }
  .main-nav .wrap { display: flex; flex-wrap: wrap; gap: 0 26px; }
  .main-nav a { border-bottom: 0; padding: 14px 0; font-size: .95rem; position: relative; }
  .main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--emerald-700); }
  .footer-in { grid-template-columns: 1fr auto; align-items: end; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hero { background-color: var(--emerald-900); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23e3c25b' stroke-opacity='.14' stroke-width='1'%3E%3Crect x='15' y='15' width='30' height='30'/%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E"); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.2rem); max-width: 16ch; margin-bottom: .45em; }
.hero p { max-width: 54ch; margin: 0 0 28px; font-size: 1.08rem; color: #d3e6dc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--emerald-900); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.1); }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } }
.azaan { margin-top: -32px; position: relative; }
.azaan-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; padding: 16px 18px 18px; box-shadow: 0 6px 20px rgba(8,61,46,.08); }
.azaan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
.azaan-head strong { font-family: var(--serif); font-size: 1.15rem; color: var(--emerald-900); }
.azaan-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.azaan-times li { background: var(--emerald-50); border-radius: 8px; padding: 9px 2px; }
.azaan-times span { display: block; font-size: .78rem; color: var(--muted); }
.azaan-times b { font-size: 1.05rem; color: var(--emerald-900); font-variant-numeric: tabular-nums; }
.azaan-note { margin: 0; color: var(--muted); }
.modules { padding: 56px 0 8px; }
.modules h2 { font-size: 1.6rem; margin-bottom: 18px; }
.module-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.module { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; color: inherit; text-decoration: none; }
.module h3 { font-size: 1.15rem; margin: 0 0 4px; }
.module p { margin: 0 0 10px; color: var(--muted); font-size: .93rem; }
.module .status { font-size: .82rem; font-weight: 600; color: var(--muted); }
.module.is-live { border-left: 4px solid var(--gold); }
.module.is-live .status { color: var(--emerald-700); }
.module.is-live:hover { border-color: var(--emerald-700); border-left-color: var(--gold); box-shadow: 0 4px 14px rgba(8,61,46,.1); }
@media (min-width: 640px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.langs { display: flex; gap: 14px; }
.langs a { color: #cfe3d9; text-decoration: none; padding-bottom: 1px; }
.langs a:hover { color: #fff; }
.langs a.on { color: #fff; font-weight: 600; border-bottom: 2px solid var(--gold); }
.topbar .wrap { justify-content: flex-end; }
html[lang="my"] body { line-height: 1.9; }
html[lang="my"] .brand-text strong { line-height: 1.5; }
.notfound { padding: 72px 0 40px; }
.notfound p { max-width: 54ch; margin: 0 0 24px; color: var(--muted); }
.page-head { background: var(--emerald-900); color: #fff; padding: 36px 0 40px; border-bottom: 4px solid var(--gold); }
.page-head h1 { color: #fff; margin-bottom: .2em; }
.page-head p { margin: 0; color: #d3e6dc; max-width: 60ch; }
.list-section { padding-top: 32px; }
.module .meta { color: var(--emerald-700); font-weight: 600; margin-bottom: 6px; }
.module a.status { color: var(--emerald-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; }
.chip:hover { border-color: var(--emerald-700); }
.chip.on { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.module h3 a { color: inherit; text-decoration: none; }
.module h3 a:hover { color: var(--emerald-700); }
.detail { display: grid; gap: 8px; max-width: 760px; }
.detail-photo { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 16px; }
.detail h2 { font-size: 1.2rem; margin: 0 0 6px; }
.detail-block { margin: 0 0 22px; }
.detail-block p { margin: 0 0 10px; }
.locked { background: var(--emerald-50); border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 8px; color: var(--muted); font-size: .93rem; margin: 0 0 14px; }
.back { display: inline-block; margin-top: 8px; font-weight: 600; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--emerald-900); background: var(--emerald-50); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.detail-layout { display: grid; gap: 20px; margin-bottom: 30px; }
.detail-media { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(8,61,46,.1); background: var(--emerald-900); }
.detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-media.is-empty { display: grid; place-items: center; background-color: var(--emerald-900); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23e3c25b' stroke-opacity='.14' stroke-width='1'%3E%3Crect x='15' y='15' width='30' height='30'/%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E"); }
.detail-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; padding: 20px; align-self: start; }
.detail-card .row { margin: 0 0 16px; }
.detail-card .row p { margin: 2px 0 0; }
.detail-card .label { font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.detail-card .locked { margin: 16px 0 0; }
.detail-more { max-width: 760px; }
.detail-text { margin: 0 0 26px; }
.detail-text h2 { font-size: 1.3rem; margin-bottom: .3em; }
.detail-text p { margin: 0; }
@media (min-width: 900px) {
  .detail-layout { grid-template-columns: 3fr 2fr; }
  .detail-layout.single { grid-template-columns: 1fr; max-width: 760px; }
}