:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-xdark: #065f46;
    --primary-light: #d1fae5;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-light: #fef3c7;
    --red: #EF4444;
    --bg: #F8FAF9;
    --bg-section: #ffffff;
    --text-dark: #111827;
    --text-mid: #414643;
    --text-gray: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --white: #ffffff;
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-green: 0 8px 25px rgba(5, 150, 105, 0.2);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    --nav-h: 68px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* =====================
           SCROLLBAR
           ===================== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =====================
           TOP TICKER BAR
           ===================== */
.ticker-bar {
    background: linear-gradient(90deg, var(--primary-xdark), var(--primary-dark));
    color: white;
    padding: 8px 5%;
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.ticker-label {
    background: var(--accent);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.ticker-text {
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    opacity: 0.85;
}

@keyframes tickerScroll {
    from {
        transform: translateX(0);
    }

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

/* =====================
           NAVBAR
           ===================== */
.navbar {
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

/* .nav-brand-icon {
            width: 38px;
            height: 38px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: white;
        } */

.nav-brand-icon {
    width: 63px;
    height: 63px;
    /* border-radius: 10px; */
    border-radius: 50%;
    border: 1.5px solid var(--primary-light);
    background: transparent;
    overflow: hidden;
    /* crop gambar agar tidak keluar kotak */
    flex-shrink: 0;
    /* jaga ukuran tidak menyusut */
}

.nav-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* gambar mengisi kotak tanpa distorsi */
    display: block;
}

.nav-brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-brand-tagline {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 0.2px;
    margin-top: 2px;
    white-space: nowrap;
}

.nav-brand-dot {
    color: var(--accent);
}

.nav-center {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-mid);
    /* background: linear-gradient(90deg, var(--primary-xdark), var(--primary-dark)); */
    transition: all var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    /* background: var(--primary-light); */
    background: linear-gradient(90deg, var(--primary-xdark), var(--primary-dark));
}

/* =====================
   NAV ITEM WRAP + TOOLTIP
   ===================== */
.nav-center {
    gap: 2px;
    position: relative;
}

.nav-item-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Underline bar animasi ── */
.nav-link-bar {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2.5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.nav-item-wrap:hover .nav-link-bar,
.nav-link.active .nav-link-bar {
    transform: translateX(-50%) scaleX(1);
}

/* ── Nav link tulis ulang lebih interaktif ── */
.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-mid);
    transition: color 0.25s, background 0.25s, transform 0.2s;
    text-decoration: none;
    position: relative;
    overflow: visible;
    background: transparent;
}

.nav-link i {
    font-size: 0.85rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item-wrap:hover .nav-link i {
    transform: translateY(-3px) scale(1.2);
}

.nav-link-text {
    transition: letter-spacing 0.25s ease;
}
.nav-item-wrap:hover .nav-link-text {
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* ── Tooltip bubble ── */
.nav-tooltip {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    background: white;
    border-radius: 14px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--border);
    pointer-events: none;
    z-index: 9999;

    /* awal: hidden */
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.25s;
}

/* Panah segitiga ke atas */
.nav-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.06));
}

/* Tampil saat hover */
.nav-item-wrap:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Ikon dalam tooltip */
.nav-tooltip-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Teks dalam tooltip */
.nav-tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-tooltip-body strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.nav-tooltip-body span {
    font-size: 0.76rem;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.4;
}

/* Jangan tampil tooltip di mobile */
@media (max-width: 768px) {
    .nav-tooltip { display: none; }
    .nav-link-bar { display: none; }
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =====================
   NAV DROPDOWN
   ===================== */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: -2px;
}

.nav-dropdown-wrap.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* Panel dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 230px;
    background: white;
    border-radius: 16px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1.5px solid var(--border);
    padding: 8px;
    z-index: 9999;

    /* Awal tersembunyi */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.25s;
}

/* Panah segitiga */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.06));
}

/* Tampil saat open */
.nav-dropdown-wrap.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Item dalam dropdown */
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--bg);
}

