:root {
    --primary-dark: #005c0a;
    --primary-teal: #0aa20a;
    --accent-orange: #f6b737;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --border-color: #e1e8e6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Sticky Navigation */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .brand-wrapper {
        border-right: 1px solid var(--border-color);
        padding-right: 24px;
        margin-right: 16px;
    }
}

.logo-brand-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

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

.brand-kab {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
}

.brand {
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: var(--primary-dark);
    line-height: 1.2;
}

/* Desktop Navigation Menu */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav #main-nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.desktop-nav #main-nav-menu>li {
    position: relative;
}

.desktop-nav #main-nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.desktop-nav #main-nav-menu>li:hover>a,
.desktop-nav #main-nav-menu>li.active>a {
    background: rgba(4, 78, 67, 0.05);
    color: var(--primary-teal);
}

/* Dropdown styling */
.desktop-nav #main-nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(4, 78, 67, 0.08);
    box-shadow: 0 12px 30px rgba(4, 78, 67, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    min-width: 230px;
    padding: 6px 4px;
    margin-top: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    z-index: 1010;
}

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

.desktop-nav #main-nav-menu .dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    text-transform: none;
    margin: 2px 4px;
}

.desktop-nav #main-nav-menu .dropdown-menu a:hover {
    background: rgba(4, 78, 67, 0.05);
    color: var(--primary-teal);
    padding-left: 16px;
}

/* Dropdown Submenu (Level 3) */
.desktop-nav #main-nav-menu .dropdown-submenu {
    position: relative;
}

.desktop-nav #main-nav-menu .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: 4px;
}

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

/* Caret/Chevron animations */
.caret-icon {
    font-size: 8px;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.2s ease;
    display: inline-block;
}

.desktop-nav #main-nav-menu li.dropdown:hover>a>.caret-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.caret-icon-sub {
    font-size: 8px;
    float: right;
    margin-top: 4px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.desktop-nav #main-nav-menu li.dropdown-submenu:hover>a>.caret-icon-sub {
    transform: translateX(2px);
    opacity: 1;
}

.dropdown-submenu-toggle::after {
    content: none !important;
}

/* Mobile Side Drawer Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--primary-dark);
    color: var(--white);
    z-index: 2010;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active {
    left: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-drawer-brand {
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
}

.btn-close-drawer {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}

.mobile-drawer-nav {
    flex: 1;
    overflow-y: auto;
}

.mobile-drawer-nav ul {
    list-style: none;
}

.mobile-drawer-nav li a {
    display: block;
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
}

.mobile-drawer-nav li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-drawer-nav .dropdown-menu {
    list-style: none;
    padding-left: 15px;
    background: rgba(0, 0, 0, 0.15);
    display: none;
    /* Controlled by jQuery accordion script */
}

/* Header Utilities */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons {
    display: flex;
    gap: 15px;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
}

.header-icons i:hover {
    color: var(--primary-teal);
}

.btn-login-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-teal);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(4, 78, 67, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.btn-login-header:hover {
    background: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3);
    transform: translateY(-1.5px);
}

.btn-login-header i {
    font-size: 12px;
}

.btn-login-mobile:hover {
    background: var(--accent-orange) !important;
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3) !important;
    transform: translateY(-1px);
}

.btn-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Banner Slider */
.hero {
    margin-top: 30px;
    margin-bottom: 30px;
}

.hero-slider-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 380px;
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.hero-card {
    display: flex;
    min-height: 380px;
    color: var(--white);
    position: relative;
    width: 100%;
}

.hero-info {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--accent-orange);
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--white);
}

.hero-desc {
    font-size: 14px;
    opacity: 0.85;
    max-width: 480px;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-action {
    align-self: flex-start;
    background: var(--white);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.btn-action:hover {
    background: var(--primary-teal);
    color: var(--white);
    transform: translateX(4px);
}

.hero-image {
    flex: 0.8;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark) 0%, transparent 100%);
}

/* Section Header Typography */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Homepage Unified Section Spacing */
.home-section {
    margin-top: 55px;
    margin-bottom: 0;
}

/* Elegant Section Divider */
.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 77, 64, 0.08) 15%, rgba(0, 77, 64, 0.08) 85%, transparent);
    margin: 55px 0 0 0;
}

.home-section.first-section {
    margin-top: 60px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 8px;
    height: 22px;
    background: var(--primary-teal);
    border-radius: 999px;
    display: inline-block;
}

