/* HijauBumi — Blog Lingkungan & Alam */
/* Palet: #2e7d32 primer, #76ff03 aksen, #f1f8e9 bg */

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

:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-mid: #388e3c;
  --neon: #76ff03;
  --neon-dark: #64dd17;
  --bg: #f1f8e9;
  --bg2: #dcedc8;
  --text: #1a2e1a;
  --text-muted: #4a6741;
  --white: #fff;
  --card-bg: #fff;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(46,125,50,0.10);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; }

/* ─── DEMO BAR ─── */
.demo-bar {
  background: var(--green-dark);
  color: #c8e6c9;
  text-align: center;
  font-size: 0.78rem;
  padding: 7px 16px;
  letter-spacing: 0.02em;
}
.demo-bar a { color: var(--neon); text-decoration: none; font-weight: 600; }
.demo-bar a:hover { text-decoration: underline; }

/* ─── HEADER / NAV ─── */
header {
  background: var(--green);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-wrap {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
}
.logo {
  font-size: 1.35rem; font-weight: 800; color: var(--white);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 32px; height: 32px; flex-shrink: 0;
}
.logo span { color: var(--neon); }

/* Checkbox-hack mobile menu */
#nav-toggle { display: none; }
.nav-label {
  display: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav-label span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: 0.3s;
}
nav ul {
  list-style: none; display: flex; gap: 4px;
}
nav ul li a {
  color: #c8e6c9; text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a.active {
  background: var(--neon); color: var(--green-dark);
}

@media (max-width: 700px) {
  .nav-label { display: flex; }
  nav {
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--green-dark);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  #nav-toggle:checked ~ nav { max-height: 300px; }
  nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  nav ul li a { display: block; padding: 12px 24px; border-radius: 0; }
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, #558b2f 100%);
  color: var(--white);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(118,255,3,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(118,255,3,0.08) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: var(--neon); color: var(--green-dark);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  padding: 4px 14px; border-radius: 20px; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--neon); font-style: normal; }
.hero p {
  font-size: 1.1rem; color: #c8e6c9; max-width: 520px; margin: 0 auto 28px;
}
.btn {
  display: inline-block; padding: 12px 28px;
  border-radius: 30px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-neon { background: var(--neon); color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--neon); color: var(--neon); }
.btn-green { background: var(--green); color: var(--white); }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero decorative leaves */
.hero-deco {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 800px; opacity: 0.15;
}

/* ─── CONTAINER ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ─── SECTION TITLES ─── */
.section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--green-dark);
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.section-title span { color: var(--green); }
.section-sub { color: var(--text-muted); margin-bottom: 32px; font-size: 0.97rem; }
.section-header { margin-bottom: 32px; }

/* ─── FEATURED POSTS ─── */
.featured { padding: 60px 0; }
.posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* Post card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(46,125,50,0.15); }

