/* ============================================================
   TEMA GAIRA - "DESA TEKNOLOGI" EDITION
   Terinspirasi Denava16.4 UI/UX - Full Animasi
   Versi: 2.0.0
   ============================================================ */

/* ========================
   CSS VARIABLES - DESA TEKNOLOGI PALETTE
   ======================== */
:root {
    /* Primary - Tosca / Emerald Green */
    --sk-p1: #006020;
    --sk-p2: #008040;
    --sk-p3: #00A651;
    --sk-p4: #39b54a;

    /* Secondary - Navy Blue */
    --sk-s1: #0f182c;
    --sk-s2: #14203b;
    --sk-s3: #1A2A4A;
    --sk-s4: #324b7a;

    /* Accent - Orange / Gold */
    --sk-a1: #d97706;
    --sk-a2: #F7941E;
    --sk-a3: #FFB606;
    --sk-a4: #fef3c7;

    /* Backgrounds & Text */
    --sk-bg-main: #ffffff;
    --sk-bg-section: #F5F7FA;
    --sk-text-primary: #333333;
    --sk-text-secondary: #666666;
    --sk-text-light: #999999;
    --sk-border: #E8ECF1;

    /* Grays (compatibility) */
    --sk-g0: #ffffff;
    --sk-g1: #F5F7FA;
    --sk-g2: #F5F7FA;
    --sk-g3: #E8ECF1;
    --sk-g4: #999999;
    --sk-g5: #666666;
    --sk-g6: #333333;
    --sk-g7: #1A2A4A;

    /* Gradients */
    --sk-grad-hero: linear-gradient(135deg, var(--sk-p3) 0%, var(--sk-s3) 100%);
    --sk-grad-main: linear-gradient(90deg, var(--sk-p3) 0%, var(--sk-s3) 100%);
    --sk-grad-nav: #ffffff;
    --sk-grad-card: #ffffff;
    --sk-grad-btn: linear-gradient(135deg, var(--sk-p3) 0%, var(--sk-p2) 100%);
    --sk-grad-shine: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    /* Shadows & Border-Radius */
    --sk-glow-green: 0 4px 12px rgba(0, 166, 81, 0.15);
    --sk-glow-blue: 0 4px 12px rgba(26, 42, 74, 0.15);
    --sk-glow-btn: 0 4px 14px rgba(0, 166, 81, 0.3);
    --sk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --sk-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --sk-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --sk-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --sk-shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);

    --sk-r0: 4px;
    --sk-r1: 6px;
    --sk-r2: 10px;
    --sk-r3: 12px;
    --sk-r4: 16px;
    --sk-rfull: 9999px;

    /* Transitions */
    --sk-t1: all 0.2s ease;
    --sk-t2: all 0.3s ease;
    --sk-t3: all 0.4s ease;
    --sk-spring: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Dark Mode Base Variables */
    --sk-dark1: #0A0F1D;
    --sk-dark2: #141C2F;
    --sk-dark3: #1E293B;
}

/* ========================
   GLOBAL RESET & BASE
   ======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    /* Fluid base: mencegah browser zoom otomatis di iOS */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.gaira-theme {
    font-family: 'Poppins', sans-serif;
    background: var(--sk-g2);
    color: var(--sk-g7);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    /* Pastikan tap target dan teks tidak terpotong */
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ========================
   LOADING SCREEN - TECH STYLE
   ======================== */
#loading-screen,
.gaira-theme #loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sk-dark1);
    flex-direction: column;
    gap: 20px;
}

/* Override esensi loading screen */
.gaira-theme .loading-screen {
    background: var(--sk-dark1) !important;
}

/* ========================
   ANIMATED BUBBLES (Denava style)
   ======================== */
.sk-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sk-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(46, 204, 141, 0.08);
    border: 1px solid rgba(46, 204, 141, 0.15);
    bottom: -80px;
    animation: sk-bubble-rise 20s infinite;
}

.sk-bubbles li:nth-child(1) {
    left: 10%;
    width: 60px;
    height: 60px;
    animation-duration: 18s;
    animation-delay: 0s;
}

.sk-bubbles li:nth-child(2) {
    left: 25%;
    width: 30px;
    height: 30px;
    animation-duration: 22s;
    animation-delay: 2s;
}

.sk-bubbles li:nth-child(3) {
    left: 40%;
    width: 50px;
    height: 50px;
    animation-duration: 16s;
    animation-delay: 4s;
    background: rgba(77, 142, 240, 0.08);
    border-color: rgba(77, 142, 240, 0.15);
}

.sk-bubbles li:nth-child(4) {
    left: 60%;
    width: 25px;
    height: 25px;
    animation-duration: 25s;
    animation-delay: 1s;
}

.sk-bubbles li:nth-child(5) {
    left: 75%;
    width: 70px;
    height: 70px;
    animation-duration: 14s;
    animation-delay: 3s;
    background: rgba(77, 142, 240, 0.06);
}

.sk-bubbles li:nth-child(6) {
    left: 88%;
    width: 35px;
    height: 35px;
    animation-duration: 20s;
    animation-delay: 5s;
}

.sk-bubbles li:nth-child(7) {
    left: 5%;
    width: 20px;
    height: 20px;
    animation-duration: 28s;
    animation-delay: 7s;
}

.sk-bubbles li:nth-child(8) {
    left: 50%;
    width: 45px;
    height: 45px;
    animation-duration: 17s;
    animation-delay: 2.5s;
}

@keyframes sk-bubble-rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
        border-radius: 50%;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-110vh) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* ========================
   FLOATING GRID / MATRIX OVERLAY
   ======================== */
.sk-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(46, 204, 141, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 204, 141, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: sk-grid-drift 30s linear infinite;
}

@keyframes sk-grid-drift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* ========================
   HEADER - CORPORATE
   ======================== */
.gaira-theme header,
.gaira-theme .container>header {
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
    padding: 24px 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid #E8ECF1 !important;
}

.gaira-theme header::before,
.gaira-theme header::after {
    display: none !important;
}

/* Override esensi header overlay color */
.gaira-theme header .absolute.bg-gray-800,
.gaira-header-overlay {
    display: none !important;
}

/* Header logo */
.gaira-theme header img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05)) !important;
    transition: var(--sk-t2) !important;
}

.gaira-theme header img:hover {
    transform: scale(1.05) !important;
}

/* Top info bar */
.gaira-topbar {
    background: #1A2A4A !important;
    border-bottom: 2px solid #00A651 !important;
    padding: 10px 0 !important;
}

/* Running text marquee bar */
.gaira-marquee-bar {
    background: #F5F7FA !important;
    border: 1px solid #E8ECF1 !important;
}

@keyframes sk-pulse-glow {

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

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ========================
   NAVIGATION - CORPORATE
   ======================== */
.gaira-nav,
.gaira-theme nav.bg-primary-100 {
    background: #ffffff !important;
    border-bottom: 2px solid #E8ECF1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Nav links */
.gaira-nav>ul>li>a,
.gaira-theme nav>ul>li>a {
    color: #333333 !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 16px 18px !important;
    position: relative;
    transition: all 0.2s ease !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.gaira-nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    right: 50%;
    height: 3px;
    background: #00A651;
    transition: all 0.2s ease;
    border-radius: 3px 3px 0 0;
}

.gaira-nav>ul>li:hover>a::after {
    left: 18px;
    right: 18px;
}

.gaira-nav>ul>li>a:hover,
.gaira-theme nav>ul>li>a:hover {
    color: #00A651 !important;
    background: transparent !important;
}

/* Home button in nav */
.gaira-nav>ul>li:first-child>a,
.gaira-theme nav>ul>li:first-child>a {
    background: transparent !important;
    color: #00A651 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    font-weight: 700 !important;
}

.gaira-nav>ul>li:first-child>a:hover {
    color: #008040 !important;
}

/* Dropdown */
.gaira-nav ul.dropdown-menu,
.gaira-theme nav ul ul {
    background: #ffffff !important;
    border: 1px solid #E8ECF1 !important;
    border-top: 3px solid #00A651 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.gaira-nav ul.dropdown-menu li a,
.gaira-theme nav ul ul a {
    color: #555555 !important;
    border-bottom: 1px solid #F5F7FA !important;
    font-size: 0.84rem;
    transition: all 0.2s ease !important;
    font-family: 'Poppins', sans-serif;
}

.gaira-nav ul.dropdown-menu li a:hover,
.gaira-theme nav ul ul a:hover {
    color: #00A651 !important;
    background: #F5F7FA !important;
    padding-left: 24px !important;
}

/* ========================
   MOBILE MENU - CORPORATE
   ======================== */
.gaira-mobile-nav,
.gaira-theme nav.gaira-mobile-nav {
    background: var(--sk-dark2) !important;
    border-bottom: 2px solid rgba(46, 204, 141, 0.3);
}

.gaira-mobile-toggle {
    color: var(--sk-p3) !important;
}

.gaira-mobile-toggle .toggle-icon {
    background: rgba(46, 204, 141, 0.1);
    border-color: rgba(46, 204, 141, 0.3);
}

.gaira-mobile-toggle .toggle-icon i {
    color: var(--sk-p3);
}

.gaira-mobile-menu {
    background: var(--sk-dark3);
    border-top: 1px solid rgba(46, 204, 141, 0.15);
}

.gaira-mobile-menu li a {
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.gaira-mobile-menu li a:hover {
    color: var(--sk-p3) !important;
    background: rgba(46, 204, 141, 0.08) !important;
}

.gaira-mobile-menu .mobile-submenu a {
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ========================
   SLIDER - CINEMATIC TECH
   ======================== */
.gaira-slider-section {
    border-radius: var(--sk-r3) !important;
    box-shadow: var(--sk-shadow-xl), 0 0 40px rgba(46, 204, 141, 0.15) !important;
    border: 1px solid rgba(46, 204, 141, 0.15);
    overflow: hidden;
}

.gaira-slider-carousel {
    border-radius: var(--sk-r3);
}

/* Slide caption */
.gaira-slide-caption {
    background: linear-gradient(to top, rgba(3, 13, 26, 0.85) 0%, rgba(3, 13, 26, 0.5) 60%, transparent 100%) !important;
}

.gaira-slide-caption-link {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.gaira-slide-label {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2)) !important;
    animation: sk-badge-pulse 2s ease-in-out infinite;
}

@keyframes sk-badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(46, 204, 141, 0.4);
    }

    50% {
        box-shadow: 0 0 16px rgba(46, 204, 141, 0.7);
    }
}

/* Slider nav buttons */
.gaira-slider-btn {
    background: rgba(10, 61, 46, 0.85) !important;
    border: 1px solid rgba(46, 204, 141, 0.3);
}

.gaira-slider-btn:hover {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2)) !important;
    box-shadow: var(--sk-glow-green);
}

