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

/* ---------- Design Tokens ---------- */
:root {
  --orange: #E8573A;
  --orange-light: #F06B50;
  --orange-dark: #D04830;
  --orange-glow: rgba(232, 87, 58, .1);

  --bg-body: #FDFDFB;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-section-alt: #f0f1f5;

  --border-color: rgba(0, 0, 0, 0.06);
  --text-heading: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #8c8c9c;

  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --nav-height: 80px;
  --max-width: 1200px;

  /* Navbar & Dropdown Sync */
  --nav-bg: #ffffff;
  --nav-text: #1a1a2e;
  --nav-text-muted: #6b7280;
  --nav-border: rgba(0, 0, 0, 0.05);
  --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --nav-shadow-scroll: 0 4px 20px rgba(0, 0, 0, 0.08);

  --brand-primary: #1a365d;
  --brand-accent: var(--orange);

  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(0, 0, 0, 0.05);
  --dropdown-shadow: 0 20px 40px rgba(0,0,0,0.12);
  --dropdown-text: #4b5563;
  --dropdown-text-hover: #EE5A36;
  --dropdown-link-hover: rgba(238, 90, 54, 0.05);

  --mega-bg: #ffffff;
  --mega-sidebar-bg: #f9fafb;
  --mega-content-bg: #ffffff;
  --mega-border: rgba(0,0,0,0.05);
  --mega-text: #4b5563;
  --mega-text-hover: #EE5A36;
  --mega-heading: #9ca3af;
  --mega-category-active: #EE5A36;
  --mega-accent-bar: linear-gradient(to right, #EE5A36, #f97316);

  --glass-bg: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.12);
}

[data-theme="dark"] {
  --bg-body: #121212;
  --bg-white: #1a1a1a;
  --bg-card: #242424;
  --text-heading: #ffffff;
  --text-body: #a8a8a8;
  --text-muted: #757575;
  --border-color: rgba(255, 255, 255, 0.08);

  --nav-bg: #1a1a1a;
  --nav-text: #ffffff;
  --nav-text-muted: rgba(255, 255, 255, 0.6);
  --nav-border: rgba(255, 255, 255, 0.05);
  --brand-primary: #e2e8f0;

  --dropdown-bg: #242424;
  --dropdown-border: rgba(255, 255, 255, 0.1);
  --dropdown-text: #cbd5e1;
  --dropdown-link-hover: rgba(255, 255, 255, 0.04);

  --mega-bg: #242424;
  --mega-sidebar-bg: #1f1f1f;
  --mega-content-bg: #242424;
  --mega-border: rgba(255,255,255,0.05);
  --mega-text: #cbd5e1;
  --mega-heading: #757575;
}

/* --- Dark Mode for Hero --- */
[data-theme="dark"] .hero-sub {
  background: #121212;
}

[data-theme="dark"] .hero-sub h1 {
  color: #ffffff;
}

[data-theme="dark"] .hero-desc {
  color: #ffffff;
  opacity: 0.9;
}

[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb a {
  color: #ffffff;
  opacity: 0.7;
}

[data-theme="dark"] .breadcrumb .active {
  color: #ffffff;
  opacity: 1;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(155deg, rgba(15, 17, 23, 0.72) 15%, rgba(15, 17, 23, 0) 70%, rgba(15, 17, 23, 0) 100%);
}

[data-theme="dark"] .hero-circle {
  background: #94a3b8;
  opacity: 0.06;
}

[data-theme="dark"] .hg-line,
[data-theme="dark"] .hg-orbit,
[data-theme="dark"] .hg-node,
[data-theme="dark"] .hg-dot,
[data-theme="dark"] .hg-shape {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hg-line,
[data-theme="dark"] .hg-node,
[data-theme="dark"] .hg-dot,
[data-theme="dark"] .hg-shape {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hg-node {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 26, 26, .90);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(240, 107, 80, .08);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(26, 26, 26, 0.9) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
}
[data-theme="dark"] .navbar .nav-link { color: rgba(255,255,255,.6); }
[data-theme="dark"] .navbar .nav-link:hover { color: var(--orange) !important; background: rgba(255,255,255,.06); }
[data-theme="dark"] .navbar .brand-title { color: #ffffff !important; }
[data-theme="dark"] .navbar .brand-sub { color: rgba(255,255,255,.6) !important; }
[data-theme="dark"] .navbar .logo-icon { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
[data-theme="dark"] .logo-icon {
  background: var(--orange-glow); border-color: rgba(240, 107, 80, .12);
  color: var(--orange);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 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);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: var(--nav-shadow-scroll);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
}

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

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-weight: 800; font-size: 14px; color: var(--nav-text); letter-spacing: 0.5px; }
.brand-sub { font-weight: 600; font-size: 10px; color: var(--nav-text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ---- Nav Links ---- */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; 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;
    transition: var(--transition);
    cursor: pointer; position: relative;
}
.nav-link:hover { color: var(--orange); background: rgba(0, 0, 0, .03); }

/* Hide mobile icons on desktop */
.mobile-nav-icon { display: none; }

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

/* ---- Nav Right ---- */
.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0, 0, 0, .05); border: 1.5px solid rgba(0, 0, 0, .05);
    cursor: pointer; transition: var(--transition);
    color: var(--text-heading);
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff; transform: rotate(20deg) scale(1.08);
}
[data-theme="dark"] .theme-toggle { background: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255, 255, 255, 0.1); }

