@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Core Brand Colors */
  --green:     #338D24;
  --green-l:   #3fa32d;
  --green-d:   #2a7a1d;
  --green-dd:  #1e5c14;

  /* Base Layout Tokens */
  --bg:        #f3f2ef;
  --bg-white:  #ffffff;
  --bg-card:   #ffffff;
  --bg-alt:    #F3F4ED; /* For light secondary sections */
  --text:      #1a1d24;
  --text-2:    #52565e;
  --text-3:    #8e95a5;
  --border:    #e4e7ed;
  --border-l:  #eef0f4;

  --shadow:    0 1px 3px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.03);

  --radius:    16px;
  --radius-sm: 12px;
  --radius-xs: 6px;
  --tr:        .3s cubic-bezier(.4,0,.2,1);
  --nav-h:     64px;
  --max-w:     1280px;
  --accent:    #FF5A36;
  --hero-bg:   linear-gradient(135deg, var(--green-dd) 0%, var(--green) 100%);

  /* Theme Toggle */
  --toggle-bg: #f1f5f9;
  --toggle-hover: #e2e8f0;

  /* Navbar & Dropdown Colors */
  --nav-bg: #ffffff;
  --nav-text: #1e293b;
  --nav-text-muted: #64748b;
  --nav-border: #e2e8f0;
  --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --nav-shadow-scroll: 0 4px 20px rgba(0, 0, 0, 0.08);

  /* Brand */
  --brand-primary: #1a365d;
  --brand-accent: #2d8a4e;

  /* Dropdown */
  --dropdown-bg: #ffffff;
  --dropdown-border: #e2e8f0;
  --dropdown-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  --dropdown-link-hover: #f8fafc;
  --dropdown-text: #334155;
  --dropdown-text-hover: #338D24; /* Brand Green */

  /* Mega Menu */
  --mega-bg: #ffffff;
  --mega-sidebar-bg: #f8fafc;
  --mega-content-bg: #ffffff;
  --mega-text: #475569;
  --mega-text-hover: #338D24;
  --mega-heading: #1e293b;
  --mega-category-active: #338D24;
  --mega-border: rgba(0, 0, 0, 0.08);
  --mega-accent-bar: linear-gradient(to right, #338D24, #3fa32d);
}

/* Dark Theme */
[data-theme="dark"] {
    /* Global Overrides */
    --bg:        #1f1f1f; /* Shared bg for Berita, Artikel, Galeri, Video */
    --bg-white:  #0b0b0b; /* Shared bg for Agenda, Link (Originally white sections) */
    --bg-card:   #2b2b2b; /* Elevated card surface */
    --bg-alt:    #1f1f1f; /* Same as --bg as per request */
    --text:      #fdfdfd;
    --text-2:    #bbbbbb;
    --text-3:    #888888;
    --border:    rgba(255, 255, 255, 0.12);
    --border-l:  rgba(255, 255, 255, 0.06);

    --shadow:    0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);

    --green:     #338D24; /* Keep original brand green */
    --green-l:   #3fa32d;
    --green-d:   #2a7a1d;

    /* Navbar & Dropdown Dark Overrides */
    --nav-bg: #121212;
    --nav-text: #e2e8f0;
    --nav-text-muted: #94a3b8;
    --nav-border: #252525;
    --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --nav-shadow-scroll: 0 4px 20px rgba(0, 0, 0, 0.6);

    --brand-primary: #e2e8f0;

    --dropdown-bg: #181818;
    --dropdown-border: #252525;
    --dropdown-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.5);
    --dropdown-link-hover: #222222;
    --dropdown-text: #cbd5e1;
    --dropdown-text-hover: var(--green);

    --mega-bg: #181818;
    --mega-sidebar-bg: #181818;
    --mega-content-bg: #222222;
    --mega-text: #94a3b8;
    --mega-text-hover: var(--green);
    --mega-heading: #e2e8f0;
    --mega-category-active: var(--green);
    --mega-border: rgba(255, 255, 255, 0.05);

    --toggle-bg: #181818;
    --toggle-hover: #252525;
    --hero-bg:   linear-gradient(135deg, var(--green-dd) 0%, var(--green) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: clamp(0.875rem, 0.4vw + 0.8rem, 1rem); /* Fluid body text */
}

a { color: var(--green); text-decoration: none; transition: var(--tr); }
a:hover { color: var(--green-d); }
img { display: block; max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 10px; }

/* ==============================
   NAVBAR
   ============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    box-shadow: var(--nav-shadow-scroll);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
}

/* ---- Brand ---- */
.nav-brand {
    flex-shrink: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 42px;
    width: auto;
    display: block;
    transition: var(--tr);
}

.brand-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--nav-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Nav Links ---- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-text);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--dropdown-text-hover);
    background: rgba(45, 138, 78, 0.06);
}

.dropdown-arrow {
    transition: transform 0.3s ease, color 0.3s ease;
    opacity: 0.6;
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--dropdown-text-hover);
}

/* ---- Right Section ---- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--toggle-bg);
    color: var(--nav-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--toggle-hover);
}

.icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: block;
}

/* ==============================
   DROPDOWN MENUS
   ============================== */
.dropdown-menu {
    position: absolute;
    top: calc(100%);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 14px;
    box-shadow: var(--dropdown-shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
}

.nav-item.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Invisible bridge to prevent menu from closing */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
}