/* ========================
   ARTICLE CARDS - TECH GLASS
   ======================== */
.gaira-article-card {
    background: #ffffff !important;
    border: 1px solid #E8ECF1 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.gaira-article-card:hover {
    box-shadow: 0 12px 32px rgba(0, 166, 81, 0.08) !important;
    transform: translateY(-4px) !important;
    border-color: #00A651 !important;
}

/* Category badge - tech pill */
.gaira-article-badge {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2)) !important;
    box-shadow: 0 2px 8px rgba(26, 122, 79, 0.4);
}

/* Article title hover */
.gaira-article-title:hover {
    color: var(--sk-p2) !important;
}

/* Read more arrow */
.gaira-read-more {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
}

/* ========================
   SECTION HEADINGS - TECH UNDERLINE
   ======================== */
.gaira-theme h3.text-h4,
.gaira-theme .text-h4.text-primary-200 {
    color: var(--sk-dark3) !important;
    font-weight: 800 !important;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 12px;
}

.gaira-theme h3.text-h4::after,
.gaira-theme .text-h4.text-primary-200::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--sk-p2), var(--sk-s2));
    border-radius: var(--sk-rfull);
    box-shadow: 0 0 8px rgba(46, 204, 141, 0.4);
    animation: sk-underline-grow 0.6s ease both;
}

@keyframes sk-underline-grow {
    from {
        width: 0;
    }

    to {
        width: 48px;
    }
}

/* "Indeks" link */
.gaira-theme .text-sm.hover\:text-primary-100 {
    background: linear-gradient(135deg, rgba(26, 122, 79, 0.1), rgba(26, 86, 196, 0.1));
    color: var(--sk-p2);
    border: 1px solid rgba(46, 204, 141, 0.25);
    padding: 6px 16px;
    border-radius: var(--sk-rfull);
    font-weight: 600;
    transition: var(--sk-t2);
}

.gaira-theme .text-sm.hover\:text-primary-100:hover {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2));
    color: #fff !important;
    border-color: transparent;
    box-shadow: var(--sk-glow-btn);
}

/* ========================
   SIDEBAR - CORPORATE
   ======================== */

/* Search form */
.gaira-search-input:focus {
    border-color: var(--sk-p3) !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 141, 0.15), 0 0 12px rgba(46, 204, 141, 0.2) !important;
}

.gaira-search-btn {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2)) !important;
    box-shadow: 0 0 8px rgba(46, 204, 141, 0.35);
}

.gaira-search-btn:hover {
    box-shadow: var(--sk-glow-green) !important;
}

/* Widget boxes */
.gaira-widget-box {
    border: 1px solid #E8ECF1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    border-radius: 10px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.gaira-widget-box::before {
    display: none !important;
}

.gaira-widget-box:hover {
    border-color: #00A651 !important;
    box-shadow: 0 8px 24px rgba(0, 166, 81, 0.05) !important;
}

/* Widget header */
.gaira-widget-header {
    background: linear-gradient(135deg, var(--pw-forest) 0%, var(--pw-forest-dark) 100%) !important;
    color: #ffffff !important;
    font-family: var(--pw-font-serif) !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.5px;
    padding: 14px 18px !important;
    text-transform: uppercase;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 14px 14px 0 0 !important;
}
.gaira-widget-header a,
.gaira-widget-header i {
    color: #ffffff !important;
}

.gaira-widget-header-green {
    background: #00A651 !important;
    color: #ffffff !important;
}

/* ========================
   ARTICLE DETAIL - TECH STYLE
   ======================== */

/* Breadcrumb */
.gaira-breadcrumb {
    background: linear-gradient(135deg, rgba(10, 61, 46, 0.06), rgba(13, 43, 107, 0.06)) !important;
    border-color: var(--sk-p2) !important;
    border-radius: var(--sk-r2) !important;
}

/* Category badge */
.gaira-detail-badge {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2)) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(26, 122, 79, 0.35);
}

/* Title gradient */
.gaira-detail-title {
    background: linear-gradient(135deg, var(--sk-dark3) 0%, var(--sk-p1) 50%, var(--sk-s1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
}

/* ========================
   FOOTER - DEEP TECH
   ======================== */
.gaira-footer-wave {
    background: linear-gradient(90deg, var(--sk-p2) 0%, var(--sk-s2) 40%, var(--sk-a2) 70%, var(--sk-p2) 100%) !important;
    background-size: 200% 100% !important;
    animation: sk-rainbow-wave 4s linear infinite !important;
    height: 4px !important;
}

@keyframes sk-rainbow-wave {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.gaira-footer-body {
    background: #1A2A4A !important;
    position: relative;
    overflow: hidden;
}

.gaira-footer-body::before {
    display: none !important;
}

.gaira-footer-heading {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    letter-spacing: 0.5px !important;
    font-size: 0.88rem !important;
    text-shadow: none !important;
}

.gaira-footer-body a:hover,
.gaira-footer-body .gaira-footer-col a:hover {
    color: var(--sk-p3) !important;
}

/* Social buttons */
.gaira-social-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--sk-spring) !important;
}

.gaira-social-btn:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(46, 204, 141, 0.3) !important;
    border-color: rgba(46, 204, 141, 0.5) !important;
}

/* Footer bottom text */
.gaira-footer-divider {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ========================
   BACK TO TOP - GLOWING
   ======================== */
.gaira-theme #back-to-top,
.gaira-theme .back-to-top,
.gaira-theme [class*="back_to_top"] a,
.gaira-theme [class*="scroll-top"] {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2)) !important;
    box-shadow: var(--sk-glow-green) !important;
    border-radius: var(--sk-rfull) !important;
    animation: sk-bounce-float 2s ease-in-out infinite;
}

@keyframes sk-bounce-float {

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

    50% {
        transform: translateY(-4px);
    }
}

.gaira-theme [class*="back_to_top"] a:hover,
.gaira-theme [class*="scroll-top"]:hover {
    box-shadow: 0 0 24px rgba(46, 204, 141, 0.7), 0 0 48px rgba(26, 86, 196, 0.4) !important;
    animation: none;
}

/* ========================
   PAGINATION - MODERN PREMIUM PILLS
   ======================== */
.gaira-theme .pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 32px !important;
    margin-bottom: 24px !important;
    flex-wrap: wrap !important;
}

.gaira-theme .pagination .page-item {
    list-style: none !important;
}

