/*
Theme Name: Halo Sumbar Theme
Theme URI: https://halosumbar.com
Author: Tim Redaksi Halo Sumbar
Description: Tema portal berita WordPress ringan, modern, dan responsive untuk Halo Sumbar.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: halosumbartheme
*/

/* =============================================================================
   DAFTAR ISI
   -----------------------------------------------------------------------------
   01. RESET & BASE
   02. LAYOUT & CONTAINER
   03. LOGO
   04. TOPBAR
   05. BREAKING NEWS TICKER
   06. MAIN HEADER (LOGO + IKLAN)
   07. MENU UTAMA (BARIS 1) + DROPDOWN
   08. SUB-NAVBAR (BARIS 2)
   09. MAIN NEWS GRID (HERO + POPULER)
   10. HERO BESAR
   11. HERO KECIL (4 ANAK)
   12. WIDGET TITLE UNIVERSAL
   13. BERITA POPULER
   14. BERITA TERKINI (LIST) + MAIN WRAPPER
   15. BREADCRUMB UMUM
   16. DETAIL BERITA — HEADER
   17. DETAIL BERITA — FEATURED IMAGE
   18. DETAIL BERITA — ISI ARTIKEL
   19. DETAIL BERITA — TAGS
   20. IKLAN (Header, In-Paragraph, Bottom, Loop)
   21. DETAIL BERITA — NAVIGASI PREV/NEXT
   22. DETAIL BERITA — BERITA TERKAIT
   23. DETAIL BERITA — REKOMENDASI DIBACA
   24. HALAMAN ARSIP & KATEGORI
   25. HALAMAN STATIS (PAGE)
   26. PAGINASI HALAMAN
   27. SIDEBAR & WIDGET
   28. FORM PENCARIAN
   29. FOOTER
   30. FOOTER WIDGET AREA
   31. CUSTOM LOGO IMAGE
   32. UTILITY & HELPER
   33. RESPONSIVE (Tablet & Mobile)
   ============================================================================= */


/* =============================================================================
   01. RESET & BASE
   ============================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f4f6f8;
    overflow-x: hidden;
}

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

a {
    color: #d32f2f;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

a:hover {
    color: #b71c1c;
}

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;
}


/* =============================================================================
   02. LAYOUT & CONTAINER
   ============================================================================= */
.hs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}


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

.hs-logo p,
.hs-site-title {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    color: #d32f2f;
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
}

.hs-logo p span,
.hs-site-title span {
    color: #222;
}


/* =============================================================================
   04. TOPBAR
   ============================================================================= */
.hs-top-header {
    background: #1e1e1e;
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #333;
}

.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: 12px;
}

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

.hs-top-nav,
.hs-top-menu-list {
    display: flex;
    gap: 10px;
}

.hs-top-nav a,
.hs-top-menu-list a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
}

.hs-top-nav a:hover,
.hs-top-menu-list a:hover {
    color: #fff;
}

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

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

.hs-social-links a:hover {
    background: #d32f2f;
    color: #fff;
}


/* =============================================================================
   05. BREAKING NEWS TICKER
   ============================================================================= */
.hs-breaking-wrapper {
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    font-size: 13px;
    margin: 3px 0;
}

.hs-breaking-label {
    background: #d32f2f;
    color: #fff;
    padding: 8px 14px;
    font-weight: bold;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    flex-shrink: 0;
}

.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;
}

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

