/* Custom CSS for DENGARINFO.COM Category Pages */
/* This file contains common styles for: nasional, ekonomi, hiburan, kesehatan, kriminal, politik */

/* Prevent horizontal overflow */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    overflow-y: auto;
}

/* Navigation hover effects */
#navigation li:hover > a {
    background: #be0914 !important;
    color: #fff !important;
}

/* Footer hover effects */
.footer-social a:hover {
    background: #fff !important;
    color: #be0914 !important;
    transform: translateY(-3px);
}

.footer-tittle div a:hover {
    background: #be0914 !important;
    color: #fff !important;
}

.footer-menu ul li a:hover {
    color: #be0914 !important;
}

/* Dropdown menu styling */
#lainnya-dropdown {
    display: none !important;
    flex-direction: column !important;
}

#lainnya-dropdown li {
    display: block !important;
    width: 100% !important;
}

#lainnya-dropdown li a {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
}

/* Mobile Menu Hover Effects */
#mobile-menu-sidebar nav ul li a:hover {
    background: #f8f9fa;
    color: #be0914 !important;
    padding-left: 25px !important;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile Category Menu Styles */
.mobile-category-menu {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.mobile-category-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.mobile-category-menu a:active {
    background: rgba(255,255,255,0.2) !important;
}

/* Load More Button hover */
#loadMoreBtn:hover {
    background: #c20410 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(252,1,9,0.3) !important;
}

/* Headline News List Styling */
.headline-item {
    transition: background-color 0.3s ease;
}

.headline-item:hover {
    background-color: #f8f9fa;
}

.headline-item:last-child {
    border-bottom: none !important;
}

.headline-thumbnail img {
    transition: transform 0.3s ease;
}

.headline-item:hover .headline-thumbnail img {
    transform: scale(1.05);
}

.headline-content h4 a {
    transition: color 0.3s ease;
}

.headline-content h4 a:hover {
    color: #be0914 !important;
}

/* Responsive adjustments for headline items */
@media (max-width: 768px) {
    .headline-item {
        padding: 12px 15px !important;
    }
    
    .headline-thumbnail {
        margin-right: 12px !important;
    }
    
    .headline-thumbnail img {
        width: 120px !important;
        height: 80px !important;
    }
    
    .headline-content h4 {
        font-size: 14px !important;
    }
    
    .headline-content span {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    .headline-content div {
        font-size: 10px !important;
        gap: 10px !important;
    }
}

/* Popular item hover */
.popular-item:hover h4 a {
    color: #be0914 !important;
}

/* Headline news card transition */
.headline-news {
    transition: all 0.3s ease;
}

/* Responsive menu */
@media (max-width: 1200px) {
    #navigation li a {
        padding: 15px 12px !important;
        font-size: 13px !important;
    }
    
    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-top: 30px;
    }
}

@media (max-width: 992px) {
    #navigation li a {
        padding: 15px 10px !important;
        font-size: 12px !important;
    }
    
    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    #navigation li a {
        padding: 12px 8px !important;
        font-size: 10px !important;
    }
    
    .footer-menu {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .footer-menu ul {
        justify-content: flex-start !important;
    }

    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-top: 20px;
    }
    
    .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 20px;
    }
    
    .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .header-mid .col-xl-3,
    .header-mid .col-lg-3,
    .header-mid .col-md-3,
    .header-mid .col-xl-6,
    .header-mid .col-lg-6,
    .header-mid .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .logo img {
        max-height: 50px !important;
    }
    
    .search-container {
        margin-top: 15px;
        width: 100% !important;
    }
    
    .search-container div {
        flex-direction: column !important;
        gap: 8px;
    }
    
    .search-container input,
    .search-container button {
        width: 100% !important;
        border-radius: 25px !important;
    }
    
    .header-social-icons {
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 10px;
    }
    
    .header-social-icons a {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 12px !important;
    }
    
    #navigation {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    #navigation li {
        flex: 1 1 45% !important;
        min-width: 120px;
        margin: 3px !important;
    }
    
    #navigation li a {
        padding: 10px 6px !important;
        font-size: 9px !important;
        white-space: normal !important;
    }
    
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }
    
    .col-md-4,
    .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
    }
    
    .footer-bottom-area .row {
        flex-direction: column;
    }
    
    .footer-bottom-area .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
        text-align: center !important;
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .header-social-icons a {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
        font-size: 11px !important;
    }
    
    #navigation li a {
        padding: 8px 4px !important;
        font-size: 8px !important;
    }
    
    .section-header h3 {
        font-size: 16px !important;
        padding: 8px 15px !important;
    }
    
    .footer-tittle h4 {
        font-size: 16px !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-social a {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
    }
}

/* Show/Hide Mobile and Desktop Headers */
@media (max-width: 767px) {
    .mobile-header {
        display: block !important;
    }
    
    body {
        padding-top: 120px !important; /* Space for fixed mobile header */
    }
    
    .header-mid,
    .header-bottom {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .mobile-header {
        display: none !important;
    }
}

