/*
Theme Name: Web Desa di Morowali Utara
Theme URI: http://example.com/custom-theme
Author: KKN SABA MORTARA 2026
Author URI: http://example.com/
Description: A premium, highly professional destination-focused theme for village website of Saba Mortara, North Morowali. Built with deep forest greens and antique gold, editorial typography, and spacious organic layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-theme
Tags: modern, clean, translation-ready, custom-colors, responsive-layout, editorial, green-gold
*/

/* --- Design System & CSS Variables --- */
:root {
    /* Color Palette */
    --color-primary: #0b2517;
    /* Deep Forest Green */
    --color-primary-rgb: 11, 37, 23;
    --color-primary-light: #16462d;
    /* Light Forest Green */
    --color-accent: #cda250;
    /* Antique Gold */
    --color-accent-rgb: 205, 162, 80;
    --color-accent-light: #dfc185;
    /* Soft Light Gold */
    --color-bg-base: #fbfbf9;
    /* Premium Off-White Paper Tint */
    --color-bg-white: #ffffff;
    --color-text-dark: #1d2521;
    /* Very Dark Greenish Gray */
    --color-text-muted: #5e6d65;
    /* Soft Slate Muted Green-Gray */
    --color-border: rgba(11, 37, 23, 0.08);
    --color-border-hover: rgba(205, 162, 80, 0.3);

    /* Typography */
    --font-heading: 'Lora', 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;

    /* Spacing & Borders */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Animations & Shadow */
    --shadow-soft: 0 12px 30px -10px rgba(11, 37, 23, 0.05);
    --shadow-hover: 0 20px 40px -15px rgba(11, 37, 23, 0.12);
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Selection */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Helper Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-base);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-base);
}

.btn-gold {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: 1px solid var(--color-accent);
}

.btn-gold:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-base);
}

/* --- Header Section (UGM style - Default White for inner pages) --- */
/* Global Reset for Menu Lists to Prevent Bullets and Indents */
.main-navigation ul,
.main-navigation li,
.main-navigation .sub-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0.85rem 0;
    /* Compact default padding */
    transition: var(--transition-smooth);
}

.site-header.site-header-scrolled {
    box-shadow: 0 8px 30px rgba(11, 37, 23, 0.06);
    padding: 0.6rem 0;
    /* Shrunk padding on scroll */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Allows sub-menus to expand full-width of header */
    transition: var(--transition-smooth);
}

/* Brand Identity */
.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-crest {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.crest-svg {
    width: 100%;
    height: 100%;
}

.crest-svg circle,
.crest-svg path {
    transition: var(--transition-smooth);
}

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

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
}

.logo-main span {
    color: var(--color-accent);
    transition: var(--transition-smooth);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
    transition: var(--transition-smooth);
}

/* Navigation Links (Desktop) */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.main-navigation a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-smooth);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* Desktop Dropdown Mega Menu (FKG UGM style) */
@media (min-width: 1025px) {
    .header-container {
        position: static;
        /* Position sub-menus relative to .site-header instead */
    }

    .main-navigation {
        position: static;
    }

    .main-navigation ul {
        position: static;
        /* Remove relative positioning so sub-menu positions relative to .site-header */
    }

    .main-navigation li.menu-item-has-children {
        position: static;
        /* Dropdown spans full width of header container */
    }

    /* Clean up all bullets and list indents for neatness */
    .main-navigation ul,
    .main-navigation li,
    .main-navigation .sub-menu {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-indent: 0 !important;
    }

    /* Wide dropdown box */
    .main-navigation li.menu-item-has-children>.sub-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: calc(100% - 4rem);
        max-width: 1176px;
        /* Align precisely with the 1240px container inner width */
        background-color: var(--color-bg-white);
        border: 1px solid var(--color-border);
        box-shadow: 0 15px 40px rgba(11, 37, 23, 0.08);
        padding: 2.2rem 3rem !important;
        /* Elegant, spacious padding, overrides reset */
        border-radius: var(--radius-md);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* 4 Column Grid */
        gap: 1.2rem 2.5rem;
        /* Row gap: 1.2rem (tighter), Column gap: 2.5rem */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        /* Disallow mouse interactions when hidden */
        transition: var(--transition-smooth);
        z-index: 999;
    }

    /* Show Dropdown on Hover */
    .main-navigation li.menu-item-has-children:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        /* Allow mouse interactions when visible */
        transform: translateX(-50%) translateY(0);
    }

    /* Invisible hover bridge to prevent menu from closing when mouse transitions from link to sub-menu */
    .main-navigation li.menu-item-has-children>.sub-menu::before {
        content: '';
        position: absolute;
        top: -35px;
        left: 0;
        width: 100%;
        height: 35px;
        background: transparent;
        z-index: -1;
        pointer-events: auto;
    }

    /* Mega Menu Title Row (dynamically inserted via JS) */
    .main-navigation .sub-menu .mega-menu-title-row {
        grid-column: 1 / -1;
        padding-bottom: 0.8rem;
        border-bottom: 1.5px solid rgba(11, 37, 23, 0.08);
        margin-bottom: 0;
        /* Remove margin bottom to keep it close to columns */
    }

    .main-navigation .sub-menu .mega-menu-title {
        font-family: var(--font-heading);
        font-size: 1.65rem;
        font-weight: 500;
        color: var(--color-primary);
        letter-spacing: -0.01em;
        text-transform: none;
        display: block;
    }

    /* Columns within Dropdown */
    .main-navigation .sub-menu>li {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Column Header */
    .main-navigation .sub-menu>li>a {
        font-family: var(--font-body);
        font-weight: 700;
        font-size: 0.88rem;
        color: var(--color-primary);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding-bottom: 0.2rem;
        border-bottom: none;
        /* Clean UGM style: no border on individual headers */
        margin-bottom: 0.6rem;
        display: inline-block;
        pointer-events: none;
        /* Column headers are categories */
    }

    .main-navigation .sub-menu>li>a::after {
        display: none;
    }

    /* Column Links List */
    .main-navigation .sub-menu .sub-menu {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        /* Force left-alignment, overrides parent align-items: center */
        gap: 0.5rem;
        padding: 0 !important;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
    }

    .main-navigation .sub-menu .sub-menu li {
        position: static;
    }

    .main-navigation .sub-menu .sub-menu a {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 0.85rem;
        color: var(--color-text-muted) !important;
        text-transform: none;
        letter-spacing: 0;
        padding: 0.25rem 0;
        display: inline-block;
        transition: var(--transition-smooth);
    }

    .main-navigation .sub-menu .sub-menu a:hover {
        color: #ffd000 !important;
        /* Bright, premium gold-yellow hover */
        padding-left: 6px;
    }

    .main-navigation .sub-menu .sub-menu a::after {
        display: none;
    }
}


/* Mobile Hamburger Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-lines {
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger-lines .line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hamburger transition into 'X' icon */
.menu-toggle.menu-open .line1 {
    transform: rotate(45deg);
    position: absolute;
    top: 7px;
}

.menu-toggle.menu-open .line2 {
    opacity: 0;
}

.menu-toggle.menu-open .line3 {
    transform: rotate(-45deg);
    position: absolute;
    top: 7px;
}

/* --- Transparent-to-White Scroll Effect (All Pages) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    border-bottom: none;
    /* Inset border on container instead */
    z-index: 999;
    padding: 0.85rem 0 0 0;
    /* Compact top padding */
}

/* Inset border matching container width when transparent */
.site-header:not(.site-header-scrolled) .header-container {
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
    /* Clearly visible white line */
    padding-bottom: 0.75rem;
    /* Compact inset gap */
}

/* Transparent links and logo colors */
.site-header:not(.site-header-scrolled) .logo-main {
    color: #ffffff;
}

.site-header:not(.site-header-scrolled) .logo-main span {
    color: #ffffff;
}

.site-header:not(.site-header-scrolled) .logo-sub {
    color: rgba(255, 255, 255, 0.7);
}

.site-header:not(.site-header-scrolled) .main-navigation>ul>li>a,
.site-header:not(.site-header-scrolled) .main-navigation>div>ul>li>a {
    color: #ffffff;
}

/* Ensure dropdown links are always dark and readable, bypassing parent transparency styles */
.main-navigation .sub-menu a {
    color: var(--color-text-muted) !important;
}

.main-navigation .sub-menu>li>a {
    color: var(--color-primary) !important;
}

.main-navigation .sub-menu a:hover {
    color: #ffd000 !important;
}

.site-header:not(.site-header-scrolled) .menu-toggle .line {
    background-color: #ffffff;
}

/* Transparent Crest colors */
.site-header:not(.site-header-scrolled) .crest-outer-circle,
.site-header:not(.site-header-scrolled) .crest-inner-circle {
    stroke: #ffffff;
}

.site-header:not(.site-header-scrolled) .crest-leaf-outer {
    fill: #ffffff;
}

.site-header:not(.site-header-scrolled) .crest-leaf-inner {
    fill: var(--color-accent);
}

.site-header:not(.site-header-scrolled) .crest-center-dot {
    fill: #ffffff;
}

/* Scrolled/White Transition */
.site-header.site-header-scrolled {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(11, 37, 23, 0.06);
    padding: 0.6rem 0;
    /* Shrunk padding on scroll */
}

.site-header.site-header-scrolled .header-container {
    border-bottom: none;
    padding-bottom: 0;
}

.site-header.site-header-scrolled .logo-main {
    color: var(--color-primary);
}

.site-header.site-header-scrolled .logo-main span {
    color: var(--color-accent);
}

.site-header.site-header-scrolled .logo-sub {
    color: var(--color-text-muted);
}

.site-header.site-header-scrolled .main-navigation a {
    color: var(--color-primary);
}

