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

:root {
    --green-primary: #a3c9b3;
    --green-dark: #7aa38d;
    --green-light: #f2f7f4;
    --green-hover: #91b5a0;
    --red-breaking: #d32f2f;
    --red-dark: #b71c1c;
    --orange-accent: #f57c00;
    --blue-link: #1565c0;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-gray: #eeeeee;
    --text-dark: #212121;
    --text-body: #424242;
    --text-muted: #757575;
    --text-light: #9e9e9e;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-max: 1440px;
    --topbar-height: 36px;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* ========== TOP BAR ========== */
.topbar {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-right a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.2s;
}

.topbar-right a:hover {
    color: #fff;
}

/* ========== HEADER ========== */
.header {
    background: var(--green-primary);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 11px;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Desktop Nav - TAMPILAN DEFAULT HANYA UNTUK LAYAR BESAR */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 0 14px;
    line-height: var(--header-height);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-dark);
}

/* Dropdown */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s;
    z-index: 100;
}

.main-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu a {
    padding: 10px 16px;
    color: var(--text-body);
    font-size: 13px;
    text-transform: none;
    font-weight: 400;
    line-height: 1.4;
    border-bottom: 1px solid var(--bg-gray);
    display: block;
}

.main-nav .dropdown-menu a:last-child {
    border-bottom: none;
}

.main-nav .dropdown-menu a:hover {
    background: var(--green-light);
    color: var(--green-primary);
}

/* Hamburger Button - DEFAULT TERSEMBUNYI */
.nav-toggle {
    display: none !important;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 26px;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Nav Overlay - DEFAULT TERSEMBUNYI */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.show {
    opacity: 1;
}

/* ========== BREAKING NEWS TICKER ========== */
.breaking-news {
    background: var(--red-breaking);
    color: #fff;
    font-size: 13px;
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
}

.breaking-label {
    background: var(--red-dark);
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    flex-shrink: 0;
    gap: 6px;
    animation: pulse-label 2s infinite;
}

@keyframes pulse-label {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
}

.ticker a {
    color: #fff;
    padding: 0 30px;
    font-weight: 400;
}

.ticker a:hover {
    text-decoration: underline;
}

.ticker .sep {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 6px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    color: #fff;
    z-index: 2;
}

.slide-category {
    display: inline-block;
    background: var(--red-breaking);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    max-width: 700px;
}

.slide-excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.5;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 26px;
    right: 110px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.slider-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* ========== MAIN LAYOUT ========== */
.main-content {
    padding: 24px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--green-primary);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--orange-accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--green-primary);
}

.section-more {
    font-size: 12px;
    color: var(--green-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-more:hover {
    color: var(--orange-accent);
}

/* ========== NEWS CARD ========== */
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-card-horizontal {
    display: flex;
    gap: 16px;
    padding: 16px;
}

.news-card-horizontal .card-img {
    width: 200px;
    min-width: 200px;
    height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green-primary);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: var(--text-light);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Vertical card */
.news-card-vertical .card-img {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.news-card-vertical .card-body {
    padding: 14px 16px 16px;
}

/* Featured card (Large Cover) */
.news-card-featured {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.news-card-featured .card-img {
    width: 100%;
    height: 100%;
}

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

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

.news-card-featured .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
}

.news-card-featured .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.news-card-featured .card-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
    -webkit-line-clamp: 3;
}

.news-card-featured .card-excerpt {
    color: rgba(255, 255, 255, 0.8);
    -webkit-line-clamp: 2;
}

.news-card-featured .card-meta {
    color: rgba(255, 255, 255, 0.6);
}

/* News Grid utilities */
.news-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .news-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* News list item */
.news-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

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

.news-list-item .list-num {
    width: 28px;
    height: 28px;
    background: var(--green-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.news-list-item .list-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-item .list-title:hover {
    color: var(--green-primary);
}

.news-list-item .list-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}

/* ========== SIDEBAR ========== */
.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    background: var(--green-primary);
    color: #fff;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.widget-body {
    padding: 14px 16px;
}

.popular-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-gray);
    align-items: center;
}

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