.view-all {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.view-all:hover {
    color: var(--primary-teal);
}

/* Breaking News Grid */
.breaking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    /* Increased from 20px for a more spacious/premium design */
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    /* Matching rounded-2xl */
    padding: 0;
    /* Changed to 0 so image is flush */
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Crop images to border radius */
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    /* Elevate shadow on hover */
    border-color: var(--primary-teal);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 0;
    transition: transform 0.4s ease;
}

.news-card:hover .card-thumb {
    transform: scale(1.04);
    /* Smooth micro-zoom on hover */
}

.news-card .card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

.meta-row {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.meta-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-tag::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #0d9488;
    /* teal-600 indicator dot */
    border-radius: 50%;
}

.card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 900;
    /* Black font weight */
    line-height: 1.35;
    /* leading-snug */
    letter-spacing: 0.025em;
    /* tracking-wide */
    margin-bottom: 6px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

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

.card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    /* 11px to match sportsree-ui newsgrid standard */
    font-weight: 300;
    /* light */
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    /* leading-relaxed */
}

/* Middle Split Section: Ranking & Latest News */
.split-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    /* Increased gap from 30px */
}

.rank-controls {
    display: flex;
    gap: 8px;
}

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

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

.rank-table-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.table-category {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--primary-dark);
    text-transform: uppercase;
    border-left: 3px solid var(--primary-teal);
    padding-left: 8px;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.rank-table th {
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 10px;
}

.rank-table th:nth-child(2) {
    text-align: left;
}

.rank-table td {
    padding: 10px 4px;
    text-align: center;
    border-bottom: 1px solid #f8faf9;
    font-weight: 600;
}

.rank-table td:nth-child(2) {
    text-align: left;
    font-weight: 800;
}

.rank-table tbody tr:hover {
    background: rgba(4, 78, 67, 0.02);
}

.rank-num {
    color: var(--text-muted);
    font-weight: 700;
    width: 20px;
}

/* Latest News (Berita Desa Feed) */
.latest-news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.news-list-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    background: var(--white);
    padding: 10px 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    overflow: hidden;
}

.news-list-item:hover {
    background: #f8faf9;
}

.news-list-thumb {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-thumb {
    transform: scale(1.05);
}


.news-list-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.news-list-meta {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--primary-teal);
    font-weight: 700;
    margin-bottom: 0px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-list-meta::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #0d9488;
    /* indicator dot */
    border-radius: 50%;
}

.news-list-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 800;
    /* Black font weight */
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

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

/* Lower Split Section: Trending Complaints & Camat Bio */
.feature-split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    /* Increased from 30px */
}

.trending-box {
    background: #edf3f1;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.trending-box .section-title {
    margin-bottom: 20px;
    margin-top: 0;
}

.trending-item {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d8e5e2;
    text-decoration: none;
    color: inherit;
}

.trending-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Custom SIKEMA badges for trending items */
.sikema-status-block {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 9px;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.status-pending {
    background: #64748b;
}

.status-proses {
    background: var(--accent-orange);
}

.status-selesai {
    background: var(--primary-teal);
}

.trend-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Camat bio card */
.feature-promo-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    color: var(--white, #ffffff);
    min-height: 380px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 12px 35px -10px rgba(0, 92, 10, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #002e05 0%, var(--primary-dark) 60%, var(--primary-teal) 100%);
    gap: 32px;
}

/* Subtle decorative radial glow */
.feature-promo-card::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 162, 10, 0.15) 0%, rgba(10, 162, 10, 0) 70%);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-promo-card:hover::before {
    transform: translate(-10px, 10px) scale(1.1);
}

/* Abstract overlay lines pattern using pure CSS */
.feature-promo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(#ffffff 1px, transparent 1px), radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    z-index: 1;
    pointer-events: none;
}

.promo-photo-wrapper {
    width: 220px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-promo-card:hover .promo-photo-wrapper {
    transform: scale(1.03) rotate(0.5deg);
}

.promo-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.promo-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-orange);
    /* Premium warm accent gold */
    margin-bottom: 2px;
}

.promo-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    max-width: 500px;
    color: var(--white, #ffffff);
    margin: 0;
}

.promo-description {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    margin: 4px 0 0 0;
}

.promo-action {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e5f6e6;
    text-transform: uppercase;
}

.action-arrow {
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-promo-card:hover .action-arrow {
    transform: translateX(5px);
}

/* Custom Modal Backdrop Overlay */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
}