/* ==============================
   DROPDOWN MENUS
   ============================== */
.dropdown-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(12px);
    min-width: 200px; background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 14px; box-shadow: var(--dropdown-shadow);
    padding: 10px; 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(4px); pointer-events: auto; }

.dropdown-column { display: flex; flex-direction: column; gap: 2px; }
.dropdown-link {
    display: block; padding: 10px 14px; font-size: 0.85rem; font-weight: 500;
    color: var(--dropdown-text); border-radius: 8px; transition: all 0.2s ease;
    position: relative;
}
.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(--orange); border-radius: 2px;
}

/* Nested sub-dropdown */
.dropdown-item-nested { position: relative; }
.dropdown-link.has-sub { display: flex; align-items: center; justify-content: space-between; padding-right: 10px; }
.dropdown-item-nested:hover > .dropdown-link.has-sub { color: var(--dropdown-text-hover); background: var(--dropdown-link-hover); }

.sub-dropdown {
    position: absolute; top: -10px; left: 100%;
    min-width: 180px; background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 12px; box-shadow: var(--dropdown-shadow);
    padding: 8px; opacity: 0; visibility: hidden;
    transform: translateX(10px); transition: all 0.25s ease;
    pointer-events: none;
}
.dropdown-item-nested:hover > .sub-dropdown { opacity: 1; visibility: visible; transform: translateX(4px); pointer-events: auto; }

/* ==============================
   MEGA MENU
   ============================== */
.mega-menu {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--mega-bg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    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: var(--max-width); margin: 0 auto; display: flex; min-height: 300px; }
.mega-sidebar {
    width: 240px; flex-shrink: 0; background: var(--mega-sidebar-bg);
    padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
    border-right: 1px solid var(--mega-border);
}
.mega-category {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; font-size: 0.88rem; font-weight: 550;
    color: var(--mega-text); border-radius: 10px; transition: all 0.2s ease;
}
.mega-category:hover, .mega-category.active { color: var(--mega-category-active); background: rgba(232, 87, 58, 0.08); }

.mega-content { flex: 1; background: var(--mega-content-bg); padding: 32px 40px; }
.mega-panel { display: none; gap: 48px; animation: megaFadeIn 0.3s ease forwards; }
.mega-panel.active { display: flex; }

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

.mega-column { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mega-heading {
    font-size: 11px; font-weight: 700; color: var(--mega-heading);
    text-transform: uppercase; letter-spacing: 1.2px; padding-bottom: 12px;
    margin-bottom: 10px; border-bottom: 1px solid var(--mega-border);
}
.mega-link {
    display: block; padding: 8px 0; font-size: 0.88rem; color: var(--mega-text);
    transition: all 0.2s ease; position: relative; padding-left: 0;
}
.mega-link:hover { color: var(--mega-text-hover); padding-left: 12px; }
.mega-link:hover::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 14px; background: var(--orange); border-radius: 2px;
}
.theme-toggle .icon-sun { display: block; transition: var(--transition); }
.theme-toggle .icon-moon { display: none; transition: var(--transition); }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero Subpage ---------- */
.hero-sub {
    position: relative;
    padding: 140px 20px 100px;
    background: var(--bg-white);
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    z-index: 2;
}

.hero-sub h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: none;
    position: relative;
    z-index: 2;
    transition: color var(--transition);
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 0.95rem;
    color: #000000;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #000000;
    font-weight: 600;
    position: relative;
    z-index: 2;
    opacity: 0.7;
}

.breadcrumb a { color: #000000; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .active { color: #000000; font-weight: 800; opacity: 1; }

/* --- Hero Ornaments --- */
.hero-ornament {
    position: absolute;
    width: 775px;
    height: 775px;
    border-radius: 9999px;
    opacity: 1.0;
    filter: blur(150px);
    z-index: 1;
    pointer-events: none;
}

.ornament-orange-1 {
    background: #EE5A36;
    left: -156px;
    top: -480px;
}

.ornament-orange-2 {
    background: #EE5A36;
    left: 1002px;
    top: -92px;
}

.ornament-green-1 {
    background: #338D24;
    left: 330px;
    top: -337px;
}

.ornament-green-2 {
    background: #338D24;
    left: -389px;
    top: 51px;
}

.ornament-green-3 {
    background: #338D24;
    left: 1002px;
    top: -672px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.25) 15%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 100%);
    overflow: hidden;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 9999px;
    background: white;
    opacity: 0.10;
    pointer-events: none;
}