.gaira-theme .pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-family: var(--pw-font-body, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--pw-ink-soft, #5B6459) !important;
    background-color: #ffffff !important;
    border: 1px solid var(--pw-line, #E4DFD2) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    outline: none !important;
    user-select: none !important;
    text-decoration: none !important;
}

html.dark .gaira-theme .pagination .page-link {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

/* Hover effect with smooth elevation and primary glow */
.gaira-theme .pagination .page-link:hover {
    background: linear-gradient(135deg, var(--pw-forest, #00A651) 0%, var(--pw-forest-dark, #0A2619) 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(0, 166, 81, 0.35) !important;
}

html.dark .gaira-theme .pagination .page-link:hover {
    background: linear-gradient(135deg, var(--sk-p3) 0%, var(--sk-p1) 100%) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45) !important;
}

/* Active indicator matching the brand theme */
.gaira-theme .pagination .page-item.active .page-link,
.gaira-theme .pagination .page-item[aria-current="page"] .page-link,
.gaira-theme .pagination .page-link.bg-primary-100 {
    background: linear-gradient(135deg, var(--pw-forest, #00A651) 0%, var(--pw-forest-dark, #0A2619) 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3) !important;
    pointer-events: none !important;
}

html.dark .gaira-theme .pagination .page-item.active .page-link,
html.dark .gaira-theme .pagination .page-item[aria-current="page"] .page-link,
html.dark .gaira-theme .pagination .page-link.bg-primary-100 {
    background: linear-gradient(135deg, var(--sk-p3) 0%, var(--sk-p1) 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

/* Disabled separator dots state */
.gaira-theme .pagination .page-item.disabled .page-link {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--pw-ink-soft, #94a3b8) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.55 !important;
    pointer-events: none !important;
}

/* ========================
   TABLES - TECH STYLE
   ======================== */
.gaira-theme table th {
    background: var(--sk-grad-main) !important;
    color: #fff !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem !important;
}

.gaira-theme table tr:hover td {
    background: linear-gradient(135deg, rgba(10, 61, 46, 0.04), rgba(13, 43, 107, 0.04)) !important;
}

/* ========================
   FORMS - TECH INPUTS
   ======================== */
.gaira-theme input[type="text"]:focus,
.gaira-theme input[type="email"]:focus,
.gaira-theme select:focus,
.gaira-theme textarea:focus {
    border-color: var(--sk-p3) !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 141, 0.15), 0 0 12px rgba(46, 204, 141, 0.15) !important;
}

/* ========================
   KABAR REMBANG SECTION
   ======================== */
.gaira-theme .span12.col1 {
    background: var(--sk-g0) !important;
    border-left: 4px solid var(--sk-p2) !important;
    border-radius: var(--sk-r3) !important;
    box-shadow: var(--sk-shadow), 0 0 20px rgba(46, 204, 141, 0.06) !important;
}

.gaira-theme .span12.col1 h3 {
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ========================
   WIDGET APARATUR
   ======================== */
.gaira-aparatur-avatar {
    border: 3px solid transparent !important;
    background: linear-gradient(var(--sk-g0), var(--sk-g0)) padding-box,
        linear-gradient(135deg, var(--sk-p2), var(--sk-s2)) border-box !important;
    box-shadow: 0 0 16px rgba(46, 204, 141, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: var(--sk-spring) !important;
}

.gaira-aparatur-avatar:hover {
    box-shadow: 0 0 24px rgba(46, 204, 141, 0.5), 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.05);
}

/* ========================
   SCROLL ANIMATIONS
   ======================== */
@keyframes sk-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes sk-fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

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

@keyframes sk-fadeInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

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

@keyframes sk-zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* IntersectionObserver-based class */
.sk-anim-up {
    animation: sk-fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sk-anim-left {
    animation: sk-fadeInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sk-anim-right {
    animation: sk-fadeInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sk-anim-zoom {
    animation: sk-zoomIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Delay utilities */
.sk-d1 {
    animation-delay: 0.1s;
}

.sk-d2 {
    animation-delay: 0.2s;
}

.sk-d3 {
    animation-delay: 0.3s;
}

.sk-d4 {
    animation-delay: 0.4s;
}

/* ========================
   HIGHLIGHT / GLOW BADGE
   ======================== */
.sk-glow-text {
    background: linear-gradient(135deg, var(--sk-p3), var(--sk-s3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   COUNTER NUMBERS (for statistics)
   ======================== */
.sk-counter {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sk-p2), var(--sk-s2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form elements & buttons inside widget bodies (for Layanan Mandiri / Jadwal Shalat) */
.gaira-widget-body input[type="text"],
.gaira-widget-body input[type="password"],
.gaira-widget-body input[type="number"],
.gaira-widget-body input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E8ECF1;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
    color: #333333;
    margin-bottom: 8px;
}

.gaira-widget-body input:focus {
    border-color: var(--sk-p3);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.gaira-widget-body button,
.gaira-widget-body input[type="submit"],
.gaira-widget-body .btn {
    width: 100%;
    padding: 8px 16px;
    background: #00A651;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 166, 81, 0.15);
    display: inline-block;
}

.gaira-widget-body button:hover,
.gaira-widget-body input[type="submit"]:hover,
.gaira-widget-body .btn:hover {
    background: #008040;
    box-shadow: 0 6px 14px rgba(0, 128, 64, 0.25);
}

/* Button Overrides */
.btn-primary {
    background: #00A651 !important;
    border-color: #00A651 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(0, 166, 81, 0.15) !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    background: #008040 !important;
    border-color: #008040 !important;
    box-shadow: 0 6px 14px rgba(0, 128, 64, 0.25) !important;
}

.btn-accent {
    background: #1A2A4A !important;
    border-color: #1A2A4A !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(26, 42, 74, 0.15) !important;
    transition: all 0.2s ease !important;
}

.btn-accent:hover {
    background: #0f182c !important;
    border-color: #0f182c !important;
    box-shadow: 0 6px 14px rgba(15, 24, 44, 0.25) !important;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .gaira-theme header .text-h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .gaira-theme header {
        padding: 18px 16px 14px;
    }

    .gaira-theme header .text-h2 {
        font-size: 1.1rem;
    }

    .gaira-footer-body {
        padding: 24px 16px 18px !important;
    }
}

/* ============================================================
   GAIRA ARTICLE ROW STREAM (No Purge CSS Compatibility)
   ============================================================ */
.gaira-article-list-container {
    background: #ffffff !important;
    border: 1px solid #E8ECF1 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-top: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.gaira-article-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid #E8ECF1 !important;
}

.gaira-article-row:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 768px) {
    .gaira-article-row {
        flex-direction: row !important;
        align-items: flex-start !important;
    }
}

/* Thumbnail wrapper */
.gaira-article-thumb-link {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    background: #F8FAFC !important;
    border: 1px solid #E8ECF1 !important;
}

@media (min-width: 768px) {
    .gaira-article-thumb-link {
        width: 220px !important;
        height: 135px !important;
    }
}

.gaira-article-thumb-img {
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.3s ease !important;
}

.gaira-article-thumb-link:hover .gaira-article-thumb-img {
    transform: scale(1.05) !important;
}

/* Object fit classes */
.gaira-img-cover {
    object-fit: cover !important;
}

.gaira-img-contain {
    object-fit: contain !important;
    padding: 16px !important;
    background: #F8FAFC !important;
}

/* Content Area */
.gaira-article-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.gaira-article-row-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    color: #1A2A4A !important;
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.gaira-article-row-title:hover {
    color: #00A651 !important;
}

/* Meta info row */
.gaira-article-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.75rem !important;
    font-family: 'Poppins', sans-serif !important;
    color: #777777 !important;
}

.gaira-meta-author {
    font-weight: 600 !important;
    color: #4A5568 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.gaira-meta-author i {
    color: #00A651 !important;
}

.gaira-meta-dot {
    color: #CBD5E1 !important;
}

.gaira-meta-date {
    color: #94A3B8 !important;
}

/* Excerpt text */
.gaira-article-row-excerpt {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.8rem !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ============================================================
   PORTAL WARGA - DESIGN SYSTEM
   Gaira Theme Redesign: Hijau Hutan + Terakota + Krem
   ============================================================ */

/* ========================
   CSS VARIABLES - PORTAL WARGA PALETTE
   ======================== */
:root {
    --pw-forest: #1B4332;
    --pw-forest-dark: #122E22;
    --pw-moss: #52796F;
    --pw-clay: #BC6C25;
    --pw-clay-dark: #9A5419;
    --pw-cream: #FAF6EE;
    --pw-paper: #FFFFFF;
    --pw-ink: #23291F;
    --pw-ink-soft: #5B6459;
    --pw-gold: #D9A441;
    --pw-line: #E4DFD2;
    --pw-radius: 14px;

    /* Font stacks */
    --pw-font-serif: 'Space Grotesk', sans-serif;
    --pw-font-body: 'Outfit', sans-serif;
    --pw-font-mono: 'JetBrains Mono', monospace;
}

/* ========================
   UTILITY BAR
   ======================== */
.pw-utilitybar {
    background: var(--pw-forest-dark);
    color: #C8D8CF;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    z-index: 100;
}

.pw-utilitybar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pw-utilitybar-tagline {
    opacity: .8;
    letter-spacing: .02em;
    font-family: var(--pw-font-mono);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pw-util-icon {
    color: var(--pw-gold);
    font-size: 10px;
}

.pw-utilitybar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pw-util-link {
    color: rgba(200, 216, 207, .85);
    font-size: 12px;
    font-weight: 600;
    transition: color .15s;
    text-decoration: none;
    letter-spacing: .02em;
}

.pw-util-link:hover {
    color: #fff;
}

.pw-util-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.pw-util-search-input {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 100px;
    padding: 5px 36px 5px 12px;
    font-size: 12px;
    outline: none;
    width: 160px;
    transition: all .2s;
    font-family: var(--pw-font-body);
}

.pw-util-search-input::placeholder {
    color: rgba(200, 216, 207, .6);
}

.pw-util-search-input:focus {
    background: rgba(255, 255, 255, .18);
    border-color: var(--pw-gold);
    width: 200px;
}

.pw-util-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: rgba(200, 216, 207, .7);
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    transition: color .15s;
}

.pw-util-search-btn:hover {
    color: var(--pw-gold);
}

.pw-util-btn-masuk {
    background: var(--pw-gold);
    color: var(--pw-forest-dark) !important;
    padding: 5px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.pw-util-btn-masuk:hover {
    background: #c89030;
    transform: translateY(-1px);
}

/* ========================
   HERO SECTION
   ======================== */
.pw-hero {
    position: relative;
    background: #ffffff !important;
    overflow: visible;
    padding-bottom: 45px;
}

.pw-hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.pw-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 25px;
    padding-bottom: 10px;
    text-align: center;
    color: #fff;
    max-width: 1180px;
    margin: 0 auto;
}

.pw-hero-crest {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 2px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.pw-hero-crest-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.pw-hero-eyebrow {
    font-family: var(--pw-font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--pw-gold);
    margin-bottom: 10px;
    opacity: .9;
}

.pw-hero-title {
    font-family: var(--pw-font-serif);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--pw-forest) !important;
    text-shadow: none !important;
}

.pw-hero-tagline {
    color: var(--pw-ink-soft) !important;
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: var(--pw-font-body);
}

/* ========================
   SHORTCUT ICON GRID
   ======================== */
.pw-shortcut-wrap {
    position: relative;
    z-index: 10;
    max-width: 1060px;
    margin: -30px auto 0;
    padding: 0 24px;
}

.pw-shortcut-card {
    background: var(--pw-paper);
    border-radius: 20px;
    box-shadow: 0 20px 48px -12px rgba(18, 46, 34, .3), 0 4px 16px rgba(0, 0, 0, .06);
    padding: 24px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.pw-shortcut-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 14px 8px;
    border-radius: 14px;
    text-decoration: none;
    transition: background .15s, transform .18s cubic-bezier(.25, .8, .25, 1);
    outline-offset: 3px;
}

.pw-shortcut-icon:hover {
    background: var(--pw-cream);
    transform: translateY(-3px);
    text-decoration: none;
}

.pw-shortcut-icon:focus-visible {
    outline: 2px solid var(--pw-clay);
}

.pw-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .18s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.pw-shortcut-icon:hover .pw-bubble {
    transform: scale(1.08);
}

.pw-bubble svg {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke: #fff;
}

.pw-bubble--forest {
    background: var(--pw-forest);
}

.pw-bubble--clay {
    background: var(--pw-clay);
}

.pw-bubble--moss {
    background: var(--pw-moss);
}

.pw-shortcut-icon span {
    font-family: var(--pw-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--pw-ink);
    line-height: 1.3;
}

/* ========================
   SUBPAGE HEADER
   ======================== */
.pw-subpage-header {
    background: var(--pw-paper);
    border-bottom: 1px solid var(--pw-line);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.pw-subpage-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto;
}

.pw-subpage-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pw-subpage-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.pw-subpage-village-name {
    display: block;
    font-family: var(--pw-font-body);
    font-weight: 800;
    font-size: 16px;
    color: var(--pw-forest);
    line-height: 1.2;
}

.pw-subpage-kecamatan {
    display: block;
    font-family: var(--pw-font-mono);
    font-size: 11px;
    color: var(--pw-ink-soft);
    letter-spacing: .04em;
}

.pw-subpage-marquee-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    overflow: hidden;
}

.pw-subpage-marquee-label {
    background: var(--pw-clay);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
    font-family: var(--pw-font-mono);
}

.pw-subpage-marquee-text {
    font-size: 0.78rem;
    color: var(--pw-ink-soft);
}

.pw-marquee-item {
    padding: 0 14px;
}

.pw-marquee-link {
    color: var(--pw-forest);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
}

/* ========================
   SECTION HEAD
   ======================== */
.pw-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pw-forest);
}

.pw-section-title {
    font-family: var(--pw-font-serif) !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    color: var(--pw-forest) !important;
    margin: 0 !important;
}

.pw-section-see-all {
    font-family: var(--pw-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--pw-clay);
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .15s;
}

.pw-section-see-all:hover {
    color: var(--pw-clay-dark);
}

/* ========================
   FEATURED ARTICLE
   ======================== */
.pw-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
    align-items: center;
}

.pw-featured-thumb {
    display: block;
    aspect-ratio: 4/3;
    border-radius: var(--pw-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--pw-moss), var(--pw-forest));
    text-decoration: none;
    flex-shrink: 0;
}

.pw-featured-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}

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

.pw-featured-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-featured-thumb-placeholder svg {
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, .45);
    stroke: rgba(255, 255, 255, .45);
}

.pw-featured-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pw-tag {
    display: inline-block;
    font-family: var(--pw-font-mono);
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--pw-clay-dark);
    background: #F3E3D2;
    padding: 4px 11px;
    border-radius: 100px;
    margin-bottom: 10px;
    font-weight: 600;
    text-decoration: none;
}

.pw-featured-title {
    font-family: var(--pw-font-serif) !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    color: var(--pw-ink) !important;
    margin-bottom: 10px !important;
    transition: color .15s;
}

.pw-featured-body a:hover .pw-featured-title {
    color: var(--pw-forest) !important;
}

.pw-featured-excerpt {
    color: var(--pw-ink-soft);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
    font-family: var(--pw-font-body);
}

.pw-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--pw-ink-soft);
    font-family: var(--pw-font-mono);
    flex-wrap: wrap;
}

.pw-meta-icon {
    font-size: 10px;
    margin-right: 4px;
    color: var(--pw-clay);
}

/* ========================
   ARTICLE ROW LIST
   ======================== */
.gaira-article-row {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    gap: 20px !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--pw-line) !important;
    transition: background .12s;
    border-radius: 0;
    align-items: center !important;
}

.gaira-article-row:last-child {
    border-bottom: none !important;
}

.gaira-article-row:hover {
    background: transparent;
}

.gaira-article-thumb-link {
    display: block !important;
    width: 220px !important;
    height: 135px !important;
    border-radius: var(--pw-radius, 14px) !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, var(--pw-moss), var(--pw-forest-dark)) !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
}

.gaira-article-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .3s ease !important;
}

.gaira-article-thumb-link:hover .gaira-article-thumb-img {
    transform: scale(1.06) !important;
}

.gaira-img-cover {
    object-fit: cover !important;
}

.gaira-img-contain {
    object-fit: contain !important;
    padding: 6px;
}

.gaira-article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.gaira-article-row-title {
    font-family: var(--pw-font-serif) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: var(--pw-ink) !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}

.gaira-article-row-title:hover {
    color: var(--pw-forest) !important;
}

.gaira-article-meta-row {
    display: flex;
    gap: 10px;
    font-family: var(--pw-font-mono) !important;
    font-size: 11.5px !important;
    color: var(--pw-ink-soft) !important;
    flex-wrap: wrap;
}

.gaira-meta-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gaira-meta-author i {
    color: var(--pw-clay) !important;
    font-size: 10px;
}

.gaira-meta-dot {
    color: var(--pw-line) !important;
}

.gaira-meta-date {
    color: var(--pw-ink-soft) !important;
}

.gaira-article-row-excerpt {
    font-family: var(--pw-font-body) !important;
    font-size: 12.5px !important;
    color: var(--pw-ink-soft) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ========================
   WIDGET HEADER / BODY OVERRIDES
   ======================== */
.pw-widget-header {
    background: linear-gradient(135deg, var(--pw-forest) 0%, var(--pw-forest-dark) 100%) !important;
    color: #fff !important;
    font-family: var(--pw-font-serif) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
}

.pw-widget-header-link {
    color: #fff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
}

.pw-widget-icon {
    margin-right: 8px;
    color: var(--pw-gold);
    font-size: 13px;
}

.pw-widget-body {
    padding: 18px !important;
    background: var(--pw-paper) !important;
    border: 1px solid var(--pw-line) !important;
    border-top: none !important;
    border-radius: 0 0 var(--pw-radius) var(--pw-radius) !important;
}

/* ========================
   WIDGET STATISTIK PENDUDUK
   ======================== */
.pw-stat-total {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pw-line);
    margin-bottom: 14px;
}

.pw-stat-big {
    font-family: var(--pw-font-mono) !important;
    font-weight: 600;
    font-size: 38px;
    color: var(--pw-forest);
    line-height: 1;
}

.pw-stat-label {
    font-family: var(--pw-font-mono);
    font-size: 11px;
    color: var(--pw-ink-soft);
    letter-spacing: .06em;
    margin-top: 4px;
}

.pw-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.pw-stat-item {
    background: var(--pw-cream);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid var(--pw-line);
}

.pw-stat-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 13px;
}

