@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;
  --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"] {
    --bg:        #1f1f1f;
    --bg-white:  #0b0b0b;
    --bg-card:   #2b2b2b;
    --bg-alt:    #1f1f1f;
    --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);

    /* 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;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

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 32px;
    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 (Standard)
   ============================== */
.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
   ========================================== */
.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% 90%, 0 100%);
  padding: 60px 20px 100px;
  min-height: 480px;
}
.neuron-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.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,0.72); border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.72rem; font-weight: 700; color: #fff; margin-bottom: 24px;
    backdrop-filter: blur(6px);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #7cfc00; animation: dot-blink 2s infinite; }
@keyframes dot-blink { 50% { opacity: 0.3; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: #fff; margin-bottom: 20px; line-height: 1.1; }
.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,0.4); border-radius: 4px; z-index: -1; }
.hero-desc { font-size: 0.95rem; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto; line-height: 1.8; }

/* Publication Header */

/* ==========================================
   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-top: 60px; padding-bottom: 100px;
}

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

.widget {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-l);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 16px rgba(51, 141, 36, 0.08);
}

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

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
}

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

.search-box input::placeholder {
    color: var(--text-3);
}

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

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.search-box button:hover svg {
    transform: scale(1.1);
}

.search-box svg {
    color: var(--green);
    pointer-events: none;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

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

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

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-2);
    font-size: 0.87rem;
    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: 6px;
}

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

/* Widget Post (Berita Terbaru) */
.widget-list.widget-posts {
    gap: 16px;
}

.widget-post {
    display: flex !important;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    border: none !important;
}

.widget-post:last-child {
    border-bottom: none !important;
}

.widget-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.widget-post:hover .widget-thumb {
    transform: scale(1.05);
}

.widget-post-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.widget-post-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    transition: color 0.2s;
    display: block;
    word-break: break-word;
}

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

.widget-post-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-3);
    display: block;
}

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

.tag-item {
    padding: 7px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-2);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

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

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

.gal-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-alt);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-l);
}

.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;
    min-width: 0;
}

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

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

.content-main-title {
    font-size: clamp(1.3rem, 2vw + 0.8rem, 1.8rem); /* Fluid content title */
    font-weight: 900;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

/* ==========================================
   FEATURED NEWS CARD
   ========================================== */
.news-card-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    background: #0b111a; /* Default dark fallback for content visibility */
    border: 1px solid var(--border-l);
}

.news-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.featured-img-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Gradient Overlay */
.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.news-card-featured:hover .featured-overlay {
    opacity: 0.9;
}

.featured-content {
    position: relative;
    z-index: 2;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    color: #fff;
    max-width: 900px;
}

.news-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.featured-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

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

.featured-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

@media (max-width: 1024px) {\n
    .news-card-featured {
        min-height: 380px;
    }
    .featured-content {
        padding: 24px 28px;
    }
    .featured-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .news-card-featured {
        min-height: 320px;
        border-radius: 12px;
    }
    .featured-content {
        padding: 20px;
    }
    .news-badge {
        font-size: 0.62rem;
        padding: 4px 10px;
        margin-bottom: 12px;
    }
    .featured-title {
        font-size: 1.35rem;
    }
    .featured-excerpt {
        font-size: 0.88rem;
        margin-bottom: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    /* Sidebar Responsive */
    .sidebar {
        gap: 24px;
    }
    .widget {
        padding: 18px;
    }
    .widget-title {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    .widget-post {
        flex-direction: column;
        text-align: center;
    }
    .widget-thumb {
        width: 100%;
        height: 160px;
    }
    .sidebar-galeri {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pagination Responsive */
    .pagination {
        gap: 6px;
        margin-top: 36px;
    }
    .pagination li a,
    .pagination li span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .news-card-featured {
        min-height: 280px;
    }
    .featured-content {
        padding: 18px;
    }
    .featured-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    .featured-excerpt {
        display: none; /* Hide excerpt on very small screens for cleaner look */
    }
    .news-meta {
        font-size: 0.75rem;
    }

    /* Sidebar Mobile */
    .sidebar {
        gap: 20px;
    }
    .widget {
        padding: 16px;
        border-radius: 10px;
    }
    .widget-title {
        font-size: 0.8rem;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
    .search-box input {
        font-size: 0.85rem;
        padding: 10px 36px 10px 14px;
    }
    .widget-list a {
        padding: 10px 0;
        font-size: 0.8rem;
    }
    .widget-post-title {
        font-size: 0.75rem;
    }
    .widget-post-date {
        font-size: 0.65rem;
    }
    .sidebar-galeri {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .tag-cloud {
        gap: 6px;
    }
    .tag-item {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    /* Pagination Mobile */
    .pagination {
        gap: 4px;
        margin-top: 32px;
    }
    .pagination li a,
    .pagination li span {
        min-width: 34px;
        height: 34px;
        font-size: 0.75rem;
        padding: 0;
    }
}

/* ==========================================
   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 (Global)
   ========================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.pagination li {
    display: inline-flex;
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    line-height: 1;
}

/* Links Hover */
.pagination li a:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(51, 141, 36, 0.2);
}

/* Disabled State (prev/next/dots) */
.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg);
    border-color: var(--border);
    color: var(--text-3);
}

/* Active Page */
.pagination li.active span {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(51, 141, 36, 0.25);
    cursor: default;
}

/* Dots/Separator - style differently */
.pagination li.disabled:not(:first-child):not(:last-child) span {
    border: none;
    background: transparent;
    color: var(--text-3);
    font-weight: 700;
    padding: 0 2px;
    min-width: auto;
    height: auto;
    cursor: default;
}

/* ==========================================
   OPENFRAME PAGINATION STYLING (of-pagination)
   ========================================== */
.of-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 40px;
}

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

.of-pagination__info strong {
    color: var(--text);
    font-weight: 700;
}

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

.of-pg-item {
    display: inline-flex;
    margin: 0;
}

.of-pg-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    line-height: 1;
}

/* Regular page links */
.of-pg-item a.of-pg-link {
    color: var(--text-2);
    background: var(--bg-white);
}

.of-pg-item a.of-pg-link:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(51, 141, 36, 0.2);
}

