/* =============================================================================
   HALOSUMBAR — MAIN STYLESHEET
   Version: 2.0.8 (OPTIMIZED CLEAN WHITE REDESIGN)
   Author: HaloSumbar Dev Team
   -----------------------------------------------------------------------------
   STRUKTUR:
   1. Reset & Base
   2. Layout & Container
   3. Logo
   4. Topbar
   5. Breaking News Ticker
   6. Main Header (Logo + Iklan)
   7. Menu Utama (Baris 1)
   8. Sub-Navbar (Baris 2)
   9. Main News Grid (Hero + Populer)
   10. Hero Besar
   11. Hero Kecil (4 Anak)
   12. Berita Populer
   13. Berita Terkini
   14. Sidebar Iklan
   15. Widget
   16. Footer
   17. Responsive & Mobile Fixes
   ============================================================================= */


/* =============================================================================
   1. RESET & BASE
   ============================================================================= */
*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: #000000 !important; /* Latar luar hitam */
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

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

a {
    color: #e11d48;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #be123c;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Memastikan semua bagian utama berlatar putih dan tidak ada celah hitam di tengah */
.hs-top-header,
.hs-breaking-wrapper,
.hs-main-header,
.hs-nav-wrapper,
.hs-main-news-grid,
.hs-main-wrapper,
.hs-footer,
.hs-footer-bottom {
    background-color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* =============================================================================
   2. LAYOUT & CONTAINER
   ============================================================================= */
.hs-container {
    max-width: 1080px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: #ffffff !important; /* Kertas putih penuh dari atas ke bawah */
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* =============================================================================
   3. LOGO
   ============================================================================= */
.hs-logo a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.hs-logo img {
    max-width: 210px;
    height: auto;
    display: block;
}

.hs-logo p {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    color: #e11d48;
    letter-spacing: -0.8px;
    line-height: 1;
    white-space: nowrap;
}

.hs-logo p span {
    color: #0f172a;
}


/* =============================================================================
   4. TOPBAR (LIGHT & CLEAN)
   ============================================================================= */
.hs-top-header {
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
}

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

.hs-top-left,
.hs-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hs-date {
    color: #475569;
    font-weight: 500;
}

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

.hs-top-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 4px;
}

.hs-top-nav a:hover {
    color: #e11d48;
}

.hs-social-links {
    display: flex;
    gap: 6px;
}

.hs-social-links a {
    color: #475569;
    background: #f1f5f9;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s;
}

.hs-social-links a:hover {
    background: #e11d48;
    color: #ffffff;
}


/* =============================================================================
   5. BREAKING NEWS TICKER
   ============================================================================= */
.hs-breaking-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
    padding: 6px 12px;
}

.hs-breaking-label {
    background: #e11d48;
    color: #ffffff;
    padding: 8px 16px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.hs-breaking-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
    min-width: 0;
}

.hs-ticker {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.hs-ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: hs-ticker-scroll 60s linear infinite;
    will-change: transform; /* Memberitahu browser untuk menggunakan GPU Hardware Acceleration */
}






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

.hs-ticker-track a {
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
    margin-right: 35px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.hs-ticker-track a:hover {
    color: #e11d48;
}

.hs-ticker-tag {
    background: #ffe4e6;
    color: #e11d48;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}


@keyframes hs-ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}








/* =============================================================================
   6. MAIN HEADER (LOGO + IKLAN)
   ============================================================================= */
.hs-main-header {
    background: #ffffff;
    padding: 16px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.hs-header-inner {
    display: grid;
    grid-template-columns: auto 728px;
    align-items: center;
    gap: 20px;
}

.hs-logo {
    min-width: 0;
    overflow: hidden;
}

.hs-header-ad {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hs-header-ad a {
    display: inline-block;
    line-height: 0;
}

.hs-header-ad img {
    display: block;
    max-width: 728px;
    height: auto;
    border-radius: 6px;
}


/* =============================================================================
   7. MAIN NAV (MENU UTAMA)
   ============================================================================= */
.hs-main-nav {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: none;
    border-radius: 8px;
    padding: 2px 2px;
    width: 1080px !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 2;
}

.hs-main-nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    padding: 0;
}

.hs-main-nav ul::-webkit-scrollbar {
    display: none;
}

.hs-main-nav a {
    display: block;
    padding: 10px 18px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.hs-main-nav a:hover {
    background: #ffffff !important;
    color: #1e40af !important;
    text-shadow: none !important;
    transform: translateY(-1px);
}

.hs-main-nav a.active {
    background: #e11d48 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: none !important;
}


/* =============================================================================
   8. SECONDARY NAV (MENU KECIL KEDUA)
   ============================================================================= */
.hs-secondary-nav {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    width: 1030px !important;
    max-width: 1030px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: -6px !important; 
    padding: 10px 12px 6px 12px;
    box-sizing: border-box !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
}

.hs-secondary-nav ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    padding: 0;
}

.hs-secondary-nav ul::-webkit-scrollbar {
    display: none;
}

.hs-secondary-nav a {
    display: block;
    padding: 5px 12px;
    color: #0f172a !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.hs-secondary-nav a:hover {
    background: #1e40af;
    color: #ffffff !important;
    border-color: #1e40af;
}

.hs-secondary-nav a.active {
    background: #e11d48;
    color: #ffffff !important;
    border-color: #e11d48;
}


/* =============================================================================
   9. MAIN NEWS GRID (HERO + POPULER)
   ============================================================================= */
.hs-main-news-grid {
    display: flex;
    padding: 0 12px;
    gap: 16px;
}

.hs-hero-col {
    flex: 2;
    min-width: 0;
}

.hs-popular-col {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: none !important;
}


/* =============================================================================
   10. HERO BESAR
   ============================================================================= */
.hs-hero-big {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #0f172a;
    box-shadow: none !important;
}

.hs-hero-big > a {
    display: block;
    position: relative;
}

.hs-hero-big img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hs-hero-big:hover img {
    transform: scale(1.03);
    opacity: 1;
}

.hs-hero-big-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 100%);
    color: #ffffff;
    pointer-events: none;
}

.hs-hero-big-overlay > * {
    pointer-events: auto;
}

.hs-hero-big-tag {
    display: inline-block;
    background: #e11d48;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.hs-hero-big-overlay time {
    display: block;
    font-size: 11px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.hs-hero-big-overlay h1 {
    font-size: 22px;
    line-height: 1.35;
    margin: 0;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-hero-big-overlay h1 a {
    color: #ffffff;
    text-decoration: none;
}

.hs-hero-big-overlay h1 a:hover {
    color: #fda4af;
}


/* =============================================================================
   11. HERO KECIL (4 ANAK)
   ============================================================================= */
.hs-hero-small-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.hs-hero-small {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hs-hero-small:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
    border-color: #cbd5e1;
}

.hs-hero-small > a {
    display: block;
    overflow: hidden;
}

.hs-hero-small img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.hs-hero-small time {
    display: block;
    padding: 6px 8px 2px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.hs-hero-small h3 {
    padding: 0 8px 10px 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-hero-small h3 a {
    color: #0f172a;
    text-decoration: none;
}

.hs-hero-small h3 a:hover {
    color: #e11d48;
}


/* =============================================================================
   12. BERITA POPULER
   ============================================================================= */
.hs-widget-title {
    font-size: 15px;
    margin-bottom: 12px;
    padding: 10px 14px;
    text-transform: uppercase;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    background: #fff;
    border-left: 4px solid #e11d48;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hs-pop-list-wrapper .hs-pop-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.hs-pop-list-wrapper .hs-pop-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hs-pop-list-wrapper .hs-pop-item img {
    width: 80px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.hs-pop-list-wrapper .hs-pop-item > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hs-pop-list-wrapper .hs-pop-item .hs-meta {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    order: 1;
}

.hs-pop-list-wrapper .hs-pop-item .hs-meta strong {
    color: #e11d48;
    font-weight: 700;
    text-transform: uppercase;
}

.hs-pop-list-wrapper .hs-pop-item h3 {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    font-weight: 700;
    order: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-pop-list-wrapper .hs-pop-item h3 a {
    color: #0f172a;
    text-decoration: none;
}

.hs-pop-list-wrapper .hs-pop-item h3 a:hover {
    color: #e11d48;
}


/* =============================================================================
   13. BERITA TERKINI
   ============================================================================= */
.hs-main-wrapper {
    display: flex;
    align-items: flex-start;
    padding: 0 12px;
    margin-bottom: 24px;
    gap: 16px;
}

.hs-content-left {
    flex: 2;
    min-width: 0;
}

.hs-sidebar-right {
    flex: 1;
    min-width: 0;
}

.hs-section-title {
    font-size: 16px;
    margin-bottom: 14px;
    padding: 12px 16px;
    text-transform: uppercase;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    background: #fff;
    border-left: 4px solid #e11d48;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hs-section-title::after {
    content: '→';
    font-size: 16px;
    color: #e11d48;
}

.hs-news-card {
    display: flex;
    gap: 16px;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.hs-news-card:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
    border-color: #cbd5e1;
}

.hs-news-thumb {
    width: 190px;
    height: 125px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.hs-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.hs-news-card:hover .hs-news-thumb img {
    transform: scale(1.05);
}

.hs-news-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.hs-news-tag {
    display: inline-block;
    background: #ffe4e6;
    color: #e11d48;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    align-self: flex-start;
    letter-spacing: 0.3px;
}

.hs-news-info time {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    display: block;
}

.hs-news-info h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-news-info h3 a {
    color: #0f172a;
    text-decoration: none;
}

.hs-news-info h3 a:hover {
    color: #e11d48;
}

.hs-empty {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    font-size: 14px;
}


/* =============================================================================
   14. SIDEBAR IKLAN (DISINKRONKAN DENGAN PHP)
   ============================================================================= */
.hs-ad-slot {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    max-width: 100%;
    margin: 0 auto;
    /* min-height tidak wajib mutlak jika tinggi sudah dipatok dinamis oleh PHP, 
       tapi tetap bagus sebagai cadangan */
    min-height: 200px; 
}

.hs-ad-slot .hs-ad-item {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hs-ad-slot .hs-ad-item.active {
    display: block;
}

.hs-ad-slot .hs-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hs-ad-slot-auto {
    height: auto !important;
}

.hs-ad-slot-auto .hs-ad-item {
    position: relative;
    height: auto;
}

.hs-ad-slot-auto .hs-ad-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* =============================================================================
   15. WIDGET
   ============================================================================= */
.hs-widget {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: none !important;
}


/* =============================================================================
   16. FOOTER
   ============================================================================= */
.hs-footer {
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    padding: 16px 12px 0 12px;
    border-top: 2px solid #f1f5f9;
}

.hs-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.3fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.hs-footer-col h3 {
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 800;
    position: relative;
    padding-bottom: 6px;
}

.hs-footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    background: #e11d48;
    border-radius: 2px;
}

.hs-footer-col p {
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 12px;
    color: #64748b;
}

.hs-footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hs-footer-links-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    align-items: start;
}

.hs-footer-links-2col li {
    margin: 0;
}

.hs-footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

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

.hs-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.hs-contact-info li {
    line-height: 1.5;
}

.hs-footer-bottom {
    background: #fff;
    padding: 16px 12px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    border-top: 1px solid #e2e8f0;
}


/* =============================================================================
   17. RESPONSIVE & MOBILE FIXES (TAMPILAN PONSEL)
   ============================================================================= */
@media (max-width: 768px) {
    .hs-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-shadow: none !important;
    }

    .hs-main-nav,
    .hs-secondary-nav {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hs-top-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .hs-top-left,
    .hs-top-right {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .hs-header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .hs-logo {
        margin: 0 auto;
        text-align: center;
    }

    .hs-header-ad img {
        width: 100% !important;
        height: auto !important;
    }

    .hs-main-news-grid,
    .hs-main-wrapper {
        display: flex;
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
        padding: 0 8px !important;
    }

    .hs-content-left,
    .hs-sidebar-right {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hs-hero-small-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hs-news-card {
        gap: 10px !important;
        padding: 10px !important;
    }

    .hs-news-thumb {
        width: 120px !important;
        height: 85px !important;
    }

    .hs-news-info h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .hs-ad-slot,
    .hs-ad-slot img,
    .hs-widget img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .hs-ad-slot {
        height: auto !important;
    }

    .hs-footer-inner {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}