.hs-ticker-track a {
    color: #fff;
    text-decoration: none;
    margin-right: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

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

.hs-ticker-tag {
    background: #d32f2f;
    color: #fff;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

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


/* =============================================================================
   06. MAIN HEADER (LOGO + IKLAN 728x90)
   ============================================================================= */
.hs-main-header {
    background: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    margin: 3px 0;
}

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

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

/* Kotak iklan header — DIKUNCI ukurannya */
.hs-header-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 728px;
    height: 90px;
    min-height: 90px;
    max-width: 100%;
    margin-left: auto;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.hs-header-ad a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.hs-header-ad img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


/* =============================================================================
   07. MENU UTAMA (BARIS 1) + DROPDOWN
   ============================================================================= */
.hs-main-nav {
    background: #d32f2f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #b71c1c;
    position: relative;
    z-index: 999;
    /* JANGAN pakai overflow di sini — akan potong dropdown */
}

/* Inner container — TIDAK pakai overflow, biar dropdown bisa keluar */
.hs-main-nav .hs-container {
    position: relative;
}

/* Menu list (ul utama) */
.hs-main-nav .hs-primary-menu-list,
.hs-main-nav > .hs-container > ul {
    display: flex;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;                 /* Boleh wrap di layar kecil */
}

.hs-main-nav li {
    position: relative;
}

.hs-main-nav a {
    display: block;
    padding: 11px 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.hs-main-nav a:hover,
.hs-main-nav li.current-menu-item > a,
.hs-main-nav li:hover > a {
    background: #b71c1c;
    color: #ffc107;
}

/* ============ DROPDOWN LEVEL 2 ============ */
.hs-main-nav ul.sub-menu,
.hs-main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    min-width: 220px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    flex-direction: column;
    gap: 0;
    z-index: 99999;
    padding: 6px 0;
    list-style: none;
    border-radius: 0 0 4px 4px;
}

.hs-main-nav li:hover > ul.sub-menu,
.hs-main-nav li:hover > ul {
    display: flex;
}

.hs-main-nav ul ul li {
    position: relative;
    width: 100%;
}

.hs-main-nav ul ul a {
    padding: 10px 18px;
    color: #ccc;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid #333;
    background: transparent;
    white-space: normal;
    text-align: left;
}

.hs-main-nav ul ul li:last-child a {
    border-bottom: none;
}

.hs-main-nav ul ul a:hover {
    background: #d32f2f;
    color: #fff;
}

/* ============ DROPDOWN LEVEL 3 ============ */
.hs-main-nav ul ul ul {
    top: 0;
    left: 100%;
    border-radius: 4px;
}


/* =============================================================================
   08. SUB-NAVBAR (BARIS 2)
   ============================================================================= */
.hs-secondary-nav {
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    padding: 2px 0;
    display: block;
    width: 100%;
}

.hs-secondary-nav .hs-secondary-menu-list,
.hs-secondary-nav > .hs-container > ul {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

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

.hs-secondary-nav a {
    display: block;
    padding: 6px 12px;
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.hs-secondary-nav a:hover,
.hs-secondary-nav li.current-menu-item > a {
    background: #d32f2f;
    color: #fff;
}


/* =============================================================================
   09. MAIN NEWS GRID (HERO + POPULER)
   ============================================================================= */
.hs-main-news-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    margin-top: 5px;
}

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

.hs-popular-col {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}


/* =============================================================================
   10. HERO BESAR
   ============================================================================= */
.hs-hero-big {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 3px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    height: 380px;
}

.hs-hero-big > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

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

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

.hs-hero-big-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    pointer-events: none;
}

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

.hs-hero-big-tag {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

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

.hs-hero-big-overlay h1 {
    font-size: 20px;
    line-height: 1.3;
    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: #fff;
    text-decoration: none;
}

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


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

.hs-hero-small {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hs-hero-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hs-hero-small > a {
    display: block;
    overflow: hidden;
    height: 110px;
    flex-shrink: 0;
}

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

.hs-hero-small:hover img {
    transform: scale(1.05);
}

.hs-hero-small time {
    display: block;
    padding: 8px 10px 0;
    font-size: 11px;
    color: #888;
    flex-shrink: 0;
}

.hs-hero-small h3 {
    padding: 4px 10px 12px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    min-height: 5.6em;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

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

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


/* =============================================================================
   12. WIDGET TITLE UNIVERSAL
   ============================================================================= */
.hs-widget-title {
    font-size: 15px;
    margin-bottom: 12px;
    padding: 10px 16px;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #d32f2f 0%, #b71c1c 50%, #222 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* =============================================================================
   13. BERITA POPULER
   ============================================================================= */
.hs-pop-list-wrapper .hs-pop-item {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.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: 4px;
    flex-shrink: 0;
}

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

.hs-pop-list-wrapper .hs-pop-item .hs-meta {
    font-size: 10px;
    color: #777;
}

.hs-pop-list-wrapper .hs-pop-item .hs-meta strong {
    color: #d32f2f;
    font-weight: 700;
}

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

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

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


/* =============================================================================
   14. BERITA TERKINI (LIST) + MAIN WRAPPER
   ============================================================================= */
.hs-main-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
    margin-top: 15px;
}

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

/* Wrapper list berita terkini */
.hs-news-list {
    display: block;
    width: 100%;
    clear: both;
}

.hs-section-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding: 10px 16px;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #d32f2f 0%, #b71c1c 50%, #222 100%);
    border-radius: 4px;
}

.hs-news-list .hs-news-card,
.hs-news-card {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    float: none;
}

.hs-news-card:hover {
    transform: translateY(-2px);
}

.hs-news-thumb {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
}

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

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

.hs-news-tag {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    align-self: flex-start;
}

.hs-news-info time {
    font-size: 11px;
    color: #888;
}

.hs-news-info h3 {
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
    font-weight: 700;
}

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

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

.hs-news-info p {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

.hs-read-more {
    color: #d32f2f;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
}


/* =============================================================================
   15. BREADCRUMB UMUM
   ============================================================================= */
.hs-breadcrumb,
.hs-single-header .hs-breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.6;
}

.hs-breadcrumb a,
.hs-single-header .hs-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.hs-breadcrumb a:hover,
.hs-single-header .hs-breadcrumb a:hover {
    color: #d32f2f;
}

.hs-cat-breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.hs-cat-breadcrumb a {
    color: #888;
}

.hs-cat-breadcrumb a:hover {
    color: #d32f2f;
}


/* =============================================================================
   16. DETAIL BERITA — HEADER
   ============================================================================= */
.hs-single-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.hs-single-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #777;
}

.hs-single-meta-top .hs-news-tag {
    background: #d32f2f;
    color: #fff;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hs-single-meta-top time {
    color: #777;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hs-single-title {
    font-size: 28px;
    line-height: 1.3;
    color: #111;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: -0.3px;
}

.hs-single-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555;
}

.hs-single-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hs-single-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.hs-single-author strong {
    color: #111;
    font-weight: 700;
}

.hs-single-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f6f8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #d32f2f;
}


/* =============================================================================
   17. DETAIL BERITA — FEATURED IMAGE
   ============================================================================= */
.hs-single-thumb {
    margin: 0 0 20px 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    height: 420px;
    width: 100%;
}

.hs-single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =============================================================================
   18. DETAIL BERITA — ISI ARTIKEL
   ============================================================================= */
.hs-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    margin-top: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.hs-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px auto;
    display: block;
}