.pw-stat-item-icon--blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.pw-stat-item-icon--rose {
    background: #fce7f3;
    color: #be185d;
}

.pw-stat-item-num {
    font-family: var(--pw-font-mono) !important;
    font-weight: 600;
    font-size: 20px;
    color: var(--pw-clay-dark);
}

.pw-stat-item-label {
    font-size: 11px;
    color: var(--pw-ink-soft);
    margin-top: 2px;
}

.pw-ratio-wrap {
    margin-bottom: 14px;
}

.pw-ratio-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--pw-font-mono);
    font-size: 11px;
    color: var(--pw-ink-soft);
    margin-bottom: 4px;
}

.pw-ratio-bar {
    width: 100%;
    height: 7px;
    background: #fca5a5;
    border-radius: 100px;
    overflow: hidden;
}

.pw-ratio-bar-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 100px;
    transition: width .5s ease;
}

.pw-widget-link-more {
    display: block;
    text-align: center;
    font-family: var(--pw-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--pw-forest);
    text-decoration: none;
    padding: 8px;
    border: 1.5px solid var(--pw-forest);
    border-radius: 100px;
    transition: all .2s;
    letter-spacing: .02em;
}

.pw-widget-link-more:hover {
    background: var(--pw-forest);
    color: #fff;
}

/* ========================
   WIDGET STATISTIK PENGUNJUNG
   ======================== */
.pw-visitor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-visitor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--pw-cream);
    border-radius: 10px;
    border: 1px solid var(--pw-line);
}

.pw-visitor-row--total {
    background: #EFF5F1;
    border-color: #B9D5C4;
}

.pw-visitor-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pw-visitor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pw-visitor-dot--green {
    background: var(--pw-forest);
}

.pw-visitor-dot--blue {
    background: #3b82f6;
}

.pw-visitor-dot--gold {
    background: var(--pw-gold);
}

.pw-visitor-period {
    font-family: var(--pw-font-body);
    font-size: 13px;
    color: var(--pw-ink-soft);
    font-weight: 500;
}

.pw-visitor-num {
    font-family: var(--pw-font-mono) !important;
    font-weight: 600;
    font-size: 17px;
    color: var(--pw-clay-dark);
}