.hero-circle-1 {
    width: 615px;
    height: 615px;
    left: -15%;
    top: -196px;
}

.hero-circle-2 {
    width: 474px;
    height: 474px;
    left: -154px;
    top: 450px;
}

/* Patterns reuse */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* --- Grid lines --- */
.hg-line { position: absolute; opacity: .24; }
.hg-v1, .hg-v2, .hg-v3, .hg-v4 {
  width: 1px; height: 100%; top: 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.8) 30%, rgba(255,255,255,.8) 70%, transparent);
}
.hg-v1 { left: 14%; }
.hg-v2 { left: 38%; }
.hg-v3 { left: 62%; }
.hg-v4 { left: 86%; }

.hg-h1, .hg-h2, .hg-h3 {
  height: 1px; width: 100%; left: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.8) 15%, rgba(255,255,255,.8) 85%, transparent);
}
.hg-h1 { top: 22%; }
.hg-h2 { top: 50%; }
.hg-h3 { top: 78%; }

/* --- Orbit rings --- */
.hg-orbit {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.07);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.ho1 { width: 460px; height: 460px; animation: hgSpin 50s linear infinite; }
.ho2 { width: 320px; height: 320px; border-style: dashed; border-color: rgba(255,255,255,.15); animation: hgSpin 35s linear infinite reverse; }
.ho3 { width: 160px; height: 160px; border-width: 2px; border-color: rgba(255,255,255,.24); animation: hgSpin 25s linear infinite; }
@keyframes hgSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* --- Pulsing nodes --- */
.hg-node {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.35), 0 0 20px rgba(255,255,255,.1);
}
.hn1 { top: 22%; left: 14%; animation: hgPulse 3.5s ease-in-out infinite; }
.hn2 { top: 22%; left: 62%; animation: hgPulse 3.5s ease-in-out .6s infinite; }
.hn3 { top: 50%; left: 38%; animation: hgPulse 3.5s ease-in-out 1.2s infinite; }
.hn4 { top: 50%; left: 86%; animation: hgPulse 3.5s ease-in-out 1.8s infinite; }
.hn5 { top: 78%; left: 14%; animation: hgPulse 3.5s ease-in-out 2.4s infinite; }
.hn6 { top: 78%; left: 62%; animation: hgPulse 3.5s ease-in-out .9s infinite; }

@keyframes hgPulse {
  0%, 100% { opacity: .15; transform: scale(1); }
  50% { opacity: .6; transform: scale(2.2); }
}

/* --- Floating dots --- */
.hg-dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.85); }
.hd1 { top: 10%; left: 7%;  animation: hgFloat 9s ease-in-out infinite; }
.hd2 { top: 28%; left: 24%; animation: hgFloat 11s ease-in-out 1s infinite; }
.hd3 { top: 55%; left: 9%;  animation: hgFloat 8s ease-in-out 2s infinite; }
.hd4 { top: 72%; left: 30%; animation: hgFloat 10s ease-in-out .5s infinite; }
.hd5 { top: 18%; left: 78%; animation: hgFloat 12s ease-in-out 3s infinite; }
.hd6 { top: 42%; left: 92%; animation: hgFloat 9s ease-in-out 1.5s infinite; }
.hd7 { top: 82%; left: 72%; animation: hgFloat 10s ease-in-out 4s infinite; }
.hd8 { top: 65%; left: 54%; animation: hgFloat 8s ease-in-out 2.5s infinite; }

@keyframes hgFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: .4; }
  50%  { transform: translateY(-50px) scale(1.4); opacity: .25; }
  90%  { opacity: .06; }
  100% { transform: translateY(-100px) scale(.5); opacity: 0; }
}

/* --- Geometric shapes --- */
.hg-shape { position: absolute; opacity: .24; }
.hs-sq { width: 50px; height: 50px; border: 2px solid #fff; border-radius: 12px; top: 16%; right: 12%; transform: rotate(25deg); animation: hgDrift 7s ease-in-out infinite; }
.hs-ci { width: 32px; height: 32px; border: 2px solid #fff; border-radius: 50%; bottom: 22%; left: 8%; animation: hgDrift 9s ease-in-out 2s infinite; }
.hs-di { width: 28px; height: 28px; border: 2px solid #fff; top: 40%; left: 6%; transform: rotate(45deg); animation: hgDrift 8s ease-in-out 3s infinite; }
@keyframes hgDrift {
  0%, 100% { transform: translateY(0) rotate(25deg); }
  50% { transform: translateY(-14px) rotate(40deg); }
}

/* ==============================
   FILTER SECTION (Search & Category)
   ============================== */
.filter-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
    padding-bottom: 40px;
}

.search-box-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.search-box {
    background: var(--bg-body);
    border-radius: 30px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--orange);
    box-shadow: 0 10px 40px rgba(232, 87, 58, 0.15);
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-heading);
    font-family: inherit;
}