.dropdown-link {
    display: block;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 450;
    color: var(--dropdown-text);
    border-radius: 8px;
    transition: all 0.15s ease;
    position: relative;
    text-decoration: none;
}

.dropdown-link:hover {
    color: var(--dropdown-text-hover);
    background: var(--dropdown-link-hover);
    padding-left: 20px;
}

.dropdown-link:hover::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--dropdown-text-hover);
    border-radius: 2px;
}

/* Dropdown with separator between columns */
.dropdown-column + .dropdown-column {
    border-top: 1px solid var(--dropdown-border);
    margin-top: 4px;
    padding-top: 4px;
}

/* ==============================
   NESTED SUB-DROPDOWN
   ============================== */
.dropdown-nested {
    min-width: 220px;
}

.dropdown-item-nested {
    position: relative;
}

.dropdown-link.has-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
}

.dropdown-link.has-sub svg {
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dropdown-item-nested:hover > .dropdown-link.has-sub {
    color: var(--dropdown-text-hover);
    background: var(--dropdown-link-hover);
}

.dropdown-item-nested:hover > .dropdown-link.has-sub svg {
    opacity: 1;
    color: var(--dropdown-text-hover);
    transform: translateX(2px);
}

/* Prevent the green bar from showing on has-sub links */
.dropdown-link.has-sub:hover::before {
    display: none;
}

.dropdown-link.has-sub:hover {
    padding-left: 14px;
}

/* Sub-dropdown flyout */
.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 180px;
    background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 12px;
    box-shadow: var(--dropdown-shadow);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 110;
}

.dropdown-item-nested:hover > .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Invisible bridge between parent item and sub-dropdown */
.sub-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 8px;
    height: 100%;
}

/* ==============================
   MEGA MENU
   ============================== */
.mega-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--mega-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 99;
    border-top: 3px solid transparent;
    border-image: var(--mega-accent-bar) 1;
}

.nav-item.has-megamenu:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    min-height: 280px;
}

/* ---- Mega Sidebar ---- */
.mega-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--mega-sidebar-bg);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid var(--mega-border);
}

.mega-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mega-text);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mega-category:hover {
    color: var(--mega-category-active);
    background: rgba(45, 138, 78, 0.06);
}

.mega-category.active {
    color: var(--mega-category-active);
    background: rgba(45, 138, 78, 0.12);
    font-weight: 600;
}

.mega-category svg {
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.mega-category:hover svg,
.mega-category.active svg {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Mega Content ---- */
.mega-content {
    flex: 1;
    background: var(--mega-content-bg);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.mega-panel {
    display: none;
    gap: 40px;
    animation: megaFadeIn 0.25s ease forwards;
}

.mega-panel.active {
    display: flex;
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mega-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--mega-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--mega-border);
}

.mega-link {
    display: block;
    padding: 7px 0;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--mega-text);
    position: relative;
    padding-left: 0;
    text-decoration: none;
}

.mega-link:hover {
    color: var(--mega-text-hover);
    padding-left: 10px;
}

.mega-link:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background: var(--mega-text-hover);
    border-radius: 2px;
}

/* Mobile Icon (hidden on desktop) */
.mobile-nav-icon {
    display: none;
}

/* ==========================================
   HERO SECTION — Solid Green + Particles
   ========================================== */
.hero {
  margin-top: var(--nav-h);
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 160px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}



/* ===== Neuron Canvas ===== */
.neuron-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* Allow mouse events on the hero for canvas interaction */
.hero { pointer-events: auto; }

/* ===== Hero Content ===== */
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 50px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.85);
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
  letter-spacing: .3px;
}

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7cfc00;
  animation: dot-blink 2s infinite;
  box-shadow: 0 0 8px rgba(124,252,0,.5);
}

@keyframes dot-blink { 50% { opacity: .3; } }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.03em;
  color: #fff; margin-bottom: 20px;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: -4px; right: -4px;
  height: 8px;
  background: rgba(255,255,255,.4);
  border-radius: 4px;
  z-index: -1;
}

.hero-desc {
  font-size: .95rem; color: rgba(255,255,255,.6);
  max-width: 520px; margin: 0 auto 32px; line-height: 1.8;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 14px;
  background: #fff;
  color: var(--green);
  font-weight: 700; font-size: .88rem;
  border: none; cursor: pointer; transition: var(--tr);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  color: var(--green);
}

.btn-primary svg { transition: var(--tr); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: var(--tr);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Feature Cards (Overlapping) ---------- */
.features-bar {
  position: relative; z-index: 5;
  margin-top: -120px;
  padding: 0 32px 60px;
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.feature-card {
  padding: 40px 36px;
  position: relative;
  transition: var(--tr);
}

.feature-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%; bottom: 20%; right: 0;
  width: 1px;
  background: var(--border);
}

.feature-card:hover { background: rgba(51,141,36,.02); }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-icon.fi-1 { background: rgba(51,141,36,.08); color: var(--green); }
.feature-icon.fi-2 { background: rgba(51,141,36,.08); color: var(--green); }
.feature-icon.fi-3 { background: rgba(51,141,36,.08); color: var(--green); }

.feature-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}

.feature-card p {
  font-size: .84rem; color: var(--text-2); line-height: 1.7;
}

/* ==========================================
   PAGE SECTIONS & UTILS
   ========================================== */
.container {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}
.page-section { padding: 60px 0; }

