/* ==============================================================================
   Noesantara.com - Main Stylesheet
   Design Philosophy: Professional Indonesian News Portal (Inspired by Merdeka.com)
   Typography: Arial font size 12pt baseline
   Color Palette: Vibrant Gradient Blue (#004b97 to #0077dd) & Fiery Red/Orange (#e02424 to #ff6600)
   Responsive: Mobile-First & Desktop Optimized (Zero horizontal scroll / No cut-off)
   ============================================================================== */

:root {
    --brand-blue-deep: #002b66;
    --brand-blue: #004b97;
    --brand-blue-light: #0077dd;
    --brand-orange: #ff6600;
    --brand-red: #e02424;
    --brand-dark: #1e293b;
    --brand-gray: #64748b;
    --brand-bg: #f8fafc;
    --brand-border: #e2e8f0;
    --brand-card-bg: #ffffff;
    --font-primary: Arial, "Helvetica Neue", Helvetica, sans-serif;
    --base-font-size: 12pt;
    --container-max-width: 1040px;
}

@media (min-width: 1140px) and (max-width: 1320px) {
    :root {
        --container-max-width: 960px;
    }
}

@media (min-width: 1440px) {
    :root {
        --container-max-width: 1080px;
    }
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: #222222;
    background-color: var(--brand-bg);
    overflow-x: hidden; /* Prevents any side banner spillover on any device */
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-red);
}

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

/* ==============================================================================
   Layout Container & Responsive Grid
   ============================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
        align-items: start;
    }
}

/* ==============================================================================
   IKLAN KUPING (Left & Right Skin Ear Banners - Merdeka.com Style)
   Displayed on desktop/laptop screens starting from 1140px!
   Hidden on mobile & tablet so content is never blocked or truncated.
   ============================================================================== */
.iklan-kuping-container {
    display: none;
}

@media (min-width: 1140px) {
    .iklan-kuping-container {
        display: block;
        position: fixed;
        top: 15px;
        z-index: 998;
        width: 125px;
    }
    
    .iklan-kuping-kiri {
        left: calc((100vw - var(--container-max-width)) / 2 - 135px);
    }
    
    .iklan-kuping-kanan {
        right: calc((100vw - var(--container-max-width)) / 2 - 135px);
    }

    .iklan-kuping-inner {
        position: relative;
        background: #000000;
        box-shadow: 0 6px 25px rgba(0,0,0,0.3);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 6px;
        overflow: hidden;
        text-align: center;
    }

    .iklan-kuping-inner img {
        width: 100%;
        height: auto;
        display: block;
    }

    .iklan-kuping-inner .iklan-badge {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.85);
        color: #ffd700;
        font-size: 7pt;
        font-weight: bold;
        letter-spacing: 0.5px;
        padding: 2px 6px;
        border-bottom-left-radius: 4px;
        z-index: 10;
    }
}

@media (min-width: 1280px) {
    .iklan-kuping-container {
        width: 140px;
    }
    .iklan-kuping-kiri {
        left: calc((100vw - var(--container-max-width)) / 2 - 150px);
    }
    .iklan-kuping-kanan {
        right: calc((100vw - var(--container-max-width)) / 2 - 150px);
    }
}

@media (min-width: 1400px) {
    .iklan-kuping-container {
        width: 155px;
    }
    .iklan-kuping-kiri {
        left: calc((100vw - var(--container-max-width)) / 2 - 168px);
    }
    .iklan-kuping-kanan {
        right: calc((100vw - var(--container-max-width)) / 2 - 168px);
    }
}

@media (min-width: 1600px) {
    .iklan-kuping-container {
        width: 170px;
    }
    .iklan-kuping-kiri {
        left: calc((100vw - var(--container-max-width)) / 2 - 185px);
    }
    .iklan-kuping-kanan {
        right: calc((100vw - var(--container-max-width)) / 2 - 185px);
    }
}

/* ==============================================================================
   General Ad Wrapper (Leaderboard, Sidebar, In-Article, Flyer)
   ============================================================================== */