.search-icon {
    color: var(--text-muted);
}

.category-nav-wrapper {
    margin-top: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.category-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.cat-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.cat-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.cat-link:hover, .cat-link.active {
    color: var(--orange);
}

.cat-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

/* ==============================
   MAIN CONTENT & LAYOUT
   ============================== */
.main-content {
    padding: 40px 0 40px;
    background: var(--bg-body);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==============================
   ARTICLE DETAIL STYLES
   ============================== */
.article-detail {
    background: transparent;
    padding: 0;
    margin-bottom: 60px;
    border: none;
    box-shadow: none;
}

.article-detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 0.5px;
}

.article-meta-detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

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

.article-featured-img {
    position: relative;
    max-width: 850px;
    margin: 0 auto 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

.img-caption-overlay {
    display: block;
    max-width: 850px;
    margin: 0 auto 40px;
    padding-left: 20px;
    border-left: 4px solid var(--orange);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
}


.article-body p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

.article-body p:first-of-type::first-letter {
    font-size: 3.2rem;
    font-weight: 800;
    float: left;
    margin-right: 12px;
    line-height: 1;
    color: var(--orange);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ==============================
   SOCIAL SHARE & COMMENTS
   ============================== */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 35px;
    border-bottom: 2px solid var(--border-color);
}

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

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

.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
}

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

.share-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

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

.no-comments {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    padding: 15px 0;
    text-align: center;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
}

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

.write-comment-section {
    margin-top: 70px;
    padding-top: 45px;
    border-top: 1px solid var(--border-color);
}

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

.form-row {
    display: flex;
    gap: 25px;
}

.form-row input,
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 16px 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-heading);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow);
}

.btn-submit {
    background: var(--orange);
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
    margin: 0 auto;
}

.btn-submit:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232, 87, 58, 0.35);
}

.article-footer {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--orange);
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

/* =========================================
   NEWS
   ========================================= */
.section-premium { padding: 40px 0; background: var(--bg-body); }
.section-title-wrap { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 40px; }
.title-line { width: 5px; height: 35px; background: linear-gradient(to bottom, #EE5A36, #F06B50); border-radius: 4px; flex-shrink: 0; margin-top: 5px; }
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--text-heading); line-height: 1.2; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 4px; }
.section-subtitle { font-size: 1rem; color: var(--text-body); margin-top: 0; line-height: 1.5; }

.news-layout-premium {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 30px;
  align-items: stretch;
}

@media (max-width: 1280px) {
  .news-layout-premium {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 24px;
  }
}


/* N-Hero Col */
.n-hero-col { height: 100%; display: flex; flex-direction: column; }
.n-card-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-card);
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  text-decoration: none;
}
.n-card-hero:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }

.n-img-wrapper {
  position: relative;
  width: 100%;
  height: 50%;
  min-height: 200px;
  overflow: hidden;
}
.n-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.n-card-hero:hover .n-img-wrapper img { transform: scale(1.06); }
.n-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--orange);
  color: #fff;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(238, 90, 54, 0.3);
}

.n-content-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: clamp(20px, 3vw, 30px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  margin-top: -30px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.n-meta { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; margin-bottom: clamp(8px, 1.5vw, 12px); }
.n-meta svg { color: var(--orange); margin-top: -2px; }
.n-content-glass h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: clamp(10px, 2vw, 15px);
  transition: color 0.3s ease;
}
.n-card-hero:hover .n-content-glass h3 { color: var(--orange); }
.n-content-glass p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-body);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  opacity: 0.9;
}