.site-header.site-header-scrolled .menu-toggle .line {
    background-color: var(--color-primary);
}

.site-header.site-header-scrolled .crest-outer-circle,
.site-header.site-header-scrolled .crest-inner-circle {
    stroke: var(--color-accent);
}

.site-header.site-header-scrolled .crest-leaf-outer {
    fill: var(--color-primary);
}

.site-header.site-header-scrolled .crest-leaf-inner {
    fill: var(--color-accent);
}

.site-header.site-header-scrolled .crest-center-dot {
    fill: var(--color-primary);
}

/* --- Homepage (front-page.php) Layouts --- */

/* 1. Immersive Hero */
.hero-section {
    position: relative;
    height: 95vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-base);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    overflow: hidden;
}

/* Global Hero Video Background (works on .hero-section, .page-header-minimal, .ph-hero) */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-video-bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.2);
    pointer-events: none;
}

/* Subtle dark gradient overlay to guarantee text legibility */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 37, 23, 0.4) 0%, rgba(11, 37, 23, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-accent-light);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-section h2 {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-bg-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* 2. Quick Info Overlay Stats Widget */
.quick-info-bar {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-sm);
    margin-top: -4.5rem;
    position: relative;
    z-index: 10;
    padding: 2.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.info-item {
    position: relative;
}

.info-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--color-border);
}

.info-item h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.info-item p {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0;
}

/* 3. Section Titles */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem auto;
}

.section-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    position: relative;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

/* 4. Editorial Welcome Speech (Sambutan Kades) */
.welcome-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.welcome-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.welcome-quote {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--color-primary-light);
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.kades-signature {
    margin-top: 2.5rem;
}

.kades-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.kades-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.welcome-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.welcome-image-container::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: calc(100% - 3rem);
    height: 100%;
    border: 1px solid var(--color-accent);
    z-index: 1;
}

.welcome-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-sm);
    z-index: 2;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}

/* 5. Destination/Features Cards Loop */
.explore-section {
    padding: var(--spacing-lg) 0;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.explore-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.explore-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-border-hover);
}

.explore-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.explore-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.explore-card:hover .explore-image-wrapper img {
    transform: scale(1.08);
}

.explore-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-primary);
    color: var(--color-bg-base);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.explore-card-content {
    padding: 2.25rem;
}

.explore-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.explore-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.explore-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.explore-link::after {
    content: '→';
    transition: var(--transition-smooth);
}

.explore-card:hover .explore-link::after {
    transform: translateX(6px);
}

/* 6. Numeric Statistics Dashboard */
.stats-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-primary);
    color: var(--color-bg-base);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-card {
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-accent);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
}

/* 7. Magazine News / Blog section */
.news-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.news-card {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

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

.news-meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    line-height: 1.35;
    margin-bottom: 1rem;
}

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

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

.news-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.news-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.news-link:hover {
    color: var(--color-accent);
}

/* --- Internal Article Pages (single.php / page.php) --- */
.page-header-minimal {
    padding: 6rem 0 4rem 0;
    background: linear-gradient(180deg, rgba(15, 37, 23, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Immersive hero variant for inner pages (with bg image or video) */
.page-header-minimal.has-hero-media {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border-bottom: none;
}

.page-header-minimal.has-hero-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 37, 23, 0.45) 0%, rgba(11, 37, 23, 0.8) 100%);
    z-index: 1;
}

.page-header-minimal.has-hero-media .container {
    position: relative;
    z-index: 2;
}

.page-header-minimal.has-hero-media h1,
.page-header-minimal.has-hero-media p {
    color: #ffffff;
}

.page-header-minimal.has-hero-media p {
    color: rgba(255, 255, 255, 0.85);
}

.page-header-minimal.has-hero-media .single-meta {
    color: var(--color-accent-light);
}

.page-header-minimal h1 {
    font-size: 3.2rem;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.single-meta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
}

.article-content {
    max-width: 780px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.8rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.article-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--color-primary-light);
    margin: 3rem 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-soft);
}

/* --- Elegant Footer Layout --- */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-bg-base);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5rem 0 3rem 0;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-bg-white);
    margin-bottom: 0.5rem;
}

.footer-logo h3 span {
    color: var(--color-accent);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    max-width: 320px;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact p strong {
    color: var(--color-bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin-bottom: 0;
}

/* --- News Marquee Slider (Infinite Scrolling) --- */
.news-marquee-section {
    margin-top: -2rem;
    /* Pull up to close the gap left by the stats bar negative margin */
    padding: 0.5rem 0 2.5rem 0;
    background-color: var(--color-bg-base);
    overflow: hidden;
    /* Hide overflow to prevent horizontal scrollbars */
    border-bottom: 1px solid var(--color-border);
}

.news-marquee-title-wrapper {
    max-width: 1240px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
    text-align: left;
}

.marquee-tag {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.marquee-section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0;
}

.news-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

/* The animating track containing the cards */
.news-marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
    /* Ensure container spans dynamically based on children width */
}

/* Pause animation on hover for premium user interaction */
.news-marquee-container:hover .news-marquee-track {
    animation-play-state: paused;
}

/* Individual Marquee Card */
.marquee-card {
    position: relative;
    width: 320px;
    height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent cards from shrinking */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.marquee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.marquee-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    z-index: 1;
}

.marquee-card:hover .marquee-card-bg {
    transform: scale(1.05);
}

.marquee-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 37, 23, 0.1) 0%, rgba(11, 37, 23, 0.75) 100%);
    z-index: 2;
}

.marquee-card-content {
    position: relative;
    z-index: 3;
}

.marquee-card-date {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    display: block;
    margin-bottom: 0.4rem;
}

.marquee-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-bg-white);
    line-height: 1.35;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Keyframes for seamless translation scroll (right to left) */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Since we duplicated the items exactly once, translate by exactly -50% */
        transform: translateX(-50%);
    }
}


/* Force dropdown hover links to be bright yellow */
.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu li a:hover,
.main-navigation .sub-menu .sub-menu a:hover,
#primary-menu .sub-menu a:hover,
.sub-menu a:hover {
    color: #ffd000 !important;
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {

    /* Top Bar adjustments */
    .top-bar-left {
        display: none;
    }

    .top-bar-container {
        justify-content: center;
    }

    /* Mobile Hamburger Menu display */
    .menu-toggle {
        display: block;
    }

    /* Mobile Menu Drawer navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-bg-white);
        box-shadow: -10px 0 30px rgba(11, 37, 23, 0.08);
        z-index: 1000;
        padding: 5.5rem 2rem 3rem 2rem;
        transition: var(--transition-smooth);
        display: block;
        overflow-y: auto;
    }

    .main-navigation.menu-active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .main-navigation a {
        font-size: 0.95rem;
        display: block;
        width: 100%;
        padding: 0.2rem 0;
    }

    .main-navigation a::after {
        display: none;
        /* Disable slide underline on mobile */
    }

    .nav-menu-locked {
        overflow: hidden;
    }

    .explore-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .hero-section h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.55rem;
    }

    .hero-section h2 {
        font-size: 2.25rem;
    }

    .explore-grid,
    .news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-item:not(:last-child)::after {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .page-header-minimal h1 {
        font-size: 2.2rem;
    }
}

/* --- Profil Desa Page Custom Styles --- */

