/* 3. BREAKING NEWS TICKER ------------------------------------------------------------- */
.top-ticker-bar {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #2d3748;
}

.ticker-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticker-label {
    background-color: var(--color-error);
    color: var(--color-white);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    margin-right: 15px;
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.ticker-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    animation: ticker-anim 25s linear infinite;
    padding-left: 100%;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item a {
    color: #e2e8f0;
}

.ticker-item a:hover {
    color: var(--color-white);
}

.ticker-separator {
    margin: 0 15px;
    color: #718096;
}

.ticker-date {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-left: 20px;
    white-space: nowrap;
}

@keyframes ticker-anim {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* -------------------------------------------------------------
 * 4. HEADER & LOGO BRANDING
 * ------------------------------------------------------------- */
.site-header {
    padding: 1.5rem 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mode ayobandung.com (standard) */
.site-header-standard .header-container {
    flex-direction: row;
}

.site-branding .custom-logo-link img {
    max-height: 70px;
    width: auto;
}

.site-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    color: var(--color-primary);
}

.site-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-ads {
    max-width: 728px;
    width: 100%;
}

.header-adspace-placeholder {
    background-color: var(--color-light-bg);
    border: 1px dashed #cbd5e0;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-radius: var(--border-radius);
}

/* Mode ayobandung.id (centered) */
.site-header-clean {
    text-align: center;
    border-bottom: none;
}

.site-header-clean .header-container {
    justify-content: center;
    flex-direction: column;
}

/* -------------------------------------------------------------
 * 5. NAVIGATION MENU (STICKY)
 * ------------------------------------------------------------- */
.main-navigation {
    background-color: var(--color-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

/* Navigation List */
.nav-menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-menu-wrapper li {
    position: relative;
}

.nav-menu-wrapper a {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 18px;
    display: block;
    border-bottom: 2px solid transparent;
}

.nav-menu-wrapper li.current-menu-item a,
.nav-menu-wrapper a:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--color-primary);
}

/* Dropdown Menu (Sub-menu) */
.nav-menu-wrapper ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-dark);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--color-primary);
    flex-direction: column;
    padding: 5px 0;
}

.nav-menu-wrapper ul ul a {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: none;
}

.nav-menu-wrapper ul ul li.current-menu-item a,
.nav-menu-wrapper ul ul a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--color-primary);
}

.nav-menu-wrapper li:hover>ul {
    display: flex;
}

/* Search Box in Navigation */
.header-search-form form {
    display: flex;
    align-items: center;
}

.header-search-form input[type="search"] {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #4a5568;
    color: var(--color-white);
    padding: 5px 12px;
    font-size: 0.85rem;
    width: 180px;
    transition: var(--transition);
}

.header-search-form input[type="search"]:focus {
    width: 240px;
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-primary);
}

.header-search-form input[type="submit"] {
    display: none;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* -------------------------------------------------------------
 * 6. CORE GRID LAYOUT & SIDEBARS
 * ------------------------------------------------------------- */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .grid-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Sidebar Column Styling */
.main-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.widget {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.widget-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
}

.widget-title span {
    position: relative;
}

.widget-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* Popular Posts Widget (Numbered 1-5) */
.popular-post-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item:hover {
    transform: translateX(5px);
}

.popular-post-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #cbd5e0;
    line-height: 1;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
    transition: var(--transition);
}

.popular-post-item:hover .popular-post-number {
    color: var(--color-primary);
}

.popular-post-info {
    flex-grow: 1;
}

.popular-post-category {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 3px;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Editor's Choice Sidebar Widget */
.choice-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.choice-post-item:last-child {
    border-bottom: none;
}

.choice-post-thumb img {
    width: 90px;
    height: 65px;
    object-fit: cover;
}

.choice-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.choice-post-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Sidebar Ad Placeholder */
.sidebar-ad-placeholder {
    background-color: var(--color-light-bg);
    border: 1px dashed #cbd5e0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.sidebar-ad-placeholder .ad-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.sidebar-ad-placeholder .ad-box {
    background-color: #cbd5e0;
    color: var(--color-text-muted);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 4px;
}

/* -------------------------------------------------------------
 * 7. LAYOUT AYOBANDUNG.COM (DENSE PORTAL NEWS)
 * ------------------------------------------------------------- */
.layout-com-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hero Section: Slider & Side List */
.com-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 992px) {
    .com-hero-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Main Slider area */
.com-hero-slider {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-light);
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    color: var(--color-white);
}