.pw-visitor-num--total {
    color: var(--pw-forest);
    font-size: 19px;
}

/* ========================
   WIDGET AGENDA
   ======================== */
.pw-agenda-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pw-line);
    border-left: 3px solid var(--pw-forest);
    padding-left: 12px;
    margin-left: -18px;
    padding-right: 0;
    align-items: flex-start;
    transition: border-color .15s;
}

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

.pw-agenda-date {
    background: var(--pw-forest);
    color: #fff;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--pw-font-mono);
}

.pw-agenda-day {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.pw-agenda-month {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .85;
}

.pw-agenda-content {
    flex: 1;
    min-width: 0;
}

.pw-agenda-title {
    font-family: var(--pw-font-serif) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--pw-ink) !important;
    line-height: 1.35;
    text-decoration: none !important;
    display: block;
    margin-bottom: 6px;
    transition: color .15s;
}

.pw-agenda-title:hover {
    color: var(--pw-forest) !important;
}

.pw-agenda-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--pw-font-mono);
    font-size: 11px;
    color: var(--pw-ink-soft);
}

.pw-agenda-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ========================
   LAYOUT BODY
   ======================== */
body.gaira-theme {
    background: var(--pw-cream) !important;
    font-family: var(--pw-font-body) !important;
    color: var(--pw-ink) !important;
}

/* Override body on homepage to add top padding for shortcut overlap */
.pw-hero+.pw-shortcut-wrap+.container,
.pw-shortcut-wrap~.container {
    padding-top: 0;
}

/* ========================
   RESPONSIVE BREAKPOINTS
   ======================== */