.intro-heading {
  text-align: center; max-width: 600px; margin: 80px auto 40px; padding: 0 20px;
}
.intro-heading h2 {
  font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1.4; letter-spacing: -.02em;
}

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px;
}
.sh-title { display: flex; align-items: center; gap: 12px; }
.sh-line { width: 4px; height: 32px; background: var(--accent); border-radius: 2px; }
.sh-title h2 { font-size: 1.8rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; text-transform: uppercase; line-height: 1; margin: 0; }
.sh-link { font-size: .85rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.sh-link:hover { color: #d94220; }

.btn-outline-accent {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border: 1px solid var(--accent); border-radius: 6px;
  color: var(--accent); font-weight: 700; font-size: .85rem; background: transparent; transition: var(--tr);
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

/* ---------- Berita Section ---------- */
.berita-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
}
.b-col-left { display: flex; flex-direction: column; gap: 24px; }
.b-col-right { display: flex; flex-direction: column; }

/* Large Card */
.b-card-lg {
  position: relative; border-radius: 12px; overflow: hidden; background: #000; display: flex;
}
.b-card-lg img { width: 100%; height: 380px; object-fit: cover; transition: var(--tr); opacity: .85; }
.b-card-lg:hover img { transform: scale(1.05); opacity: .7; }
.b-card-lg-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: #fff; pointer-events: none;
}
.b-card-lg-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.b-badge-blue { background: #e0f2fe; color: #0369a1; padding: 4px 16px; border-radius: 20px; font-size: .65rem; font-weight: 700; }
.b-card-lg .b-date { font-size: .75rem; color: rgba(255,255,255,.9); font-weight: 500;}
.b-card-lg .b-title { font-size: 1.3rem; font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.b-card-lg .b-excerpt { font-size: .8rem; color: rgba(255,255,255,.8); line-height: 1.5; }

/* 2 Small Cards Grid */
.b-sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.b-card-md { display: flex; flex-direction: column; gap: 12px; }
.b-card-md img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.b-badge-red { background: #fee2e2; color: #dc2626; padding: 4px 16px; border-radius: 20px; font-size: .65rem; font-weight: 700; align-self: flex-start; }
.b-card-md .b-title { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.4; }
.b-card-md .b-excerpt { font-size: .8rem; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-card-md .b-date { font-size: .7rem; color: var(--text-3); font-weight: 500; }

/* Right Column List */
.b-list-item { padding: 20px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.b-list-item:first-child { padding-top: 0; }
.b-list-item:last-child { border-bottom: none; }
.b-list-item .b-badge-red { align-self: flex-start; }
.b-list-item .b-title { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.4; }
.b-list-item .b-excerpt { font-size: .8rem; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-list-item .b-date { font-size: .7rem; color: var(--text-3); font-weight: 500; }

/* ---------- Agenda Section ---------- */
.section-agenda { background: var(--bg-white); padding: 100px 0; }
.agenda-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 80px; align-items: stretch;
}
.agenda-left { display: flex; flex-direction: column; align-items: flex-start; }
.agenda-desc { font-size: .85rem; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }

.agenda-cards {
  display: flex; gap: 20px; overflow-x: auto; padding: 10px 10px 20px 0;
  scroll-snap-type: x mandatory;
}
.agenda-cards::-webkit-scrollbar { height: 6px; }
.agenda-cards::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 4px; }
.agenda-cards::-webkit-scrollbar-track { background: transparent; }

.a-card {
  flex: 0 0 240px; scroll-snap-align: start;
  background: var(--bg-alt); border-radius: 6px; padding: 24px;
  display: flex; flex-direction: column; position: relative;
  transition: var(--tr); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.a-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--bg-card); }

.a-date { display: flex; flex-direction: column; margin-bottom: 16px; }
.a-m { font-size: 1.1rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.a-d { font-size: 2.2rem; font-weight: 800; color: var(--text); line-height: 1; margin: 4px 0; }
.a-y { font-size: 1.1rem; font-weight: 600; color: var(--text); line-height: 1.2; }

.a-title { font-size: .85rem; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 16px; }
.a-divider { width: 100%; height: 1px; background: var(--border); margin-bottom: 16px; }

.a-meta { font-size: .75rem; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.a-link { font-size: .75rem; font-weight: 700; color: var(--text); align-self: flex-end; transition: var(--tr); }
.a-card:hover .a-link { color: var(--accent); }

/* ---------- Artikel Section ---------- */
.section-artikel { background: var(--bg-alt); padding: 80px 0; }
.artikel-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.artikel-subheading { font-size: .95rem; color: var(--text-2); max-width: 600px; line-height: 1.6; }
.sh-link-accent { font-size: 1rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.artikel-grid {
  display: flex; gap: 30px; overflow-x: auto; padding: 10px 10px 40px 0;
  scroll-snap-type: x mandatory;
}
.artikel-grid::-webkit-scrollbar { height: 6px; }
.artikel-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.artikel-grid::-webkit-scrollbar-track { background: transparent; }

.ar-card {
  flex: 0 0 350px; scroll-snap-align: start;
  background: var(--bg-card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  transition: var(--tr); border: 1px solid var(--border); display: flex; flex-direction: column;
}
.ar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.ar-img { width: 100%; height: 200px; object-fit: cover; }
.ar-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.ar-badge-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ar-badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: .65rem; font-weight: 700;
  background: var(--green-l); color: #fff;
}
.ar-date { font-size: .75rem; color: var(--text-3); font-weight: 500; }

.ar-title { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.4; margin-bottom: 12px; }
.ar-excerpt { font-size: .85rem; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ar-footer {
  border-top: 1px solid var(--border-l); padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.ar-author, .ar-views { font-size: .75rem; font-weight: 500; color: var(--text-3); }

/* ---------- Galeri Section V2 (Scattered Grid) ---------- */
.section-galeri {
  background: var(--bg-alt);
  padding: 100px 0;
  overflow: hidden;
}

.galeri-v2-header {
  position: absolute;
  top: 0px;
  left: 104px;
  z-index: 10;
  max-width: 600px;
}

.gv2-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.gv2-accent {
  width: 5px;
  height: 32px;
  background: #EE5A36;
  border-radius: 2px;
  flex-shrink: 0;
}

.gv2-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.gv2-desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 600px;
  margin-left: 21px;
}

.galeri-v2-wrapper {
  position: relative;
  max-width: 1440px;
  height: 800px; /* Base height for absolute spacing */
  margin: 0 auto;
}

.gal-v2-item {
  position: absolute;
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gal-v2-item:hover {
  transform: scale(1.03) translateY(-5px);
  z-index: 10;
}

.gal-v2-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Specific Positions (based on 1440px layout) */
.g-item-1 { width: 299px; height: 359px; left: 104px; top: 180px; }
.g-item-2 { width: 265px; height: 312px; left: 1072px; top: 120px; }
.g-item-3 { width: 295px; height: 215px; left: 839px; top: 450px; }
.g-item-4 { width: 312px; height: 430px; left: 739px; top: 0px; }
.g-item-5 { width: 392px; height: 264px; left: 426px; top: 450px; }
.g-item-6 { width: 290px; height: 260px; left: 426px; top: 170px; }

.galeri-v2-footer {
  text-align: right;
  max-width: 1440px;
  margin: -60px auto 0; /* Pulled up closer to the grid items */
  padding: 0 100px;
  position: relative;
  z-index: 10;
}

.see-all-v2 {
  color: #EE5A36;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--tr);
}

.see-all-v2:hover {
  color: #d94c2c;
  filter: brightness(0.9);
}

/* Responsive Handling */
@media (max-width: 1400px) {
  .galeri-v2-wrapper {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px;
  }
  .gal-v2-item {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 300px !important;
  }
  .gal-v2-item.g-item-4 { grid-row: span 2; height: 620px !important; }
}

@media (max-width: 992px) {
  .galeri-v2-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .gv2-title { font-size: 36px; }
  .gv2-desc { font-size: 18px; }
}

@media (max-width: 600px) {
  .galeri-v2-wrapper {
    grid-template-columns: 1fr;
  }
  .galeri-v2-footer { padding: 0 40px; }
}

/* ---------- Video Section ---------- */
.section-video {
  padding: 100px 0 120px; /* Increased top padding for better separation */
  position: relative;
  background: var(--bg);
}

.video-desc { max-width: 500px; margin-bottom: 60px; font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.video-layout { position: relative; max-width: 700px; margin: 0 auto; display: flex; justify-content: center; }
.v-bg-shape-1 {
  position: absolute; top: -30px; left: -60px; width: 180px; height: 140px;
  background: var(--green); border-radius: 20px; z-index: 0;
}
.v-bg-shape-2 {
  position: absolute; bottom: -40px; right: -60px; width: 160px; height: 180px;
  background: var(--green); border-radius: 40px 10px 100px 40px; z-index: 0;
}
.v-bg-shape-3 {
  position: absolute; top: -50px; right: 0; width: 60px; height: 30px;
  background: var(--green); border-radius: 30px; z-index: 0;
}
.v-player {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; background: var(--bg-alt);
  border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden;
}

/* ---------- Link Section ---------- */
.link-section { padding: 80px 0; text-align: center; background: var(--bg-white); }
.link-title { font-size: 1rem; font-weight: 700; color: var(--text-2); margin-bottom: 40px; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.8; }
.link-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto;
}
.link-grid img {
  height: 45px; max-width: 160px; object-fit: contain; opacity: 1; transition: var(--tr);
}
[data-theme="dark"] .link-grid img {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 8px;
}
.link-grid img:hover { transform: scale(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-white); padding: 60px 32px 30px; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.f-brand-box { display: flex; gap: 12px; margin-bottom: 16px; }
.f-logo-square { width: 40px; height: 40px; background: var(--text); display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--bg-white); font-weight: 800; font-size: .8rem; }
.f-brand-title { display: flex; flex-direction: column; justify-content: center; }
.f-name { font-weight: 800; font-size: .95rem; color: var(--text); line-height: 1.2; }
.f-sub { font-weight: 500; font-size: .75rem; color: var(--text-3); }
.f-desc { font-size: .85rem; color: var(--text-2); line-height: 1.6; max-width: 320px; }

.f-col h4 { font-size: .95rem; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.f-col p { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.f-socials { display: flex; gap: 12px; margin-top: 16px; }
.f-soc { width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: var(--bg-white); display: flex; align-items: center; justify-content: center; transition: var(--tr); }
.f-soc:hover { background: var(--green); transform: translateY(-3px); }

.f-bottom { max-width: var(--max-w); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border-l); display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-3); }

/* ---------- Animations ---------- */
.feature-card {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .6s ease forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.feature-card:nth-child(1) { animation-delay: .1s; }
.feature-card:nth-child(2) { animation-delay: .2s; }
.feature-card:nth-child(3) { animation-delay: .3s; }

/* ==========================================
   RESPONSIVE (Mobile Nav)
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --nav-h: 60px;
    --radius: 12px;
  }

  /* Navbar Top Adjustments */
  .logo-icon { width: 36px; height: 36px; }
  .brand-title { font-size: 13px; }
  .brand-sub { font-size: 9px; }

  .navbar {
    top: 0;
    bottom: auto;
    box-shadow: none;
    border-bottom: 1px solid var(--nav-border);
  }

  .navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  /* Floating Bottom Nav Pill */
  .nav-links {
    position: fixed;
    bottom: 24px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 500px;
    background: var(--nav-bg);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    gap: 4px;
    height: auto;
    border-radius: 40px;
    border: 1px solid var(--nav-border);
    z-index: 1000;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item {
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    border-bottom: none;
    position: static;
  }

  .nav-link {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--nav-text-muted);
    gap: 3px;
    line-height: 1.1;
  }

  .mobile-nav-icon {
    width: 22px;
    height: 22px;
    display: block;
  }

  .nav-link .dropdown-arrow {
    display: none;
  }

  .nav-link:hover, .nav-item.mobile-open .nav-link {
    color: var(--brand-accent);
    background: transparent;
  }

  /* Dropdowns reset for mobile: Pop UP vertically */
  .dropdown-menu, .mega-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 90px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 32px) !important;
    max-width: 480px !important;
    max-height: calc(100vh - 150px) !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    border: 1px solid var(--nav-border);
    border-radius: 20px;
    background: var(--nav-bg);
    padding: 16px;
    margin: 0;
    z-index: 1050;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }

  .sub-dropdown {
    position: static;
    width: 100%;
    display: none;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    padding: 8px;
    margin-top: 8px;
    box-shadow: none;
  }

  [data-theme="dark"] .sub-dropdown {
    background: var(--dropdown-link-hover);
  }

  .dropdown-item-nested.mobile-open > .sub-dropdown {
    display: block !important;
    animation: slideDownFade 0.3s ease forwards;
  }

  @keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  [data-theme="dark"] .dropdown-menu,
  [data-theme="dark"] .mega-menu {
    background: var(--dropdown-bg) !important;
  }

  .nav-item.mobile-open > .dropdown-menu,
  .nav-item.mobile-open > .mega-menu {
    display: block !important;
    animation: popUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes popUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .dropdown-link {
    padding: 12px 16px;
    font-size: 15px;
  }

  .mega-menu-inner {
    flex-direction: column;
    min-height: auto;
    padding: 8px 0;
  }
  .mega-sidebar {
    width: 100%;
    border-right: none;
    background: transparent;
  }
  .mega-category {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 15px;
  }
  .mega-category svg {
    transition: transform 0.3s ease;
    opacity: 0.6;
    display: block;
  }
  .mega-category.mobile-active svg {
    transform: rotate(90deg);
    opacity: 1;
  }

  .mega-content { padding: 0; width: 100%; }
  .mega-panel {
    display: none !important;
    flex-direction: column;
    gap: 12px;
    margin: 4px 12px 16px 32px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
  }
  [data-theme="dark"] .mega-panel {
    background: rgba(255, 255, 255, 0.03);
  }

  .mega-panel.mobile-active {
    display: flex !important;
  }

  .container { padding: 0 24px; }
  .page-section { padding: 50px 0; }
  .hide-mobile { display: none; }

  /* Footer Responsive */
  .footer { padding: 40px 24px 100px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .f-brand-box { justify-content: center; }
  .f-desc { margin: 0 auto; }
  .f-socials { justify-content: center; }
  .f-bottom { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
}

/* Mobile Large (up to 768px) */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
  }
}

/* Mobile Small (up to 480px) */
@media (max-width: 480px) {
  .brand-text { display: none; }
  .footer { padding: 32px 16px 110px; }
  .f-name { font-size: 0.85rem; }
  .f-desc { font-size: 0.78rem; }
}

/* ==========================================
   PUBLICATION PAGE STYLES
   ========================================== */

.page-header {
    background: var(--bg-white);
    padding: 164px 0 80px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    /* Grid Pattern with Animation */
    background-image:
        linear-gradient(rgba(149, 149, 149, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(149, 149, 149, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    text-align: left;
}

/* Green Glow Blobs */
.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: #338D24;
    border-radius: 9999px;
    filter: blur(300px);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.page-header::before {
    top: -100px;
    right: -100px;
}

.page-header::after {
    bottom: -150px;
    left: -50px;
    width: 500px;
    height: 500px;
}

.page-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.page-description {
    font-size: 1rem;
    max-width: 650px;
    color: var(--text-2);
    margin-bottom: 32px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-3);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--text-2);
    text-decoration: none;
    transition: all 0.2s;
}

.breadcrumbs a:hover {
    color: var(--green);
}

.breadcrumbs span {
    color: var(--text-3);
    opacity: 0.5;
}

/* Page Layout */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    padding: 60px 0 100px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    display: flex;
    flex-direction: column;
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green);
    display: inline-block;
    align-self: flex-start;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    display: flex;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.search-box input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(51, 141, 36, 0.1);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--green);
    background: var(--green);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: var(--shadow);
}

.search-btn:hover {
    background: var(--green-l);
    border-color: var(--green-l);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-btn:active {
    transform: translateY(0);
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: currentColor;
    stroke: currentColor;
}

/* Widget List Icons */
.widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.widget-list li {
    border-bottom: 1px solid var(--border-l);
}

.widget-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}

.widget-list a svg {
    opacity: 0.5;
    transition: all 0.2s;
}

.widget-list a:hover {
    color: var(--green);
    padding-left: 8px;
}

.widget-list a:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    padding: 6px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-2);
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.tag-item:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(51, 141, 36, 0.15);
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-l);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    min-width: 20px;
}

.recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    transition: 0.2s;
}

.recent-title:hover {
    color: var(--green);
}

.recent-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-3);
}