/* Active page */
.of-pg-item--active .of-pg-link {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(51, 141, 36, 0.25);
    cursor: default;
}

/* Disabled prev/next */
.of-pg-item--disabled .of-pg-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg);
    color: var(--text-3);
    border-color: var(--border);
}

/* Dots separator */
.of-pg-item--dots .of-pg-link {
    border: none;
    background: transparent;
    color: var(--text-3);
    font-weight: 700;
    padding: 0 4px;
    min-width: auto;
    height: auto;
    cursor: default;
}

/* Previous/Next arrows SVG */
.of-pg-item svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Dark mode support */
[data-theme="dark"] .of-pagination__info {
    color: var(--text-2);
}

[data-theme="dark"] .of-pagination__info strong {
    color: var(--text);
}

[data-theme="dark"] .of-pg-link {
    background: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-2);
}

[data-theme="dark"] .of-pg-item a.of-pg-link:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

[data-theme="dark"] .of-pg-item--active .of-pg-link {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

[data-theme="dark"] .of-pg-item--disabled .of-pg-link {
    opacity: 0.4;
    background: var(--bg);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-3);
}

[data-theme="dark"] .of-pg-item--dots .of-pg-link {
    background: transparent;
    border-color: transparent;
    color: var(--text-3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .of-pagination {
        gap: 18px;
        margin-top: 36px;
    }

    .of-pagination__list {
        gap: 6px;
    }

    .of-pg-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .of-pagination {
        gap: 14px;
        margin-top: 30px;
    }

    .of-pagination__info {
        font-size: 0.85rem;
    }

    .of-pagination__list {
        gap: 4px;
    }

    .of-pg-link {
        min-width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
}


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

/* Footer Section */
/* ---------- 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); }

/* 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 {
    background: #1e1e1e;
    border-color: #333;
}

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

/* No dark mode background override needed since the text is on an overlay */




/* ==========================================
   RESPONSIVE DESIGN (Consolidated)
   ========================================== */
@media (max-width: 1024px) {\n
  :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;
  }

  .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;}
  .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; }

  .news-card-featured { grid-template-columns: 1fr; margin-bottom: 24px; min-height: 260px; }
  .featured-img-wrapper { min-height: 100%; position: absolute; inset: 0; }
  .featured-content { padding: 18px; position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
  .featured-title { font-size: 1.15rem; margin-bottom: 8px; }
  .featured-excerpt { font-size: 0.78rem; margin-bottom: 12px; -webkit-line-clamp: 2; line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

  .news-img { height: 140px; }
  .news-body { padding: 16px; }
  .news-title { font-size: 0.95rem; }
  .news-text { font-size: 0.75rem; }

  .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); }

  /* Keep 2 columns on tablet for better usage */
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .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; }
}

@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .featured-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .nav-logo-img { height: 34px; }
  .page-title { font-size: 1.8rem; }
  .featured-img-wrapper { min-height: 160px; }
  .featured-title { font-size: 1.05rem; }
  .featured-excerpt { display: none; }
  .news-img { height: 130px; }
  .content-header { margin-bottom: 20px; }
  .footer { padding: 32px 24px 110px; }
  .f-name { font-size: 0.85rem; }
  .f-desc { font-size: 0.78rem; }
}