@media (max-width: 900px) {
    .pw-shortcut-card {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .pw-featured-thumb {
        aspect-ratio: 16/9;
    }

    .pw-hero-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .pw-shortcut-card {
        grid-template-columns: repeat(4, 1fr) !important;
        padding: 14px 8px !important;
        gap: 6px !important;
    }

    .pw-shortcut-icon {
        padding: 10px 4px !important;
    }

    .pw-shortcut-icon span {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .pw-hero-title {
        font-size: 30px;
    }

    .pw-hero-tagline {
        font-size: 13.5px;
    }

    .pw-hero-inner {
        padding-top: 32px;
        padding-bottom: 35px;
    }

    .pw-shortcut-wrap {
        margin-top: -20px;
    }

    .pw-utilitybar-tagline {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: 6px !important;
    }

    .pw-util-search-input {
        width: 120px;
    }

    .pw-featured-title {
        font-size: 20px !important;
    }

    .pw-stat-big {
        font-size: 30px;
    }

    .gaira-article-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .gaira-article-thumb-link {
        width: 100% !important;
        height: 165px !important;
    }
}

@media (max-width: 420px) {
    .pw-shortcut-card {
        grid-template-columns: repeat(4, 1fr) !important;
        padding: 12px 4px !important;
        gap: 4px !important;
    }

    .pw-shortcut-icon {
        padding: 8px 2px !important;
    }

    .pw-shortcut-icon span {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
    }

    .pw-bubble {
        width: 42px !important;
        height: 42px !important;
    }

    .pw-bubble svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ============================================================
   PORTAL WARGA - FINAL OVERRIDES & CLEANUP
   Sembunyikan komponen lama, terapkan palette baru ke footer
   ============================================================ */

/* Hide legacy topbar & corporate header (diganti utility bar + hero baru) */
.gaira-topbar {
    display: none !important;
}

.gaira-theme .container>header.gaira-header,
.gaira-theme>div>.container>header {
    display: none !important;
}

/* Footer: override ke forest-dark palette */
.gaira-theme .gaira-footer .gaira-footer-body {
    background: var(--pw-forest-dark) !important;
}

footer.gaira-footer {
    border-top: 3px solid var(--pw-forest) !important;
}

.gaira-theme footer .gaira-footer-body h4 {
    color: #fff !important;
}

.gaira-theme footer .gaira-footer-body p,
.gaira-theme footer .gaira-footer-body span {
    font-family: var(--pw-font-body);
}

/* Back-to-top button sesuai palette */
#back-to-top,
.gaira-back-to-top {
    background: var(--pw-forest) !important;
    border-color: var(--pw-forest) !important;
    color: #fff !important;
}

#back-to-top:hover,
.gaira-back-to-top:hover {
    background: var(--pw-clay) !important;
    border-color: var(--pw-clay) !important;
}

/* Kompensasi jarak konten utama di homepage
   (shortcut card overlap hero, jadi butuh margin-top ekstra) */
@media (min-width: 901px) {
    .pw-homepage-layout-offset {
        margin-top: 2rem !important;
    }
}

@media (max-width: 900px) {
    .pw-homepage-layout-offset {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .pw-homepage-layout-offset {
        margin-top: 1rem !important;
    }
}

/* Widget sidebar: override gaira-widget-box border ke palette baru */
.gaira-widget-box {
    border: 1px solid var(--pw-line) !important;
    border-radius: var(--pw-radius) !important;
    box-shadow: 0 2px 12px rgba(18, 46, 34, .04) !important;
}

.gaira-widget-box:hover {
    box-shadow: 0 6px 20px rgba(27, 67, 50, .08) !important;
}

/* Search form di sidebar: update warna ke palette */
.gaira-search-input:focus {
    border-color: var(--pw-forest) !important;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, .1) !important;
}

.gaira-search-btn {
    background: var(--pw-forest) !important;
}

.gaira-search-btn:hover {
    background: var(--pw-clay) !important;
}

/* Accessibility: focus ring untuk semua interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--pw-clay);
    outline-offset: 2px;
}

/* Heading artikel utama (h3) di halaman artikel detail */
.gaira-theme .col-main h1,
.gaira-theme .col-main h2,
.gaira-theme .col-main h3 {
    font-family: var(--pw-font-serif) !important;
    color: var(--pw-ink) !important;
}

/* Widget header di peta lokasi: apply pw-widget-header style */
.gaira-widget-box .gaira-widget-header {
    font-family: var(--pw-font-serif) !important;
    background: linear-gradient(135deg, var(--pw-forest) 0%, var(--pw-forest-dark) 100%) !important;
}

/* ============================================================
   PORTAL WARGA - MAIN CONTENT CONTAINER
   ============================================================ */
.pw-main-content {
    background: var(--pw-paper) !important;
    border-radius: var(--pw-radius, 14px) !important;
    box-shadow: 0 10px 30px rgba(18, 46, 34, 0.02), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid var(--pw-line, #E4DFD2) !important;
    transition: box-shadow 0.25s ease;
}

.pw-main-content:hover {
    box-shadow: 0 14px 40px rgba(18, 46, 34, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Mobile responsive padding compensation */
@media (max-width: 640px) {
    .pw-main-content {
        padding: 16px 16px !important;
    }
}

/* ============================================================
   PORTAL WARGA - SLIDER / CAROUSEL
   ============================================================ */
.slider-item {
    position: relative !important;
    width: 100% !important;
    height: 420px !important;
    overflow: hidden !important;
    border-radius: var(--pw-radius, 14px) !important;
}

.slider-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.slider-content {
    border-radius: var(--pw-radius, 14px) !important;
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    .slider-item {
        height: 320px !important;
    }
}

@media (max-width: 640px) {
    .slider-item {
        height: 240px !important;
    }
}

/* ============================================================
   PORTAL WARGA - WIDGET OVERRIDES & CONSISTENCY
   ============================================================ */
.gaira-widget-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    overflow: hidden !important;
    border-radius: var(--pw-radius, 14px) !important;
    border: 1px solid var(--pw-line, #E4DFD2) !important;
    box-sizing: border-box !important;
}

.gaira-widget-header {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    /* Let parent box clip it */
}

.gaira-widget-body {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    /* Remove double inner borders */
    box-shadow: none !important;
    border-radius: 0 !important;
    /* Handled by parent box */
}

/* ============================================================
   PORTAL WARGA - SHORTCUT LINK SUBMENU POPUP
   ============================================================ */
.pw-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out;
}

.pw-popup-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.pw-popup-card {
    background: var(--pw-paper, #ffffff);
    border-radius: var(--pw-radius, 14px);
    box-shadow: 0 20px 48px -10px rgba(18, 46, 34, 0.15), 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pw-line, #E4DFD2);
    padding: 24px;
    position: relative;
    width: 320px;
    max-width: 90%;
    box-sizing: border-box;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}

.pw-popup-overlay.is-active .pw-popup-card {
    transform: scale(1);
    opacity: 1;
}

.pw-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--pw-ink-soft, #5B6459);
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease;
    outline: none;
}

.pw-popup-close:hover {
    color: var(--pw-clay, #BC6C25);
}

.pw-popup-close:focus-visible {
    outline: 2px solid var(--pw-clay, #BC6C25);
    border-radius: 4px;
}

.pw-popup-title {
    font-family: var(--pw-font-serif, 'Fraunces', Georgia, serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pw-forest, #1B4332);
    margin: 0 0 16px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--pw-line, #E4DFD2);
    text-transform: capitalize;
}

.pw-popup-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pw-popup-item {
    display: block;
    padding: 10px 14px;
    font-family: var(--pw-font-body, sans-serif);
    font-size: 0.88rem;
    color: var(--pw-ink, #23291F) !important;
    text-decoration: none !important;
    border-radius: 8px;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.pw-popup-item:hover {
    background: var(--pw-cream, #FAF6EE);
    color: var(--pw-forest, #1B4332) !important;
}

.pw-popup-item:focus-visible {
    outline: 2px solid var(--pw-clay, #BC6C25);
    background: var(--pw-cream, #FAF6EE);
}

/* Mobile responsive bottom sheet layout */
@media (max-width: 640px) {
    .pw-popup-overlay {
        align-items: flex-end;
    }

    .pw-popup-card {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        opacity: 1;
        /* Keep opacity fully visible, only translate */
        transition: transform 0.18s ease-out;
        padding: 24px 20px 32px;
    }

    .pw-popup-overlay.is-active .pw-popup-card {
        transform: translateY(0);
    }
}

/* Ensure every single element on the page (excluding FontAwesome icons) uses Poppins/Outfit */
html,
body,
body *:not(i):not([class*="fa-"]):not(.fas):not(.fab):not(.far):not(.glyphicon) {
    font-family: var(--pw-font-body) !important;
}

/* ============================================================
   TIPOGRAFI GLOBAL - BASE (DESKTOP ≥ 769px)
   Semua ukuran ini untuk layar desktop/tablet landscape.
   Mobile diatur di bawah via mobile-first breakpoints.
   ============================================================ */
body.gaira-theme {
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: var(--pw-ink, #23291F) !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* UI/UX Line Length Limits for Articles (WCAG 60-80 chars) */
.gaira-article-content,
.gaira-article-detail {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Article / News Body text */
.col-main p,
.artikel p,
.single-post p,
.gaira-article-content p,
.gaira-article-row-excerpt,
.pw-featured-excerpt {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: var(--pw-ink-soft, #4A5568) !important;
    margin-bottom: 1.25rem !important;
}

/* Typography hierarchy (Headings) */
h1, h2, h3, h4, h5, h6,
.pw-hero-title,
.pw-featured-title,
.gaira-article-row-title,
.pw-section-title,
.pw-widget-title,
.gaira-widget-header,
.pw-popup-title {
    font-family: var(--pw-font-serif) !important;
    color: var(--pw-forest, #1B4332) !important;
    font-weight: 700 !important;
}

h1, .pw-hero-title, .text-h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
}

h2, .pw-section-title, .text-h2 {
    font-size: 26px !important;
    line-height: 1.28 !important;
    margin-bottom: 1.25rem !important;
}

h3, .pw-widget-title, .gaira-widget-header, .text-h3 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin-bottom: 1rem !important;
}

h4, .pw-popup-title, .text-h4 {
    font-size: 17px !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
}

/* WCAG 2.1 Contrast */
.pw-meta-icon,
.gaira-meta-author i,
.pw-util-icon {
    color: var(--pw-clay-dark, #9A5419) !important;
}

/* Article Metadata */
.pw-meta,
.gaira-article-meta-row,
.gaira-meta-author,
.gaira-meta-date,
.gaira-meta-dot {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--pw-ink-soft, #718096) !important;
}

/* Monospace elements */
code, pre,
.pw-stat-big,
.pw-stat-item-num,
.pw-visitor-num,
.pw-agenda-day,
.pw-subpage-kecamatan,
.pw-subpage-marquee-label,
.pw-subpage-marquee-text {
    font-family: var(--pw-font-mono) !important;
}

/* ============================================================
   TIPOGRAFI MOBILE-FIRST
   Breakpoint 1 — Tablet kecil ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
    body.gaira-theme {
        font-size: 15.5px !important;
        line-height: 1.72 !important;
    }

    .col-main p,
    .artikel p,
    .single-post p,
    .gaira-article-content p,
    .gaira-article-row-excerpt,
    .pw-featured-excerpt {
        font-size: 15.5px !important;
        line-height: 1.75 !important;
        margin-bottom: 1.1rem !important;
    }

    h1, .pw-hero-title, .text-h1 {
        font-size: 28px !important;
        line-height: 1.22 !important;
    }
    h2, .pw-section-title, .text-h2 {
        font-size: 22px !important;
        line-height: 1.28 !important;
    }
    h3, .pw-widget-title, .gaira-widget-header, .text-h3 {
        font-size: 18px !important;
        line-height: 1.32 !important;
    }
    h4, .pw-popup-title, .text-h4 {
        font-size: 16px !important;
        line-height: 1.38 !important;
    }

    /* Max-width artikel tidak terlalu ketat di tablet */
    .gaira-article-content,
    .gaira-article-detail {
        max-width: 100% !important;
    }

    /* Container padding lebih lega */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ============================================================
   TIPOGRAFI MOBILE-FIRST
   Breakpoint 2 — HP Besar ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
    body.gaira-theme {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }

    /* Artikel dan konten berita — prioritas keterbacaan */
    .col-main p,
    .artikel p,
    .single-post p,
    .gaira-article-content p,
    .gaira-article-row-excerpt,
    .pw-featured-excerpt {
        font-size: 15px !important;
        line-height: 1.8 !important;
        margin-bottom: 1rem !important;
    }

    /* Heading — cegah wrap berlebih di layar sempit */
    h1, .pw-hero-title, .text-h1 {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-bottom: 1rem !important;
    }
    h2, .pw-section-title, .text-h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 0.9rem !important;
    }
    h3, .pw-widget-title, .gaira-widget-header, .text-h3 {
        font-size: 17px !important;
        line-height: 1.35 !important;
        margin-bottom: 0.75rem !important;
    }
    h4, .pw-popup-title, .text-h4 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 0.65rem !important;
    }

    /* Metadata artikel: minimal 12px agar tidak terlalu kecil */
    .pw-meta,
    .gaira-article-meta-row,
    .gaira-meta-author,
    .gaira-meta-date,
    .gaira-meta-dot {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    /* Widget body & main content — padding lebih ketat */
    .pw-main-content {
        padding: 14px 12px !important;
        border-radius: 10px !important;
    }
    .pw-widget-body {
        padding: 12px 10px !important;
    }
    .gaira-article-content {
        padding: 6px 0 !important;
    }

    /* Container — maksimalkan lebar baca */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Touch area WCAG 2.5.5 — minimal 44×44px */
    .pw-meta a,
    .pw-util-link,
    .pw-util-btn-mandiri,
    .pw-util-btn-masuk,
    .gaira-detail-badge,
    .gaira-nav > ul > li > a,
    .pw-section-see-all,
    .pw-popup-close {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .gaira-detail-badge {
        padding: 10px 14px !important;
    }
}

/* ============================================================
   TIPOGRAFI MOBILE-FIRST
   Breakpoint 3 — HP Kecil ≤ 480px (≤ iPhone SE, dll)
   ============================================================ */
@media (max-width: 480px) {
    body.gaira-theme {
        font-size: 14.5px !important;
        line-height: 1.78 !important;
    }

    /* Konten artikel — jaga min 14.5px agar mudah dibaca tanpa zoom */
    .col-main p,
    .artikel p,
    .single-post p,
    .gaira-article-content p,
    .gaira-article-row-excerpt,
    .pw-featured-excerpt {
        font-size: 14.5px !important;
        line-height: 1.82 !important;
    }

    /* Heading kecil — cegah overflow horizontal */
    h1, .pw-hero-title, .text-h1 {
        font-size: 22px !important;
        line-height: 1.28 !important;
    }
    h2, .pw-section-title, .text-h2 {
        font-size: 18px !important;
        line-height: 1.32 !important;
    }
    h3, .pw-widget-title, .gaira-widget-header, .text-h3 {
        font-size: 15.5px !important;
        line-height: 1.38 !important;
    }
    h4, .pw-popup-title, .text-h4 {
        font-size: 14.5px !important;
        line-height: 1.42 !important;
    }

    /* Metadata — minimum 11.5px, JANGAN lebih kecil */
    .pw-meta,
    .gaira-article-meta-row,
    .gaira-meta-author,
    .gaira-meta-date,
    .gaira-meta-dot {
        font-size: 11.5px !important;
    }

    /* Container — padding minimal tapi masih nyaman */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Artikel body — full width tanpa batasan */
    .gaira-article-content,
    .gaira-article-detail {
        max-width: 100% !important;
    }
}

/* ============================================================
   PW SHORTCUT CARD - INTERACTIVE SVG HOVER ANIMATIONS
   ============================================================ */

/* Smooth scaling and shadow transition on hover */
.pw-shortcut-icon {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.pw-shortcut-icon:hover {
    transform: translateY(-4px) !important;
}

.pw-shortcut-icon:hover .pw-bubble {
    box-shadow: 0 12px 28px rgba(18, 46, 34, 0.22) !important;
    transform: scale(1.1) !important;
}

.pw-bubble svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* 1. Profil Desa (Home) - Bounce */
.pw-icon-profil:hover .pw-bubble svg {
    animation: pw-home-bounce 0.6s ease;
}
@keyframes pw-home-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px) scale(1.08); }
}

/* 2. Pemerintahan Desa (Person) - Head Bob & Shrug */
.pw-icon-pemerintahan:hover .pw-bubble svg circle {
    animation: pw-person-bob 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pw-icon-pemerintahan:hover .pw-bubble svg path {
    animation: pw-person-shoulders 0.6s ease;
}
@keyframes pw-person-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes pw-person-shoulders {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 3. Data Desa (Grid) - Rotation & Zoom */
.pw-icon-data:hover .pw-bubble svg {
    animation: pw-grid-pulse 0.6s ease;
}
@keyframes pw-grid-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.12) rotate(5deg); }
}

/* 4. Layanan Warga (Home/Services) - Dynamic Scale */
.pw-icon-layanan:hover .pw-bubble svg {
    animation: pw-services-pulse 0.6s ease;
}
@keyframes pw-services-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12) translateY(-2px); }
}

/* 5. Statistik (Chart) - Bars grow from bottom */
.pw-icon-statistik:hover .pw-bubble svg path {
    transform-origin: bottom center;
    animation: pw-chart-grow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pw-chart-grow {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1); }
}

/* 6. Peta Lokasi (Map) - 3D Perspective Tilt */
.pw-icon-peta:hover .pw-bubble svg {
    animation: pw-map-skew 0.6s ease;
}
@keyframes pw-map-skew {
    0%, 100% { transform: skewX(0deg) skewY(0deg); }
    50% { transform: skewX(-8deg) skewY(4deg) scale(1.08); }
}

/* 7. APBDes (Dollar) - Smooth elastic 360 spin */
.pw-icon-apbdes:hover .pw-bubble svg {
    animation: pw-dollar-spin 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pw-dollar-spin {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg) scale(1.12); }
    100% { transform: rotate(360deg); }
}

/* 8. Pengaduan (Chat/Bubble) - Shake / Wiggle */
.pw-icon-pengaduan:hover .pw-bubble svg {
    animation: pw-chat-wiggle 0.5s ease;
}
@keyframes pw-chat-wiggle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-8deg) scale(1.08); }
    40% { transform: rotate(8deg) scale(1.08); }
    60% { transform: rotate(-4deg) scale(1.08); }
    80% { transform: rotate(4deg) scale(1.08); }
}

/* ============================================================
   MEGA DROPDOWN / SUBMENU - PORTAL WARGA GAIRA
   Dropdown dipindah ke body via JS (position: fixed)
   sehingga TIDAK ADA efek ke grid layout apapun
   ============================================================ */

/* --- pw-sc-item: Bertindak sebagai sel grid utama --- */
.pw-sc-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

/* Shortcut icon sebagai grid cell dan anchor state aktif */
.pw-shortcut-icon {
    position: relative;
    width: 100%;
    height: 100%;
}
.pw-shortcut-icon.pw-dd-open {
    background: #f0f9f4;
}
.pw-shortcut-icon.pw-dd-open .pw-bubble {
    transform: scale(1.08);
}

/* --- Dropdown Card: position FIXED, diposisikan oleh JS --- */
.pw-dropdown {
    position: absolute !important;
    z-index: 99990 !important;
    min-width: 200px;
    max-width: 240px;
    width: max-content;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 20px 48px -8px rgba(13, 92, 58, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(13, 92, 58, 0.08);
    padding: 10px 8px;
    /* initial: hidden */
    opacity: 0;
    pointer-events: none;
    transform-origin: top center;
    transform: translateY(-6px);
    transition:
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}



/* State: aktif */
.pw-dropdown.pw-dd-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- Dropdown Title ---------------------------------------- */
.pw-dd-title {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0D5C3A;
    padding: 4px 10px 8px;
    border-bottom: 1px solid rgba(13, 92, 58, 0.08);
    margin-bottom: 4px;
    display: block;
}

/* --- Dropdown Link Item ------------------------------------ */
.pw-dd-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 9px;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2d3a32;
    text-decoration: none !important;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        padding-left 0.15s ease;
    border: 1px solid transparent;
}
.pw-dd-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #0D5C3A;
    opacity: 0.65;
    transition: opacity 0.15s, color 0.15s;
}
.pw-dd-link:hover,
.pw-dd-link:focus-visible {
    background: #f0fdf7;
    color: #C8A84B !important;
    text-decoration: none !important;
    padding-left: 16px;
    border-color: rgba(13, 92, 58, 0.08);
}
.pw-dd-link:hover svg,
.pw-dd-link:focus-visible svg {
    color: #C8A84B;
    opacity: 1;
}
.pw-dd-link:focus-visible {
    outline: 2px solid #C8A84B;
    outline-offset: -2px;
}

/* "Lihat Semua" link */
.pw-dd-link--all {
    margin-top: 6px;
    border-top: 1px solid rgba(13, 92, 58, 0.08);
    padding-top: 9px;
    color: #0D5C3A !important;
    font-weight: 600;
    font-size: 12px;
}
.pw-dd-link--all svg { color: #0D5C3A; opacity: 1; }
.pw-dd-link--all:hover { background: #0D5C3A !important; color: #ffffff !important; }
.pw-dd-link--all:hover svg { color: #C8A84B; }

/* --- Pastikan overflow card tidak terpotong hero ----------- */
.pw-shortcut-card {
    overflow: visible !important;
}
.pw-shortcut-wrap {
    overflow: visible !important;
    z-index: 200 !important;
}

/* ============================================================
   MOBILE ≤ 768px: Floating Dropdown Lebar Penuh (2 Kolom)
   ============================================================ */
@media (max-width: 768px) {
    /* Pada mobile, dropdown dipindah ke body (absolute position)
       dan mengambang lebar agar teks link longgar & terbaca */
    .pw-dropdown {
        position: absolute !important;
        z-index: 99990 !important;
        left: 16px !important;
        right: 16px !important;
        width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        max-width: none !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        box-shadow: 0 15px 35px rgba(13, 92, 58, 0.16) !important;
        border: 1px solid rgba(13, 92, 58, 0.08) !important;
        padding: 14px 12px !important;
        margin: 0 !important;
        
        /* Grid layout untuk link submenu di mobile (2 kolom side-by-side) */
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px 8px !important;
        
        /* initial state: hidden */
        opacity: 0;
        pointer-events: none;
        transform-origin: top center;
        transform: translateY(-8px);
        transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Penyelarasan kolom judul dan "Lihat Semua" */
    .pw-dd-title {
        grid-column: span 2 !important;
        display: block !important;
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    .pw-dd-link--all {
        grid-column: span 2 !important;
        margin-top: 4px !important;
    }



    /* State: Buka */
    .pw-dropdown.pw-dd-visible {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Link mobile (2 kolom) */
    .pw-dd-link {
        font-size: 11.5px !important;
        padding: 8px 10px !important;
        background: #fcfdfd !important;
        border: 1px solid rgba(13, 92, 58, 0.06) !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .pw-dd-link:hover,
    .pw-dd-link:focus-visible {
        padding-left: 12px !important;
        background: #f0fdf7 !important;
    }

    /* Chevron disembunyikan sepenuhnya */
    .pw-sc-chevron {
        display: none !important;
    }
}

/* Sembunyikan chevron di semua layar */
.pw-sc-chevron { display: none !important; }
/* ============================================================ */

/* Widget Jadwal Sholat styles */
.sholat-row {
    background-color: #ffffff !important;
    border: 1px solid var(--sk-border) !important;
    transition: all 0.25s ease;
}
.sholat-row .sholat-label {
    color: #1e293b !important;
}
.sholat-row .sholat-time {
    color: #64748b !important;
}
.sholat-row:hover {
    transform: translateX(3px);
    border-color: var(--sk-p3) !important;
}
.sholat-row-active {
    background: linear-gradient(135deg, var(--sk-p3) 0%, var(--sk-p2) 100%) !important;
    border-color: var(--sk-p2) !important;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}
.sholat-row-active .sholat-label,
.sholat-row-active .sholat-time {
    color: #ffffff !important;
}

/* Dark mode overrides for sholat row */
.dark .sholat-row,
html.dark .sholat-row {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
.dark .sholat-row .sholat-label,
html.dark .sholat-row .sholat-label {
    color: #f1f5f9 !important;
}
.dark .sholat-row .sholat-time,
html.dark .sholat-row .sholat-time {
    color: #94a3b8 !important;
}
.dark .sholat-row:hover,
html.dark .sholat-row:hover {
    border-color: var(--sk-p3) !important;
}
.dark .sholat-row-active,
html.dark .sholat-row-active {
    background: linear-gradient(135deg, var(--sk-p3) 0%, var(--sk-p2) 100%) !important;
    border-color: var(--sk-p2) !important;
}
.sholat-row-active .sholat-label,
.sholat-row-active .sholat-time,
.dark .sholat-row-active .sholat-label,
.dark .sholat-row-active .sholat-time,
html.dark .sholat-row-active .sholat-label,
html.dark .sholat-row-active .sholat-time {
    color: #ffffff !important;
}


/* Ensure gaira widget header text is white by default (prevent dark override from typography) */
.gaira-widget-header {
    color: #ffffff !important;
}

/* ============================================================ */

/* Widget Cuaca Styles */
.gaira-weather-box #weather-icon-container i {
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.2));
}
.gaira-weather-box .weather-temp {
    color: #1e293b !important;
}
.gaira-weather-box .weather-status {
    color: #475569 !important;
}
.gaira-weather-box .weather-grid {
    border-color: #f1f5f9 !important;
}
.gaira-weather-box .weather-val {
    color: #334155 !important;
}

/* Dark mode cuaca overrides */
.dark .gaira-weather-box .weather-temp,
html.dark .gaira-weather-box .weather-temp {
    color: #f8fafc !important;
}
.dark .gaira-weather-box .weather-status,
html.dark .gaira-weather-box .weather-status {
    color: #cbd5e1 !important;
}
.dark .gaira-weather-box .weather-grid,
html.dark .gaira-weather-box .weather-grid {
    border-color: #334155 !important;
}
.dark .gaira-weather-box .weather-val,
html.dark .gaira-weather-box .weather-val {
    color: #e2e8f0 !important;
}

/* Keyframes for slow spin */
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
    display: inline-block;
}

/* Live Search Suggestions Dropdown */
.gaira-search-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}
.gaira-search-suggestion-item {
    border-color: #f1f5f9 !important;
}
.gaira-search-suggestion-item p {
    color: #334155 !important;
}
.gaira-search-suggestion-item:hover p {
    color: #00A651 !important;
}

/* Dark mode suggestions overrides */
.dark .gaira-search-dropdown,
html.dark .gaira-search-dropdown {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
.dark .gaira-search-suggestion-item,
html.dark .gaira-search-suggestion-item {
    border-color: #334155 !important;
}
.dark .gaira-search-suggestion-item p,
html.dark .gaira-search-suggestion-item p {
    color: #cbd5e1 !important;
}
.dark .gaira-search-suggestion-item:hover p,
html.dark .gaira-search-suggestion-item:hover p {
    color: #34d399 !important;
}

/* Back to Top Button */
.gaira-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    z-index: 9999;
    cursor: pointer;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gaira-back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.2);
}
.gaira-progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.gaira-progress-bg {
    stroke: #e2e8f0;
}
.gaira-progress-bar {
    stroke: #00A651;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}
.gaira-btt-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00A651;
    font-size: 14px;
    transition: all 0.3s ease;
}
.gaira-back-to-top:hover .gaira-btt-arrow {
    transform: translate(-50%, -60%);
    color: #008040;
}

/* Dark mode Back to Top overrides */
.dark .gaira-back-to-top,
html.dark .gaira-back-to-top {
    background-color: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
.dark .gaira-progress-bg,
html.dark .gaira-progress-bg {
    stroke: #334155 !important;
}
.dark .gaira-progress-bar,
html.dark .gaira-progress-bar {
    stroke: #34d399 !important;
}
.dark .gaira-btt-arrow,
html.dark .gaira-btt-arrow {
    color: #34d399 !important;
}
.dark .gaira-back-to-top:hover .gaira-btt-arrow,
html.dark .gaira-back-to-top:hover .gaira-btt-arrow {
    color: #6ee7b7 !important;
}

/* Shine Hover Effect for Shortcut Menu Cards */
.pw-shortcut-card {
    position: relative;
    overflow: hidden;
}
.pw-shortcut-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 10;
}
.pw-shortcut-card:hover::before {
    left: 125%;
}

/* Dark mode adjustments for shine effect */
html.dark .pw-shortcut-card::before {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* ============================================================
   PORTAL WARGA - GOWAK REMBANG ARTICLE CARD GRID STYLE
   ============================================================ */
#sk-berita-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important; /* gap-5 */
}

@media (min-width: 768px) {
    #sk-berita-list {
        grid-template-columns: repeat(2, 1fr) !important; /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) {
    #sk-berita-list {
        grid-template-columns: repeat(3, 1fr) !important; /* lg:grid-cols-3 */
    }
}

#sk-berita-list .article-wrapper {
    background: #ffffff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    padding: 16px !important; /* p-4 */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

html.dark #sk-berita-list .article-wrapper {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

#sk-berita-list .article-wrapper:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--pw-forest, #00A651) !important;
}

html.dark #sk-berita-list .article-wrapper:hover {
    border-color: var(--sk-p3) !important;
}

#sk-berita-list .article-thumbnail {
    display: block !important;
    overflow: hidden !important;
    border-radius: 8px !important; /* rounded-lg */
    margin-bottom: 16px !important; /* mb-4 */
    height: 180px !important;
    position: relative !important;
}

#sk-berita-list .article-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

#sk-berita-list .article-wrapper:hover .article-thumbnail img {
    transform: scale(1.05) !important;
}

#sk-berita-list .article-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 12px !important; /* mb-3 */
    line-height: 1.4 !important;
    font-family: var(--pw-font-body, 'Poppins', sans-serif) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 2.8rem !important; /* fixed height for 2 lines */
}

html.dark #sk-berita-list .article-title {
    color: #f1f5f9 !important;
}