.r-cat {
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Gallery Grid */
.sidebar-galeri {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.gal-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-alt);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gal-thumb:hover img {
    transform: scale(1.15);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
}

.content-header {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.accent-bar {
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.content-main-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

/* ==========================================
   FEATURED NEWS CARD
   ========================================== */
.news-card-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-l);
}

.news-card-featured:hover {
    transform: translateY(-5px);
}

.featured-img-wrapper {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-featured:hover .featured-img-wrapper img {
    transform: scale(1.05);
}

.featured-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
}

.news-badge {
    background: var(--accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.featured-title {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.featured-title a {
    color: var(--text);
}

.featured-title a:hover {
    color: var(--green);
}

.featured-excerpt {
    font-size: 0.82rem;
    color: var(--text-2);
    margin-bottom: 24px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-3);
}

/* ==========================================
   LATEST NEWS GRID (3-Columns)
   ========================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-l);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease backwards;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-l);
}

.news-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--green);
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.1px;
}

.news-title a {
    color: var(--text);
}

.news-title a:hover {
    color: var(--green);
}

.news-text {
    font-size: 0.78rem;
    color: var(--text-2);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-l);
}

.news-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-3);
}

.read-more {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--green);
    transition: 0.2s;
}

.read-more:hover {
    transform: translateX(4px);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.pg-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.pg-btn:hover:not(:disabled) {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.pg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pg-num.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.pg-dots {
    color: var(--text-3);
    font-weight: 700;
    padding: 0 4px;
}

/* ==========================================
   LARAVEL PAGINATION STYLING
   ========================================== */
.of-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 24px 0;
}

.of-pagination__info {
    color: var(--text-2);
    font-size: 0.9rem;
    text-align: center;
}

.of-pagination__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.of-pg-item {
    display: flex;
}

.of-pg-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-2);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.of-pg-link:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    transform: translateY(-2px);
}