.custom-modal-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal Card content container with scaleUp animation */
.custom-modal-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(1, 66, 60, 0.08);
    animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal animations */
@keyframes scaleUp {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

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

/* Modal Header toolbar style */
.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.header-badge-group {
    display: flex;
    align-items: center;
}

.custom-modal-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary-color, #01423c);
    background-color: #e6f2f1;
    border: 1px solid #cce5e2;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
}

.custom-modal-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-close-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Modal Body */
.custom-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.camat-detail-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
}

@media (max-width: 640px) {
    .camat-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .camat-detail-photo-wrapper {
        max-width: 180px;
        margin: 0 auto;
    }
}

.camat-detail-photo-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.camat-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.camat-detail-info {
    display: flex;
    flex-direction: column;
}

.camat-detail-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 6px;
}

.camat-detail-role {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-color, #01423c);
    text-transform: uppercase;
}

.camat-info-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 20px 0;
}

.camat-info-table {
    width: 100%;
    border-collapse: collapse;
}

.camat-info-table tr {
    border-bottom: 1px solid #f8fafc;
}

.camat-info-table tr:last-child {
    border-bottom: none;
}

.camat-info-table td {
    padding: 11px 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.info-label {
    font-weight: 600;
    color: #64748b;
    width: 180px;
}

.info-value {
    color: #1e293b;
}

.info-value.text-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    letter-spacing: 0.5px;
}

/* Popular News Grid (Synergy Programs) */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* Increased from 25px */
}

.popular-grid .card-thumb {
    height: 180px;
    border-radius: 0;
    /* Let news-card overflow hidden handle the radius */
}

.popular-grid .card-title {
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.stats-card {
    background: var(--white);
    padding: 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.stats-card:hover {
    background: var(--primary-teal);
}

.stats-icon-wrapper {
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(4, 78, 67, 0.1);
    font-size: 32px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-card:hover .stats-icon-wrapper {
    color: rgba(255, 255, 255, 0.15);
    transform: scale(1.15) rotate(-5deg);
}

.stats-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.2;
    transition: color 0.35s ease;
}

.stats-card:hover .stats-card-title {
    color: rgba(255, 255, 255, 0.75);
}

.stats-card-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 4px;
    transition: color 0.35s ease;
}

.stats-card:hover .stats-card-number {
    color: var(--white);
}

.stats-card-unit {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 16px;
    opacity: 0.8;
    transition: color 0.35s ease, opacity 0.35s ease;
}

.stats-card:hover .stats-card-unit {
    color: var(--white);
    opacity: 0.9;
}

.stats-card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--primary-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.35s ease;
}

.stats-card:hover .stats-card-meta {
    color: var(--accent-orange);
}

.stats-card-meta i {
    transition: transform 0.35s ease;
}

.stats-card:hover .stats-card-meta i {
    transform: translateX(4px);
}

/* Bottom Feature Banner (Visitor Statistics) */
.bottom-banner {
    margin-bottom: 40px;
}

.banner-card {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 92, 10, 0.25);
}

.banner-badge {
    color: var(--accent-orange) !important;
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.banner-card:hover .banner-badge {
    color: #ffffff !important;
    letter-spacing: 0.18em;
}

.map-banner-btn {
    background-color: var(--white) !important;
    color: var(--primary-dark) !important;
    transition: all 0.3s ease !important;
}

.map-banner-btn:hover {
    background-color: var(--primary-teal) !important;
    color: var(--white) !important;
}

.banner-card a i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-card a:hover i {
    transform: translateX(5px);
}


.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 92, 10, 0.9) 40%, rgba(0, 92, 10, 0.3) 100%);
    z-index: 1;
}

.banner-meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-orange);
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    max-width: 600px;
    line-height: 1.1;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.banner-desc {
    font-size: 13px;
    opacity: 0.85;
    max-width: 500px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.banner-card .btn-action {
    position: relative;
    z-index: 2;
}

/* Footer & Newsletter Area */
footer {
    background: var(--primary-dark) !important;
    color: var(--white);
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: 60px;
}

.text-secondary-fixed-dim {
    color: var(--accent-orange) !important;
}

.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.newsletter-section h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--white);
    text-transform: uppercase;
}

.subscribe-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
}

.subscribe-box label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    font-weight: 700;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border-radius: 30px;
    border: none;
    font-size: 13px;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
}

/* Fixed class selector bug from template */
.input-group .btn {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    background: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    font-size: 12px;
    border: none;
    transition: all 0.2s ease;
}