#sk-berita-list .article-title a {
    color: inherit !important;
    text-decoration: none !important;
}

#sk-berita-list .article-title a:hover {
    color: var(--pw-forest, #00A651) !important;
}

html.dark #sk-berita-list .article-title a:hover {
    color: var(--sk-p3) !important;
}

#sk-berita-list .article-meta {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important; /* gap-4 */
    font-size: 0.75rem !important;
    color: #718096 !important;
    margin-top: auto !important; /* push metadata to bottom of card content */
    border-top: none !important; /* override any previous top border */
    padding-top: 0 !important;
}

html.dark #sk-berita-list .article-meta {
    color: #94a3b8 !important;
}

#sk-berita-list .article-meta span {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important; /* gap-1.5 */
}

#sk-berita-list .article-meta i {
    color: #0d9488 !important; /* teal-500 color from mockup */
    font-size: 0.85rem !important;
}

/* Category Filter Tabs Styles */
.pw-cat-tabs-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    margin-bottom: 24px !important;
    scrollbar-width: none !important; /* Hide scrollbar Firefox */
    -ms-overflow-style: none !important;  /* Hide scrollbar IE/Edge */
}

.pw-cat-tabs-container::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar Chrome/Safari */
}

.pw-cat-tab {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: var(--pw-forest, #173327) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    font-family: 'Poppins', sans-serif !important;
}

html.dark .pw-cat-tab {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

.pw-cat-tab:hover {
    background: #f8fafc !important;
    color: var(--pw-maroon, #5C1A1F) !important;
    border-color: var(--pw-maroon, #5C1A1F) !important;
}

html.dark .pw-cat-tab:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

.pw-cat-tab.active {
    background: var(--pw-gold, #C9A227) !important;
    border: 1.5px solid var(--pw-maroon, #5C1A1F) !important;
    color: var(--pw-maroon, #5C1A1F) !important;
    box-shadow: 3px 3px 0px var(--pw-maroon, #5C1A1F) !important;
    transform: translate(-1px, -1px);
}

html.dark .pw-cat-tab.active {
    background: var(--pw-gold, #C9A227) !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

/* Mobile responsive overrides (screens under 640px) */
@media (max-width: 640px) {
    #sk-berita-list {
        gap: 16px !important;
    }
    #sk-berita-list .article-wrapper {
        padding: 12px !important; /* p-3 */
        border-radius: 10px !important;
    }
    #sk-berita-list .article-thumbnail {
        height: 150px !important; /* smaller image height on mobile */
        margin-bottom: 12px !important; /* mb-3 */
        border-radius: 6px !important;
    }
    #sk-berita-list .article-title {
        font-size: 0.95rem !important; /* smaller title font */
        margin-bottom: 8px !important;
        height: 2.6rem !important; /* adjust fixed height for 0.95rem 2 lines */
        line-height: 1.35 !important;
    }
    #sk-berita-list .article-meta {
        gap: 12px !important; /* tighter spacing for meta items */
        font-size: 0.7rem !important; /* smaller text */
    }
    .pw-cat-tabs-container {
        margin-bottom: 16px !important;
    }
    .pw-cat-tab {
        padding: 6px 12px !important; /* smaller tab padding */
        font-size: 0.7rem !important; /* smaller tab font */
        border-radius: 6px !important;
    }
}

/* Custom Featured Layout */
.custom-featured-layout {
    display: grid !important;
    grid-template-columns: 1.15fr 1fr !important;
    gap: 0 !important;
    border-radius: var(--pw-radius, 14px) !important;
    overflow: hidden !important;
    border: 1px solid var(--pw-line, #E4DFD2) !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06) !important;
    background: #fff;
}

.custom-featured-left {
    position: relative;
    display: block;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

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

.custom-featured-left:hover .custom-featured-img {
    transform: scale(1.05);
}

.custom-featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pw-forest, #1B4332), var(--pw-forest-dark, #122E22));
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-featured-placeholder svg {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.4);
}

.custom-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    padding: 24px;
    color: #fff;
    z-index: 10;
}

.custom-featured-overlay h3 {
    color: #ffffff !important;
    font-family: var(--pw-font-serif, 'Fraunces', Georgia, serif) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
}

.custom-featured-right {
    background: #d97706; /* Golden/Amber background */
    color: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px;
    box-sizing: border-box;
}

.custom-featured-right-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.custom-featured-right h3 {
    font-family: var(--pw-font-serif, 'Fraunces', Georgia, serif) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.custom-featured-right p {
    font-family: var(--pw-font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-featured-action {
    margin-top: 16px;
}

.custom-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0ea5e9; /* Sky blue background */
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--pw-font-body, 'Plus Jakarta Sans', sans-serif);
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-featured-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-arrow {
    font-size: 16px;
    line-height: 1;
}

/* Media Queries */
@media (max-width: 1024px) {
    .custom-featured-layout {
        grid-template-columns: 1fr !important;
    }
    
    .custom-featured-left {
        height: 280px;
    }
    
    .custom-featured-right {
        height: auto;
        min-height: 280px;
        padding: 24px;
    }
    
    .custom-featured-right p {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

@media (max-width: 640px) {
    .custom-featured-left {
        height: 220px;
    }
    
    .custom-featured-overlay h3 {
        font-size: 18px !important;
    }
    
    .custom-featured-right h3 {
        font-size: 18px !important;
    }
}

/* Article Excerpt */
#sk-berita-list .article-excerpt {
    font-size: 0.825rem !important;
    color: #4a5568 !important;
    line-height: 1.55 !important;
    margin-top: 10px !important;
    font-family: var(--pw-font-body, 'Plus Jakarta Sans', sans-serif) !important;
}

html.dark #sk-berita-list .article-excerpt {
    color: #cbd5e1 !important;
}

#sk-berita-list .article-excerpt a {
    color: #059669 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

#sk-berita-list .article-excerpt a:hover {
    color: #047857 !important;
}