.popular-item .pop-img {
    width: 70px;
    height: 55px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-item .pop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-item .pop-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item .pop-title:hover {
    color: var(--green-primary);
}

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

.tag-cloud a {
    padding: 4px 10px;
    background: var(--bg-gray);
    color: var(--text-body);
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: var(--green-primary);
    color: #fff;
}

.mini-news-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-gray);
}

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

.mini-news-item a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.mini-news-item a:hover {
    color: var(--green-primary);
}

.mini-news-item .mini-date {
    font-size: 11px;
    color: var(--text-light);
}

/* ========== CATEGORY TABS ========== */
.cat-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.cat-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.cat-tab:hover {
    color: var(--green-primary);
}

.cat-tab.active {
    color: var(--green-primary);
    border-bottom-color: var(--green-primary);
}

/* ========== OPINI GRID ========== */
.opini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ========== BANNER AD ========== */
.ad-banner {
    background: var(--bg-gray);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 40px;
}

.footer-main {
    padding: 40px 0 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.footer-about p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--green-primary);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact li {
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.footer-contact .iconify {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--green-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green-dark);
}

/* ========== MOBILE NAV ========== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.show {
    right: 0;
}

.mobile-nav-header {
    background: var(--green-primary);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 18px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav ul a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-gray);
}

.mobile-nav ul a:hover {
    background: var(--green-light);
    color: var(--green-primary);
}

.mobile-nav .sub-menu a {
    padding-left: 36px;
    font-size: 13px;
    font-weight: 400;
}

/* ========== SEARCH MODAL ========== */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    backdrop-filter: blur(4px);
}

.search-modal.show {
    display: flex;
}

.search-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
}

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

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

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--text-dark);
}

.search-box button {
    background: var(--green-primary);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--green-dark);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    z-index: 4000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================
           RESPONSIVE — URUTAN PENTING!
           Breakpoint besar dulu, kecil di bawah
           ======================================================== */