.card-thumb {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; flex-shrink: 0;
}
.card-thumb.t1 { background: linear-gradient(135deg, #1b5e20, #388e3c); }
.card-thumb.t2 { background: linear-gradient(135deg, #33691e, #558b2f); }
.card-thumb.t3 { background: linear-gradient(135deg, #004d40, #00796b); }
.card-thumb.t4 { background: linear-gradient(135deg, #1a237e, #283593); }
.card-thumb.t5 { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.card-thumb.t6 { background: linear-gradient(135deg, #bf360c, #e64a19); }
.card-thumb.t7 { background: linear-gradient(135deg, #0d47a1, #1565c0); }
.card-thumb.t8 { background: linear-gradient(135deg, #37474f, #546e7a); }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--bg2); color: var(--green);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--green); }
.card p { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; font-size: 0.78rem; color: #78909c;
}
.card-meta svg { width: 13px; height: 13px; }

/* Featured large card */
.card-featured .card-thumb { aspect-ratio: 16/8; }
.card-featured .card-body { padding: 24px; }
.card-featured h3 { font-size: 1.3rem; }
.card-featured p { font-size: 0.93rem; }

/* Side list */
.side-cards { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; gap: 0; overflow: hidden;
  transition: transform 0.2s; align-items: stretch;
}
.side-card:hover { transform: translateX(3px); }
.side-card .card-thumb { width: 90px; aspect-ratio: auto; flex-shrink: 0; }
.side-card .card-body { padding: 14px; }
.side-card h3 { font-size: 0.88rem; }
.side-card p { display: none; }

/* ─── CATEGORIES STRIP ─── */
.categories { padding: 40px 0; background: var(--green); }
.categories .section-title { color: var(--white); }
.categories .section-sub { color: #c8e6c9; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.cat-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px; padding: 16px 12px;
  text-align: center; text-decoration: none;
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cat-chip:hover { background: var(--neon); color: var(--green-dark); transform: translateY(-2px); }
.cat-chip svg { width: 28px; height: 28px; }

/* ─── SUBSCRIBE ─── */
.subscribe { padding: 60px 20px; background: linear-gradient(135deg, #1b5e20, #2e7d32); text-align: center; }
.subscribe h2 { font-size: 1.8rem; color: var(--white); font-weight: 800; margin-bottom: 10px; }
.subscribe p { color: #c8e6c9; margin-bottom: 24px; }
.sub-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.sub-form input[type=email] {
  flex: 1; min-width: 200px; padding: 12px 18px;
  border: 2px solid rgba(255,255,255,0.3); border-radius: 30px;
  background: rgba(255,255,255,0.1); color: var(--white);
  font-size: 0.95rem; outline: none;
}
.sub-form input::placeholder { color: rgba(255,255,255,0.5); }
.sub-form input:focus { border-color: var(--neon); }

/* ─── ARTIKEL LIST PAGE ─── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white); padding: 50px 20px 40px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: #c8e6c9; }

.articles-section { padding: 60px 0; }
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  padding: 7px 18px; border-radius: 20px; font-size: 0.84rem; font-weight: 600;
  border: 2px solid var(--green); background: transparent; color: var(--green);
  cursor: pointer; transition: 0.2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--green); color: var(--white); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ─── DETAIL PAGE ─── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 60px 0;
}
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
}
.article-main {}
.article-header { margin-bottom: 32px; }
.article-cat { /* reuse card-cat */ }
.article-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900; line-height: 1.25; color: var(--green-dark);
  margin: 12px 0;
}
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px;
  align-items: center;
}
.article-meta svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }
.article-thumb {
  width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
}
.article-thumb .card-thumb { aspect-ratio: 16/7; font-size: 5rem; }
.article-body { font-size: 1rem; line-height: 1.85; }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 1.3rem; color: var(--green-dark); margin: 28px 0 12px; font-weight: 800; }
.article-body blockquote {
  border-left: 4px solid var(--neon); padding: 12px 20px;
  background: var(--bg2); border-radius: 0 8px 8px 0; margin: 20px 0;
  font-style: italic; color: var(--text-muted);
}
.article-tags { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: var(--bg2); color: var(--green);
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  text-decoration: none;
}

/* Sidebar */
.sidebar {}
.sidebar-widget {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 24px;
}
.widget-title {
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--green); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--bg2);
}
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.recent-list li { display: flex; gap: 12px; align-items: flex-start; }
.recent-list .r-thumb {
  width: 56px; height: 42px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.recent-list .r-title { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.recent-list .r-title a { text-decoration: none; color: inherit; }
.recent-list .r-title a:hover { color: var(--green); }
.recent-list .r-date { font-size: 0.75rem; color: var(--text-muted); }

.tag-cloud { display: flex; gap: 8px; flex-wrap: wrap; }

/* Related articles */
.related { padding: 40px 0 60px; border-top: 2px solid var(--bg2); margin-top: 20px; }
.related h2 { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); margin-bottom: 24px; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}

/* ─── TENTANG PAGE ─── */
.about-section { padding: 60px 0; }
.about-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start;
}
@media (max-width: 750px) {
  .about-grid { grid-template-columns: 1fr; }
}
.author-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; text-align: center;
}
.avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden;
  border: 4px solid var(--neon);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
}
.author-name { font-size: 1.2rem; font-weight: 800; color: var(--green-dark); }
.author-role { font-size: 0.85rem; color: var(--text-muted); margin: 4px 0 16px; }
.author-socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social-btn {
  background: var(--bg2); color: var(--green); padding: 7px 14px;
  border-radius: 20px; text-decoration: none; font-size: 0.8rem; font-weight: 600;
  transition: 0.2s;
}
.social-btn:hover { background: var(--green); color: var(--white); }

.about-content {}
.about-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; }
.mission-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.mission-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg2); border-radius: 10px; padding: 14px 16px;
}
.mission-list li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px; margin-top: 32px;
}
.stat-box {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 900; color: var(--green); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.team-section { padding: 0 0 60px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.team-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; text-align: center;
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}

/* ─── KONTAK PAGE ─── */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 750px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form-wrap h2 { font-size: 1.4rem; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 2px solid #c8e6c9; border-radius: 10px;
  background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 0.95rem; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info h2 { font-size: 1.4rem; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; }
.info-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.info-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg2); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }
.info-text strong { display: block; font-size: 0.88rem; color: var(--green-dark); }
.info-text span { font-size: 0.85rem; color: var(--text-muted); }

.collab-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius); padding: 28px; color: var(--white); margin-top: 24px;
}
.collab-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.collab-box p { font-size: 0.88rem; color: #c8e6c9; margin-bottom: 14px; }
.collab-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.collab-list li { font-size: 0.85rem; color: #c8e6c9; display: flex; align-items: center; gap: 8px; }
.collab-list li::before { content: '✓'; color: var(--neon); font-weight: 800; }

/* ─── FOOTER ─── */
footer {
  background: var(--green-dark); color: #c8e6c9;
  padding: 48px 0 0;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 12px; display: inline-flex; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; opacity: 0.8; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neon); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: #c8e6c9; text-decoration: none; font-size: 0.85rem; opacity: 0.85; transition: 0.2s; }
.footer-col ul li a:hover { color: var(--neon); opacity: 1; }
.footer-bottom {
  text-align: center; padding: 18px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem; opacity: 0.6; margin-top: 40px;
}

/* ─── UTILITIES ─── */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem; color: var(--text-muted); padding: 14px 0;
  display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.5; }

/* Alert / notice */
.notice {
  background: #e8f5e9; border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0; padding: 14px 18px;
  font-size: 0.88rem; color: var(--text); margin-bottom: 20px;
}

/* Success msg */
.success-msg {
  display: none; background: #e8f5e9; border: 2px solid var(--green);
  border-radius: 10px; padding: 14px 18px; color: var(--green-dark);
  font-weight: 600; margin-top: 14px;
}

/* ─── SVG icons color helpers ─── */
.icon-green { color: var(--green); fill: var(--green); }
.icon-neon { color: var(--neon); fill: var(--neon); }
.icon-white { fill: var(--white); }