/* Parchment map section background */
.map-section-parchment {
    background: radial-gradient(circle, #fcfaf5 0%, #f5f2eb 100%) !important;
}

/* SVG map styling */
.sulfest-map-svg {
    filter: drop-shadow(0 10px 20px rgba(11, 37, 23, 0.15));
}

.map-city-dot {
    fill: #ffffff;
    stroke: var(--color-primary);
    stroke-width: 1.5;
}

/* Pulsing ripple animations for the map dots */
.map-pulse-glow {
    fill: var(--color-accent);
    opacity: 0.35;
    transform-origin: center;
    animation: map-ripple 2s infinite ease-out;
}

.map-pulse-glow-center {
    fill: var(--color-accent);
    opacity: 0.45;
    transform-origin: center;
    animation: map-ripple-center 1.8s infinite ease-out;
}

@keyframes map-ripple {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes map-ripple-center {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Dotted glowing connection paths flowing to the center */
.map-connection-line {
    stroke: var(--color-accent);
    stroke-width: 2.2;
    stroke-dasharray: 6 6;
    stroke-linecap: round;
    opacity: 0.75;
    animation: map-flow 20s linear infinite;
}

@keyframes map-flow {
    to {
        stroke-dashoffset: -200;
    }
}

/* Map Typography styling */
.map-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    fill: var(--color-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.map-label-center {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    fill: var(--color-primary);
}

.map-label-center-sub {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.65rem;
    fill: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Accessibility rute listings hover effect */
.travel-time-list div {
    transition: var(--transition-smooth);
}

.travel-time-list div:hover {
    padding-left: 8px;
    border-bottom-color: var(--color-accent) !important;
}

/* Map responsive adjustment */
@media (max-width: 1024px) {
    .stylized-map-container {
        max-width: 400px;
    }
}

/* --- Minimal Page Headers & Banner Styles for Inner Pages --- */
.page-header-minimal,
.hero-banner {
    position: relative;
    background-image: linear-gradient(to bottom, rgba(var(--color-primary-rgb), 0.45) 0%, rgba(var(--color-primary-rgb), 0.8) 85%, var(--color-primary) 100%), url('images/hero_morowali.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 11.5rem 0 6.5rem 0;
    border-bottom: 3.5px solid var(--color-accent);
    text-align: center;
}

.page-header-minimal h1,
.hero-banner h2 {
    font-family: var(--font-heading);
    color: #ffffff !important;
    font-size: 3.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-header-minimal p,
.hero-banner p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.page-header-minimal .single-meta {
    color: var(--color-accent-light) !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

/* --- Scroll-Triggered Animations (Elastic Back-Out Spring Effect) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 1.1s cubic-bezier(0.34, 1.56, 0.64, 1), transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delay Utilities for premium step-by-step element popups */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ================================================================
   KABAR DESA — EDITORIAL NEWS PORTAL
   Matches Saba Mortara forest-green & antique-gold theme.
   ================================================================ */

/* ── Breaking Ticker ─────────────────────────────────────────── */
.kd-ticker {
    background: #900e0e;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 62px;
    z-index: 990;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.kd-ticker:hover .kd-ticker-belt {
    animation-play-state: paused;
}
.kd-ticker-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.kd-ticker-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
.kd-ticker-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.kd-ticker-tag {
    background: rgba(0,0,0,0.3);
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0 1.1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.18);
    flex-shrink: 0;
}
.kd-ticker-runway { overflow: hidden; flex: 1; }
.kd-ticker-belt {
    display: flex;
    white-space: nowrap;
    animation: kd-ticker 25s linear infinite;
    padding: 0 1.5rem;
    height: 100%;
    align-items: center;
}
.kd-ticker-belt span { display: inline-block; }
@keyframes kd-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Page Header ─────────────────────────────────────────────── */
.kd-page-header {
    padding: 7rem 0 3.5rem;
    text-align: center;
}

/* ── Category Filter Nav ─────────────────────────────────────── */
.kd-filter-nav {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 70px;
    z-index: 88;
    box-shadow: 0 2px 16px rgba(11,37,23,0.05);
}
.kd-filter-list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}
.kd-filter-list::-webkit-scrollbar { display: none; }
.kd-filter-pill {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.9rem 1.35rem;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.kd-filter-pill:hover {
    color: var(--color-primary);
    background: var(--color-bg-base);
    border-bottom-color: rgba(205,162,80,0.5);
}
.kd-filter-pill.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 700;
}

/* ── Page Wrapper ────────────────────────────────────────────── */
.kd-wrapper {
    background: var(--color-bg-base);
    padding: 2.5rem 0 5rem;
}

/* ── Two-Column Layout ───────────────────────────────────────── */
.kd-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* ── Category Badge ──────────────────────────────────────────── */
.kd-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.28rem 0.75rem;
    border-radius: 2px;
}

/* ── Featured Story ──────────────────────────────────────────── */
.kd-feature {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 40px -8px rgba(11,37,23,0.18);
    margin-bottom: 2rem;
}
.kd-feature-link { display: block; text-decoration: none; }
.kd-feature-fig {
    position: relative;
    aspect-ratio: 16 / 7;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: transform 0.7s cubic-bezier(0.25,1,0.5,1);
}
.kd-feature:hover .kd-feature-fig { transform: scale(1.015); }
.kd-feature-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7,22,14,0.95) 0%,
        rgba(7,22,14,0.55) 45%,
        rgba(7,22,14,0.05) 100%
    );
}
.kd-feature-caption {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
}
.kd-feature-caption .kd-badge { margin-bottom: 0.85rem; }
.kd-feature-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    max-width: 740px;
}
.kd-feature-excerpt {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.65;
    margin: 0 0 1rem;
    max-width: 620px;
}
.kd-feature-byline {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.kd-byline-sep { opacity: 0.4; }

/* ── Duo Row (stacked) ────────────────────────────────── */
.kd-duo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.kd-duo-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s cubic-bezier(0.25,1,0.5,1), box-shadow 0.35s ease;
}
.kd-duo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(11,37,23,0.12);
}

/* ── Section Divider ─────────────────────────────────────────── */
.kd-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 1.5rem;
}
.kd-section-divider::before,
.kd-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}
.kd-section-divider span {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ── News Card Grid (stacked) ────────────────────────────────── */
.kd-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Shared Card Styles (Horizontal layout) ──────────────────── */
.kd-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s cubic-bezier(0.25,1,0.5,1), box-shadow 0.35s ease;
}
.kd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(11,37,23,0.12);
}
.kd-card-link,
.kd-duo-card .kd-card-link {
    display: flex;
    flex-direction: row;
    min-height: 140px;
    text-decoration: none;
    color: inherit;
}
.kd-card-fig,
.kd-duo-card .kd-card-fig {
    position: relative;
    width: 200px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}
.kd-card:hover .kd-card-fig,
.kd-duo-card:hover .kd-card-fig { transform: scale(1.03); }
.kd-card-fig .kd-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}
.kd-card-body {
    padding: 0.8rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.3rem;
    justify-content: center;
}
.kd-card-date {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    display: block;
}
.kd-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kd-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kd-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-top: 0.5rem;
    transition: color 0.2s, gap 0.2s;
}
.kd-card:hover .kd-read-more,
.kd-duo-card:hover .kd-read-more { color: var(--color-accent); gap: 0.6rem; }

/* Mobile fallback to vertical layout */
@media (max-width: 640px) {
    .kd-card-link,
    .kd-duo-card .kd-card-link {
        flex-direction: column;
        min-height: auto;
    }
    .kd-card-fig,
    .kd-duo-card .kd-card-fig {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .kd-card-body {
        padding: 1.25rem;
    }
}

/* ── Pagination ──────────────────────────────────────────────── */
.kd-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}
.kd-pagination .page-numbers {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.kd-pagination .page-numbers li a,
.kd-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    color: var(--color-text-dark);
    background: var(--color-bg-white);
    transition: all 0.2s;
}
.kd-pagination .page-numbers li a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.kd-pagination .page-numbers li span.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ══ SIDEBAR ════════════════════════════════════════════════════ */
.kd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 128px;
}
.kd-widget {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.35rem;
    box-shadow: var(--shadow-soft);
}
.kd-widget-heading {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid var(--color-accent);
}

/* Search */
.kd-search {
    display: flex;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}
.kd-search:focus-within { border-color: var(--color-primary); }
.kd-search-input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-dark);
    background: transparent;
}
.kd-search-input::placeholder { color: var(--color-text-muted); }
.kd-search-btn {
    padding: 0 0.85rem;
    background: var(--color-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.kd-search-btn:hover { background: var(--color-primary-light); }

/* Topic List */
.kd-topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.kd-topic-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 0.45rem 0.6rem;
    border-radius: 4px;
    transition: background 0.18s, color 0.18s;
}
.kd-topic-link:hover, .kd-topic-link.is-active {
    background: var(--color-bg-base);
    color: var(--color-primary);
}
.kd-topic-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.kd-topic-arrow {
    margin-left: auto;
    color: var(--color-text-muted);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}
.kd-topic-link:hover .kd-topic-arrow { opacity: 1; transform: translateX(2px); }

/* Recent Posts */
.kd-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.kd-recent-item a {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.kd-recent-thumb {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.kd-recent-item:hover .kd-recent-thumb { transform: scale(1.06); }
.kd-recent-text { flex: 1; min-width: 0; }
.kd-recent-text time {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}
.kd-recent-text p {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.kd-recent-item:hover .kd-recent-text p { color: var(--color-primary-light); }

/* Agenda Widget */
.kd-widget-announcement {
    background: var(--color-primary);
    border-color: transparent;
}
.kd-widget-announcement .kd-widget-heading {
    color: var(--color-accent-light);
    border-bottom-color: rgba(205,162,80,0.35);
}
.kd-agenda-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.kd-agenda-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.kd-agenda-date {
    background: rgba(205,162,80,0.15);
    border: 1px solid rgba(205,162,80,0.3);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    text-align: center;
    flex-shrink: 0;
    min-width: 44px;
}
.kd-agenda-date span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent-light);
    line-height: 1;
}
.kd-agenda-date small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(205,162,80,0.7);
    margin-top: 0.15rem;
}
.kd-agenda-info strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
.kd-agenda-info p {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Stats Widget */
.kd-widget-stats { background: var(--color-bg-base); }
.kd-stats-row { display: flex; justify-content: space-between; }
.kd-stat { text-align: center; flex: 1; padding: 0 0.5rem; }
.kd-stat + .kd-stat { border-left: 1px solid var(--color-border); }
.kd-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.kd-stat span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .kd-layout { grid-template-columns: 1fr 270px; gap: 2rem; }
}
@media (max-width: 900px) {
    .kd-layout { grid-template-columns: 1fr; }
    .kd-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .kd-widget-announcement { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .kd-grid  { grid-template-columns: 1fr; }
    .kd-duo   { grid-template-columns: 1fr; }
    .kd-sidebar { grid-template-columns: 1fr; }
    .kd-feature-caption { padding: 1.5rem; }
    .kd-feature-excerpt { display: none; }
    .kd-filter-pill { padding: 0.8rem 1rem; font-size: 0.76rem; }
}


/* Breaking News Ticker */
.breaking-ticker {
    background: #b5260e;
    color: #fff;
    padding: 0.55rem 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}
.breaking-ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
    overflow: hidden;
}
.breaking-label {
    background: rgba(0,0,0,0.25);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.ticker-scroll-wrap {
    overflow: hidden;
    flex: 1;
}
.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0 1.5rem;
    gap: 0;
}
.ticker-track span { display: inline-block; padding-right: 1rem; }
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Kabar Hero Header Override */
.kabar-hero-header {
    padding: 7rem 0 4rem;
    text-align: center;
}

/* Category Filter Bar */
.news-filter-bar {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(11, 37, 23, 0.06);
}
.filter-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 1rem 1.4rem;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
}
.filter-tab:hover {
    color: var(--color-primary);
    background: var(--color-bg-base);
    border-bottom-color: var(--color-accent);
}
.filter-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 700;
}

/* Main Portal Layout */
.news-portal-wrapper {
    background: var(--color-bg-base);
    padding: 3rem 0 5rem;
}
.news-portal-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 3rem;
    align-items: start;
}