/* N-Side Col */
.n-side-col { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.n-card-vertical {
  position: relative;
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  min-height: 180px;
  transform: translateZ(0);
}
.n-card-vertical img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.n-card-vertical:hover img { transform: scale(1.08); }

.n-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  padding: clamp(20px, 3vw, 30px) clamp(15px, 2.5vw, 25px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  transition: background 0.4s ease;
}
.n-card-vertical:hover .n-card-overlay { background: linear-gradient(to top, rgba(238, 90, 54, 0.95) 0%, rgba(0,0,0,0.4) 70%, transparent 100%); }

.n-badge-sm { align-self: flex-start; background: rgba(255,255,255,0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.05em; }
.n-card-overlay h4 {
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.n-date-sm { color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 600; }


/* N-List Col */
.n-list-col { background: var(--bg-card); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: 0 10px 40px rgba(0,0,0,0.05); display: flex; flex-direction: column; border: 1px solid var(--border-color); }
.n-list-header { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.n-list-header h4 { font-size: 1.25rem; font-weight: 800; color: var(--text-heading); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.n-line { flex: 1; height: 2px; background: rgba(0,0,0,0.05); position: relative; border-radius: 2px; }
.n-line::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 50px; background: var(--orange); border-radius: 2px; }

.n-article-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(15px, 2vw, 25px); }
.n-article-list li a { display: flex; align-items: center; gap: 18px; padding: 12px; border-radius: 14px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); background: rgba(255,255,255,0); text-decoration: none; }
.n-article-list li a:hover { background: rgba(238, 90, 54, 0.08); transform: translateX(8px); }
.n-num { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: rgba(238, 90, 54, 0.1); line-height: 1; transition: color 0.3s ease; font-variant-numeric: tabular-nums; flex-shrink: 0; width: 45px; }
.n-article-list li a:hover .n-num { color: var(--orange); }
.n-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.n-text h5 { font-size: 1rem; font-weight: 700; color: var(--text-heading); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s ease; margin: 0; }
.n-article-list li a:hover .n-text h5 { color: var(--orange); }
.n-list-meta { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; opacity: 0.8; }


/* Dark Mode Overrides */
[data-theme="dark"] .n-content-glass {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
}
[data-theme="dark"] .n-card-hero { box-shadow: 0 10px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); }
[data-theme="dark"] .n-list-col {
  background: var(--bg-card);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
[data-theme="dark"] .n-line { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .n-article-list li a:hover { background: rgba(238, 90, 54, 0.15); }
[data-theme="dark"] .n-num { color: rgba(255,255,255,0.08); }
[data-theme="dark"] .n-card-vertical { border: 1px solid rgba(255,255,255,0.08); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    padding: 30px 0 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-body);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Brand Section */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-brand .logo-icon {
    width: 38px;
    height: 38px;
    background: var(--orange);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 87, 58, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand-sub-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-body);
    max-width: 300px;
}

/* Headings & Lists */
.site-footer h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 6px;
}

.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 3px;
    background: var(--orange);
    border-radius: 3px;
}

.footer-contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
}

.footer-contact-info svg {
    color: var(--orange);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icons a:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(232, 87, 58, 0.15);
    border-color: var(--orange);
}

/* Bottom Bar */
.footer-bottom-bar {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--orange);
}

/* =========================================
   RESPONSIVE FOOTER
   ========================================= */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 20px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin-bottom: 24px;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-description {
        margin: 0 auto;
        font-size: 0.82rem;
    }

    .site-footer h4 { margin-bottom: 12px; font-size: 0.85rem; }

    .site-footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-info ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-info li {
        justify-content: center;
        text-align: center;
        margin-bottom: 8px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 15px;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --nav-h: 60px;
    --radius: 12px;
    --brand-accent: var(--orange);
  }

  /* Navbar Top Adjustments */
  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 13px;
  }

  .brand-sub {
    font-size: 9px;
  }

  .navbar {
    top: 0 !important;
    bottom: auto !important;
    background: var(--nav-bg) !important;
    box-shadow: none;
    border-bottom: 1px solid var(--nav-border);
    height: 60px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

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

  /* Floating Bottom Nav Pill */
  .nav-links {
    position: fixed !important;
    bottom: 24px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 500px !important;
    background: #EE5A36 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 16px !important;
    gap: 4px !important;
    height: auto !important;
    min-height: 64px !important;
    background: #EE5A36 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: var(--shadow-xl) !important;
    backdrop-filter: blur(15px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
    border-radius: 40px !important;
    z-index: 9999 !important;
  }

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

  .nav-link {
    display: flex !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 0 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    gap: 3px !important;
    line-height: 1.1 !important;
    background: transparent !important;
    border-radius: 20px !important;
  }

  .nav-link:hover, .nav-item.mobile-open .nav-link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }
  [data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .mobile-nav-icon {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    color: #ffffff !important;
  }

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

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

  /* 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 !important;
    border: 1px solid var(--dropdown-border) !important;
    border-radius: 20px !important;
    background: var(--dropdown-bg) !important;
    padding: 16px !important;
    margin: 0 !important;
    z-index: 1050 !important;
    box-shadow: var(--shadow-lg) !important;
    margin: 0 !important;
    z-index: 1050 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  }

  [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 !important;
  }

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

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

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

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

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

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

  .mega-menu-inner {
    flex-direction: column !important;
    min-height: auto !important;
    padding: 8px 0 !important;
  }

  .mega-sidebar {
    width: 100% !important;
    border-right: none !important;
    background: transparent !important;
  }

  .mega-category {
    padding: 14px 16px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
  }

  .mega-category svg {
    transition: transform 0.3s ease !important;
    display: block !important;
  }

  .mega-category.mobile-active svg {
    transform: rotate(90deg) !important;
  }

  .mega-content {
    padding: 0 !important;
    width: 100% !important;
  }

  .mega-panel {
    display: none !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 4px 12px 16px 32px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: rgba(0, 0, 0, 0.02) !important;
  }

  [data-theme="dark"] .mega-panel {
    background: rgba(255, 255, 255, 0.03) !important;
  }

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

  /* Page Sections */
  .hero-sub { padding: 90px 24px 40px !important; }
  .category-nav-wrapper { padding: 20px 0 !important; }
  .news-layout-premium { grid-template-columns: 1fr !important; gap: 32px !important; }
  .site-footer { padding-bottom: 100px !important; }
}

/* =========================================
   RESPONSIVE FOOTER
   ========================================= */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 20px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin-bottom: 24px;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-description {
        margin: 0 auto;
        font-size: 0.82rem;
    }

    .site-footer h4 { margin-bottom: 12px; font-size: 0.85rem; }

    .site-footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-info ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-info li {
        justify-content: center;
        text-align: center;
        margin-bottom: 8px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 15px;
    }
}