.input-group .btn:hover {
    background: var(--accent-orange);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 3.5fr 4.5fr 2fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-about .brand {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

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

.social-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.social-circle:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

.link-group h4 {
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--white);
    border-left: 2px solid var(--accent-orange);
    padding-left: 8px;
}

.link-group ul {
    list-style: none;
}

.link-group ul.two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    opacity: 0.7;
    transition: 0.2s;
}

.link-group ul li a:hover {
    opacity: 1;
    color: var(--accent-orange);
    padding-left: 4px;
}

.copyright-bar {
    text-align: center;
    padding-top: 30px;
    font-size: 11px;
    opacity: 0.5;
}

.footer-bg-text {
    font-size: 90px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: rgba(255, 255, 255, 0.015);
    margin-top: 20px;
    user-select: none;
    line-height: 1;
}

/* Skeleton Loading Shimmers */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

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

@media (max-width: 1100px) {
    .desktop-nav #main-nav-menu {
        gap: 2px;
    }

    .desktop-nav #main-nav-menu>li>a {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .breaking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .split-grid,
    .feature-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .footer-links-grid {
        grid-template-columns: 1fr 1.8fr 1.1fr 1.1fr;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .btn-menu-toggle {
        display: block;
        font-size: 20px;
        color: var(--text-dark);
    }
}