/* Featured Hero Article */
.featured-news-hero {
    margin-bottom: 2.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 50px -10px rgba(11,37,23,0.15);
}
.featured-news-link {
    display: block;
    text-decoration: none;
}
.featured-news-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: transform 0.6s ease;
}
.featured-news-hero:hover .featured-news-image { transform: scale(1.02); }
.featured-news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,37,23,0.92) 0%, rgba(11,37,23,0.4) 50%, rgba(11,37,23,0.1) 100%);
}
.featured-news-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
}
.featured-news-content h2 {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    color: #fff;
    font-weight: 700;
    margin: 0.75rem 0 0.75rem;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.featured-news-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    line-height: 1.6;
    max-width: 680px;
}
.featured-news-meta {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* Category Badge */
.news-cat-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    background-color: var(--color-primary);
}

/* News Card Grid */
.news-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Individual News Card */
.news-card-v2 {
    background: var(--color-bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s cubic-bezier(0.25,1,0.5,1), box-shadow 0.35s ease;
}
.news-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -12px rgba(11,37,23,0.14);
}
.news-card-v2-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.news-card-v2-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    flex-shrink: 0;
    overflow: hidden;
}
.news-card-v2:hover .news-card-v2-image { transform: scale(1.05); }
.news-card-v2-image .news-cat-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}
.news-card-v2-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}
.news-card-v2-meta {
    display: flex;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.news-card-v2-body h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    flex: 1;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-v2-body p {
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more-chip {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-top: auto;
    transition: color 0.2s;
}
.news-card-v2:hover .read-more-chip { color: var(--color-accent); }

/* Pagination */
.news-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}
.news-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.news-pagination .page-numbers li a,
.news-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    background: var(--color-bg-white);
}
.news-pagination .page-numbers li a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.news-pagination .page-numbers li span.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===== SIDEBAR ===== */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: 130px;
}
.sidebar-widget {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}
.sidebar-widget-title {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

/* Search */
.sidebar-search-form {
    display: flex;
    gap: 0.5rem;
}
.sidebar-search-input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-dark);
    outline: none;
    transition: border-color 0.2s;
}
.sidebar-search-input:focus { border-color: var(--color-primary); }
.sidebar-search-btn {
    padding: 0.6rem 1rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s;
}
.sidebar-search-btn:hover { background: var(--color-primary-light); }

/* Category List */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.sidebar-cat-list li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.sidebar-cat-list li a:hover,
.sidebar-cat-list li.active-cat a {
    background: var(--color-bg-base);
    color: var(--color-primary);
}
.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Recent Posts */
.sidebar-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-recent-item a {
    display: flex;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.recent-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.sidebar-recent-item:hover .recent-thumb { transform: scale(1.05); }
.recent-text { flex: 1; }
.recent-date {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}
.recent-text p {
    font-family: var(--font-body);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.sidebar-recent-item:hover .recent-text p { color: var(--color-primary-light); }

/* Sidebar Stats */
.sidebar-stats-widget { background: var(--color-primary); border-color: transparent; }
.sidebar-stats-widget .sidebar-widget-title { color: var(--color-accent-light); border-bottom-color: rgba(205,162,80,0.4); }
.sidebar-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.sidebar-stat-item { text-align: center; }
.sidebar-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.sidebar-stat-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Sidebar Announcements */
.sidebar-announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-announcement-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.announcement-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.35rem;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(205,162,80,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(205,162,80,0); }
}
.announcement-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin: 0 0 0.15rem 0;
}
.announcement-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== RESPONSIVE: KABAR DESA ===== */
@media (max-width: 1024px) {
    .news-portal-layout {
        grid-template-columns: 1fr;
    }
    .news-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .news-secondary-grid {
        grid-template-columns: 1fr;
    }
    .news-sidebar {
        grid-template-columns: 1fr;
    }
    .featured-news-content h2 { font-size: 1.4rem; }
    .filter-tabs { gap: 0; }
    .filter-tab { padding: 0.9rem 1rem; font-size: 0.78rem; }
    .breaking-label { display: none; }
}

/* ── CNBC-Style & In-Feed Featured Mid Custom Layouts ────────── */
.kd-cnbc-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
.kd-cnbc-card {
    background: transparent;
    border: none;
    box-shadow: none;
}
.kd-cnbc-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.kd-cnbc-fig {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: transform 0.5s ease;
}
.kd-cnbc-card:hover .kd-cnbc-fig {
    transform: translateY(-4px);
}
.kd-cnbc-fig .kd-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}
.kd-cnbc-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
}
.kd-cnbc-date {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
}
.kd-cnbc-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.kd-cnbc-card:hover .kd-cnbc-title {
    color: var(--color-primary);
}
.kd-cnbc-excerpt {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kd-feature-mid {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin: 2rem 0;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
}
.kd-feature-mid-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    min-height: 220px;
}
.kd-feature-mid-fig {
    position: relative;
    width: 40%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    flex-shrink: 0;
}
.kd-feature-mid-fig .kd-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}
.kd-feature-mid-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 0.65rem;
}
.kd-feature-mid-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.kd-feature-mid-excerpt {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}
.kd-feature-mid-meta {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .kd-cnbc-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .kd-feature-mid-link {
        flex-direction: column;
        min-height: auto;
    }
    .kd-feature-mid-fig {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .kd-feature-mid-body {
        padding: 1.25rem;
    }
}

/* ================================================================
   KABAR DESA — SINGLE POST DETAIL PAGE
   ================================================================ */
.kd-single-header {
    background: linear-gradient(135deg, #07160e 0%, #0c2317 100%);
    padding: 7.5rem 0 4.5rem;
    color: #fff;
    border-bottom: 2px solid var(--color-accent);
}
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}
.kd-single-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    margin-bottom: 1rem;
}
.kd-meta-sep {
    opacity: 0.5;
}
.kd-single-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 1.5rem;
}
.kd-single-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.kd-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.kd-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.kd-author-info strong {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}
.kd-author-info span {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--color-accent-light);
}

.kd-single-wrapper {
    background: var(--color-bg-base);
    padding: 3.5rem 0 5rem;
}
.kd-single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
    align-items: start;
}
.kd-single-main {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}
.kd-single-fig {
    margin: 0 0 2rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.kd-single-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* Typography for Article Content */
.kd-single-content {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #2c3e35;
}
.kd-single-content p {
    margin-bottom: 1.5rem;
}
.kd-single-content h2,
.kd-single-content h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    margin: 2rem 0 1rem;
}
.kd-single-content h2 { font-size: 1.4rem; }
.kd-single-content h3 { font-size: 1.2rem; }
.kd-single-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.kd-single-divider {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 2.5rem 0 2rem;
}

/* Post Navigation */
.kd-single-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}
.kd-nav-item {
    flex: 1;
    min-width: 0;
}
.kd-nav-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-base);
    transition: all 0.22s;
    height: 100%;
}
.kd-nav-item a:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-white);
    box-shadow: var(--shadow-soft);
}
.kd-nav-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.kd-nav-item strong {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kd-nav-next {
    text-align: right;
}

/* Sidebar Specifics */
.kd-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 130px;
}
.kd-widget-back {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.kd-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--color-primary);
    padding: 0.8rem 1.25rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 100%;
    justify-content: center;
    transition: all 0.25s;
    box-shadow: var(--shadow-soft);
}
.kd-btn-back:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(11,37,23,0.15);
}