.hs-article-body figure {
    margin: 15px 0;
}

.hs-article-body figcaption {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

.hs-article-body iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    margin: 15px 0;
}

/* Box "BACA JUGA" */
.hs-baca-juga {
    background: #fff8e1;
    border-left: 4px solid #d32f2f;
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 4px 4px 0;
}

.hs-baca-juga span {
    color: #d32f2f;
    font-weight: 800;
}

.hs-baca-juga a {
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.hs-baca-juga a:hover {
    color: #d32f2f;
    text-decoration: underline;
}


/* =============================================================================
   19. DETAIL BERITA — TAGS
   ============================================================================= */
.hs-single-tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #555;
}

.hs-single-tags a {
    color: #555;
    text-decoration: none;
}

.hs-single-tags a:hover {
    color: #d32f2f;
}


/* =============================================================================
   20. IKLAN (Header, In-Paragraph, Bottom, Loop)
   ============================================================================= */

/* ---- 20.1 Wrapper umum untuk iklan di dalam artikel & loop ---- */
.hs-single-ad,
.hs-single-bottom-ad,
.hs-widget-loop-ad {
    display: block;
    text-align: center;
    margin: 15px auto;
    padding: 10px;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Link di dalam iklan */
.hs-single-ad > a,
.hs-single-bottom-ad > a,
.hs-widget-loop-ad > a {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

/* Gambar di dalam iklan */
.hs-single-ad img,
.hs-single-bottom-ad img,
.hs-widget-loop-ad img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Kalau ada iframe (adsense dsb) */
.hs-single-ad iframe,
.hs-single-bottom-ad iframe,
.hs-widget-loop-ad iframe {
    max-width: 100%;
}

/* ---- 20.2 Iklan di antara berita terkini (full width) ---- */
.hs-infeed-ad-wrapper {
    display: block;
    width: 100%;
    clear: both;
    float: none;
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.hs-infeed-ad-wrapper .hs-widget-loop-ad {
    margin: 0 auto;
    padding: 15px 10px;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    text-align: center;
    overflow: hidden;
}

.hs-infeed-ad-wrapper .hs-widget-loop-ad img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto;
    border-radius: 4px;
}

/* ---- 20.3 HEADER AD — FIX IKLAN HEADER KEDIP ---- */

/* Parent kotak iklan header — DIKUNCI ukurannya */
.hs-header-ad {
    display: block;
    width: 728px;
    height: 90px;
    min-height: 90px;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

/* Wrapper dari widget area header-ad-area */
.hs-header-ad .hs-header-ad-widget {
    display: block;
    width: 100%;
    height: 90px;
    margin: 0;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Link dan gambar di dalamnya — fill kotak */
.hs-header-ad .hs-header-ad-widget > a {
    display: block;
    width: 100%;
    height: 90px;
    line-height: 0;
    text-decoration: none;
    position: relative;
}

.hs-header-ad .hs-header-ad-widget img {
    display: block;
    width: 100%;
    height: 90px;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
}

/* Kalau widget tidak dibungkus <a>, langsung img */
.hs-header-ad .hs-header-ad-widget > img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: contain;
    margin: 0 auto;
}

/* ---- 20.4 Slot iklan sidebar fallback (300x250) ---- */
.hs-ad-box {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    border-radius: 4px;
    text-align: center;
    padding: 10px;
}


/* =============================================================================
   21. DETAIL BERITA — NAVIGASI PREV/NEXT
   ============================================================================= */
.hs-post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-top: 2px solid #111;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-top: 25px;
    gap: 15px;
    flex-wrap: nowrap;
}

.hs-nav-prev,
.hs-nav-next {
    flex: 1 1 50%;
    min-width: 0;
    max-width: 50%;
}

.hs-nav-next {
    text-align: right;
}

.hs-nav-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #d32f2f;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
}

.hs-post-navigation a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: #111;
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    box-sizing: border-box;
}