.nav-dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nav-dropdown-item-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-dropdown-item-body strong {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.nav-dropdown-item-body span {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* Divider antar item */
.nav-dropdown-item + .nav-dropdown-item {
    border-top: 1px solid var(--border);
    margin-top: 2px;
    padding-top: 10px;
}

@media (max-width: 1024px) {
    .nav-dropdown { min-width: 200px; }
}
@media (max-width: 820px) {
    .nav-dropdown { display: none; }
}


/* Search */
.search-wrap {
    position: relative;
}

.search-input {
    padding: 8px 16px 8px 38px;
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    width: 210px;
    outline: none;
    transition: all var(--transition);
    background: var(--bg);
    color: var(--text-dark);
}

.search-input:focus {
    border-color: var(--primary);
    background: white;
    width: 250px;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.08);
}

.search-icon-nav {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 99px;
    transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: white;
    z-index: 999;
    border-bottom: 3px solid var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 8px;
    animation: slideDownMenu 0.25s ease both;
}

.mobile-menu.open {
    display: flex;
}

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

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

.mobile-menu .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.mobile-search {
    position: relative;
    margin-top: 8px;
}

.mobile-search .search-input {
    width: 100%;
    border-radius: var(--radius-sm);
}

/* =====================
           HERO SECTION
           ===================== */
.hero {
    position: relative;
    color: white;
    padding: 7rem 5% 5rem;
    text-align: center;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.8s ease-in-out;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg,
            rgba(6, 95, 70, 0.92) 0%,
            rgba(5, 150, 105, 0.72) 45%,
            rgba(4, 120, 87, 0.55) 100%);
}

/* Decorative shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: shapeFloat 6s ease-in-out infinite alternate;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: white;
    top: -100px;
    right: -100px;
    z-index: 2;
}

.hero-shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: -80px;
    left: -60px;
    z-index: 2;
    animation-delay: -3s;
}

@keyframes shapeFloat {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1) translate(15px, -10px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s 0.1s both;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

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

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

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    animation: fadeUp 0.8s 0.2s both;
    color: #ffffff;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(6, 95, 70, 0.5);
    letter-spacing: -0.3px;
}

.hero h1 em {
    font-style: italic;
    color: #fcd34d;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(245, 158, 11, 0.6);
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    opacity: 1;
    /* <-- dari 0.85 jadi 1 */
    color: rgba(255, 255, 255, 0.95);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeUp 0.8s 0.3s both;
    text-shadow:
        0 1px 6px rgba(0, 0, 0, 0.6),
        0 3px 16px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.4s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-hero-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-hero-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Hero dots nav */
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2.5rem;
    animation: fadeUp 0.8s 0.5s both;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* =====================
           STATS STRIP
           ===================== */
.stats-strip {
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat-item {
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-icon-green {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon-amber {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.stat-icon-red {
    background: #fee2e2;
    color: #ef4444;
}

.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-top: 2px;
}

/* =====================
           SECTION COMMONS
           ===================== */
.section {
    padding: 5rem 5%;
}

.section-alt {
    background: var(--bg-section);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-dark);
    line-height: 1.25;
}

.section-title span {
    color: var(--primary);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    border: 2px solid var(--primary-light);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-view-all:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =====================
           NEWS CARDS GRID
           ===================== */
.grid {
    display: grid;
    gap: 1.8rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Featured card (first item) */
.card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    height: 380px;
}

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

.card-featured-img {
    position: relative;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

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

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

.card-featured-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(5, 150, 105, 0.15));
}

.card-featured-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

/* Standard card */
.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--border);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    width: 100%;
    /* height: 195px; */
}

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

.card:hover .card-img {
    transform: scale(1.07);
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-tag.red {
    background: var(--red);
}

.card-body {
    padding: 1.3rem 1.4rem 1.4rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 0.6rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

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

.card-featured-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.35;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: color var(--transition);
}

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

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.9rem;
    margin-top: auto;
    gap: 15px;
}

.card-meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.avatar-sm {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition);
    margin-top: 1.5rem;
    width: fit-content;
}

.btn-read-more:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

/* =====================
           VIDEO SECTION
           ===================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(239, 68, 68, 0.3);
}

.video-thumb {
    position: relative;
    /* height: 195px; */
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: all 0.5s ease;
}