/* Related list */
.kd-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.kd-related-item a {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.kd-related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.kd-related-item:hover .kd-related-thumb {
    transform: scale(1.05);
}
.kd-related-text {
    flex: 1;
}
.kd-related-text time {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}
.kd-related-text p {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kd-related-item:hover .kd-related-text p {
    color: var(--color-primary-light);
}

.kd-widget-info {
    background: linear-gradient(135deg, var(--color-primary) 0%, #123321 100%);
    color: #fff;
    border-color: transparent;
}
.kd-widget-info .kd-widget-heading {
    color: var(--color-accent-light);
    border-bottom-color: rgba(205,162,80,0.35);
}
.kd-widget-info p {
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    margin: 0 0 1.25rem;
}
.kd-info-btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--color-accent-light);
    transition: color 0.2s;
}
.kd-info-btn:hover {
    color: #fff;
}

/* Responsive details page */
/* Responsive details page */
@media (max-width: 1024px) {
    .kd-single-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .kd-single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .kd-widget-back {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .kd-single-sidebar {
        grid-template-columns: 1fr;
    }
    .kd-single-main {
        padding: 1.5rem;
    }
    .kd-single-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .kd-nav-next {
        text-align: left;
    }
}

/* ================================================================
   CNBC INDONESIA DETAIL NEWS PORTAL STYLES
   ================================================================ */

.cnbc-detail-wrapper {
    background: #fff;
    padding: 1.25rem 0 4rem;
    font-family: var(--font-body);
}

/* 1. Breadcrumbs */
.cnbc-breadcrumbs {
    font-size: 0.72rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.05em;
}
.cnbc-breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.cnbc-breadcrumbs a:hover {
    color: var(--color-primary);
}
.cnbc-breadcrumb-sep {
    font-weight: 400;
    opacity: 0.5;
}

/* 2. Article Header */
.cnbc-detail-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.cnbc-detail-cat {
    display: inline-block;
    color: #b88a32;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.cnbc-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 2.7rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0c2317;
    margin: 0.5rem 0 1rem;
    letter-spacing: -0.02em;
}
.cnbc-detail-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
    color: #333;
}
.cnbc-detail-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.cnbc-detail-meta-bar .meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cnbc-detail-meta-bar .meta-icon svg {
    display: block;
}
.cnbc-detail-meta-bar .meta-text {
    font-weight: 500;
}
.cnbc-detail-meta-bar .meta-item.category .meta-text a {
    color: #0066cc; /* CNBC-style category link */
    font-weight: 600;
    text-decoration: none;
}
.cnbc-detail-meta-bar .meta-item.category .meta-text a:hover {
    text-decoration: underline;
}
.cnbc-detail-meta-bar .meta-item.date .meta-text {
    color: #000000; /* Solid black for date */
    font-weight: 500;
}
.cnbc-detail-meta-bar .meta-item.author .meta-text {
    color: #0066cc; /* Solid blue for author */
    font-weight: 600;
}

/* Sticky Floating Left Share Bar */
.cnbc-left-share-bar {
    position: sticky;
    top: 140px; /* Sits nicely below the header */
    float: left;
    margin-left: -70px; /* Aligned vertically in the gutter */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 99;
}
.cnbc-left-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cnbc-left-share-btn:hover {
    transform: scale(1.08);
    opacity: 0.9;
}
.cnbc-left-share-btn.fb { background-color: #3b5998; }
.cnbc-left-share-btn.tw { background-color: #00abf0; }
.cnbc-left-share-btn.wa { background-color: #25d366; }

/* Bottom Share Bar */
.cnbc-bottom-share-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 0 0;
    padding: 1.25rem 0;
    border-top: 1px solid #eee;
    border-bottom: none;
}
.cnbc-share-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #555;
    letter-spacing: 0.05em;
}
.cnbc-share-buttons {
    display: flex;
    gap: 0.75rem;
}
.cnbc-bottom-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #fff;
    transition: all 0.2s ease;
}
.cnbc-bottom-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.cnbc-bottom-share-btn.fb { background-color: #3b5998; }
.cnbc-bottom-share-btn.tw { background-color: #00abf0; }
.cnbc-bottom-share-btn.wa { background-color: #25d366; }

@media (max-width: 1200px) {
    .cnbc-left-share-bar {
        display: none;
    }
}

/* 3. Grid Layout */
.cnbc-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
    align-items: start;
}
.cnbc-detail-main {
    min-width: 0;
}

/* Featured Image & Caption */
.cnbc-detail-fig {
    margin: 0 0 2rem;
    border-radius: 4px;
    overflow: hidden;
}
.cnbc-detail-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.cnbc-detail-caption {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
    border-left: 2px solid #ccc;
    padding-left: 0.5rem;
}

/* Article Content Typography */
.cnbc-detail-content {
    font-family: "Plus Jakarta Sans", var(--font-body), sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}
.cnbc-detail-content p {
    margin: 0 0 1.5rem;
}
.cnbc-detail-content h2,
.cnbc-detail-content h3 {
    font-family: var(--font-heading);
    color: #0c2317;
    font-weight: 800;
    margin: 2.25rem 0 1rem;
    line-height: 1.3;
}
.cnbc-detail-content h2 {
    font-size: 1.35rem;
    border-left: 4px solid #cda250;
    padding-left: 0.75rem;
}
.cnbc-detail-content h3 {
    font-size: 1.15rem;
}
.cnbc-detail-content strong {
    color: #111;
}
.cnbc-detail-content blockquote {
    border-left: 3px solid #cda250;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: #555;
    font-size: 1.15rem;
}
.cnbc-detail-content a {
    color: #b88a32;
    text-decoration: underline;
    font-weight: 600;
}
.cnbc-detail-content a:hover {
    color: #0c2317;
}

/* 4. Tags Section */
.cnbc-detail-tags {
    margin: 3rem 0 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.cnbc-tags-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #888;
    margin-top: 0.35rem;
    letter-spacing: 0.05em;
}
.cnbc-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cnbc-tag-pill {
    display: inline-block;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    color: #555;
    background: #f5f5f5;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}
.cnbc-tag-pill:hover {
    background: #0c2317;
    color: #fff;
}

/* 5. Navigation Box */
.cnbc-detail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.cnbc-nav-box a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 0.85rem 1.15rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
    transition: all 0.22s ease;
    height: 100%;
}
.cnbc-nav-box a:hover {
    border-color: #cda250;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.cnbc-nav-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    color: #999;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.cnbc-nav-box strong {
    font-size: 0.85rem;
    color: #0c2317;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cnbc-nav-next {
    text-align: right;
}

/* 6. Sidebar (CNBC-Style Numbered Popular List) */
.cnbc-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 120px;
}

/* Admin Write Button Widget */
.cnbc-sidebar-btn-write {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    background: #0c2317;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 0.85rem 1.25rem;
    border-radius: 4px;
    border: 1px solid #0c2317;
    transition: all 0.25s ease;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(12,35,23,0.15);
}
.cnbc-sidebar-btn-write:hover {
    background: #fff;
    color: #0c2317;
    border-color: #0c2317;
    transform: translateY(-2px);
}

.cnbc-popular-widget {
    background: #fff;
    border-top: 3px solid #0c2317;
    padding-top: 1rem;
}
.cnbc-popular-heading {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    color: #0c2317;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem 0;
    display: inline-block;
    border-bottom: 2px solid #cda250;
    padding-bottom: 0.25rem;
}
.cnbc-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.cnbc-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #eee;
}
.cnbc-popular-item:last-child {
    border-bottom: none;
}
.cnbc-popular-rank {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #cda250;
    line-height: 1;
    min-width: 24px;
    text-align: center;
}
.cnbc-popular-info {
    flex: 1;
}
.cnbc-popular-title {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s;
}
.cnbc-popular-title:hover {
    color: #b88a32;
}

.cnbc-info-widget {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1.25rem;
}
.cnbc-info-widget p {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.55;
    margin: 0 0 1rem 0;
}
.cnbc-info-link {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b88a32;
    transition: color 0.2s;
}
.cnbc-info-link:hover {
    color: var(--color-primary-light);
}

/* Custom navbar administrator post write action button */
.kd-menu-btn-write {
    background: var(--color-accent) !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 4px !important;
    border: 1px solid var(--color-accent) !important;
    transition: all 0.25s ease !important;
    margin-left: 0.5rem;
}
.kd-menu-btn-write:hover {
    background: transparent !important;
    color: #cda250 !important;
    border-color: #cda250 !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .cnbc-detail-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cnbc-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .kd-sidebar-admin-widget {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .cnbc-detail-sidebar {
        grid-template-columns: 1fr;
    }
    .cnbc-detail-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cnbc-nav-next {
        text-align: left;
    }
}

/* ================================================================
   CNBC DETAIL PAGE REFINEMENTS
   ================================================================ */

/* Justify text for professional editorial feel */
.cnbc-detail-content p {
    text-align: justify;
    text-justify: inter-word;
}

/* Restrict inline images and figures to prevent them from overflow / offside */
.cnbc-detail-content img,
.cnbc-detail-content figure,
.cnbc-inline-fig,
.cnbc-inline-img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

.cnbc-detail-content figure {
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
}

.cnbc-inline-img {
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Rekomendasi Berita grid styling */
.cnbc-rekomendasi {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.cnbc-rekomendasi-heading {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    color: #0c2317;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem 0;
    display: inline-block;
    border-bottom: 2px solid #cda250;
    padding-bottom: 0.25rem;
    text-transform: uppercase;
}

.cnbc-rekomendasi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cnbc-rekomendasi-card {
    display: flex;
    flex-direction: column;
}

.cnbc-rekomendasi-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cnbc-rekomendasi-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.cnbc-rekomendasi-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cnbc-rekomendasi-card:hover .cnbc-rekomendasi-img-wrapper img {
    transform: scale(1.05);
}

.cnbc-rekomendasi-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.cnbc-rekomendasi-card:hover .cnbc-rekomendasi-title {
    color: #b88a32;
}

@media (max-width: 640px) {
    .cnbc-rekomendasi-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Custom styling for post detail page header (body.single) */
body.single .site-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: 0 10px 30px rgba(11, 37, 23, 0.06) !important;
    padding: 0.6rem 0 !important;
    position: fixed !important;
}

body.single .site-header .logo-main,
body.single .site-header:not(.site-header-scrolled) .logo-main {
    color: var(--color-primary) !important;
}

body.single .site-header .logo-main span,
body.single .site-header:not(.site-header-scrolled) .logo-main span {
    color: var(--color-accent) !important;
}

body.single .site-header .logo-sub,
body.single .site-header:not(.site-header-scrolled) .logo-sub {
    color: var(--color-text-muted) !important;
}

body.single .site-header .main-navigation>ul>li>a,
body.single .site-header .main-navigation>div>ul>li>a,
body.single .site-header:not(.site-header-scrolled) .main-navigation>ul>li>a,
body.single .site-header:not(.site-header-scrolled) .main-navigation>div>ul>li>a {
    color: var(--color-primary) !important;
}

body.single .site-header .menu-toggle .line,
body.single .site-header:not(.site-header-scrolled) .menu-toggle .line {
    background-color: var(--color-primary) !important;
}

body.single .site-header .crest-outer-circle,
body.single .site-header .crest-inner-circle,
body.single .site-header:not(.site-header-scrolled) .crest-outer-circle,
body.single .site-header:not(.site-header-scrolled) .crest-inner-circle {
    stroke: var(--color-accent) !important;
}

body.single .site-header .crest-leaf-outer,
body.single .site-header:not(.site-header-scrolled) .crest-leaf-outer {
    fill: var(--color-primary) !important;
}

body.single .site-header .crest-leaf-inner,
body.single .site-header:not(.site-header-scrolled) .crest-leaf-inner {
    fill: var(--color-accent) !important;
}

body.single .site-header .crest-center-dot,
body.single .site-header:not(.site-header-scrolled) .crest-center-dot {
    fill: var(--color-primary) !important;
}

/* Adjust top padding of content areas */
body.single .cnbc-detail-wrapper {
    padding-top: 90px !important;
}

/* ================================================================
   UMKM PAGE & SENTRA PRODUK LOKAL STYLES
   ================================================================ */
.umkm-page-wrapper {
    background-color: var(--color-bg-base);
    padding-bottom: 5rem;
}

.umkm-header {
    background: linear-gradient(180deg, rgba(11, 37, 23, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid var(--color-border);
}

.umkm-main-content {
    margin-top: 3rem;
}

/* Grid Layout */
.umkm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Control Bar */
.umkm-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    gap: 0.85rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(11, 37, 23, 0.07);
    width: 100%;
    /* Sticky — stays visible while scrolling through products */
    position: sticky;
    top: 62px; /* height of site-header */
    z-index: 190;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.3s ease;
}

.umkm-control-bar.is-stuck {
    box-shadow: 0 6px 30px rgba(11, 37, 23, 0.1);
}

.umkm-search-wrap {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.umkm-search-wrap input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-dark);
    background-color: rgba(11, 37, 23, 0.015);
    transition: var(--transition-smooth);
}

.umkm-search-wrap input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(205, 162, 80, 0.12);
}

.umkm-search-wrap .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.umkm-search-wrap input:focus + .search-icon {
    color: var(--color-accent);
}

/* Filter Actions Dropdown Toggles */
.umkm-filter-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.umkm-dropdown {
    position: relative;
}

.btn-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-primary-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 5px rgba(11, 37, 23, 0.02);
}

