/* =========================================================
   Tempe Mas Didik - warna & font sama dengan website lama
   Kuning  #ffc301  | Hijau  #2d5f30 | Aksen #f1c40f
   Judul: Montserrat 700 | Menu: Poppins 700 | Isi: Noto Sans
   ========================================================= */
:root {
  --yellow: #ffc301;
  --yellow-soft: #ffe07a;
  --green: #2d5f30;
  --green-dark: #224a25;
  --green-soft: #e8f0e8;
  --accent: #f1c40f;
  --bg: #f5f5f5;
  --white: #ffffff;
  --text: #2b2b2b;
  --muted: #5f7f61;
  --radius: 12px;
  --shadow: 0 8px 18px rgba(45, 95, 48, .08);
  --shadow-hover: 0 12px 26px rgba(45, 95, 48, .16);
  --font-body: "Noto Sans", sans-serif;
  --font-head: "Montserrat", sans-serif;
  --font-nav: "Poppins", sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; color: var(--green); }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.center img { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--yellow); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
/* Logo tampil sebagai siluet gelap #191919, sama seperti filter tema lama */
.logo img { width: 120px; height: auto; filter: brightness(0) invert(.098); }
.main-nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  font-family: var(--font-nav); font-weight: 700; font-size: 17px;
  color: var(--green); text-decoration: none; padding: 10px 12px; display: inline-block; border-radius: 8px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(45,95,48,.1); }
.sub-toggle { background: none; border: 0; color: var(--green); cursor: pointer; font-size: 14px; padding: 4px; margin-left: -8px; }
.sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-hover); display: none;
}
.sub-menu a { display: block; font-size: 15px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { display: block; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green); margin: 5px 0; border-radius: 2px; transition: .3s; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--green); text-decoration: none; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 14px 30px; border-radius: 8px; transition: transform .2s, box-shadow .2s, background .2s; border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-yellow { background: var(--yellow); color: var(--green); }
.btn-big { font-size: clamp(1.2rem, 3vw, 2.25rem); padding: 18px 40px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }

/* ---------- Section umum ---------- */
.section { padding: 70px 0; }
.section-yellow { background: var(--yellow); color: #fff; }
.section-yellow h2 { color: #fff; }
.section-green { background: var(--green); color: #fff; }
.section-green h2, .section-green h3 { color: #fff; }
.section-white { background: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { max-width: 720px; margin: 0 auto; color: var(--muted); }
.section-yellow .section-title p, .section-green .section-title p { color: inherit; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }

/* Hero beranda: kotak kuning dengan judul hijau, persis gaya lama */
.hero-box { background: var(--yellow); border-radius: 0; margin: 50px 16px 0; padding: 70px 20px; text-align: center; color: #fff; }
.hero-box h1 { color: var(--green); max-width: 900px; margin: 0 auto 30px; }
.hero-box .hero-img { width: 100%; max-width: 640px; margin: 0 auto 30px; border-radius: var(--radius); }
.hero-box p { max-width: 820px; margin: 0 auto 1em; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }

.list-check { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; text-align: left; }
.list-check li { padding: 6px 0 6px 34px; position: relative; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; display: grid; place-items: center; }
ol.steps { counter-reset: s; list-style: none; padding: 0; max-width: 560px; margin: 0 auto 30px; text-align: left; }
ol.steps li { counter-increment: s; padding: 8px 0 8px 46px; position: relative; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Maskot */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.badge { text-align: center; }
.badge img { width: 160px; margin: 0 auto 10px; }
.badge h3 { color: var(--green); font-size: 1.2rem; }
.float { animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Kutipan */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
blockquote { margin: 0; background: #fff; color: var(--green); border-left: 6px solid var(--green); padding: 24px; border-radius: var(--radius); font-size: 1.1rem; box-shadow: var(--shadow); }
blockquote cite { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); font-style: normal; }

/* Banner foto */
.banner { position: relative; color: #fff; text-align: center; padding: 100px 20px; background-size: cover; background-position: center; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(45, 95, 48, .82); }
.banner > * { position: relative; }
.banner p { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 780px; margin: 0 auto 20px; }

/* Grid & kartu */
.grid { display: grid; gap: 25px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; color: var(--text); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .btn { margin-top: 16px; padding: 10px 20px; font-size: 14px; }
.card-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--green); font-weight: 700; margin-bottom: 12px; }
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; height: 220px; object-fit: cover; }
.card-img .card-body { padding: 22px; }

/* Dua kolom (teks + gambar) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse > :first-child { order: 2; }

/* Hero halaman dalam */
.page-hero { background: var(--yellow); text-align: center; padding: 60px 16px; }
.page-hero h1 { color: var(--green); font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { max-width: 760px; margin: 0 auto; color: var(--green); font-size: 1.15rem; }
.page-hero.photo { position: relative; background-size: cover; background-position: center; padding: 110px 16px; }
.page-hero.photo::before { content: ""; position: absolute; inset: 0; background: rgba(45, 95, 48, .85); }
.page-hero.photo > * { position: relative; }
.page-hero.photo h1, .page-hero.photo p { color: #fff; }

/* Statistik */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--yellow); }

/* Timeline proses */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: var(--green); transform: translateX(-50%); }
.timeline li { position: relative; width: 50%; padding: 0 40px 30px 0; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 30px 40px; }
.timeline li::after { content: ""; position: absolute; top: 20px; right: -11px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--green); }
.timeline li:nth-child(even)::after { left: -11px; right: auto; }
.timeline .card { border-left: 6px solid var(--green); }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; display: block; }
.gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: 10px; transition: transform .3s; }
.gallery img:hover { transform: scale(1.03); }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; place-items: center; z-index: 300; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.videos video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; background: #000; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 50px 18px 20px; font-weight: 700; color: var(--green); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 26px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text); }

/* Kontak */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.contact-grid a { display: block; text-align: center; background: #fff; padding: 22px 14px; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; color: var(--green); transition: .3s; }
.contact-grid a:hover { background: var(--green); color: #fff; }
.map-embed { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

/* Artikel */
.article { background: #fff; padding: clamp(20px, 4vw, 50px); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article h2 { margin-top: 1.4em; }
.article img { border-radius: var(--radius); margin: 0 0 24px; }

/* Blog campuran: artikel sendiri + berita */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.blog-aside { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 106px; }
.blog-aside h2 { font-size: 1.25rem; }
.blog-aside .news-item { grid-template-columns: 1fr; padding: 12px 0; }
.blog-aside .btn { width: 100%; text-align: center; margin-top: 14px; padding: 12px; font-size: 14px; }
.news-src { display: inline-block; background: var(--yellow); color: var(--green); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.chip { border: 2px solid var(--green); background: #fff; color: var(--green); font: 700 14px var(--font-body); padding: 6px 14px; border-radius: 30px; cursor: pointer; }
.chip small { opacity: .7; }
.chip.active, .chip:hover { background: var(--green); color: #fff; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 6px 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid #eee; }
.news-item[hidden], .btn[hidden] { display: none; }
.news-item .news-src { justify-self: start; }
.news-item a { color: var(--text); font-weight: 700; text-decoration: none; line-height: 1.45; }
.news-item a:hover { color: var(--green); text-decoration: underline; }
.news-item time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.news-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 20px; }
a.chip, a.news-src { text-decoration: none; }
.chip-sep { width: 100%; height: 0; }
.post-card h3 a { color: var(--green); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card .news-src { margin-bottom: 8px; }
.post-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-top: 12px !important; }
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.search-form input { flex: 1; min-width: 0; padding: 12px 16px; font: 16px var(--font-body); border: 2px solid var(--green); border-radius: 8px; background: #fff; }
.search-form input:focus { outline: 3px solid rgba(45,95,48,.25); }
.search-form .btn { padding: 12px 20px; }
.hero-search { margin-top: 26px; }
.blog-aside .search-form .btn { width: auto; margin: 0; }
.popular-list { margin: 0; padding-left: 22px; }
.popular-list li { padding: 8px 0; border-bottom: 1px solid #eee; }
.popular-list a { color: var(--text); font-weight: 700; text-decoration: none; display: block; line-height: 1.4; }
.popular-list a:hover { color: var(--green); }
.popular-list small { color: var(--muted); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pagination a { min-width: 42px; text-align: center; padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--green); font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.pagination a[aria-current] { background: var(--green); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.site-footer { background: var(--green); color: #fff; padding-top: 60px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr; gap: 30px; padding-bottom: 40px; }
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--accent); margin-bottom: 14px; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 4px 0; }
.footer-list.cols-2 { columns: 2; }
.copyright { background: var(--green-dark); padding: 16px 0; font-size: 14px; text-align: center; }

/* Tombol WhatsApp melayang */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 50px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float:hover { background: #1ebe5a; }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 86px; left: 0; right: 0; background: var(--yellow); display: none; max-height: calc(100vh - 86px); overflow-y: auto; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 16px 20px; }
  .main-nav li { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav li > a { flex: 1; }
  .sub-toggle { font-size: 20px; padding: 8px 14px; }
  .sub-menu { position: static; box-shadow: none; width: 100%; background: rgba(255,255,255,.6); }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-aside { position: static; }
}
@media (max-width: 600px) {
  .news-item { grid-template-columns: 1fr auto; }
  .news-item a { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .hero-box { margin: 20px 0 0; padding: 50px 16px; }
  .split, .quotes { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .timeline::before { left: 10px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 24px 36px; }
  .timeline li::after, .timeline li:nth-child(even)::after { left: -1px; right: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