.video-card:hover .video-thumb img {
    filter: brightness(0.6);
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-circle {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
    padding-left: 4px;
}

.video-card:hover .play-btn-circle {
    transform: scale(1.15);
    background: white;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* =====================
           EMPTY STATE
           ===================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 1rem;
    display: block;
}

/* =====================
           FOOTER
           ===================== */
footer {
    background: linear-gradient(145deg, #065f46, var(--primary-xdark));
    color: white;
    padding: 5rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.4rem;
}

.footer-brand-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.2rem;
}

.footer-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link-list a:hover {
    color: var(--accent);
}

.footer-link-list a::before {
    content: '›';
    font-size: 1.1rem;
    color: var(--primary-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-item-icon {
    width: 30px;
    height: 30px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.contact-item-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: var(--accent);
    transition: opacity var(--transition);
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* =====================
           MOBILE BOTTOM NAV
           ===================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: color var(--transition);
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary);
}

/* =====================
           ANIMATE ON SCROLL
           ===================== */
.aos {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos.visible {
    opacity: 1;
    transform: none;
}

.aos-delay-1 {
    transition-delay: 0.1s;
}

.aos-delay-2 {
    transition-delay: 0.2s;
}

.aos-delay-3 {
    transition-delay: 0.3s;
}

/* =====================
           CUSTOM CURSOR
           ===================== */
/* * {
    cursor: none;
}

@media (pointer: coarse) {
    * {
        cursor: auto;
    }
} */

/* .cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, background 0.25s;
    will-change: left, top;
}

.cursor-ring {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(5, 150, 105, 0.55);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    will-change: left, top;
}

.cursor-dot.hov {
    width: 14px;
    height: 14px;
    background: var(--accent);
}

.cursor-ring.hov {
    width: 56px;
    height: 56px;
    border-color: rgba(245, 158, 11, 0.55);
} */

@media (pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* =====================
           HERO CANVAS PARTICLES
           ===================== */
#heroCanvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.5;
}

/* =====================
           TYPEWRITER
           ===================== */
.tw-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: rgba(255, 255, 255, 0.85);
    margin-left: 1px;
    vertical-align: middle;
    border-radius: 1px;
    animation: twBlink 0.75s step-end infinite;
}

@keyframes twBlink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* =====================
           RIPPLE ON BUTTONS
           ===================== */
.btn-hero,
.btn-view-all,
.btn-read-more,
.btn-login {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleGo 0.65s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleGo {
    to {
        transform: scale(5);
        opacity: 0;
    }
}

/* =====================
           CARD TILT 3D
           ===================== */
.card,
.card-featured,
.video-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* =====================
           STAT COUNTER POP
           ===================== */
.stat-num {
    display: inline-block;
}

.stat-item.popped .stat-num {
    animation: statBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statBounce {
    0% {
        transform: scale(0.5);
        opacity: 0
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

/* =====================
           SCROLL MOUSE HINT
           ===================== */
.scroll-hint {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeUp 1.2s 1s both;
}

.scroll-hint-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-mouse-wrap {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-mouse-ball {
    width: 4px;
    height: 7px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: ballDrop 1.6s ease-in-out infinite;
}

@keyframes ballDrop {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1
    }

    65% {
        transform: translateY(10px);
        opacity: 0
    }
}

/* =====================
           PAGE LEAVE OVERLAY
           ===================== */
.leave-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: linear-gradient(135deg, #065f46, #059669);
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.leave-overlay.go {
    transform: scaleY(1);
}

/* =====================
           NAV BRAND HOVER
           ===================== */
.nav-brand:hover .nav-brand-icon {
    box-shadow: 0 0 22px rgba(5, 150, 105, 0.55);
    transform: rotate(-10deg) scale(1.12);
}

/* =====================
   NAVBAR — SQUEEZE MODE (1024px–1180px)
   Navbar masih terlihat tapi lebih kompak
   ===================== */
@media (max-width: 1180px) {
    .navbar {
        padding: 0 3%;
    }

    .nav-brand-name {
        font-size: 1.35rem;
    }

    .nav-brand-tagline {
        display: none; /* sembunyikan tagline dulu */
    }

    .nav-link {
        padding: 7px 11px;
        font-size: 0.82rem;
        gap: 5px;
    }

    .nav-link i {
        font-size: 0.78rem;
    }

    .search-input {
        width: 160px;
        font-size: 0.82rem;
    }

    .search-input:focus {
        width: 190px;
    }
}

/* =====================
   NAVBAR — TABLET TIGHT (820px–1024px)
   iPad Air — sembunyikan teks nav, sisakan ikon saja
   ===================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 2.5%;
    }

    .nav-brand-tagline {
        display: none;
    }

    .nav-brand-name {
        font-size: 1.25rem;
    }

    /* Teks label disembunyikan, hanya ikon */
    .nav-link-text {
        display: none;
    }

    .nav-link {
        padding: 8px 11px;
        font-size: 0.85rem;
        justify-content: center;
    }

    /* Tooltip tetap bekerja jadi user masih tahu fungsinya */
    .nav-tooltip {
        display: flex;
    }

    /* Search jadi ikon saja */
    .search-input {
        width: 36px;
        padding-left: 36px;
        color: transparent;
        cursor: pointer;
        transition: width 0.35s ease, color 0.2s;
    }

    .search-input::placeholder {
        color: transparent;
    }

    .search-input:focus {
        width: 200px;
        color: var(--text-dark);
    }

    .search-input:focus::placeholder {
        color: var(--text-muted);
        transition: color 0.2s 0.2s;
    }
}

/* =====================
   NAVBAR — MOBILE (≤ 820px)
   Hamburger — sembunyikan nav-center sepenuhnya
   ===================== */
@media (max-width: 820px) {
    .nav-center {
        display: none;
    }

    .nav-right .search-wrap {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-brand-tagline {
        display: none;
    }
}

/* =====================
           RESPONSIVE — TABLET
           ===================== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-featured {
        grid-template-columns: 1fr;
    }

    .card-featured-img {
        min-height: 220px;
    }

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

    .stat-item {
        padding: 1.2rem 1.8rem;
    }
}

/* =====================
           RESPONSIVE — MOBILE
           ===================== */
@media (max-width: 768px) {
    :root {
        --nav-h: 62px;
    }

    .ticker-bar {
        display: none;
    }

    /* Navbar mobile */
    /* .nav-center,
    .nav-right .search-wrap {
        display: none;
    } */

    .nav-hamburger {
        display: flex;
    }

    .nav-brand {
        font-size: 1.35rem;
    }

    .nav-brand-tagline {
        display: flex;
    }

    .nav-brand-name {
        font-size: 1.35rem;
    }

    /* Hero */
    .hero {
        padding: 4.5rem 1.5rem 3.5rem;
        min-height: 380px;
    }

    .hero-shape-1 {
        width: 220px;
        height: 220px;
        top: -60px;
        right: -60px;
    }

    .hero-shape-2 {
        width: 150px;
        height: 150px;
    }

    .btn-hero {
        padding: 11px 20px;
        font-size: 0.88rem;
    }

    /* Stats */
    .stats-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.2rem;
        justify-content: center;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

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

    /* Sections */
    .section {
        padding: 3.5rem 1.2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Grids */
    .grid-3,
    .grid-4,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .card-featured {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .card-featured-img {
        height: 220px;
        min-height: unset;
    }

    .card-featured-body {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    footer {
        padding-bottom: 80px;
    }

    /* space for bottom nav */

    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-actions {
        gap: 8px;
    }

    .btn-hero {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* css pwa */
/* =========================================
   TOMBOL INSTALL PWA (DI NAVBAR)
   ========================================= */
.btn-install-pwa {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    /* display: inline-flex; (akan diatur oleh JS nanti) */
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: bounce 2s infinite;
    margin-right: 15px; /* Memberi jarak dengan ikon pencarian */
    white-space: nowrap;
}

.btn-install-pwa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.4);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Responsif untuk Layar HP (Mobile) */
@media (max-width: 768px) {
    .btn-install-pwa {
        padding: 8px 12px;
        margin-right: 10px;
    }
    /* Sembunyikan teks "Install" di HP agar Navbar tidak kepenuhan, sisakan ikon Download saja */
    .btn-install-pwa span {
        display: none; 
    }
}