.btn-dropdown-trigger:hover,
.umkm-dropdown.is-open .btn-dropdown-trigger {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 4px 10px rgba(205, 162, 80, 0.1);
}

.btn-dropdown-trigger svg {
    flex-shrink: 0;
}

.btn-dropdown-trigger .chevron-icon {
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.umkm-dropdown.is-open .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu Box */
.umkm-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(11, 37, 23, 0.12);
    min-width: 210px;
    z-index: 999; /* Ensure it floats above product cards */
    padding: 0.5rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.umkm-dropdown.is-open .umkm-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Option Items */
.dropdown-item {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.65rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: block;
    width: 100%;
}

.dropdown-item:hover {
    background-color: rgba(205, 162, 80, 0.1);
    color: #a47a27;
}

.dropdown-item.active {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

/* Product Card */
.umkm-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.umkm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-border-hover);
}

.umkm-card-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--color-primary);
}

.umkm-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.umkm-card:hover .umkm-card-img-wrap img {
    transform: scale(1.06);
}

.umkm-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.umkm-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.umkm-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.umkm-card-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

.umkm-card-footer .btn {
    width: 100%;
}

/* Beautiful Modal Popup */
.umkm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.umkm-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.umkm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 37, 23, 0.65);
    backdrop-filter: blur(5px);
}

.umkm-modal-content {
    position: relative;
    background-color: var(--color-bg-white);
    width: 90%;
    max-width: 950px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(11, 37, 23, 0.25);
    overflow: hidden;
    z-index: 2;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    border-top: 4px solid var(--color-accent);
}

.umkm-modal.is-open .umkm-modal-content {
    transform: scale(1);
}

.umkm-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(11, 37, 23, 0.04);
    border: none;
    font-size: 1.6rem;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.umkm-modal-close:hover {
    color: var(--color-primary);
    background: rgba(205, 162, 80, 0.2);
    transform: rotate(90deg);
}

.umkm-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-height: 90vh;
}

.umkm-modal-left {
    display: flex;
    flex-direction: column;
    background-color: var(--color-primary);
    border-right: 1px solid var(--color-border);
    height: 540px;
}

/* Image Slider */
.umkm-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #05110a;
}

/* Bottom vignette overlay to make dots clear */
.umkm-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
    pointer-events: none;
    z-index: 2;
}

.umkm-slider-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.umkm-slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

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

.umkm-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: rgba(11, 37, 23, 0.45);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 5;
    line-height: 1;
    opacity: 0;
}

.umkm-slider:hover .umkm-slider-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.umkm-slider-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.umkm-slider-prev {
    left: 12px;
}

.umkm-slider-next {
    right: 12px;
}

.umkm-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

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

.umkm-slider-dot.active {
    background: var(--color-accent);
    width: 18px;
    border-radius: 4px;
}

/* Map Title and Wrapper Section */
.umkm-modal-map-section {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1.5rem;
}

.umkm-modal-section-title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-light);
    padding: 0.75rem 1.25rem;
    background: rgba(11, 37, 23, 0.02);
    border-bottom: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.umkm-modal-section-title svg {
    color: var(--color-accent);
}

.umkm-map-embed-wrap {
    flex: 1;
    height: 180px;
    background: #e5e5e5;
    overflow: hidden;
    position: relative;
}

.umkm-map-embed-wrap iframe {
    width: 100%;
    height: 100%;
}

/* Right Column Details Styling */
.umkm-modal-right {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 540px;
}

.umkm-modal-header {
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.umkm-modal-cat {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(205, 162, 80, 0.12);
    color: #a47a27;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    border: 1.5px solid rgba(205, 162, 80, 0.2);
}

.umkm-modal-right h2 {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Specs Details Grid Box */
.umkm-modal-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: rgba(11, 37, 23, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.umkm-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.spec-value {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
}

.spec-value.highlight {
    color: var(--color-primary-light);
}

.umkm-modal-desc-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Custom themed scrollbar for descriptions */
.umkm-modal-desc-scroll::-webkit-scrollbar {
    width: 6px;
}

.umkm-modal-desc-scroll::-webkit-scrollbar-track {
    background: rgba(11, 37, 23, 0.03);
    border-radius: var(--radius-sm);
}

.umkm-modal-desc-scroll::-webkit-scrollbar-thumb {
    background: rgba(11, 37, 23, 0.15);
    border-radius: var(--radius-sm);
}

.umkm-modal-desc-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

.umkm-modal-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.umkm-modal-desc p {
    margin-bottom: 1rem;
}

/* Actions Section separating line */
.umkm-modal-actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 0;
    flex-shrink: 0;
    padding-top: 1.25rem;
    border-top: 1.5px dashed var(--color-border);
}

/* Premium Buttons Styling */
.btn-umkm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(11, 37, 23, 0.05);
}

.btn-wa {
    background: linear-gradient(135deg, #25d366, #1ebd58);
    color: #fff;
    flex: 1;
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 189, 88, 0.3);
    background: linear-gradient(135deg, #2ae771, #1ebd58);
    color: #fff;
}

.btn-market {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: #fff;
    flex: 1;
}

.btn-market:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 74, 25, 0.3);
    background: linear-gradient(135deg, #ff6b3d, #e64a19);
    color: #fff;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .umkm-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .umkm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .umkm-control-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    .umkm-search-wrap {
        width: 100%;
        min-width: auto;
    }
    .umkm-filter-actions {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }
    .umkm-filter-actions .umkm-dropdown {
        flex: 1;
    }
    .umkm-filter-actions .btn-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }
    .umkm-dropdown-menu {
        right: auto;
        left: 0;
        width: 100%;
    }
    .umkm-modal-content {
        max-height: 85vh;
        width: 95%;
    }
    .umkm-modal-body {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    .umkm-modal-left {
        height: auto;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    .umkm-slider {
        height: 250px;
    }
    .umkm-map-embed-wrap {
        height: 200px;
    }
    .umkm-modal-right {
        padding: 2rem 1.5rem;
        height: auto;
    }
    .umkm-modal-specs {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .umkm-modal-desc-scroll {
        max-height: 220px;
        overflow-y: auto;
    }
}

@media (max-width: 640px) {
    .umkm-grid {
        grid-template-columns: 1fr;
    }
    .umkm-search-sort {
        flex-direction: column;
        align-items: stretch;
    }
    .umkm-modal-right h2 {
        font-size: 1.5rem;
    }
    .umkm-modal-actions {
        flex-direction: column;
    }
    .umkm-modal-actions .btn-umkm {
        width: 100%;
    }
}

/* ================================================================
   UMKM MAP SECTION & POPUP STYLING
   ================================================================ */
.umkm-map-section {
    margin-bottom: 2.5rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.umkm-map-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.umkm-map-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.umkm-map-title-wrap svg {
    color: var(--color-accent);
}

.umkm-map-title-wrap h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.umkm-map-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.umkm-main-map-canvas {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background-color: #f5f5f5;
    z-index: 1; /* Keep leaflet controls below dropdowns which have z-index 99/999 */
}

/* Custom Leaflet HTML Marker Pin */
.umkm-map-marker-pin {
    background-color: var(--color-primary);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(11, 37, 23, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.umkm-map-marker-pin::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}
.umkm-map-marker-pin:hover {
    transform: scale(1.2);
    background-color: var(--color-primary-light);
}

/* Leaflet Popup Styling overrides */
.leaflet-popup-content-wrapper {
    background-color: var(--color-bg-white) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 30px rgba(11, 37, 23, 0.15) !important;
    border-top: 3px solid var(--color-accent) !important;
    padding: 0 !important;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0 !important;
    font-family: var(--font-body) !important;
    width: 260px !important;
}
.leaflet-popup-tip {
    background-color: var(--color-bg-white) !important;
}

/* Custom themed popup elements */
.umkm-map-popup {
    display: flex;
    flex-direction: column;
}
.umkm-map-popup-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.umkm-map-popup-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.umkm-map-popup-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a47a27;
    background: rgba(205, 162, 80, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}
.umkm-map-popup-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}
.umkm-map-popup-excerpt {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}
.umkm-map-popup-btn {
    margin-top: 0.25rem;
    background-color: var(--color-primary);
    color: var(--color-bg-base);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}
.umkm-map-popup-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .umkm-main-map-canvas {
        height: 300px;
    }
    .umkm-map-section {
        padding: 1.25rem;
        gap: 1rem;
    }
}

/* ================================================================
   INSTAGRAM MAP STYLE, TOGGLE BUTTON & FULLSCREEN OVERLAY
   ================================================================ */

/* Float Toggle Container */
.umkm-map-toggle-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
}

/* Tooltip bubble above circle */
.umkm-map-tooltip-bubble {
    background-color: #1a202c; /* Dark slate */
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite alternate;
}

/* Tooltip pointer arrow */
.umkm-map-tooltip-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1a202c;
}