@media (max-width: 640px) {
  .hero-sub h1 { font-size: 2.2rem !important; }
}

@media (max-width: 480px) {
  .nav-logo-img { height: 34px !important; }
  .hero-sub h1 { font-size: 1.8rem !important; }
  [data-theme="dark"] .nav-links {
    background: rgba(26, 26, 26, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
}

@media (max-width: 400px) {
  .navbar-inner { padding: 0 16px; height: 56px; }
  .nav-logo-img { height: 28px !important; }
  .hero-sub { padding: 80px 16px 30px !important; }
  .article-detail-title { font-size: 1.8rem !important; }
}

@media (max-width: 350px) {
  .container { padding: 0 16px; }
  .navbar-inner { padding: 0 16px; }
  .hero-sub h1 { font-size: 1.6rem !important; }
  .article-detail-title { font-size: 1.35rem !important; margin-bottom: 15px !important; }
  .article-meta-detail { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; padding-bottom: 15px !important; margin-bottom: 20px !important; }
  .article-body p { font-size: 0.95rem !important; margin-bottom: 15px !important; }
  .article-body p:first-of-type::first-letter { font-size: 2.2rem !important; }
}

@media (max-width: 320px) {
  .container { padding: 0 14px; }
  .navbar-inner { padding: 0 14px; }
  .logo-wrapper { transform: scale(0.8) !important; transform-origin: left center !important; }
}

@media (max-width: 280px) {
  .container { padding: 0 8px; }
  .navbar-inner { padding: 0 8px; }
  .nav-links { width: calc(100% - 16px) !important; padding: 4px 8px !important; border-radius: 20px !important; }
  .nav-link { padding: 4px 0 !important; font-size: 8px !important; }
  .mobile-nav-icon { width: 14px !important; height: 14px !important; }
  .logo-wrapper { transform: scale(0.65) !important; transform-origin: left center !important; }
  .article-detail-title { font-size: 1.2rem !important; }
}

@media (max-width: 240px) {
  .container { padding: 0 6px; }
  .navbar-inner { padding: 0 6px; }
  .hero-sub h1 { font-size: 1.35rem !important; }
}

@media (max-width: 200px) {
  .container { padding: 0 4px; }
  .navbar-inner { padding: 0 4px; }
  .nav-links { width: calc(100% - 4px) !important; padding: 2px !important; }
  .logo-wrapper { transform: scale(0.55) !important; transform-origin: left center !important; }
  .article-detail-title { font-size: 1.05rem !important; }
}

/* ==========================================
   ULTRA-COMPACT RESPONSIVE (350px → 200px)
   ========================================== */

@media (max-width: 350px) {
  /* --- Hero --- */
  .hero-sub { padding: 75px 10px 25px !important; border-radius: 0 0 20px 20px !important; }
  .hero-desc { font-size: 0.78rem !important; padding: 0 4px; }
  .breadcrumb { font-size: 0.72rem !important; }

  /* --- Search & Category --- */
  .filter-section { margin-top: -15px !important; padding-bottom: 15px !important; }
  .search-box { padding: 8px 12px !important; border-radius: 20px !important; }
  .search-box input { font-size: 0.8rem !important; }
  .category-nav-wrapper { margin-top: 15px !important; padding-bottom: 8px !important; }
  .cat-label { font-size: 0.72rem !important; }
  .cat-links { gap: 8px !important; padding: 0 2px 8px !important; }
  .cat-link { font-size: 0.72rem !important; padding: 3px 0 !important; }

  /* --- Section Titles --- */
  .section-title-center { margin-bottom: 25px !important; }
  .section-title-center h2 { font-size: 1.2rem !important; }
  .section-subtitle { font-size: 0.8rem !important; }
  .section-title { font-size: 1.1rem !important; }
  .section-title-wrap { margin-bottom: 20px !important; gap: 10px !important; }
  .title-line { width: 4px !important; height: 25px !important; }

  /* --- News Items (Horizontal List) --- */
  .news-horizontal-list { gap: 12px !important; }
  .news-item-horizontal { flex-direction: column !important; gap: 10px !important; padding: 10px !important; border-radius: 10px !important; }
  .news-item-img { width: 100% !important; height: auto !important; aspect-ratio: 16/9 !important; border-radius: 8px !important; }
  .news-item-title { font-size: 0.88rem !important; line-height: 1.3 !important; }
  .news-item-excerpt { font-size: 0.75rem !important; -webkit-line-clamp: 2 !important; }
  .news-item-date { font-size: 0.72rem !important; }
  .news-badge { padding: 2px 8px !important; font-size: 0.6rem !important; }

  /* --- Premium News --- */
  .news-layout-premium { gap: 18px !important; }
  .n-img-wrapper { height: 160px !important; min-height: 120px !important; }
  .n-content-glass { padding: 14px !important; margin: -15px 8px 8px !important; border-radius: 14px !important; }
  .n-content-glass h3 { font-size: 1rem !important; margin-bottom: 6px !important; }
  .n-content-glass p { font-size: 0.78rem !important; -webkit-line-clamp: 2 !important; }
  .n-meta { font-size: 0.7rem !important; margin-bottom: 6px !important; }
  .n-badge { padding: 3px 8px !important; font-size: 0.6rem !important; top: 8px !important; left: 8px !important; }
  .n-card-vertical { min-height: 150px !important; }
  .n-card-overlay { padding: 12px 10px !important; }
  .n-card-overlay h4 { font-size: 0.85rem !important; -webkit-line-clamp: 2 !important; }
  .n-badge-sm { font-size: 0.58rem !important; padding: 3px 7px !important; margin-bottom: 6px !important; }
  .n-date-sm { font-size: 0.68rem !important; }
  .n-list-col { padding: 14px !important; }
  .n-list-header h4 { font-size: 1rem !important; }
  .n-article-list { gap: 10px !important; }
  .n-article-list li a { padding: 8px !important; gap: 10px !important; border-radius: 10px !important; }
  .n-num { font-size: 1.2rem !important; width: 30px !important; }
  .n-text h5 { font-size: 0.82rem !important; }
  .n-list-meta { font-size: 0.68rem !important; }

  /* --- Pagination --- */
  .pagination { gap: 4px !important; margin-top: 25px !important; }
  .page-btn { width: 30px !important; height: 30px !important; font-size: 0.75rem !important; border-radius: 8px !important; }

  /* --- Article Elements --- */
  .article-featured-img { margin-bottom: 15px !important; border-radius: 10px !important; }
  .img-caption-overlay { padding-left: 10px !important; font-size: 0.75rem !important; margin-bottom: 20px !important; }
  .article-share { flex-direction: column !important; justify-content: center !important; gap: 8px !important; }
  .form-row { flex-direction: column !important; gap: 12px !important; }
  .btn-submit { width: 100% !important; padding: 12px 15px !important; font-size: 0.85rem !important; }

  /* --- Footer Compact --- */
  .site-footer { padding: 20px 0 110px !important; }
  .footer-content { gap: 16px !important; margin-bottom: 16px !important; }
  .footer-brand .logo-icon { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
  .brand-title { font-size: 0.82rem !important; }
  .brand-sub-title { font-size: 0.7rem !important; }
  .footer-description { font-size: 0.75rem !important; }
  .site-footer h4 { font-size: 0.78rem !important; margin-bottom: 10px !important; }
  .footer-contact-info li { font-size: 0.75rem !important; gap: 6px !important; margin-bottom: 8px !important; }
  .footer-contact-info svg { width: 14px !important; height: 14px !important; }
  .social-icons { gap: 6px !important; }
  .social-icons a { width: 30px !important; height: 30px !important; border-radius: 6px !important; }
  .social-icons a svg { width: 14px !important; height: 14px !important; }
  .footer-bottom-bar { padding-top: 12px !important; font-size: 0.68rem !important; }
  .footer-bottom-links { gap: 10px !important; }
}

@media (max-width: 280px) {
  /* --- Hero --- */
  .hero-sub { padding: 70px 6px 20px !important; border-radius: 0 0 16px 16px !important; }
  .hero-desc { font-size: 0.72rem !important; }

  /* --- Search & Category --- */
  .search-box { padding: 6px 10px !important; }
  .search-box input { font-size: 0.75rem !important; }
  .cat-label { font-size: 0.65rem !important; }
  .cat-links { gap: 6px !important; }
  .cat-link { font-size: 0.65rem !important; }

  /* --- Section Titles --- */
  .section-title-center h2 { font-size: 1rem !important; }
  .section-title { font-size: 0.95rem !important; }

  /* --- News Items --- */
  .news-item-horizontal { padding: 8px !important; gap: 8px !important; }
  .news-item-title { font-size: 0.8rem !important; }
  .news-item-excerpt { font-size: 0.7rem !important; }
  .news-badge { font-size: 0.55rem !important; padding: 2px 6px !important; }

  /* --- Premium News --- */
  .n-img-wrapper { height: 130px !important; min-height: 100px !important; }
  .n-content-glass { padding: 10px !important; margin: -10px 4px 4px !important; }
  .n-content-glass h3 { font-size: 0.88rem !important; }
  .n-content-glass p { font-size: 0.72rem !important; }
  .n-card-vertical { min-height: 120px !important; }
  .n-card-overlay h4 { font-size: 0.78rem !important; }
  .n-list-col { padding: 10px !important; }
  .n-list-header h4 { font-size: 0.88rem !important; }
  .n-text h5 { font-size: 0.75rem !important; }
  .n-num { font-size: 1rem !important; width: 25px !important; }

  /* --- Pagination --- */
  .page-btn { width: 26px !important; height: 26px !important; font-size: 0.68rem !important; }

  /* --- Article Elements --- */
  .share-icon { width: 32px !important; height: 32px !important; border-radius: 8px !important; }
  .share-icon svg { width: 14px !important; height: 14px !important; }

  /* --- Footer --- */
  .footer-brand .logo-icon { width: 26px !important; height: 26px !important; }
  .brand-title { font-size: 0.75rem !important; }
  .footer-description { font-size: 0.7rem !important; }
  .footer-contact-info li { font-size: 0.7rem !important; }
  .social-icons a { width: 26px !important; height: 26px !important; }
}

@media (max-width: 240px) {
  /* --- News Items --- */
  .news-item-horizontal { padding: 6px !important; }
  .news-item-title { font-size: 0.75rem !important; }
  .news-item-excerpt { display: none !important; }

  /* ---   News --- */
  .n-img-wrapper { height: 110px !important; }
  .n-content-glass { padding: 8px !important; margin: -8px 2px 2px !important; }
  .n-content-glass h3 { font-size: 0.8rem !important; }
  .n-content-glass p { display: none !important; }
  .n-card-vertical { min-height: 100px !important; }
  .n-card-overlay h4 { font-size: 0.7rem !important; }
  .n-list-col { padding: 8px !important; }

  /* --- Pagination --- */
  .pagination { gap: 3px !important; }
  .page-btn { width: 24px !important; height: 24px !important; font-size: 0.6rem !important; border-radius: 6px !important; }

  /* --- Footer --- */
  .site-footer { padding: 15px 0 10px !important; }
  .footer-content { gap: 12px !important; }
}

@media (max-width: 200px) {
  /* --- News Items --- */
  .news-item-horizontal { padding: 4px !important; gap: 6px !important; border-radius: 8px !important; }
  .news-item-img { border-radius: 6px !important; }
  .news-item-title { font-size: 0.7rem !important; }

  /* --- Premium News --- */
  .n-img-wrapper { height: 90px !important; min-height: 70px !important; }
  .n-content-glass { padding: 6px !important; margin: -6px 2px 2px !important; border-radius: 10px !important; }
  .n-content-glass h3 { font-size: 0.72rem !important; }
  .n-card-vertical { min-height: 80px !important; }
  .n-list-col { padding: 6px !important; }
  .n-article-list li a { padding: 4px !important; gap: 6px !important; }
  .n-text h5 { font-size: 0.65rem !important; }
  .n-num { font-size: 0.85rem !important; width: 20px !important; }

  /* --- Footer --- */
  .footer-brand { gap: 6px !important; }
  .site-footer h4 { font-size: 0.7rem !important; }
  .footer-bottom-bar { font-size: 0.6rem !important; }
}

/* --- Custom Orange Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #EE5A36;
    border-radius: 6px;
    border: 3px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
    background: #d94c2c;
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #EE5A36 #f1f1f1;
}
/* ---------- Sinkronisasi Ukuran Hero & Filter Section ---------- */
@media (max-width: 1024px) {
    .hero-sub { padding: 120px 20px 80px; }
    .hero-sub h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 0.9rem; }

    .filter-section { margin-top: -20px; padding-bottom: 30px; }
    .search-box-wrapper { max-width: 100%; padding: 0 10px; }
    .category-nav { flex-direction: column; gap: 10px; width: 100%; align-items: center; }
    .cat-label { font-size: 0.85rem; }
    .cat-links {
        display: flex;
        gap: 15px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .cat-links::-webkit-scrollbar { display: none; } /* Chrome/Safari */
    .cat-link { font-size: 0.85rem; padding: 4px 0; white-space: nowrap; flex-shrink: 0; }
    .cat-link.active::after { bottom: -8px; height: 2px; }
}

@media (max-width: 768px) {
    .hero-sub { padding: 100px 20px 60px; border-radius: 0 0 30px 30px; }
    .hero-sub h1 { font-size: 1.8rem; }
    .hero-desc { font-size: 0.85rem; }

    .category-nav { gap: 6px; padding: 0; align-items: center; }
    .cat-label { font-size: 0.8rem; opacity: 0.9; margin-bottom: 4px; }
    .cat-links { gap: 12px; justify-content: flex-start; padding: 0 5px 12px; }
    .cat-link { font-size: 0.85rem; }
}