/* --- TABLET BESAR: 1080px ke bawah → HAMBURGER MENU --- */
@media (max-width: 1080px) {
    .main-nav {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .mobile-nav-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-nav-overlay.show {
        pointer-events: auto;
    }
}

/* --- TABLET KECIL: 1024px → sidebar menyempit --- */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 280px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- MOBILE: 768px ke bawah --- */
@media (max-width: 768px) {
    :root {
        --topbar-height: 0px;
        --header-height: 60px;
    }

    .topbar {
        display: none;
    }

    /* JANGAN taruh .main-nav atau .nav-toggle di sini —
               sudah ditangani di breakpoint 1080px di atas */

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hero-slider {
        height: 260px;
    }

    .slide-content {
        padding: 16px 20px;
    }

    .slide-title {
        font-size: 18px;
    }

    .slide-excerpt {
        display: none;
    }

    .slider-dots {
        right: 60px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .opini-grid {
        grid-template-columns: 1fr;
    }

    .news-card-horizontal {
        flex-direction: column;
    }

    .news-card-horizontal .card-img {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ad-banner {
        height: 120px;
    }
}

/* --- MOBILE KECIL: 480px ke bawah --- */
@media (max-width: 480px) {
    .hero-slider {
        height: 220px;
    }

    .slide-title {
        font-size: 16px;
    }

    .slider-dots {
        display: none;
    }

    .slider-controls {
        right: 12px;
        bottom: 12px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* ================== DETAIL SPECIFIC ================== */

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



html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* ========== READING PROGRESS BAR ========== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-primary), var(--orange-accent));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 12px 0;
    font-size: 12px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
}

.breadcrumb a {
    color: var(--green-primary);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 6px;
    color: var(--text-light);
}

/* ========== ARTICLE LAYOUT ========== */
.article-wrap {
    padding: 30px 0 50px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* ========== ARTICLE HEADER ========== */
.article-header {
    margin-bottom: 24px;
}

.article-category {
    display: inline-block;
    background: var(--green-primary);
    color: #fff;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    margin-bottom: 14px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.meta-author span {
    font-weight: 400;
    color: var(--text-muted);
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== FEATURED IMAGE ========== */
.article-featured-img {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.article-featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-style: italic;
}

/* ========== SHARE BAR (TOP) ========== */
.share-bar-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.share-btn.fb:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.share-btn.tw:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.share-btn.wa:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.share-btn.tg:hover {
    background: #0088cc;
    color: #fff;
    border-color: #0088cc;
}

.share-btn.link:hover {
    background: var(--green-primary);
    color: #fff;
    border-color: var(--green-primary);
}

.share-btn.print:hover {
    background: #555;
    color: #fff;
    border-color: #555;
}

.share-count {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 4px;
}

/* ========== ARTICLE BODY ========== */
.article-body {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-body);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body .dropcap::first-letter {
    float: left;
    font-size: 72px;
    font-weight: 700;
    line-height: 0.8;
    padding: 4px 10px 0 0;
    color: var(--green-primary);
    font-family: var(--font-heading);
}

.article-body blockquote {
    border-left: 4px solid var(--green-primary);
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--green-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 16px;
    color: var(--green-dark);
}

.article-body blockquote p {
    margin-bottom: 8px;
}

.article-body blockquote cite {
    display: block;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green-light);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 28px 0 12px;
}

.article-body strong {
    color: var(--text-dark);
}

.article-body em {
    color: var(--text-muted);
}

.article-body a {
    color: var(--green-primary);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--orange-accent);
}

.article-body ul,
.article-body ol {
    margin: 16px 0 20px 24px;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-body .highlight-box {
    background: linear-gradient(135deg, var(--green-light), #f1f8e9);
    border: 1px solid #c8e6c9;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0;
}

.article-body .highlight-box .box-title {
    font-weight: 700;
    color: var(--green-primary);
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-body .highlight-box p {
    margin-bottom: 8px;
    font-size: 15px;
}

.article-body .inline-quote {
    background: #fff8e1;
    border-left: 4px solid var(--orange-accent);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15px;
}

/* ========== ARTICLE TAGS ========== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.article-tags .tags-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.article-tags a {
    padding: 4px 12px;
    background: var(--bg-gray);
    color: var(--text-body);
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.article-tags a:hover {
    background: var(--green-primary);
    color: #fff;
}

/* ========== AUTHOR BOX ========== */
.author-box {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box .author-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.author-box .author-role {
    font-size: 12px;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.author-box .author-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== SHARE BAR BOTTOM ========== */
.share-bar-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

/* ========== NAV PREV/NEXT ========== */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.article-nav a {
    display: block;
    padding: 18px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.article-nav a:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-nav .nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-nav .nav-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-nav a:hover .nav-title {
    color: var(--green-primary);
}

.article-nav .nav-next {
    text-align: right;
}

.article-nav .nav-next .nav-label {
    justify-content: flex-end;
}

/* ========== COMMENTS ========== */
.comments-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 40px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--green-primary);
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.comments-count {
    background: var(--green-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* Comment Form */
.comment-form {
    margin-bottom: 24px;
}

.comment-form h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

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

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-dark);
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(10, 110, 58, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    background: var(--green-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.form-submit:hover {
    background: var(--green-dark);
}

/* Comment Item */
.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--bg-gray);
}

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

.comment-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.comment-date {
    font-size: 11px;
    color: var(--text-light);
}

.comment-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 48px;
}

.comment-actions {
    padding-left: 48px;
    display: flex;
    gap: 14px;
}

.comment-actions button {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
    font-family: var(--font-body);
}

.comment-actions button:hover {
    color: var(--green-primary);
}

.comment-actions button.liked {
    color: var(--red-breaking);
}

/* Reply form */
.reply-form {
    padding: 14px 0 0 48px;
    display: none;
}

.reply-form.show {
    display: block;
    animation: fadeIn 0.3s;
}

.reply-form .form-input {
    margin-bottom: 8px;
    font-size: 13px;
    padding: 8px 12px;
}

/* Nested comment */
.comment-replies {
    padding-left: 48px;
    margin-top: 4px;
}

.comment-replies .comment-item {
    padding: 12px 0;
}

/* ========== RELATED ARTICLES ========== */
.related-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--green-primary);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--orange-accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--green-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.related-card .rc-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-card .rc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover .rc-img img {
    transform: scale(1.08);
}

.related-card .rc-body {
    padding: 12px 14px 14px;
}

.related-card .rc-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green-primary);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.related-card .rc-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.related-card .rc-title:hover {
    color: var(--green-primary);
}

.related-card .rc-date {
    font-size: 11px;
    color: var(--text-light);
}

/* ========== SIDEBAR ========== */
.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    background: var(--green-primary);
    color: #fff;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.widget-body {
    padding: 14px 16px;
}

/* TOC */
.toc-list a {
    display: block;
    padding: 8px 0 8px 14px;
    font-size: 13px;
    color: var(--text-body);
    border-left: 2px solid var(--border-color);
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--green-primary);
    border-left-color: var(--green-primary);
    background: var(--green-light);
    font-weight: 600;
}

.toc-list a.toc-h3 {
    padding-left: 28px;
    font-size: 12px;
}

/* Popular sidebar */
.popular-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-gray);
    align-items: center;
}

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

.popular-item .pop-img {
    width: 65px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-item .pop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-item .pop-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item .pop-title:hover {
    color: var(--green-primary);
}

/* ========== FLOATING SHARE (DESKTOP) ========== */
.floating-share {
    position: fixed;
    left: 50%;
    margin-left: -620px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

.floating-share .f-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.floating-share .f-share-btn:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.floating-share .f-share-btn.fb {
    background: #1877f2;
}

.floating-share .f-share-btn.tw {
    background: #1da1f2;
}

.floating-share .f-share-btn.wa {
    background: #25d366;
}

.floating-share .f-share-btn.tg {
    background: #0088cc;
}

.floating-share .f-share-btn.link {
    background: var(--green-primary);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--green-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green-dark);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    z-index: 4000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: 30px 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.footer-about p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 6px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--green-primary);
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 3px;
}

.footer-contact li {
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.footer-contact .iconify {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== MOBILE NAV ========== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.show {
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.show {
    right: 0;
}

.mobile-nav-header {
    background: var(--green-primary);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 17px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav ul a {
    display: block;
    padding: 11px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-gray);
}

.mobile-nav ul a:hover {
    background: var(--green-light);
    color: var(--green-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1080px) {
    .main-nav {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .mobile-nav-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-nav-overlay.show {
        pointer-events: auto;
    }

    .floating-share {
        display: none;
    }
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-sticky {
        position: static;
    }

    .article-title {
        font-size: 24px;
    }

    .article-body {
        font-size: 16px;
        line-height: 1.8;
    }

    .article-body .dropcap::first-letter {
        font-size: 56px;
    }

    .article-body h2 {
        font-size: 20px;
    }

    .article-body h3 {
        font-size: 17px;
    }

    .article-featured-img img {
        height: 220px;
    }

    .article-meta {
        gap: 10px;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-box img {
        width: 70px;
        height: 70px;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .comment-text,
    .comment-actions,
    .reply-form {
        padding-left: 0;
    }

    .comment-replies {
        padding-left: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .share-bar-top {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 21px;
    }

    .article-body {
        font-size: 15px;
    }

    .article-body .dropcap::first-letter {
        font-size: 48px;
    }

    .article-featured-img img {
        height: 180px;
    }

    .share-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* 3D Mobile Sidebar Effect */
body {
    background: #111;
    /* Dark background for 3D effect */
    overflow-x: hidden;
}

#mainWrapper {
    min-height: 100vh;
    background: var(--bg-white);
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s ease;
    transform-origin: center right;
    /* Anchor to right so it pushes right */
}

body.nav-open #mainWrapper {
    transform: scale(0.9) translateX(260px);
    border-radius: 20px;
    pointer-events: none;
    /* Prevent clicking inside wrapper */
    overflow: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

/* Mobile Nav styling for left side */
.mobile-nav {
    left: -300px !important;
    right: auto !important;
    background: transparent !important;
    /* Will show #111 body bg */
    width: 250px !important;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-nav.show,
body.nav-open .mobile-nav {
    left: 0 !important;
}

.mobile-nav-header h2 {
    color: #fff !important;
}

.mobile-nav-close {
    color: #fff !important;
}

.mobile-nav ul a {
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.mobile-nav ul a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Tentang Kami label */
.mobile-nav li[style*="background: var(--bg-gray)"] {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Overlay inside main wrapper */
.mobile-nav-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 9999 !important;
}

body.nav-open .mobile-nav-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ========== FRIES MENU (STAGGERED LINES) ========== */
.fries-menu {
    cursor: pointer;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align lines to the right edge */
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    padding: 0 8px;
    /* Give some breathing room */
    margin-left: auto;
    outline: none;
}

.fries-line {
    background-color: var(--green-dark);
    /* Warna logo */
    height: 8px;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered lengths for "Fries" look */
.fries-line:nth-child(1) {
    width: 24px;
}

.fries-line:nth-child(2) {
    width: 16px;
}

.fries-line:nth-child(3) {
    width: 10px;
}

.admin-hamburger.fries-menu .fries-line {
    background-color: #fff;
}

/* On hover, lines stretch to full equal length */
.fries-menu:hover .fries-line {
    width: 24px;
    background-color: var(--text-dark);
}

.admin-hamburger.fries-menu:hover .fries-line {
    background-color: #ffff00;
}

/* Animated "X" State when Menu is Open */
body.nav-open .fries-menu .fries-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    width: 24px;
}

body.nav-open .fries-menu .fries-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

body.nav-open .fries-menu .fries-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 24px;
}

body.nav-open .admin-hamburger.fries-menu .fries-line {
    background-color: #ff0000;
}

/* ========== BOTTOM BAR ========== */
.bottom-bar {
    display: none; /* Hidden by default on desktop */
}

@media (max-width: 768px) {
    .bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        justify-content: space-around;
        padding: 8px 0;
        border-top: 1px solid var(--border-color);
    }
    
    .bottom-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 500;
        gap: 4px;
        transition: color 0.2s;
    }

    .bottom-bar-item .iconify {
        font-size: 24px;
    }

    .bottom-bar-item:hover, .bottom-bar-item.active {
        color: var(--green-primary);
    }
    
    #mainWrapper {
        padding-bottom: 60px; /* Space for bottom bar */
    }
}

/* ========== FAVORITE BUTTON ON CARDS ========== */
.news-card-horizontal, .news-card-vertical, .news-card-featured, .mini-news-item {
    position: relative;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.fav-btn:hover {
    color: var(--red-breaking);
    transform: scale(1.1);
}

.fav-btn.active {
    color: var(--red-breaking);
}

.fav-btn .iconify {
    font-size: 18px;
}

/* Typography for Article Content & Body */
.article-content ul, .article-body ul,
.article-content ol, .article-body ol {
    margin-bottom: 1em;
    margin-top: 0.5em;
    padding-left: 2.5em; /* Memberi jarak indentasi */
}

.article-content ul, .article-body ul {
    list-style-type: disc;
}

.article-content ol, .article-body ol {
    list-style-type: decimal;
}

.article-content li, .article-body li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.article-content p, .article-body p {
    margin-bottom: 1em;
}

.article-content h1, .article-body h1,
.article-content h2, .article-body h2,
.article-content h3, .article-body h3,
.article-content h4, .article-body h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--text-dark);
}