/* Circle Button */
.umkm-map-circle-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 24px rgba(11, 37, 23, 0.25);
    background: radial-gradient(circle, #2d3748 0%, #1a202c 100%);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

/* World map SVG outline background inside circle */
.umkm-map-circle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="white" stroke-width="1"/><path d="M50 5 A45 45 0 0 0 5 50 A45 45 0 0 0 50 95 A45 45 0 0 0 95 50 A45 45 0 0 0 50 5 Z" fill="none" stroke="white" stroke-width="0.5"/><path d="M5 50 H95 M50 5 V95" stroke="white" stroke-width="0.5" stroke-dasharray="2 2"/><path d="M15 30 Q35 45 50 30 T85 30 M15 70 Q35 55 50 70 T85 70" fill="none" stroke="white" stroke-width="0.5" stroke-dasharray="2 2"/></svg>');
    background-size: cover;
}

/* Stacked photos in the circle button */
.umkm-map-stacked-photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.umkm-map-stacked-photo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 24px;
}

.umkm-map-stacked-photo.photo-1 {
    transform: rotate(-10deg);
    left: 10px;
    z-index: 2;
}

.umkm-map-stacked-photo.photo-2 {
    transform: rotate(10deg);
    left: 36px;
    z-index: 1;
}

/* Label below circle */
.umkm-map-circle-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary); /* Forest Green to blend with content */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.umkm-map-toggle-container:hover .umkm-map-circle-btn {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(11, 37, 23, 0.35);
}

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

/* Fullscreen Map Overlay */
.umkm-fullscreen-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-base);
    z-index: 100000; /* Extremely high z-index to overlay everything */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

.umkm-fullscreen-map-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.umkm-fullscreen-map-header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(11, 37, 23, 0.03);
}

.umkm-fullscreen-map-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.umkm-fullscreen-map-title svg {
    color: var(--color-accent);
}

.umkm-fullscreen-map-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.umkm-fullscreen-map-close {
    background: rgba(11, 37, 23, 0.04);
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.umkm-fullscreen-map-close:hover {
    color: var(--color-primary);
    background: rgba(205, 162, 80, 0.2);
    transform: rotate(90deg);
}

.umkm-fullscreen-map-canvas {
    flex: 1;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

/* Instagram Post Marker Style */
.umkm-instagram-marker {
    position: relative;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(11, 37, 23, 0.25);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.umkm-instagram-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Triangle Pointer at Bottom */
.umkm-instagram-marker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.umkm-instagram-marker:hover {
    transform: scale(1.15) translateY(-5px);
    z-index: 1000 !important;
}

/* Custom Styled Marker Clusters (Stacked Images) */
.custom-umkm-cluster {
    background: transparent !important;
    border: none !important;
}

.umkm-cluster-marker-stacked {
    position: relative;
    width: 54px;
    height: 54px;
}

.umkm-cluster-stacked-img {
    position: absolute;
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

/* Overlapping stacking offsets */
.umkm-cluster-stacked-img.stack-idx-0 {
    transform: rotate(-10deg);
    top: 2px;
    left: 2px;
    z-index: 3;
}

.umkm-cluster-stacked-img.stack-idx-1 {
    transform: rotate(10deg);
    top: 5px;
    left: 14px;
    z-index: 2;
}

.umkm-cluster-stacked-img.stack-idx-2 {
    transform: rotate(0deg);
    top: 8px;
    left: 8px;
    z-index: 1;
}

/* Badge showing total items in the cluster */
.umkm-cluster-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #2f80ed; /* Accent blue like instagram saves */
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 12px;
    border: 1.5px solid #ffffff;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
    .umkm-map-toggle-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .umkm-map-circle-btn {
        width: 70px;
        height: 70px;
    }
    .umkm-map-stacked-photo {
        width: 28px;
        height: 28px;
        top: 21px;
    }
    .umkm-map-stacked-photo.photo-1 {
        left: 8px;
    }
    .umkm-map-stacked-photo.photo-2 {
        left: 30px;
    }
    .umkm-fullscreen-map-header {
        padding: 0.75rem 1.25rem;
    }
}

/* ================================================================
   ADDITIONAL PREMIUM UI/UX EFFECTS (PORTED FROM PESONA ALAM)
   ================================================================ */


/* 2. Hero Particles styling */
.umkm-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.umkm-particle {
    position: absolute;
    background-color: var(--color-accent-light);
    border-radius: 50%;
    filter: blur(0.5px);
    box-shadow: 0 0 8px rgba(181, 149, 81, 0.5);
    will-change: transform, opacity;
}

@keyframes umkm-float {
    0% {
        transform: translateY(105vh) translateX(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-5vh) translateX(25px) scale(1.2);
        opacity: 0;
    }
}

/* 3. Hero Actions Styling */
.umkm-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
    position: relative;
    z-index: 5;
}

.umkm-hero-actions .btn {
    padding: 0.85rem 1.8rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

/* 4. Card Badge & Spotlight Glow Overlay */
.umkm-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(11, 37, 23, 0.85);
    color: var(--color-accent-light);
    padding: 0.35rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(205, 162, 80, 0.25);
    z-index: 2;
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth);
}

.umkm-card:hover .umkm-card-badge {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.umkm-card {
    position: relative;
    will-change: transform;
}

.umkm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(205, 162, 80, 0.08),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.umkm-card:hover::before {
    opacity: 1;
}

.umkm-card-body {
    position: relative;
    z-index: 2;
}

/* Premium micro-interactions for control bar */
.umkm-search-wrap input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(205, 162, 80, 0.08);
}

.btn-dropdown-trigger {
    position: relative;
    overflow: hidden;
}

/* Modal spec items highlight */
.umkm-spec-item {
    transition: transform 0.3s ease;
}

.umkm-spec-item:hover {
    transform: translateY(-2px);
}

/* ================================================================
   GLOBAL CUSTOM TRAILING CURSOR (PESONA ALAM 1:1)
   ================================================================ */
.ph-cursor {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999999;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s, border-color 0.3s;
    will-change: width, height, background-color, border-color, left, top;
}

.ph-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999999;
    transition: transform 0.1s ease;
    will-change: left, top;
}

.ph-cursor.hovered {
    width: 52px;
    height: 52px;
    background-color: rgba(181, 149, 81, 0.12);
    border-color: var(--color-accent-light);
}

@media (max-width: 1024px) {
    .ph-cursor,
    .ph-cursor-dot {
        display: none !important;
    }
}

/* ================================================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Breakpoints:
   ≤ 1024px  →  Tablet / iPad (landscape & portrait)
   ≤  768px  →  iPad Mini / Android Landscape / Small Tablet
   ≤  480px  →  Android Mobile Phone (portrait)
   ================================================================ */

/* ── GLOBAL CONTAINER ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    html { font-size: 15px; }
}
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    html { font-size: 14px; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    html { font-size: 14px; }
}

/* ── HEADER & NAVIGATION ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .site-header { padding: 0.7rem 0; }
    .logo-main { font-size: 1.25rem; }
    .logo-sub { font-size: 0.58rem; }
    .logo-crest { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
    .site-header { padding: 0.55rem 0; }
    .logo-main { font-size: 1.1rem; }
    .logo-sub { display: none; }
    .logo-crest { width: 32px; height: 32px; }
    .logo-link { gap: 0.6rem; }
}

/* ── HOMEPAGE HERO ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-section { min-height: 80vh; padding: 7rem 0 5rem; }
    .hero-section h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
    .hero-section p { font-size: 1rem; }
    .hero-actions { gap: 0.75rem; }
}
@media (max-width: 768px) {
    .hero-section { min-height: 70vh; padding: 6rem 0 4rem; }
    .hero-section h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .hero-section { min-height: 60vh; padding: 5rem 0 3rem; }
    .hero-section h2 { font-size: 1.75rem; }
    .hero-section p { font-size: 0.92rem; }
}

/* ── HOMEPAGE QUICK INFO BAR ───────────────────────────────────── */
@media (max-width: 768px) {
    .quick-info-bar { padding: 1.5rem; margin-top: -2.5rem; }
    .info-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .info-item p { font-size: 1.1rem; }
    .info-item h4 { font-size: 0.68rem; }
    .info-item:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) {
    .info-grid { grid-template-columns: 1fr; gap: 1rem; }
    .quick-info-bar { margin-top: -1.5rem; }
}

/* ── HOMEPAGE SECTIONS ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .section-title { font-size: 2rem; }
    .section-header { margin-bottom: 2.5rem; }
    .explore-section, .news-section, .welcome-section, .stats-section {
        padding: 3rem 0;
    }
}
@media (max-width: 768px) {
    .section-title { font-size: 1.75rem; }
    .section-header { margin-bottom: 2rem; }
    .explore-section, .news-section, .welcome-section, .stats-section {
        padding: 2.5rem 0;
    }
}
@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }
}

/* ── EXPLORE CARDS GRID ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .explore-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 640px) {
    .explore-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .explore-image-wrapper { height: 200px; }
    .explore-card-content { padding: 1.5rem; }
    .explore-card h3 { font-size: 1.2rem; }
}

/* ── STATS SECTION ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .stat-number { font-size: 2.75rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .stat-number { font-size: 2.2rem; }
    .stat-label { font-size: 0.75rem; }
    .stat-card { padding: 0.75rem; }
}

/* ── NEWS GRID ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .news-card { padding: 1.5rem; }
    .news-title { font-size: 1.2rem; }
}

/* ── WELCOME / SAMBUTAN SECTION ────────────────────────────────── */
@media (max-width: 1024px) {
    .welcome-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .welcome-image-container::before { display: none; }
    .welcome-image { max-width: 100%; }
    .welcome-content h3 { font-size: 1.85rem; }
    .welcome-quote { font-size: 1.15rem; }
}
@media (max-width: 480px) {
    .welcome-content h3 { font-size: 1.5rem; }
    .welcome-quote { font-size: 1rem; padding-left: 1rem; }
}