@media (max-width: 768px) {
    .hero-card {
        flex-direction: column;
    }

    .hero-image {
        min-height: 200px;
    }

    .hero-image::before {
        width: 100%;
        height: 100px;
        background: linear-gradient(180deg, var(--primary-dark) 0%, transparent 100%);
    }

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

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

    .newsletter-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 500px) {

    .breaking-grid,
    .popular-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest-news-list {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

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

    .hero-info {
        padding: 30px;
    }

    .hero-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   Swiper Hero Slider Premium Overrides
   ========================================================================== */
.hero #swiper-slider {
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

.hero .swiper-slide {
    border-radius: 16px;
    overflow: hidden;
}

.hero .slider-class {
    border-radius: 16px;
    overflow: hidden;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero .legend {
    position: absolute;
    top: 0;
    left: 54%;
    width: 200px;
    height: 100%;
    background: linear-gradient(to right, var(--primary-dark) 20%, transparent 90%);
    z-index: 2;
    pointer-events: none;
    border: none;
}

.hero .content-slide {
    z-index: 3;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero .content-txt {
    position: absolute;
    top: 50%;
    left: 0;
    /* Explicitly align to left boundary */
    transform: translateY(-50%);
    width: 55%;
    /* Changed to 55% to match layout split */
    max-width: 650px;
    padding: 0 60px 0 100px;
    /* Increased left padding to clear swiper-button */
    margin-left: 0;
    float: none;
    height: auto;
}

.hero .category-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    color: #5eead4;
    /* text-teal-300 matching sportsree-ui */
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero .content-txt h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 900;
    font-size: 48px;
    color: var(--white);
    text-transform: none;
    /* Sentence case/Title case matching sportsree-ui */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    margin-left: 0;
    line-height: 1.2;
    margin-bottom: 16px;
    width: 100%;
    letter-spacing: 0.02em;
}

.hero .content-txt h2 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300;
    /* font-light matching sportsree-ui */
    font-size: 16px;
    color: #CDF1EE;
    /* text-[#CDF1EE] matching sportsree-ui */
    font-style: normal;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-left: 0;
    line-height: 1.625;
    /* leading-relaxed matching sportsree-ui */
    margin-top: 0;
    width: 100%;
    letter-spacing: normal;
    margin-bottom: 0;
}

/* Swiper Slide Button Detail */
.hero .btn-hero-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 28px;
    background-color: var(--white);
    color: #111827;
    /* Dark charcoal/black for readability */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 9999px;
    /* Pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
    width: fit-content;
    z-index: 10;
}

.hero .btn-hero-detail:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero .btn-hero-detail i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.hero .btn-hero-detail:hover i {
    transform: translateX(4px);
}

.hero .image {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    /* Changed to 45% for 55/45 layout split */
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.hero .swiper-slide-active .image img {
    transform: scale(1.08);
}

/* Slide Content Subtle Animations */
.hero .swiper-initialized .category-tag,
.hero .swiper-initialized .content-txt h1,
.hero .swiper-initialized .content-txt h2,
.hero .swiper-initialized .btn-hero-detail {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1),
        opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.hero .swiper-initialized .swiper-slide-active .category-tag {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.hero .swiper-initialized .swiper-slide-active .content-txt h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.hero .swiper-initialized .swiper-slide-active .content-txt h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.hero .swiper-initialized .swiper-slide-active .btn-hero-detail {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

.hero .swiper-initialized .swiper-slide-active .btn-hero-detail:hover {
    transform: translateY(-2px);
    transition-delay: 0s;
}

.hero .image.fallback-logo-image img {
    object-fit: contain;
    padding: 30px;
}

/* Swiper Controls overrides */
.hero .swiper-button-next,
.hero .swiper-button-prev {
    color: var(--white);
    background: rgba(0, 92, 10, 0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .swiper-button-next::after,
.hero .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.hero .swiper-button-next:hover,
.hero .swiper-button-prev:hover {
    background: var(--primary-teal);
    transform: scale(1.05);
}

.hero .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero .swiper-pagination-bullet-active {
    background: var(--accent-orange) !important;
    width: 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Responsive Swiper overrides */
@media (max-width: 991px) {
    .hero #swiper-slider {
        height: 350px;
    }

    .hero .legend {
        border: none;
        width: 120px;
    }

    .hero .content-txt {
        left: 0;
        /* Explicitly align to left boundary */
        width: 55%;
        /* Changed to 55% to match layout split */
        padding: 0 40px 0 120px;
        /* Increased left padding to clear swiper-button */
    }

    .hero .content-txt h1 {
        font-size: 36px;
    }

    .hero .content-txt h2 {
        font-size: 14px;
    }

    .hero .category-tag {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .hero #swiper-slider {
        height: 380px;
    }

    .hero .slider-class {
        flex-direction: column;
    }

    .hero .legend {
        display: none;
        /* Hide shape layout on mobile, use background overlay */
    }

    .hero .content-slide {
        background: linear-gradient(180deg, rgba(0, 92, 10, 0.6) 0%, rgba(0, 92, 10, 0.95) 100%);
        display: flex;
        align-items: flex-end;
    }

    .hero .content-txt {
        width: 100%;
        padding: 35px 30px 35px 40px;
        /* Increased left padding/margin */
        transform: none;
        top: auto;
    }

    .hero .content-txt h1 {
        font-size: 30px;
        line-height: 1.25;
    }

    .hero .content-txt h2 {
        font-size: 13px;
        line-height: 1.5;
    }

    .hero .category-tag {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .hero .btn-hero-detail {
        margin-top: 16px;
        padding: 8px 20px;
        font-size: 11px;
    }

    .hero .image {
        width: 100%;
        height: 100%;
    }

    .hero .swiper-button-next,
    .hero .swiper-button-prev {
        display: none;
        /* Hide navigation arrows on mobile */
    }
}

/* ==========================================================================
   Article Detail Page Styles
   ========================================================================== */
.article-page-container {
    padding-top: 30px;
    padding-bottom: 60px;
}

.article-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
}

.article-main {
    min-width: 0;
    /* Prevents overflow */
}

/* Breadcrumbs */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.article-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: var(--primary-teal);
}

.article-breadcrumb .separator {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Article content card */
.article-post {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.article-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-family: 'Playfair Display', Georgia, serif;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

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

.article-meta .meta-item i {
    color: var(--accent-orange);
}

.article-meta .meta-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.article-meta .meta-item a:hover {
    color: var(--primary-teal);
}

.article-image-wrapper {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.article-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-teal);
    transition: all 0.2s;
}

.article-content a:hover {
    color: var(--accent-orange);
    border-bottom-style: solid;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-teal);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-muted);
    background: #edf3f1;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 18px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Comments Section */
.comments-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-orange);
    padding-left: 12px;
}

.comments-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.tab-btn.active {
    background: var(--primary-teal);
    color: var(--white);
    border-color: var(--primary-teal);
}

.tab-btn:hover:not(.active) {
    background: #edf3f1;
    color: var(--primary-teal);
}

/* Comments list */
.comments-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 0;
}

.comment-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #edf3f1;
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-avatar.reply-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.comment-item>.comment-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 52px;
    position: relative;
    margin-top: -40px;
}

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

.comment-author {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 14px;
}

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

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
}

.btn-reply {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--primary-teal);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.2s;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

.btn-reply:hover {
    background: #edf3f1;
    color: var(--accent-orange);
}