.hs-post-navigation a:hover {
    background: #f9f9f9;
}

.hs-nav-next a {
    justify-content: flex-end;
    text-align: right;
}

.hs-post-navigation img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

.hs-post-navigation a > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hs-nav-next a > div {
    align-items: flex-end;
}

.hs-post-navigation h4 {
    font-size: 13px;
    margin: 0;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-post-navigation time {
    font-size: 11px;
    color: #888;
}


/* =============================================================================
   22. DETAIL BERITA — BERITA TERKAIT (4 item, 2 kolom)
   ============================================================================= */
.hs-related-posts {
    margin-top: 30px;
}

.hs-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hs-related-item {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 90px;
}

.hs-related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hs-related-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    background: #f0f0f0;
}

.hs-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-related-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hs-related-info time {
    font-size: 11px;
    color: #888;
}

.hs-related-info h4 {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-related-info h4 a {
    color: #111;
    text-decoration: none;
}

.hs-related-info h4 a:hover {
    color: #d32f2f;
}


/* =============================================================================
   23. DETAIL BERITA — REKOMENDASI DIBACA (6 item, 2 kolom)
   ============================================================================= */
.hs-recommended-posts {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.hs-rec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hs-rec-item {
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 76px;
}

.hs-rec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.hs-rec-thumb {
    flex-shrink: 0;
    width: 75px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    background: #f0f0f0;
}

.hs-rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-rec-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hs-rec-info h4 {
    font-size: 12.5px;
    line-height: 1.35;
    margin: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-rec-info h4 a {
    color: #222;
    text-decoration: none;
}

.hs-rec-info h4 a:hover {
    color: #d32f2f;
}

.hs-rec-info time {
    font-size: 11px;
    color: #888;
}


/* =============================================================================
   24. HALAMAN ARSIP & KATEGORI
   ============================================================================= */
.hs-archive-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #d32f2f;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.hs-archive-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0;
    text-transform: uppercase;
}

.hs-cat-description {
    background: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #d32f2f;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
}


/* =============================================================================
   25. HALAMAN STATIS (PAGE)
   ============================================================================= */
.hs-page-content {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.hs-page-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d32f2f;
}

.hs-empty {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.hs-empty h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.hs-empty p {
    font-size: 14px;
    color: #666;
    margin: 0;
}


/* =============================================================================
   26. PAGINASI HALAMAN
   ============================================================================= */
.hs-pagination {
    margin-top: 25px;
    text-align: center;
}

.hs-pagination .page-numbers,
.hs-pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
}

.hs-pagination .page-numbers.current,
.hs-pagination a:hover {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}


/* =============================================================================
   27. SIDEBAR & WIDGET
   ============================================================================= */
.hs-sidebar-right {
    width: 300px;
    flex-shrink: 0;
    align-self: flex-start;
}

.hs-sidebar-inner {
    display: block;
    width: 100%;
}

.hs-widget,
.hs-sidebar-inner .hs-widget {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    max-width: 100%;
    text-align: center;
}

.hs-widget p,
.hs-widget ul,
.hs-widget ol {
    text-align: left;
}

.hs-widget img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

.hs-widget .textwidget {
    text-align: center;
    line-height: 0;
}

.hs-widget .textwidget img {
    margin: 0 auto;
}

.hs-widget a {
    display: inline-block;
}

.hs-sidebar-inner .hs-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hs-sidebar-inner .hs-widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.hs-sidebar-inner .hs-widget ul li:last-child {
    border-bottom: none;
}

.hs-sidebar-inner .hs-widget ul li a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.hs-sidebar-inner .hs-widget ul li a:hover {
    color: #d32f2f;
}

.hs-sidebar-inner .hs-widget-title {
    font-size: 14px;
    margin: -15px -15px 12px -15px;
    padding: 10px 15px;
    background: linear-gradient(90deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    border-radius: 6px 6px 0 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: none;
    display: block;
}

.hs-sidebar-inner .hs-widget:first-child {
    margin-top: 0;
}


/* =============================================================================
   28. FORM PENCARIAN
   ============================================================================= */
.search-form,
.hs-sidebar-inner .search-form {
    display: flex;
    gap: 5px;
    width: 100%;
}

.search-form input[type="search"],
.hs-sidebar-inner .search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    min-width: 0;
}

.search-form input[type="submit"],
.hs-sidebar-inner .search-form input[type="submit"] {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
}

.search-form input[type="submit"]:hover,
.hs-sidebar-inner .search-form input[type="submit"]:hover {
    background: #b71c1c;
}


/* =============================================================================
   29. FOOTER
   ============================================================================= */
.hs-footer {
    background: #1a1a1a;
    color: #aaa;
    font-size: 13px;
    padding-top: 30px;
    margin-top: 25px;
    border-top: 4px solid #d32f2f;
}

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

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

.hs-footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: #d32f2f;
}

.hs-footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

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

.hs-footer-bottom {
    background: #111;
    padding: 15px 0;
    text-align: center;
    color: #777;
    font-size: 12px;
}


/* =============================================================================
   30. FOOTER WIDGET AREA
   ============================================================================= */
.hs-footer-widget {
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

.hs-footer-widget-title {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    padding-bottom: 6px;
}

.hs-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: #d32f2f;
}

.hs-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hs-footer-widget ul li {
    margin-bottom: 6px;
}

.hs-footer-widget ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s, padding-left 0.2s;
}