.slider-cat {
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.slider-title {
    color: white;
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.slider-title a {
    color: white;
}

.slider-title a:hover {
    color: #a0aec0;
}

.slider-meta {
    font-size: 0.8rem;
    color: #cbd5e0;
}

/* Hero Side List */
.com-hero-side-list {
    background-color: var(--color-light-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-list-header {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.side-list-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.side-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-list-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 3px;
    display: block;
}

.side-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Category Grid Sections */
.com-category-section {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1.25rem;
}

.com-category-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 6px;
}

.section-title span {
    position: relative;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-primary);
}

.com-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .com-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.com-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.com-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.com-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.com-card-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.com-card-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
}

.com-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.com-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.com-card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* -------------------------------------------------------------
 * 8. LAYOUT AYOBANDUNG.ID (CLEAN NARRATIVE HUB)
 * ------------------------------------------------------------- */
.layout-id-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Storytelling Hero */
.id-hero-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.id-hero-cat {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.id-hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 15px;
}

.id-hero-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.id-hero-thumb img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    box-shadow: var(--shadow-hover);
}

/* Ayo Netizen / Citizen Journalism Column */
.id-community-section {
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

.id-community-section .section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.id-community-section .section-title span {
    border-bottom: none;
}

.id-community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .id-community-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.id-opinion-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-light);
    position: relative;
    transition: var(--transition);
}

.id-opinion-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    font-size: 4rem;
    color: rgba(0, 102, 204, 0.1);
    line-height: 1;
}

.id-opinion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.id-opinion-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 15px;
}

