@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f0f4f1;
  --surface: #ffffff;
  --surface2: #f7faf8;
  --text: #111c13;
  --muted: #556657;
  --primary: #1e7a3a;
  --primary-dark: #155c2b;
  --primary-light: #e4f4ea;
  --accent: #f0a500;
  --border: #d6e5d9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(21, 92, 43, 0.10);
  --shadow-lg: 0 12px 40px rgba(21, 92, 43, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214,229,217,0.7);
  box-shadow: 0 2px 12px rgba(21,92,43,0.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.menu a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.menu .nav-admin a {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
}

.menu .nav-admin a:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d3b1e 0%, #1a5c30 50%, #2e8a4a 100%);
  color: #fff;
  padding: 90px 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(100,210,130,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero h1 span { color: #7ae89a; }

.hero-desc {
  margin: 0 0 32px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

.btn-white:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.18); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ── HERO SLIDER ── */
.hero-slider-wrap {
  flex: 0 0 420px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  aspect-ratio: 4/3;
  align-self: center;
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.65,0,0.35,1);
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.sdot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── SECTIONS ── */
.section { padding: 64px 0 0; }
.section-last { padding-bottom: 72px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover { color: var(--primary-dark); }

/* ── TOPIC CARDS ── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: default;
}

.topic-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.topic-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.topic-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.topic-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── POST CARDS ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.post-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.post-image-placeholder {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #e4f4ea 0%, #c8e8d2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fff3d0;
  color: #7a5200;
  padding: 3px 9px;
  border-radius: 999px;
}

.post-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.post-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.15s;
}

.post-card .read-more:hover { gap: 8px; color: var(--primary-dark); }

/* ── ABOUT ── */
.about-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 32px;
}

.about-box-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.about-box h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.about-box p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
}

/* ── FOOTER ── */
.footer {
  margin-top: 64px;
  background: #0d1f11;
  color: rgba(255,255,255,0.55);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

.footer-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.85;
}

.footer p { margin: 0; font-size: 0.86rem; }

/* ── POST CARD CURSOR ── */
.post-card {
  cursor: pointer;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 20, 12, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px 0 0;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  color: #334d37;
}

.modal-close-btn:hover {
  background: #fff;
  transform: scale(1.12);
}

.modal-inner { clear: both; }

.modal-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}

.modal-hero-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e4f4ea 0%, #c0e0cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-radius: 20px 20px 0 0;
}

.modal-body {
  padding: 28px 32px 36px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modal-date {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.modal-title {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--text);
}

.modal-excerpt {
  margin: 0 0 24px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-content-body {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #2a3b2c;
}

.modal-content-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--text);
}

.modal-content-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--primary-dark);
}

.modal-content-body p { margin: 0 0 14px; }

.modal-content-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.modal-content-body li {
  margin-bottom: 6px;
}

.modal-content-body strong { color: var(--text); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s;
}

.hamburger:hover { background: var(--primary-light); }

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero { padding: 50px 0 60px; }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .hero-slider-wrap {
    flex: none;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 640px) {
  .hamburger { display: flex; }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    gap: 4px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .menu.open { display: flex; }

  .menu a {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 10px;
    color: var(--text);
  }

  .menu a:hover { background: var(--primary-light); }

  .navbar { position: relative; }

  .section-header { flex-direction: column; gap: 8px; }
  .about-box { flex-direction: column; padding: 32px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