.of-pg-item--active .of-pg-link {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    cursor: default;
}

.of-pg-item--disabled .of-pg-link {
    opacity: 0.4;
    cursor: not-allowed;
    color: var(--text-3);
}

.of-pg-item--disabled .of-pg-link:hover {
    background: var(--bg-white);
    color: var(--text-3);
    border-color: var(--border);
    transform: none;
}

/* ==========================================
   AGENDA ITEM STYLING
   ========================================== */
.agenda-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-l);
    transition: all 0.3s ease;
}

.agenda-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-l);
}

.agenda-date {
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.agenda-date__day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    margin-bottom: 2px;
}

.agenda-date__month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-3);
}

.agenda-content {
    flex: 1;
}

.agenda-status {
    margin-bottom: 6px;
    display: inline-block;
}

.agenda-title {
    margin: 4px 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.agenda-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.agenda-title a:hover {
    color: var(--green);
}

.agenda-meta {
    color: var(--text-2);
    font-size: 0.85rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.agenda-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.agenda-range {
    font-size: 0.8rem;
    color: var(--text-3);
    margin-top: 4px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .news-card,
[data-theme="dark"] .news-card-featured,
[data-theme="dark"] .widget-list a:hover,
[data-theme="dark"] .tag-item,
[data-theme="dark"] .pg-btn,
[data-theme="dark"] .search-box input,
[data-theme="dark"] .search-btn {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .news-card:hover,
[data-theme="dark"] .news-card-featured:hover {
    border-color: var(--green);
}

[data-theme="dark"] .featured-content {
    background: #1a1a1a;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .page-header { padding: 60px 20px 40px; }
    .page-title { font-size: 2.2rem; }
    .page-layout { grid-template-columns: 1fr; gap: 40px; }
    .sidebar { order: 2; }
    .main-content { order: 1; }
    .news-card-featured { grid-template-columns: 1fr; }
    .featured-img-wrapper { min-height: 220px; }
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .page-title { font-size: 1.8rem; }
    .featured-title { font-size: 1.2rem; }
}

/* ==========================================
   ARTICLE DETAIL STYLES
   ========================================== */
.article-container {
    max-width: 1100px;
    margin: 0 auto;
}

.article-detail {
    background: transparent;
    padding: 0;
    margin-bottom: 60px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-detail-title {
    font-size: clamp(1.7rem, 3.2vw, 2.1rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.03em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-meta-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-2);
    font-weight: 700;
}

.meta-item svg {
    color: var(--green);
    opacity: 0.9;
}

.article-featured-img {
    position: relative;
    max-width: 820px; /* Constrained for refined look */
    margin: 0 auto 15px;
    border-radius: 20px; /* Matches g.css card radius */
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.img-caption-overlay {
    display: block;
    max-width: 820px;
    margin: 0 auto 20px;
    padding-left: 18px;
    border-left: 4px solid var(--green);
    color: var(--text-3);
    font-size: 0.82rem;
    font-weight: 600;
}

.article-body p {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 20px;
    text-align: justify;
}

.article-body p:first-of-type::first-letter {
    font-size: 3.8rem;
    font-weight: 900;
    float: left;
    margin-right: 15px;
    line-height: 0.85;
    color: var(--green);
    text-transform: uppercase;
    margin-top: 5px;
}

/* Share & Comments Header */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-l);
}

.detail-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--green);
    border-radius: 2px;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
}

.share-links {
    display: flex;
    gap: 12px;
}

.share-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px; /* Matches g.css button radius */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-icon.fb { background: #1877f2; }
.share-icon.tw { background: #1da1f2; }

.share-icon:hover {
    transform: translateY(-5px) rotate(5deg);
    filter: brightness(1.1);
}

.comments-section {
    margin-bottom: 25px;
}

.no-comments {
    color: var(--text-3);
    font-size: 0.95rem;
    font-style: italic;
    padding: 15px 20px;
    text-align: center;
    background: var(--bg-alt);
    border-radius: 20px;
}

.write-comment-section {
    margin-top: 30px;
    padding-top: 40px;
    border-top: 1px solid var(--border-l);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid var(--border);
    border-radius: 14px; /* Matches g.css pattern */
    background: var(--bg-white);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.3s;
}

.comment-form textarea {
    min-height: 180px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(51, 141, 36, 0.1);
}

.btn-submit {
    background: var(--green);
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 14px; /* Matches g.css button pattern */
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    align-self: center;
    box-shadow: 0 4px 15px rgba(51, 141, 36, 0.2);
}

.btn-submit:hover {
    background: var(--green-d);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(51, 141, 36, 0.3);
}

.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-l);
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green);
    font-weight: 800;
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-10px);
}