.iklan-wrapper {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.iklan-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 43, 102, 0.85);
    color: #ffffff;
    font-size: 7pt;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-bottom-left-radius: 4px;
    z-index: 10;
}

.iklan-wrapper a {
    display: block;
    line-height: 0;
}

.iklan-wrapper img {
    margin: 0 auto;
    max-height: 250px;
    object-fit: contain;
}

.iklan-top_leaderboard {
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.iklan-top_leaderboard img {
    max-height: 90px;
    width: auto;
    border-radius: 4px;
}

.iklan-head_banner {
    background: transparent;
    border: none;
    box-shadow: none;
}

.iklan-head_banner img {
    max-height: none;
    width: 100%;
    height: auto;
    display: block;
}

.iklan-in_article {
    margin: 25px 0;
    padding: 10px;
    background: #f1f5f9;
}

/* ==============================================================================
   Sidebar Stacked Ads (Up to 50 Ads)
   ============================================================================== */
.sidebar-widget-ads {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.sidebar-ads-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.sidebar-ad-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--brand-border);
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.sidebar-ad-card .iklan-wrapper {
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.sidebar-ad-card .iklan-wrapper img {
    max-height: none;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin: 0 auto;
}

/* Flyer Showcase Box */
.flyer-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--brand-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.flyer-header {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    color: #ffffff;
    padding: 10px 15px;
    font-size: 11pt;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flyer-body {
    padding: 12px;
    text-align: center;
}

.flyer-body img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
}

/* ==============================================================================
   Top Bar & Ticker (Merdeka.com Style)
   ============================================================================== */
.top-bar {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 10pt;
    border-bottom: 1px solid #1e293b;
    padding: 6px 0;
}

.top-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-date {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.top-social a {
    color: #94a3b8;
    font-size: 10pt;
}

.top-social a:hover {
    color: #ffffff;
}

.top-admin-link {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 9pt;
}

.top-admin-link:hover {
    background: var(--brand-red);
}

/* Breaking News Ticker (Smooth Running Marquee Text) */
.breaking-ticker {
    background: #ffffff;
    border-bottom: 1px solid var(--brand-border);
    padding: 7px 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ticker-badge {
    background: var(--brand-red);
    color: #ffffff;
    font-size: 8.5pt;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    margin-right: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    z-index: 5;
    box-shadow: 2px 0 6px rgba(0,0,0,0.06);
}

.ticker-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding-right: 40px;
    font-size: 10pt;
    font-weight: 500;
}

.ticker-item a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-item a:hover {
    color: var(--brand-red);
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.header-edition-badge {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 9pt;
    font-weight: bold;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.btn-whatsapp-iklan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 11.5pt;
    padding: 13px 26px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-whatsapp-iklan:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==============================================================================
   IKLAN HEAD (Billboard Banner Atas - Merdeka.com Style)
   ============================================================================== */
.head-ad-section {
    padding: 10px 0 4px 0;
    background: transparent;
}

.head-ad-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--brand-border);
    text-align: center;
}

.head-ad-wrapper a {
    display: block;
    line-height: 0;
    width: 100%;
}

.head-ad-wrapper img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    margin: 0 auto;
    transition: opacity 0.2s ease;
}

.head-ad-wrapper a:hover img {
    opacity: 0.95;
}

.head-ad-wrapper .iklan-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    font-size: 7.5pt;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    z-index: 5;
}

/* ==============================================================================
   Main Header & Logo (Merdeka.com Style with Center Search Bar)
   ============================================================================== */
.main-header {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid var(--brand-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

/* Merdeka-style Center Search Bar */
.header-search-merdeka {
    flex: 1;
    max-width: 480px;
    margin: 0 10px;
}

.search-merdeka-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    padding: 3px 5px 3px 14px;
    transition: all 0.2s ease;
}

.search-merdeka-form:focus-within {
    background: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 75, 151, 0.15);
}

.search-merdeka-sparkle {
    color: #8b5cf6;
    font-size: 13pt;
    margin-right: 8px;
}

.search-merdeka-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    font-size: 10.5pt;
    color: #1e293b;
    background: transparent;
}