/* Comment Replies */
.comment-replies {
    list-style: none;
    margin-left: 52px;
    padding-left: 15px;
    border-left: 2px solid #edf3f1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.reply-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-item>.comment-body {
    padding-left: 44px;
    margin-top: -32px;
}

.empty-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Form Styles */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
    background: #f9fbfb;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-teal);
    background: var(--white);
}

.captcha-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #edf3f1;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.captcha-image span img {
    height: 30px;
    border-radius: 4px;
}

.btn-refresh {
    background: none;
    border: none;
    color: var(--primary-teal);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s;
}

.btn-refresh:hover {
    color: var(--accent-orange);
}

.captcha-input {
    flex: 1;
}

.captcha-input input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    font-family: 'Inter', sans-serif;
    background: #f9fbfb;
}

.captcha-input input:focus {
    border-color: var(--primary-teal);
    background: var(--white);
}

.btn-submit {
    align-self: flex-start;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    background: var(--primary-teal);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Sidebar Custom Styling (Buen aesthetics overlay) */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-sidebar .col-md-4 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-sidebar .box-widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.article-sidebar .box-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.article-sidebar .box-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-left: 3px solid var(--accent-orange);
    padding-left: 8px;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.article-sidebar .box-body {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Override default list group standard in sidebars */
.article-sidebar .list-group {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.article-sidebar .list-group-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 13px;
}

.article-sidebar .list-group-item:last-child {
    border-bottom: none;
}

.article-sidebar .list-group-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.article-sidebar .list-group-item a:hover {
    color: var(--primary-teal);
    padding-left: 2px;
}

/* Responsive Overrides for detail page */
@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {

    .article-post,
    .comments-section {
        padding: 20px;
    }

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

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

    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Custom Pagination Styling */
.custom-pagination nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-pagination ul.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 8px;
    border-radius: 8px;
}

.custom-pagination li.page-item,
.custom-pagination ul.pagination li {
    display: inline-block;
}

.custom-pagination li a,
.custom-pagination li span,
.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-teal);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-pagination li a:hover,
.custom-pagination .page-link:hover {
    color: var(--white);
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.custom-pagination li.active span,
.custom-pagination li.active a,
.custom-pagination .active>.page-link,
.custom-pagination [aria-current="page"]>span,
.custom-pagination [aria-current="page"]>a {
    color: var(--white) !important;
    background-color: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    cursor: default;
}

.custom-pagination li.disabled span,
.custom-pagination .disabled>.page-link {
    color: var(--text-muted);
    background-color: #f1f5f4;
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Facilities Inline Lists inside Stats Grid (Info Wilayah) */
.facility-inline-list {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.facility-inline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(0, 92, 10, 0.08);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.35s ease;
}

.facility-inline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.facility-inline-label {
    opacity: 0.85;
    font-weight: 600;
    transition: all 0.35s ease;
}

.facility-inline-val {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-teal);
    background: rgba(4, 78, 67, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 30px;
    text-align: center;
    transition: all 0.35s ease;
}

/* Hover transformations to match stats-card transition */
.stats-card:hover .facility-inline-item {
    border-bottom-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.stats-card:hover .facility-inline-label {
    color: var(--white);
    opacity: 1;
}

.stats-card:hover .facility-inline-val {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Smooth Feeds Pagination Loading Transitions */
#village-feeds-container {
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0);
}

#village-feeds-container.feeds-loading {
    opacity: 0.15;
    transform: translateY(6px);
    pointer-events: none;
}

@media (max-width: 640px) {
    .feature-promo-card {
        flex-direction: column-reverse !important;
        padding: 30px !important;
        gap: 24px !important;
        min-height: auto !important;
    }
    .promo-photo-wrapper {
        width: 180px !important;
        margin: 0 auto !important;
    }
}

/* Global Tailwind Overrides for Theme Colors */
.bg-primary {
    background-color: var(--primary-dark) !important;
}

.bg-secondary-fixed-dim {
    background-color: var(--accent-orange) !important;
}

.border-secondary-fixed-dim {
    border-color: var(--accent-orange) !important;
}

.text-primary {
    color: var(--primary-teal) !important;
}

.hover\:text-primary:hover {
    color: var(--primary-teal) !important;
}

.border-primary {
    border-color: var(--primary-teal) !important;
}

.bg-primary .absolute.inset-0 {
    background-image: radial-gradient(circle at top right, rgba(246, 183, 55, 0.15), transparent 50%) !important;
}