/* ── NEWS MARQUEE SECTION ──────────────────────────────────────── */
@media (max-width: 768px) {
    .marquee-card { width: 260px; height: 180px; }
    .marquee-section-heading { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .marquee-card { width: 220px; height: 160px; }
    .news-marquee-section { padding: 0 0 2rem; }
    .news-marquee-title-wrapper { margin-bottom: 1.25rem; }
}

/* ── FOOTER ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-logo { grid-column: 1 / -1; }
    .site-footer { padding: 3.5rem 0 2rem; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .site-footer { padding: 2.5rem 0 1.5rem; }
}

/* ── PAGE HEADER MINIMAL (Inner Pages) ─────────────────────────── */
@media (max-width: 1024px) {
    .page-header-minimal, .hero-banner { padding: 8rem 0 4rem; }
    .page-header-minimal h1, .hero-banner h2 { font-size: 2.6rem; }
}
@media (max-width: 768px) {
    .page-header-minimal, .hero-banner { padding: 6.5rem 0 3rem; }
    .page-header-minimal h1, .hero-banner h2 { font-size: 2rem; }
    .page-header-minimal p, .hero-banner p { font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .page-header-minimal, .hero-banner { padding: 5.5rem 0 2.5rem; }
    .page-header-minimal h1, .hero-banner h2 { font-size: 1.65rem; }
    .page-header-minimal p, .hero-banner p { font-size: 0.88rem; }
    .page-header-minimal .single-meta { font-size: 0.75rem; }
}

/* ── KABAR DESA — NEWS LAYOUT ──────────────────────────────────── */
@media (max-width: 768px) {
    .kabar-hero-header { padding: 5rem 0 2.5rem; }
    .kd-page-header { padding: 5rem 0 2.5rem; }
    .kd-layout { grid-template-columns: 1fr; }
    .kd-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .kd-widget-announcement { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .kd-sidebar { grid-template-columns: 1fr; }
    .kd-filter-pill { padding: 0.7rem 0.85rem; font-size: 0.74rem; }
    .kd-feature-title { font-size: 1.25rem; }
    .kd-feature-caption { padding: 1.25rem; }
    .kd-feature-excerpt { display: none; }
    .breaking-label { display: none; }
}

/* ── UMKM PAGE — HERO ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .umkm-page-wrapper { padding-bottom: 4rem; }
    .umkm-main-content { margin-top: 2rem; }
}
@media (max-width: 768px) {
    .umkm-main-content { margin-top: 1.5rem; }
}
@media (max-width: 480px) {
    .umkm-main-content { margin-top: 1rem; }
}

/* ── UMKM PAGE — CONTROL BAR (STICKY, ICON-ONLY MOBILE) ─────────── */

/* Tablet: keep one row, reduce padding slightly */
@media (max-width: 1024px) {
    .umkm-control-bar {
        top: 58px;
        padding: 0.65rem 1rem;
        gap: 0.65rem;
    }
    .umkm-search-wrap { min-width: 200px; }
    .btn-dropdown-trigger { padding: 0.65rem 1rem; }
}

/* Mobile: everything stays ONE ROW, buttons are icon-only */
@media (max-width: 640px) {
    .umkm-control-bar {
        top: 54px;
        padding: 0.55rem 0.75rem;
        gap: 0.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 1.25rem;
    }
    /* Search — shrink to flex: 1, icon stays visible */
    .umkm-search-wrap {
        flex: 1;
        min-width: 0;
    }
    .umkm-search-wrap input {
        padding: 0.6rem 0.75rem 0.6rem 2.4rem;
        font-size: 0.82rem;
        border-radius: 8px;
    }
    /* Filter actions — no wrap, compact */
    .umkm-filter-actions {
        flex-wrap: nowrap;
        gap: 0.35rem;
        flex-shrink: 0;
    }
    /* Dropdown trigger — icon only (hide the text label) */
    .btn-dropdown-trigger {
        padding: 0.6rem 0.7rem;
        gap: 0;
        min-width: 38px;
        justify-content: center;
    }
    /* Hide text span & chevron — icon only */
    .btn-dropdown-trigger span,
    .btn-dropdown-trigger .chevron-icon {
        display: none;
    }
    /* Keep leading icon visible and slightly larger for clarity */
    .btn-dropdown-trigger svg:first-child {
        width: 18px;
        height: 18px;
    }
    /* Dropdown menu opens downward, full-width of viewport edge */
    .umkm-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 180px;
    }
}


/* ── UMKM PAGE — PRODUCT GRID ──────────────────────────────────── */
@media (max-width: 1200px) {
    .umkm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .umkm-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 480px) {
    .umkm-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── UMKM PAGE — MODAL ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .umkm-modal-content { width: 95%; max-height: 90vh; border-radius: 12px; }
    .umkm-modal-body { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
    .umkm-modal-left { height: auto; min-height: auto; border-right: none; border-bottom: 1px solid var(--color-border); }
    .umkm-slider { height: 220px; }
    .umkm-map-embed-wrap { height: 200px; }
    .umkm-modal-right { padding: 1.5rem 1.25rem; height: auto; }
    .umkm-modal-right h2 { font-size: 1.4rem; }
    .umkm-modal-specs { grid-template-columns: 1fr; gap: 0.5rem; padding: 0.75rem 1rem; }
    .umkm-modal-desc-scroll { max-height: 180px; overflow-y: auto; }
    .umkm-modal-actions { flex-direction: column; gap: 0.75rem; }
    .umkm-modal-actions .btn-umkm { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .umkm-modal-content { width: 100%; max-height: 100dvh; border-radius: 16px 16px 0 0; position: fixed; bottom: 0; top: auto; transform: none; }
    .umkm-modal-right h2 { font-size: 1.2rem; }
    .umkm-slider { height: 190px; }
}

/* ── UMKM PAGE — FLOATING MAP TOGGLE BUTTON ────────────────────── */
@media (max-width: 768px) {
    .umkm-map-toggle-container { bottom: 1.5rem; right: 1.5rem; }
    .umkm-map-circle-btn { width: 72px; height: 72px; }
    .umkm-map-tooltip-bubble { font-size: 0.72rem; padding: 0.4rem 0.75rem; }
}
@media (max-width: 480px) {
    .umkm-map-toggle-container { bottom: 1rem; right: 1rem; }
    .umkm-map-circle-btn { width: 62px; height: 62px; }
    .umkm-map-stacked-photo { width: 26px; height: 26px; top: 19px; }
    .umkm-map-stacked-photo.photo-1 { left: 7px; }
    .umkm-map-stacked-photo.photo-2 { left: 28px; }
    .umkm-map-tooltip-text { display: none; }
}

/* ── UMKM FULLSCREEN MAP OVERLAY ───────────────────────────────── */
@media (max-width: 768px) {
    .umkm-fullscreen-map-header { padding: 0.75rem 1rem; gap: 0.75rem; }
    .umkm-fullscreen-map-header h2 { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .umkm-fullscreen-map-header h2 { font-size: 0.95rem; }
    .umkm-fullscreen-map-header p { display: none; }
}

/* ── ARTICLE DETAIL (SINGLE PAGE) ──────────────────────────────── */
@media (max-width: 1024px) {
    .cnbc-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
    .cnbc-detail-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .kd-sidebar-admin-widget { grid-column: 1 / -1; }
    .cnbc-rekomendasi-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 768px) {
    .cnbc-detail-sidebar { grid-template-columns: 1fr; }
    .cnbc-detail-nav { grid-template-columns: 1fr; gap: 1rem; }
    .cnbc-nav-next { text-align: left; }
    .article-content { margin: 2.5rem auto; padding: 0 1rem; }
    .article-content p { font-size: 1rem; }
    .article-content blockquote { font-size: 1.1rem; padding-left: 1.25rem; }
    .cnbc-rekomendasi-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
    body.single .cnbc-detail-wrapper { padding-top: 75px !important; }
    .article-content p { font-size: 0.95rem; line-height: 1.75; }
    .article-content h2 { font-size: 1.4rem; }
    .article-content h3 { font-size: 1.2rem; }
}

/* ── PROFIL DESA PAGE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stylized-map-container { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .stylized-map-container { max-width: 300px; }
}

/* ── BUTTONS — GLOBAL TOUCH TARGET ─────────────────────────────── */
@media (max-width: 768px) {
    .btn { padding: 0.85rem 1.75rem; font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .btn { padding: 0.8rem 1.4rem; font-size: 0.82rem; }
    .btn-detail-umkm { width: 100%; justify-content: center; }
}

/* ── FIX OVERFLOW & GENERAL MOBILE CLEANUPS ─────────────────────── */
@media (max-width: 480px) {
    * { -webkit-overflow-scrolling: touch; }
    img, video, iframe { max-width: 100%; height: auto; }
    .kd-ticker { top: 55px; font-size: 0.72rem; }
    .kd-ticker-tag { padding: 0 0.75rem; font-size: 0.62rem; }
    .umkm-map-section { padding: 1rem; }
    .umkm-main-map-canvas { height: 260px; }
    .footer-contact p { font-size: 0.82rem; }
}