.search-merdeka-btn {
    background: linear-gradient(135deg, #4f46e5, #004b97);
    color: #ffffff;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 9pt;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.search-merdeka-btn:hover {
    opacity: 0.92;
}

.header-right-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.btn-merdeka-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #1e293b !important;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 9.5pt;
    font-weight: bold;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-merdeka-user:hover {
    background: var(--brand-blue);
    color: #ffffff !important;
    border-color: var(--brand-blue);
}

@media (max-width: 768px) {
    .header-search-merdeka {
        display: none;
    }
    .header-right-action {
        display: none;
    }
}

/* ==============================================================================
   Main Navigation (Merdeka.com Clean Contained Style)
   ============================================================================== */
.main-nav {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 2px solid var(--brand-border);
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li a {
    display: block;
    color: #1e293b;
    padding: 10px 10px;
    font-weight: 700;
    font-size: 9.5pt;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-links li a:hover,
.nav-links li.active a {
    color: var(--brand-red);
    background: transparent;
    border-bottom: 3px solid var(--brand-red);
}

.nav-actions {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--brand-blue-deep);
    font-size: 16pt;
    padding: 8px 12px;
    cursor: pointer;
    align-items: center;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
    }
    .nav-links.show-mobile {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        z-index: 999;
        max-height: 75vh;
        overflow-y: auto;
        border-top: 1px solid var(--brand-border);
    }
    .nav-links.show-mobile li a {
        padding: 12px 20px;
        color: #1e293b;
        border-bottom: 1px solid #f1f5f9;
        font-size: 10pt;
    }
    .nav-links.show-mobile li.active a,
    .nav-links.show-mobile li a:hover {
        color: var(--brand-red);
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* Trending bar */
.trending-bar {
    background: #f1f5f9;
    border-bottom: 1px solid var(--brand-border);
    padding: 8px 0;
    font-size: 10pt;
}

.trending-inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    scrollbar-width: none;
}

.trending-inner::-webkit-scrollbar {
    display: none;
}

.trending-label {
    font-weight: bold;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.trending-tag {
    background: #ffffff;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 9.5pt;
}

.trending-tag:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

/* ==============================================================================
   Headline & Spotlight Section
   ============================================================================== */
.headline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .headline-grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* Main Hero Headline Card */
.headline-hero {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--brand-border);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.headline-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.headline-hero-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.headline-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.headline-hero:hover .headline-hero-thumb img {
    transform: scale(1.03);
}

.cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-red);
    color: #ffffff;
    padding: 3px 10px;
    font-size: 9pt;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.headline-hero-body {
    padding: 18px;
}

.headline-hero-title {
    font-size: 16pt;
    line-height: 1.35;
    font-weight: bold;
    margin-bottom: 10px;
}

.headline-hero-title a {
    color: #0f172a;
}

.headline-hero-title a:hover {
    color: var(--brand-blue);
}

.headline-hero-excerpt {
    color: #475569;
    font-size: 11pt;
    margin-bottom: 12px;
    line-height: 1.5;
}

.headline-meta {
    font-size: 9pt;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sub-headlines Column */
.sub-headlines {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sub-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--brand-border);
    padding: 12px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: background-color 0.2s ease;
}

.sub-card:hover {
    background-color: #f8fafc;
}

.sub-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
    background: #0f172a;
}

.sub-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-card-title {
    font-size: 11pt;
    font-weight: bold;
    line-height: 1.35;
    margin-bottom: 6px;
}

.sub-card-title a {
    color: #1e293b;
}

.sub-card-title a:hover {
    color: var(--brand-blue);
}

.sub-card-meta {
    font-size: 8.5pt;
    color: #94a3b8;
}

/* ==============================================================================
   Section Title (Merdeka Red/Blue Underline)
   ============================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--brand-border);
    margin-bottom: 18px;
    position: relative;
}

.section-title {
    font-size: 13pt;
    font-weight: bold;
    color: var(--brand-blue-deep);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    position: relative;
    margin-bottom: -2px;
    border-bottom: 3px solid var(--brand-red);
}

.section-more {
    font-size: 9.5pt;
    font-weight: bold;
    color: var(--brand-blue);
}

/* ==============================================================================
   News Stream (Berita Terkini)
   ============================================================================== */
.news-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--brand-border);
    padding: 15px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 576px) {
    .news-item {
        grid-template-columns: 180px 1fr;
    }
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.news-item-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    background: #1e293b;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-cat {
    font-size: 8.5pt;
    font-weight: bold;
    color: var(--brand-red);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.news-item-title {
    font-size: 12pt;
    font-weight: bold;
    line-height: 1.35;
    margin-bottom: 6px;
}

.news-item-title a {
    color: #0f172a;
}

.news-item-title a:hover {
    color: var(--brand-blue);
}

.news-item-excerpt {
    font-size: 10.5pt;
    color: #64748b;
    display: none;
    line-height: 1.45;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .news-item-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.news-item-meta {
    font-size: 8.5pt;
    color: #94a3b8;
}

/* ==============================================================================
   Fokus / Card Grid (3 Columns)
   ============================================================================== */
.fokus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 25px;
}

@media (min-width: 576px) {
    .fokus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .fokus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fokus-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--brand-border);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.fokus-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.fokus-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fokus-card-body {
    padding: 12px;
}

.fokus-card-cat {
    font-size: 8pt;
    font-weight: bold;
    color: var(--brand-blue);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fokus-card-title {
    font-size: 10.5pt;
    font-weight: bold;
    line-height: 1.35;
    margin-bottom: 6px;
}

.fokus-card-title a {
    color: #1e293b;
}

.fokus-card-title a:hover {
    color: var(--brand-red);
}

.fokus-card-meta {
    font-size: 8.5pt;
    color: #94a3b8;
}

/* ==============================================================================
   Sidebar Components (Terpopuler, Ads, Flyer)
   ============================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--brand-border);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.populer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.populer-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

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

.populer-rank {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--brand-blue-deep);
    font-size: 12pt;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.populer-item:nth-child(1) .populer-rank {
    background: var(--brand-red);
    color: #ffffff;
}

.populer-item:nth-child(2) .populer-rank {
    background: var(--brand-orange);
    color: #ffffff;
}

.populer-item:nth-child(3) .populer-rank {
    background: var(--brand-blue);
    color: #ffffff;
}

.populer-title {
    font-size: 10.5pt;
    font-weight: bold;
    line-height: 1.35;
    margin-bottom: 4px;
}

.populer-title a {
    color: #1e293b;
}

.populer-title a:hover {
    color: var(--brand-blue);
}

.populer-meta {
    font-size: 8.5pt;
    color: #94a3b8;
}

/* Category cloud */
.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-badge-item {
    background: #f1f5f9;
    color: #334155;
    font-size: 9.5pt;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--brand-border);
    transition: all 0.2s ease;
}

.category-badge-item:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

/* ==============================================================================
   Visitor Statistics Widget (Flag Counter)
   ============================================================================== */
.visitor-stats-box {
    text-align: center;
    padding: 10px 4px 6px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.visitor-stats-box a {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
}

.visitor-stats-box img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ==============================================================================
   Single Article Detail (Baca Berita)
   ============================================================================== */
.article-container {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--brand-border);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.breadcrumb {
    font-size: 9.5pt;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumb span {
    color: #cbd5e1;
}

.article-title {
    font-size: 20pt;
    font-weight: bold;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 14px;
}

.article-meta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
    margin-bottom: 20px;
    gap: 12px;
}

.article-author-info {
    font-size: 10pt;
    color: #475569;
}

.article-author-info strong {
    color: #0f172a;
}

.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.share-label {
    font-size: 8.5pt;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 2px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    padding: 0;
    line-height: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    filter: brightness(1.08);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn svg {
    display: block;
    transition: transform 0.2s ease;
}

.share-btn:hover svg {
    transform: scale(1.08);
}

.share-wa { background-color: #25d366; }
.share-fb { background-color: #1877f2; }
.share-x, .share-tw { background-color: #000000; }
.share-tg { background-color: #229ed9; }
.share-copy { background-color: #475569; }
.share-copy.copied { background-color: #10b981 !important; }

/* Toast Notification for Link Copied */
.share-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 9.5pt;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Bottom Article Share Bar */
.article-share-bottom {
    margin-top: 25px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.article-share-bottom-title {
    font-size: 10pt;
    font-weight: 700;
    color: var(--brand-blue-deep);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-featured-img {
    margin-bottom: 24px;
}

.article-featured-img img {
    width: 100%;
    border-radius: 6px;
}

.article-img-caption {
    font-size: 9pt;
    color: #64748b;
    font-style: italic;
    margin-top: 6px;
    line-height: 1.4;
}

.article-body {
    font-size: 12pt;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 30px;
}

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

.article-tags {
    margin: 25px 0;
    padding-top: 15px;
    border-top: 1px solid var(--brand-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tag-label {
    font-weight: bold;
    font-size: 10pt;
    color: var(--brand-blue-deep);
}

.tag-pill {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 9pt;
    border: 1px solid #e2e8f0;
}

.tag-pill:hover {
    background: var(--brand-blue);
    color: #ffffff;
}

/* ==============================================================================
   Footer
   ============================================================================== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding-top: 45px;
    border-top: 4px solid var(--brand-red);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 35px;
    border-bottom: 1px solid #1e293b;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-logo img {
    height: 48px;
    margin-bottom: 14px;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-about {
    font-size: 10.5pt;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-heading {
    color: #ffffff;
    font-size: 12pt;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-orange);
    display: inline-block;
}

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

.footer-links li a {
    color: #94a3b8;
    font-size: 10.5pt;
}

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

.footer-bottom {
    padding: 20px 0;
    font-size: 9.5pt;
    color: #64748b;
    text-align: center;
}

.footer-bottom a {
    color: #94a3b8;
}

/* ==============================================================================
   Search Bar Modal / Dropdown
   ============================================================================== */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-overlay.active {
    display: flex;
}

.search-box {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.search-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18pt;
    color: #64748b;
    cursor: pointer;
}

.search-form-group {
    display: flex;
    margin-top: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 12pt;
    border: 2px solid var(--brand-blue);
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: var(--font-primary);
}

.search-submit-btn {
    background: var(--brand-red);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    font-weight: bold;
    font-size: 11pt;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-submit-btn:hover {
    background: #c81e1e;
}

/* ==============================================================================
   Pagination
   ============================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.page-link {
    display: inline-block;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid var(--brand-border);
    color: var(--brand-dark);
    font-size: 10.5pt;
    border-radius: 4px;
    font-weight: bold;
}

.page-link:hover,
.page-link.active {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

/* ==============================================================================
   In-Article Images, Figures & Captions
   ============================================================================== */
.article-body figure.article-image {
    margin: 22px auto;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    clear: both;
}

.article-body figure.article-image img,
.article-body img.article-inline-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.article-body figure.article-image figcaption {
    font-size: 9pt;
    line-height: 1.5;
    color: #64748b;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}

.article-body figure.article-image.align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    clear: both;
}

.article-body figure.article-image.align-left {
    float: left;
    margin: 8px 24px 18px 0;
    clear: none;
}

.article-body figure.article-image.align-right {
    float: right;
    margin: 8px 0 18px 24px;
    clear: none;
}

.article-body figure.article-image.align-full {
    width: 100% !important;
    margin: 24px 0;
    clear: both;
}

@media (max-width: 640px) {
    .article-body figure.article-image.align-left,
    .article-body figure.article-image.align-right {
        float: none !important;
        margin: 16px auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

