/*
Theme Name: Detik
Theme URI: https://detik.samael.my.id
Description: WordPress theme yang meniru design dan layout dari website news.detik.com. Theme ini dibuat khusus untuk portal berita dengan layout yang responsif dan modern.
Author: Your Name
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: news, blog, responsive, two-columns, custom-menu, featured-images, threaded-comments
Text Domain: detik
*/

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Hide horizontal scrollbar with minimal CSS */
::-webkit-scrollbar:horizontal { width: 0px; background: transparent; }
html { scrollbar-width: none; }

/* Prevent horizontal overflow for all elements */
* {
    box-sizing: border-box;
}

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

/* More specific approach to prevent horizontal scrollbar */
body {
    position: relative;
}

/* Target specific elements that might cause overflow */
.container, .featured-grid, .content-wrapper, .main-content, .sidebar {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all text and inline elements don't overflow */
p, div, span, article, section {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevent horizontal overflow for all elements */
* {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

/* Simple text wrapping */
p, div, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Basic responsive elements */
table {
    max-width: 100%;
    table-layout: fixed;
}

/* Remove duplicate - use original definitions above */

/* Ensure main content areas don't overflow but allow sticky to work */
.content-area, .site-wrapper {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px !important; /* Keep original max-width for containers */
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 15px;
}

/* Ensure sticky headers work properly */
.top-header-bar .container,
.main-navigation .container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Header Bar - Blue Background */
.top-header-bar {
    background-color: #1e40af;
    color: white;
    padding: 8px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1002;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    left: 0;
    right: 0;
}

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

.top-header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.menu-toggle i {
    font-size: 16px;
}

.menu-text {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.top-header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.header-search-form {
    position: relative;
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.header-search-field {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.header-search-field::placeholder {
    color: #999;
}

.header-search-submit {
    background: #dc2626;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.header-search-submit:hover {
    background: #b91c1c;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-btn {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.masuk-btn {
    border: 1px solid white;
}

.masuk-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Logo Header */
.logo-header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.logo-container {
    text-align: center;
}

.main-logo {
    text-decoration: none;
    font-size: 48px;
    font-weight: 700;
    display: inline-block;
}

.detik-text {
    color: #dc2626;
    font-weight: 700;
}

.news-text {
    color: #1e40af;
    font-weight: 400;
}

/* Main Navigation - SIMPLE STICKY */
.main-navigation {
    background: #dc2626;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1001;
    position: -webkit-sticky;
    position: sticky;
    top: 48px;
    width: 100%;
    left: 0;
    right: 0;
}

/* CSS Sticky - No JavaScript needed! */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Body padding when navigation is sticky - DISABLED TO FIX SCROLLBAR */
/* body.nav-sticky {
    padding-top: 96px;
} */

/* Prevent overlap with other sticky elements */
.main-navigation.sticky {
    margin-top: 0;
}

/* Enhanced sticky navigation styles */
.main-navigation.sticky {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-navigation.sticky .main-menu li a {
    padding: 10px 18px; /* Slightly reduce padding for compact look */
    transition: all 0.2s ease;
}

.main-navigation.sticky .main-menu li a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.main-navigation.sticky .main-menu li.home-icon a,
.main-navigation.sticky .main-menu li:first-child a {
    padding: 10px 15px;
    background: rgba(185, 28, 28, 0.9);
}

.main-navigation.sticky .main-menu li.home-icon a:hover,
.main-navigation.sticky .main-menu li:first-child a:hover {
    background: rgba(185, 28, 28, 1);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
}

.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu li.home-icon a,
.main-menu li:first-child a {
    padding: 12px 15px;
    background: #b91c1c;
}

.main-menu li a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s;
}

.main-menu li a:hover {
    background-color: rgba(0,0,0,0.1);
}

/* WordPress menu specific styles */
.main-menu li.menu-item a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s;
}

.main-menu li.menu-item:first-child a {
    background: #b91c1c;
}

.main-menu li.menu-item:first-child a:before {
    content: "\f015";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
}

.main-menu li.menu-item a:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: #f3f4f6;
    padding: 8px 0;
}

.breadcrumb {
    font-size: 12px;
    color: #6b7280;
}

.breadcrumb a {
    color: #374151;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #dc2626;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 10px;
}

/* Site Wrapper */
.site-wrapper {
    background: white;
    min-height: calc(100vh - 200px);
}

/* Main Content Area */
.main-content {
    background: #f8f9fa;
    padding: 0;
    min-height: 100vh;
}

/* Featured Articles Section */
.featured-section {
    margin: 20px 0;
}

.featured-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 400px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main large article (position 1) */
.featured-main {
    grid-row: 1 / 3;
    grid-column: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Small articles (positions 2-5) */
.featured-small {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-small:nth-of-type(2) {
    grid-row: 1;
    grid-column: 2;
}

.featured-small:nth-of-type(3) {
    grid-row: 1;
    grid-column: 3;
}

.featured-small:nth-of-type(4) {
    grid-row: 2;
    grid-column: 2;
}

.featured-small:nth-of-type(5) {
    grid-row: 2;
    grid-column: 3;
}

/* Large article (position 6) */
.featured-large {
    grid-row: 1 / 3;
    grid-column: 4;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Common image styles */
.featured-main img,
.featured-small img,
.featured-large img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    display: block;
}

/* Content overlay styles */
.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 15px;
    padding-bottom: 22px;
    color: white;
}

.featured-main .featured-content {
    padding: 20px;
    padding-bottom: 28px;
}

.featured-small .featured-content {
    padding: 10px;
    padding-bottom: 16px;
}

/* Typography */
.featured-main h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.featured-large h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.featured-small h4 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.featured-content a {
    color: white;
    text-decoration: none;
}

.featured-content a:hover {
    color: #dc2626;
}

.featured-time {
    font-size: 12px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
        height: auto;
    }
    
    .featured-main,
    .featured-small,
    .featured-large {
        grid-column: 1;
        grid-row: auto;
    }
    
    .featured-main {
        grid-row: span 2;
        height: 400px;
    }
}

/* .featured-main removed – all featured use .featured-item for uniform sizing */

/* FLEXBOX SIMPLE - ARTIKEL BERDERET */

/* Removed special nth-child(6) overrides */

/* Removed individual .featured-main sub selectors */

/* Card style */
.featured-item {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow .15s ease, transform .15s ease;
}

.featured-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}



.featured-grid-right {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.featured-sixth .featured-image-small {
    height: 65%;
}

.featured-sixth .featured-content-small {
    height: 35%;
    padding: 10px;
}



/* Image wrapper */
/* Image section gets fixed height to keep all cards same */
.featured-item .featured-image-small {
    height: 140px; /* fixed image height */
    width: 100%;
    overflow: hidden;
    background:#f3f4f6;
    display:block;
}

.featured-item .featured-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content area */
/* Content fills remaining fixed space */
.featured-item .featured-content-small {
    padding: 10px 12px 12px;
    display:flex;
    flex-direction:column;
    gap:6px;
    flex:1;
    overflow:hidden;
}

/* Title */
/* Title truncated to keep heights uniform */
.featured-item .featured-title-small {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    margin:0 0 4px 0;
    color:#1f2937;
    display:-webkit-box;
    -webkit-line-clamp:2;
    line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.featured-item .featured-title-small a {
    color: #111827;
    text-decoration: none;
}

.featured-item .featured-title-small a:hover {
    color: #dc2626;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

.featured-time {
    font-weight: 400;
}

/* Content Wrapper */
.content-sidebar-wrapper {
    display: grid;
    grid-template-columns: 2fr 300px;
    gap: 30px;
    padding: 20px;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content-area {
    background: white;
    width: 100%;
}

/* News Feed Section */
.news-feed {
    background: white;
}

.news-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #dc2626;
    margin-bottom: 20px;
}

.news-feed-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.news-feed-more {
    color: #dc2626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.news-feed-more:hover {
    text-decoration: underline;
}

.news-feed-content {
    display: grid;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.news-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

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

.news-content {
    flex: 1;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-title a {
    color: #111827;
    text-decoration: none;
}

.news-title a:hover {
    color: #dc2626;
}

.news-meta {
    margin-bottom: 8px;
}

.news-time {
    font-size: 12px;
    color: #6b7280;
}

.news-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.load-more-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background: #b91c1c;
}

.load-more-btn i {
    margin-right: 8px;
}

/* Recommended Section */
.recommended-section {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding-top: 30px;
}

.recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recommended-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.recommended-more {
    color: #dc2626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.recommended-more:hover {
    text-decoration: underline;
}

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

.recommended-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recommended-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-category {
    position: absolute;
    top: 8px;
    left: 8px;
}

.category-label {
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.recommended-content {
    padding: 12px;
}

.recommended-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}

.recommended-title a {
    color: #111827;
    text-decoration: none;
}

.recommended-title a:hover {
    color: #dc2626;
}

.recommended-meta {
    font-size: 12px;
    color: #6b7280;
}

/* Single Post Styles */
.single-post-main {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.breadcrumb li {
    color: #6b7280;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #9ca3af;
}

.breadcrumb a {
    color: #dc2626;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Single Post Main Content */
.main-content-area {
    background: white;
    width: 100%;
}

/* Article Styles */
.single-article {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Article Header */
.article-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.article-category .category-badge {
    background: #dc2626;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
    margin: 20px 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.meta-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-right {
    display: flex;
    gap: 15px;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.author-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s;
}

.author-name a:hover {
    color: #dc2626;
}

.article-date {
    color: #6b7280;
    font-size: 13px;
}

.article-views,
.article-comments {
    color: #6b7280;
    font-size: 13px;
}

.article-date i,
.article-views i,
.article-comments i {
    margin-right: 5px;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

    margin-bottom: 30px;
    margin-top: 30px;
    font-weight: 600;
    color: #374151;
    margin-right: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn i {
    margin-right: 5px;
}

.share-btn:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.share-fb:hover { background: #1877f2; color: white; border-color: #1877f2; }
.share-twitter:hover { background: #1da1f2; color: white; border-color: #1da1f2; }
.share-wa:hover { background: #25d366; color: white; border-color: #25d366; }

.save-btn {
    background: none;
    border: 1px solid #d1d5db;
}

.save-btn:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Article Image */
.article-image {
    margin-bottom: 30px;
}

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

.image-caption {
    padding: 10px 15px;
    background: #f8f9fa;
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

/* Article Content */
.article-content {
    padding: 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
}

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

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1f2937;
    margin: 30px 0 15px;
    font-weight: 600;
}

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

/* Article Tags */
.article-tags {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
}

.tags-label {
    font-weight: 600;
    color: #374151;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    margin-right: 8px;
}

.article-tags a:hover {
    background: #dc2626;
    color: white;
}

/* Article Footer */
.article-footer {
    border-top: 2px solid #f3f4f6;
}

.share-bottom {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-facebook { color: #1877f2; }
.share-twitter { color: #1da1f2; }  
.share-whatsapp { color: #25d366; }

/* Related Articles */
.related-articles {
    padding: 30px;
}

.related-articles h3 {
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc2626;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-date {
    color: #6b7280;
    font-size: 12px;
}

/* Comments Section */
.comments-section {
    padding: 30px;
    border-top: 1px solid #e5e7eb;
}

.comments-section h3 {
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .article-header {
        padding: 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
    
    .article-content {
        padding: 20px;
        font-size: 15px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .content-sidebar-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
}

/* Sidebar Styles */
.main-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.widget-header {
    background: #dc2626;
    color: white;
    padding: 15px 20px;
}

.widget-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-content {
    padding: 0;
}

/* Popular Posts Widget */
.popular-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.3s ease;
}

.popular-item:hover {
    background: #f8f9fa;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-number {
    background: #dc2626;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
}

.popular-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.popular-title a {
    color: #1f2937;
    text-decoration: none;
}

.popular-title a:hover {
    color: #dc2626;
}

.popular-meta {
    color: #6b7280;
    font-size: 12px;
}

/* Latest News Widget */
.latest-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.3s ease;
}

.latest-item:hover {
    background: #f8f9fa;
}

.latest-item:last-child {
    border-bottom: none;
}

.latest-image {
    width: 60px;
    height: 45px;
    margin-right: 15px;
    flex-shrink: 0;
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.latest-content {
    flex: 1;
}

.latest-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.latest-title a {
    color: #1f2937;
    text-decoration: none;
}

.latest-title a:hover {
    color: #dc2626;
}

.latest-meta {
    color: #6b7280;
    font-size: 12px;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list li {
    border-bottom: 1px solid #f1f1f1;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.3s ease;
}

.categories-list a:hover {
    background: #f8f9fa;
    color: #dc2626;
}

.cat-count {
    color: #6b7280;
    font-size: 12px;
}

/* Category Page Styles */
.category-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.category-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.category-header-content {
    position: relative;
    z-index: 1;
}

.category-title-wrapper {
    margin-bottom: 15px;
}

.category-header .category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.category-icon i {
    font-size: 24px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.category-separator {
    color: rgba(255, 255, 255, 0.5);
}

.category-desc-short {
    color: rgba(255, 255, 255, 0.8);
}

.category-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin: 15px 0 0 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.category-description p {
    margin: 0;
}

.category-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.article-count {
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-count i {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0;
}

/* Category Posts Grid */
.category-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.category-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    height: 160px;
}

.category-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.category-article-thumb {
    width: 240px;
    height: 160px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.category-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-article:hover .category-article-thumb img {
    transform: scale(1.05);
}

.category-article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-article-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    margin: 0 0 10px 0;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article-title:hover {
    color: #dc2626;
}

.category-article-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f1f1;
}

.category-article-date {
    color: #9ca3af;
    font-size: 12px;
}

.category-article-category {
    background: #1e40af;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
}

@media (max-width: 768px) {
    .category-article {
        flex-direction: column;
        height: auto;
    }
    
    .category-article-thumb {
        width: 100%;
        height: 180px;
    }
    
    .category-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.category-post-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    padding: 25px;
    align-items: start;
}

.post-thumbnail {
    width: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}

.post-content {
    flex: 1;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.post-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #dc2626;
}

.post-excerpt {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0 15px 0;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #9ca3af;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-author {
    font-weight: 500;
    color: #374151;
}

.post-author a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s;
}

.post-author a:hover {
    color: #dc2626;
}

.post-date i,
.post-time i {
    color: #dc2626;
}

/* No Posts */
.no-posts {
    background: white;
    padding: 60px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.no-posts-icon {
    margin-bottom: 20px;
}

.no-posts-content i {
    font-size: 64px;
    color: #d1d5db;
}

.no-posts-content h3 {
    font-size: 28px;
    color: #374151;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.no-posts-content p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-posts-content p:last-of-type {
    margin-bottom: 30px;
}

.back-home {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.back-home:hover {
    background: #b91c1c;
    text-decoration: none;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.pagination .current {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .category-header {
        padding: 25px 20px;
    }
    
    .category-title {
        font-size: 26px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon i {
        font-size: 20px;
    }
    
    .category-meta {
        font-size: 13px;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .post-thumbnail {
        order: -1;
    }
    
    .post-thumbnail img {
        height: 180px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Archives Widget */
.archives-widget .widget-content {
    padding: 0;
}

.archives-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archives-list li {
    border-bottom: 1px solid #f1f1f1;
}

.archives-list li:last-child {
    border-bottom: none;
}

.archives-list a {
    display: block;
    padding: 12px 20px;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.3s ease;
}

.archives-list a:hover {
    background: #f8f9fa;
    color: #dc2626;
}

/* Archive Page Specific */
.archive-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Archive Articles - same styling as category */
.archive-page .category-posts {
    margin-bottom: 30px;
}

.widget-header {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.widget-content {
    padding: 15px;
}

/* Bangun Indonesia Widget */
.bangun-indonesia-header {
    background: linear-gradient(135deg, #dc2626 0%, #1e40af 100%);
    color: white;
}

.bangun-indonesia-header .widget-title {
    color: white;
}

.bangun-text {
    font-weight: 700;
}

.indonesia-text {
    font-weight: 400;
}

.bangun-indonesia-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

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

.bangun-featured-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

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

.bangun-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bangun-number {
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.bangun-category {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
}

.bangun-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.bangun-title a {
    color: #111827;
    text-decoration: none;
}

.bangun-title a:hover {
    color: #dc2626;
}

.bangun-stats {
    font-size: 11px;
    color: #6b7280;
}

.bangun-more {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.bangun-more-btn {
    background: linear-gradient(135deg, #dc2626 0%, #1e40af 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s;
}

.bangun-more-btn:hover {
    transform: translateY(-1px);
    color: white;
}

/* Tags Widget */
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s;
}

.tag-item:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Popular News Widget */
.popular-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

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

.popular-rank {
    flex-shrink: 0;
}

.rank-number {
    background: #dc2626;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.popular-title a {
    color: #111827;
    text-decoration: none;
}

.popular-title a:hover {
    color: #dc2626;
}

.popular-more {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.popular-more-link {
    color: #dc2626;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.popular-more-link:hover {
    text-decoration: underline;
}

/* Comments Widget */
.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

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

.comment-count {
    flex-shrink: 0;
    text-align: center;
    min-width: 40px;
}

.count-number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
}

.count-label {
    display: block;
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
}

.comment-content {
    flex: 1;
}

.comment-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

.comment-title a {
    color: #111827;
    text-decoration: none;
}

.comment-title a:hover {
    color: #dc2626;
}

.comment-meta {
    font-size: 11px;
    color: #6b7280;
}

/* Sidebar Advertisement */
.sidebar-ad img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-sidebar-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .featured-articles-section {
        padding: 10px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        height: auto;
        gap: 10px;
    }
    
    .featured-main {
        grid-column: 1;
        height: 300px;
    }
    
    .featured-item {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 200px;
    }
    
    .featured-item .featured-image-small {
        height: 60%;
    }
    
    .featured-item .featured-content-small {
        height: 40%;
    }
    
    .featured-large-right {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 300px;
    }
    
    .featured-item {
        height: 200px;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
    }
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .top-header-bar .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .top-header-center {
        order: 3;
        flex: 1 100%;
        margin: 10px 0 0 0;
    }
    
    .main-logo {
        font-size: 36px;
    }
    
    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-menu li a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
}

@media (max-width: 480px) {
    .main-logo {
        font-size: 28px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .auth-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Sticky Navigation Responsive */
@media (max-width: 768px) {
    .main-navigation.sticky {
        top: 40px; /* Smaller top offset for tablet */
    }
    
    .main-navigation.sticky .main-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-navigation.sticky .main-menu li a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* body.nav-sticky {
        padding-top: 80px;
    } */
}

@media (max-width: 480px) {
    .main-navigation.sticky {
        top: 35px; /* Even smaller for mobile */
    }
    
    .main-navigation.sticky .main-menu li a {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    /* body.nav-sticky {
        padding-top: 70px;
    } */
}
/* Search Page Specific Styles */
.search-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.search-page .category-badge {
    background: #1e40af;
    color: white;
}

.search-page .category-badge i {
    margin-right: 8px;
}

/* Search form removed - using header search only */

/* Search Results Layout */
.search-page .category-article-excerpt {
    color: #6b7280;
    line-height: 1.6;
}

/* Empty search results */
.search-page .no-posts {
    text-align: center;
    padding: 60px 30px;
}

.search-page .back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1e40af;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.search-page .back-home:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .search-page .category-title {
        font-size: 24px;
    }
}