/* ------------------------------------------
   RESPONSIVE OVERRIDES
   ------------------------------------------ */
@media (max-width: 1024px) {
  .page-header { padding: 124px 24px 40px; }
  .page-title { font-size: clamp(1.8rem, 4vw + 1rem, 2.2rem); }
  .page-description { font-size: 0.85rem; }

  .page-layout { grid-template-columns: 1fr; gap: 40px; padding: 40px 5px 80px; }
  .sidebar { order: 2; border-right: none; padding-right: 0; padding-top: 50px; border-top: 1px solid var(--border); }
  .main-content { order: 1; padding-left: 0; }

  /* Sidebar categories to row layout */
  .widget-list { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .widget-list li { border-bottom: none; }
  .widget-list a {
    background: var(--bg-alt);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
  }
  [data-theme="dark"] .widget-list a { background: #2b2b2b; }
  .widget-list a:hover { padding-left: 16px; transform: translateY(-2px); }

  .footer { padding: 32px 24px 90px; margin-top: 50px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }

  /* --- Mobile Navigation (Bottom Pill) --- */
  .nav-links {
    position: fixed;
    bottom: 24px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 500px;
    background: var(--nav-bg);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    gap: 4px;
    height: auto;
    border-radius: 40px;
    border: 1px solid var(--nav-border);
    z-index: 2000;
    display: flex !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="dark"] .nav-links {
    background: var(--nav-bg);
    border-color: var(--nav-border);
  }

  .nav-item {
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    border-bottom: none;
    position: static;
  }

  .nav-link {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--nav-text-muted);
    gap: 3px;
    line-height: 1.1;
    background: transparent !important;
  }

  .nav-link.active, .nav-item.mobile-open .nav-link {
    color: var(--green); /* Matches brand primary color on green.html */
  }

  .mobile-nav-icon {
    width: 22px;
    height: 22px;
    display: block;
    opacity: 0.8;
  }

  .nav-text {
    font-size: 11px;
    font-weight: 600;
    color: inherit;
  }

  .dropdown-arrow { display: none; }

  /* Dropdowns Pop Up */
  .dropdown-menu, .mega-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 90px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 32px) !important;
    max-width: 480px !important;
    max-height: calc(100vh - 150px) !important;
    overflow-y: auto !important;
    opacity: 0;
    visibility: hidden;
    display: none;
    border-radius: 24px;
    background: var(--nav-bg);
    padding: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    z-index: 2100;
  }

  .nav-item.mobile-open > .dropdown-menu,
  .nav-item.mobile-open > .mega-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    animation: popUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes popUp {
    from { opacity: 0; transform: translateY(20px) translateX(-50%) scale(0.95); }
    to { opacity: 1; transform: translateY(0) translateX(-50%) scale(1); }
  }

  .mega-menu-inner { flex-direction: column; min-height: auto; }
  .mega-sidebar { width: 100%; border-right: none; background: transparent; padding: 0; }
  .mega-content { padding: 0; width: 100%; }
}