.id-opinion-author {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

.id-opinion-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.id-opinion-name {
    font-size: 0.85rem;
    font-weight: 600;
}

/* -------------------------------------------------------------
 * 9. SINGLE POST LAYOUT
 * ------------------------------------------------------------- */
.single-post-layout-container {
    margin-top: 2rem;
}

/* Breadcrumbs */
.breadcrumbs-bar {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs-bar a {
    color: var(--color-text-muted);
}

.breadcrumbs-bar a:hover {
    color: var(--color-primary);
}

.breadcrumbs-sep {
    margin: 0 8px;
}

/* Single Post Entry Header */
.single-entry-header {
    margin-bottom: 2rem;
}

.single-entry-cat {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.single-entry-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Author Section Meta */
.single-entry-meta-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.author-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-meta {
    font-weight: 600;
    color: var(--color-dark);
}

/* Content block styling */
.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}

.single-post-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background-color: var(--color-light-bg);
    border-left: 4px solid var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
}

/* Tags block */
.post-tags-wrapper {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags-wrapper a {
    background-color: var(--color-light-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.post-tags-wrapper a:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Post Share Placeholder */
.post-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.share-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.share-btn {
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    border-radius: 4px;
}

.share-btn.fb {
    background-color: #3b5998;
}

.share-btn.tw {
    background-color: #1da1f2;
}

.share-btn.wa {
    background-color: #25d366;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-post-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 10px;
    background-color: var(--color-white);
}

.related-post-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-post-info {
    margin-top: 10px;
}

.related-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.related-post-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------
 * 10. COMMENTS BLOCK
 * ------------------------------------------------------------- */
.comments-area {
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
    margin-top: 2.5rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-body {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-meta {
    text-align: center;
}

.comment-meta img {
    border-radius: 50%;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    display: block;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 3px;
}

.comment-content {
    flex-grow: 1;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply a {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 8px;
}

/* Comment Form Layout */
.comment-form-custom {
    margin-top: 3rem;
    background-color: var(--color-light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.comment-form-custom textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    resize: vertical;
    margin-bottom: 15px;
}

.comment-form-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .comment-form-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comment-form-custom input[type="text"],
.comment-form-custom input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
}

.comment-form-custom label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-form-custom .required {
    color: var(--color-error);
}

.button-submit {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.button-submit:hover {
    background-color: var(--color-primary-hover);
}

/* -------------------------------------------------------------
 * 11. GENERAL PAGES, ARCHIVES, 404
 * ------------------------------------------------------------- */
.archive-header-box,
.search-header-box {
    background-color: var(--color-light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.archive-title,
.search-title {
    font-size: 1.8rem;
    margin: 0;
}

.archive-title span,
.search-title span {
    color: var(--color-primary);
}

.archive-posts-list,
.search-posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Loop Article Row Card */
.loop-article-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 576px) {
    .loop-article-card {
        flex-direction: row;
    }
}

.loop-article-thumb {
    flex-shrink: 0;
}

.loop-article-thumb img {
    width: 100%;
    max-width: 240px;
    height: 150px;
    object-fit: cover;
}

.loop-article-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.loop-article-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.loop-article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 4px 0 8px;
}

.loop-article-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.loop-article-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Pagination Box */
.pagination {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination .page-numbers {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Page 404 Kustom */
.page-404-main-box {
    padding: 5rem 0;
}

.error-code {
    font-size: 7rem;
    line-height: 1;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-search-form-wrapper {
    max-width: 450px;
    margin: 2rem auto;
}

.error-search-form-wrapper form {
    display: flex;
    gap: 10px;
}

.error-search-form-wrapper input[type="search"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--color-border);
}

.error-search-form-wrapper input[type="submit"] {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.btn-home {
    display: inline-block;
    background-color: var(--color-dark);
    color: white;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: var(--border-radius);
}

.btn-home:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Footer CSS has been migrated to Tailwind CSS utility classes in footer.php */

/* -------------------------------------------------------------
 * 13. RESPONSIVE NAVIGATION MOBILE OVERLAYS
 * ------------------------------------------------------------- */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 50px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 50px);
        background-color: var(--color-dark);
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transition: var(--transition);
        overflow-y: auto;
        padding: 20px 0;
    }

    .nav-menu-wrapper.active {
        left: 0;
    }

    .nav-menu-wrapper ul {
        flex-direction: column;
    }

    .nav-menu-wrapper a {
        padding: 15px 25px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .nav-menu-wrapper a:hover,
    .nav-menu-wrapper li.current-menu-item a {
        border-left-color: var(--color-primary);
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-menu-wrapper ul ul {
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        border-top: none;
        padding-left: 20px;
        display: none;
    }

    .nav-menu-wrapper li:hover>ul {
        display: none;
    }

    .nav-menu-wrapper li.submenu-open>ul {
        display: flex;
    }

    .header-search-form {
        margin-right: 15px;
    }

    .site-header-standard .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* -------------------------------------------------------------
 * 14. ADVANCED: HEADER ACTIONS (SEARCH + DARK MODE)
 * ------------------------------------------------------------- */
.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dark-mode-btn {
    background: transparent;
    border: 1px solid #4a5568;
    color: var(--color-white);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* -------------------------------------------------------------
 * 15. ADVANCED: DARK MODE OVERRIDES
 * ------------------------------------------------------------- */
body.dark-mode {
    --color-dark: #0a0a0a;
    --color-text: #e2e8f0;
    --color-text-muted: #a0aec0;
    --color-light-bg: #1a202c;
    --color-border: #2d3748;
    --color-white: #111827;
    background-color: var(--color-white);
}

body.dark-mode .site-header {
    background-color: #1a202c;
    border-bottom-color: #2d3748;
}

body.dark-mode .site-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f7fafc;
}

body.dark-mode .widget {
    background-color: #1a202c;
    border-color: #2d3748;
}

body.dark-mode .com-card,
body.dark-mode .id-opinion-card {
    background-color: #1a202c;
    border-color: #2d3748;
}

body.dark-mode .archive-layout-container,
body.dark-mode .search-layout-container,
body.dark-mode .single-layout-container {
    background-color: #111827;
}

body.dark-mode a {
    color: #e2e8f0;
}

body.dark-mode a:hover {
    color: var(--color-primary);
}

body.dark-mode .slider-title {
    color: #ffffff;
}

/* -------------------------------------------------------------
 * 16. ADVANCED: AJAX LOAD MORE BUTTON
 * ------------------------------------------------------------- */
.btn-load-more {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-load-more.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------------------
 * 17. ADVANCED: VIDEO CPT STYLES
 * ------------------------------------------------------------- */
.video-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background: #000;
    aspect-ratio: 16/9;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover img {
    opacity: 0.6;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.video-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

/* -------------------------------------------------------------
 * 18. ADVANCED: RELATED POSTS
 * ------------------------------------------------------------- */
.related-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.related-posts-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 5px;
}

.related-posts-title span {
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 7px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.related-card {
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

/* -------------------------------------------------------------
 * 19. ADVANCED: READING PROGRESS BAR & ADS
 * ------------------------------------------------------------- */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-primary);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

body.dark-mode .in-article-ad {
    background-color: rgba(255, 255, 255, 0.05) !important;
}






/* DEVIL-GEMINI-ULTRA: NUKE ALL SHADOWS */
.main-headline,
.top-netizen-widget,
.topik-hangat-widget,
.terpopuler-widget,
.netizen-widget,
.netizen-widget button,
.widget {
    box-shadow: none !important;
}
/* WIDGET HERO GRID MOBILE SLIDER */
.mobile-hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
.mobile-hero-slider::-webkit-scrollbar {
    display: none !important;
}
.mobile-hero-slider > .secondary-headline {
    flex: 0 0 75vw !important;
    max-width: 280px !important;
    scroll-snap-align: center;
}