@media (max-width: 400px) {
  /* Nav pill ultra-compact */
  .nav-links { padding: 6px 8px; bottom: 12px; border-radius: 32px; }
  .nav-link { font-size: 9px; gap: 2px; }
  .mobile-nav-icon { width: 18px; height: 18px; }

  .navbar-inner { padding: 0 24px; height: 56px; }
  .nav-logo-img { height: 28px; }
  .page-header { padding: 114px 0 30px; }
  .page-title { font-size: 1.8rem; margin-bottom: 12px; }
  .page-description { font-size: 0.85rem; line-height: 1.6; }
  .breadcrumbs { font-size: 0.8rem; }
  .page-layout { gap: 20px; }

  .content-header { margin-bottom: 16px; }
  .content-main-title { font-size: 1.3rem; }
  .news-badge { font-size: 0.5rem; padding: 2px 6px; }
  .featured-title { font-size: 0.9rem; }
  .news-meta { font-size: 0.6rem; }

  .news-img { height: 120px; }
  .news-body { padding: 10px; }
  .news-title { font-size: 0.8rem; }
  .news-text { font-size: 0.7rem; margin-bottom: 10px; }

  .footer { padding: 30px 24px 110px; }
  .f-brand-box { gap: 8px; }
  .f-logo-square { width: 32px; height: 32px; font-size: 0.65rem; }
  .f-name { font-size: 0.75rem; }
  .f-sub { font-size: 0.6rem; }
  .f-desc { font-size: 0.72rem; }
  .f-col h4 { font-size: 0.8rem; margin-bottom: 10px; }
  .f-col p { font-size: 0.75rem; }
  .f-socials { gap: 6px; }
  .f-soc { width: 30px; height: 30px; }
  .f-bottom { margin-top: 25px; padding-top: 12px; font-size: 0.68rem; gap: 6px; }
}

@media (max-width: 350px) {
  .container { padding: 20px 15px 50px; }
  .navbar-inner { padding: 0 16px; }
  .footer { padding-left: 16px; padding-right: 16px; }
  .page-header { padding: 114px 0 30px; }
  .page-title { font-size: 1.6rem; }
  .featured-content { padding: 14px; }
  .featured-title { font-size: 0.9rem; }
  .news-body { padding: 12px; }
  .news-title { font-size: 0.85rem; }
  .pagination { gap: 4px; }
  .pg-btn { width: 32px; height: 32px; font-size: 0.75rem; }
}

@media (max-width: 320px) {
  .container { padding: 20px 15px 50px; }
  .navbar-inner { padding: 0 12px; }
  .footer { padding-left: 12px; padding-right: 12px; }
  .page-title { font-size: 1.5rem; }
  .page-description { font-size: 0.78rem; }
  .featured-title { font-size: 0.85rem; }
  .news-title { font-size: 0.8rem; }
  .pg-numbers .pg-btn { width: 28px; height: 28px; }
}

@media (max-width: 280px) {
  .container { padding: 20px 15px 50px; }
  .navbar-inner { padding: 0 8px; }
  .footer { padding-left: 10px; padding-right: 10px; }
  .nav-links { width: calc(100% - 16px); padding: 4px; border-radius: 20px; }
  .nav-link { padding: 6px 8px; font-size: 8px; }
  .mobile-nav-icon { width: 14px; height: 14px; }
  .page-title { font-size: 1.3rem; }
  .page-description { font-size: 0.75rem; }
  .news-body { padding: 10px 8px; }
  .news-title { font-size: 0.78rem; }
  .read-more { font-size: 0.7rem; }
  .f-name { font-size: 0.7rem; }
  .f-desc { font-size: 0.68rem; }
  .f-logo-square { width: 28px; height: 28px; font-size: 0.6rem; }
}

@media (max-width: 240px) {
  .container { padding: 20px 15px 50px; }
  .navbar-inner { padding: 0 6px; }
  .footer { padding: 20px 8px 110px; }
  .page-title { font-size: 1.15rem; }
  .page-description { display: none; }
  .featured-title { font-size: 0.8rem; }
  .news-title { font-size: 0.75rem; }
  .news-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
  .pg-numbers { display: none; }
}

/* ========== Dark Mode Widget & Pagination ========== */
[data-theme="dark"] .widget {
    background: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .widget:hover {
    box-shadow: 0 4px 16px rgba(51, 141, 36, 0.12);
}

[data-theme="dark"] .widget-title {
    color: var(--text);
    border-bottom-color: var(--green);
}

[data-theme="dark"] .search-box input {
    background: var(--bg);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

[data-theme="dark"] .search-box input:focus {
    background: var(--bg-white);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(51, 141, 36, 0.15);
}

[data-theme="dark"] .widget-list li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .widget-post {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .tag-item {
    background: var(--bg);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-2);
}

[data-theme="dark"] .tag-item:hover,
[data-theme="dark"] .tag-item.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span,
[data-theme="dark"] .pagination li a,
[data-theme="dark"] .pagination li span {
    background: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-2);
}

[data-theme="dark"] .pagination li a:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

[data-theme="dark"] .pagination li.disabled span {
    opacity: 0.5;
    background: var(--bg);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-3);
}

[data-theme="dark"] .pagination li.active span {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

[data-theme="dark"] .gal-thumb {
    border-color: rgba(255, 255, 255, 0.1);
}


@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;
}