@media (max-width: 640px) {
    .nav-links { padding: 8px 12px; bottom: 16px; width: calc(100% - 24px); }
    .nav-link { font-size: 10px; }
    .mobile-nav-icon { width: 20px; height: 20px; }
}

@media (max-width: 768px) {
    .article-detail-title { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .article-meta-detail { gap: 15px; }
    .article-body p:first-of-type::first-letter { font-size: 3.2rem; }
    .comments-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .article-featured-img { border-radius: 14px; }
}

@media (max-width: 480px) {
    .nav-logo-img { height: 34px; }
    .page-title { font-size: 1.8rem; }
    .article-detail-title { font-size: 1.5rem; }
    .meta-item { font-size: 0.75rem; }
    .article-meta-detail { gap: 10px; justify-content: flex-start; }
    .img-caption-overlay { font-size: 0.75rem; }
    .nav-links { padding: 6px 8px; bottom: 12px; border-radius: 32px; width: calc(100% - 32px); max-width: none; }
    .nav-link { font-size: 9px; gap: 2px; }
    .mobile-nav-icon { width: 18px; height: 18px; }
    .footer { padding: 24px 20px 90px; }
    .footer-inner { gap: 20px; }
}

@media (max-width: 400px) {
  .navbar-inner { padding: 0 24px; height: 56px; }
  .nav-logo-img { height: 28px; }
  .page-header { padding: 114px 0 30px; }
  .page-title { font-size: 1.7rem; margin-bottom: 12px; }
  .nav-links { padding: 6px 8px; bottom: 12px; border-radius: 32px; }
  .nav-link { font-size: 9px; gap: 2px; }
  .mobile-nav-icon { width: 18px; height: 18px; }
  .footer { padding: 20px 20px 90px; }
  .f-name { font-size: 0.85rem; }
  .f-desc { font-size: 0.78rem; }
  .f-col h4 { font-size: 0.85rem; margin-bottom: 8px; }
}

@media (max-width: 350px) {
  .container { padding: 20px 15px 50px; }
  .navbar-inner { padding: 0 16px; }
  .footer { padding-left: 16px; padding-right: 16px; }
  .f-name { font-size: 0.8rem; }
  .page-header { padding: 114px 0 30px; }
  .page-title { font-size: 1.6rem; }
}

@media (max-width: 320px) {
  .container { padding: 20px 15px 50px; }
  .navbar-inner { padding: 0 12px; }
  .page-title { font-size: 1.5rem; }
  .page-description { font-size: 0.78rem; min-height: auto; }
  .footer { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 280px) {
  .container { padding: 0 8px; }
  .navbar-inner { padding: 0 8px; }
  .footer { padding-left: 10px; padding-right: 10px; }
  .nav-links { padding: 6px 8px; bottom: 12px; border-radius: 32px; width: calc(100% - 16px); }
  .nav-link { padding: 6px 8px; font-size: 8px; }
  .mobile-nav-icon { width: 16px; height: 16px; }
  .page-title { font-size: 1.35rem; }
  .page-description { font-size: 0.75rem; }
}

@media (max-width: 240px) {
  .container { padding: 20px 15px 50px; }
  .navbar-inner { padding: 0 6px; }
  .footer { padding: 15px 8px 85px; }
  .page-title { font-size: 1.15rem; }
  .page-description { display: none; }
}

@media (max-width: 200px) {
  .container { padding: 20px 15px 50px; }
  .navbar-inner { padding: 0 4px; }
  .page-title { font-size: 1rem; }
  .nav-links { width: calc(100% - 4px); padding: 6px 8px; bottom: 10px; }
  .nav-link { font-size: 7px; }
}

[data-theme="dark"] .no-comments { background: rgba(255,255,255,0.03); }

/* ==========================================
   COMMENT FORM STYLES
   ========================================== */

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.comment-item {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border-l);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.comment-item:hover {
    box-shadow: var(--shadow-lg);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.comment-author {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-3);
    font-weight: 600;
    white-space: nowrap;
}

.comment-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--green);
    margin: 8px 0;
}