.hs-footer-widget ul li a:hover {
    color: #fff;
    padding-left: 3px;
}

.hs-footer-widget p {
    margin-bottom: 8px;
}


/* =============================================================================
   31. CUSTOM LOGO IMAGE
   ============================================================================= */
.hs-logo-img {
    max-height: 60px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}


/* =============================================================================
   32. UTILITY & HELPER
   ============================================================================= */
.hs-clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.hs-hide-mobile { display: block; }
.hs-hide-desktop { display: none; }

.hs-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.hs-line-clamp-1,
.hs-line-clamp-2,
.hs-line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-line-clamp-1 { -webkit-line-clamp: 1; }
.hs-line-clamp-2 { -webkit-line-clamp: 2; }
.hs-line-clamp-3 { -webkit-line-clamp: 3; }


/* =============================================================================
   33. RESPONSIVE (Tablet & Mobile)
   ============================================================================= */

/* === TABLET (≤ 992px) === */
@media (max-width: 992px) {
    .hs-header-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .hs-logo {
        justify-self: center;
    }

    .hs-header-ad {
        justify-content: center;
        width: 100%;
        height: auto;
        min-height: 90px;
        margin: 0 auto;
    }

    .hs-main-news-grid,
    .hs-main-wrapper {
        flex-direction: column;
    }

    .hs-sidebar-right {
        width: 100%;
        max-width: 100%;
    }

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

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

    .hs-post-navigation {
        flex-direction: row;
    }
}

/* === MOBILE (≤ 768px) === */
@media (max-width: 768px) {
    .hs-news-card {
        flex-direction: column;
    }

    .hs-news-thumb {
        width: 100%;
        height: 180px;
    }

    .hs-single-title { font-size: 22px; }

    .hs-single-thumb { height: 220px; }

    .hs-hero-big { height: 220px; }

    .hs-hero-big-overlay h1 { font-size: 16px; }

    .hs-post-navigation { flex-direction: column; }

    .hs-nav-prev,
    .hs-nav-next {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    .hs-nav-next a {
        justify-content: flex-start;
        text-align: left;
    }

    .hs-nav-next a > div {
        align-items: flex-start;
    }

    .hs-related-grid,
    .hs-rec-grid {
        grid-template-columns: 1fr;
    }

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

    .hs-hero-small-grid { grid-template-columns: 1fr; }

    .hs-logo-img {
        max-height: 45px;
        max-width: 160px;
    }

    .hs-hide-mobile { display: none; }
    .hs-hide-desktop { display: block; }
}