.comment-body {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* Comment Form */
.comment-form-wrapper {
    background: var(--bg-alt);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid var(--border-l);
}

.form-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin: 4px 0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    text-transform: capitalize;
}

.required {
    color: var(--accent);
    font-weight: 900;
    margin-left: 2px;
}

.form-control {
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(51, 141, 36, 0.1);
}

.form-control::placeholder {
    color: var(--text-3);
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 18px 0;
    transform: scale(1);
    transform-origin: 0 0;
}

/* Submit Button */
.btn-submit {
    padding: 14px 32px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(51, 141, 36, 0.2);
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--green-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 141, 36, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Dark Mode Comment Form */
[data-theme="dark"] .comment-item {
    background: #2b2b2b;
    border-color: #333;
}

[data-theme="dark"] .comment-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-color: #333;
}

[data-theme="dark"] .form-control {
    background: #1a1a1a;
    border-color: #333;
    color: #fdfdfd;
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(51, 141, 36, 0.2);
}

[data-theme="dark"] .alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: #991b1b;
    color: #fca5a5;
}

[data-theme="dark"] .alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #166534;
    color: #86efac;
}

/* Responsive */
@media (max-width: 1024px) {
    .comments-list {
        gap: 20px;
    }

    .comment-item {
        padding: 20px;
    }

    .comment-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-date {
        margin-top: 4px;
    }

    .comment-form-wrapper {
        padding: 16px;
    }

    .form-group {
        gap: 6px;
    }

    .form-control {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    textarea.form-control {
        min-height: 100px;
    }

    .btn-submit {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
        margin-bottom: 10px;
    }
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* --- Custom Green Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #338D24;
    border-radius: 6px;
    border: 3px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
    background: #286d1c;
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #338D24 #f1f1f1;
}
