/* Portal Berita CSS - CaranoWeb (Konsisten dengan Landing Page) */

/* Global Styles */
:root {
    --primary-red: #03045E;
    --primary-dark: #023E8A;
    --primary-blue: #0077B6;
    --info-dark: #0096C7;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-light: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ========== HEADER STYLES ========== */
.top-header {
    background: var(--primary-red);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.top-header a {
    color: white;
    text-decoration: none;
}

.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 40px;
    margin-right: 0.5rem;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    border: 1px solid var(--border-light);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    width: 100%;
    font-size: 0.9rem;
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
}

/* Breaking News Ticker */
.breaking-news {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-dark));
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.breaking-text {
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
    display: inline-block;
}

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

/* News Card Styles */
.news-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card img,
.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img,
.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.25rem;
}

.news-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card .card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card .card-title a:hover {
    color: var(--primary-red);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.badge-featured,
.badge-trending {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary-red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.badge-trending {
    background: #ff6b6b;
    left: 0.75rem;
    right: auto;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-red);
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ========== SIDEBAR STYLES ========== */
.trending-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--primary-red);
    color: white;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-red);
    color: white;
}

/* ========== NO RESULTS STYLES ========== */
.no-results {
    background: var(--bg-light);
    border-radius: 1rem;
    margin: 2rem 0;
}

.no-results-icon {
    opacity: 0.5;
}

/* ========== PAGINATION STYLES ========== */
.pagination .page-link {
    color: var(--text-dark);
    border-color: var(--border-light);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.pagination .page-link:hover {
    color: var(--primary-red);
    background-color: var(--bg-light);
    border-color: var(--border-light);
}

/* ========== BREADCRUMB STYLES ========== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-gray);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-red);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

/* Featured News */
.featured-news {
    position: relative;
    background: linear-gradient(135deg, rgba(220,53,69,0.05) 0%, rgba(220,53,69,0.01) 100%);
    border-left: 4px solid var(--primary-color);
}

.featured-news .card-img-top {
    object-fit: cover;
    object-position: center;
}

.featured-news-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-news-image:hover {
    transform: scale(1.02);
}

/* Carousel Styling */
.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: #dc3545;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}

.carousel-control-prev, 
.carousel-control-next {
    width: 5%;
    color: #dc3545;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(220, 53, 69, 0.8);
    border-radius: 50%;
    padding: 20px;
}

.hero-section .carousel-item {
    min-height: 400px;
}

.featured-news-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.featured-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220,53,69,0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Badges and Labels */
.category-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* News Meta */
.news-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.news-meta i {
    width: 16px;
    text-align: center;
}

/* Sidebar Styles */
.sidebar-news {
    border-left: 3px solid var(--primary-red);
    padding-left: 15px;
    margin-bottom: 15px;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: var(--light-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

/* Tags */
.tag-list a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.tag-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Pagination */
.pagination {
    margin: 2rem 0;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Search Form */
.search-form .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #adb5bd;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .social-icons a {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-card img {
        height: 180px;
    }
    
    .featured-news .card-img-top {
        height: 280px !important;
    }
    
    .trending-badge {
        top: 10px;
        right: 10px;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .social-icons {
        margin-top: 15px;
    }
    
    .breaking-text {
        font-size: 0.9rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .news-card img {
        height: 160px;
    }
    
    .featured-news .card-img-top {
        height: 260px !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .article-content h1 {
        font-size: 1.75rem;
    }
}

/* Loading States */
.news-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.news-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-red);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .sidebar,
    .social-icons,
    .btn,
    .pagination,
    .breaking-news {
        display: none !important;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* Full Image Carousel Styles */
.carousel-item {
    transition: transform 0.6s ease-in-out;
    position: relative;
    z-index: 10; /* Higher than law firm section */
}

.carousel-indicators {
    margin-bottom: 20px;
    z-index: 15; /* Higher than carousel items */
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    top: 50%;
    transform: translateY(-50%);
    border: none;
    margin: auto 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Featured News Overlay Responsive */
@media (max-width: 768px) {
    .carousel-item .position-relative {
        height: 350px !important;
    }
    
    .carousel-item h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .carousel-item .position-absolute {
        padding: 30px 20px 20px !important;
    }
    
    .carousel-item .d-flex {
        font-size: 0.9rem !important;
    }
    
    .carousel-item .badge {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
}

@media (max-width: 576px) {
    .carousel-item .position-relative {
        height: 280px !important;
    }
    
    .carousel-item h1 {
        font-size: 1.4rem !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: auto 10px;
    }
}

/* ========== LAW FIRM SECTION ========== */
.law-firm-section {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    isolation: isolate; /* Creates new stacking context */
    z-index: 1; /* Lower z-index to not interfere with other sections */
}

.law-firm-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    pointer-events: none;
    z-index: 1;
}

/* Background overlay for uploaded images */
.law-firm-overlay {
    z-index: 2 !important;
}

.law-firm-content {
    position: relative;
    z-index: 3; /* Higher than overlay */
}

.law-firm-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.law-firm-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.law-firm-badge {
    background: #dc2626;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.law-firm-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.law-firm-description {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.law-firm-news {
    position: relative;
    z-index: 2;
}

.law-firm-news-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.law-firm-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.law-firm-news-item h5 a:hover {
    color: #dc2626 !important;
}

/* Responsive Law Firm Section */
@media (max-width: 768px) {
    .law-firm-main-title {
        font-size: 1.8rem;
    }
    
    .law-firm-description {
        font-size: 0.9rem;
    }
    
    .law-firm-news-item {
        margin-bottom: 1rem !important;
    }
}

/* Z-Index Management for Sections */
.container {
    position: relative;
    z-index: 10;
}

.sidebar {
    position: relative;
    z-index: 15;
}

.trending-item,
.sidebar-title {
    position: relative;
    z-index: 16;
}

.carousel {
    position: relative;
    z-index: 20;
}

/* Ensure main content areas stay above law firm section */
.news-section,
.sidebar,
.trending-item {
    background: white;
    position: relative;
    z-index: 12;
}

/* ========== CATEGORY PAGE STYLES ========== */
.category-banner {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.category-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.category-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.category-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== ARTICLE DETAIL STYLES ========== */
.article-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.article-meta {
    margin-bottom: 1.5rem;
}

.category-badge {
    background: var(--primary-red);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.article-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-tags {
    padding: 1rem 2rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.article-tags h6 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tag-item {
    display: inline-block;
    background: white;
    color: var(--text-gray);
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-stats {
        justify-content: center;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-header,
    .article-content {
        padding: 1.5rem;
    }
    
    .article-info {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
}

/* ========== FOOTER STYLES ========== */
.main-footer {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: white;
    margin-top: 3rem;
}

.footer-content {
    padding: 3rem 0 1rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-logo h5 {
    color: white;
    font-weight: 700;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.newsletter-form .input-group {
    margin-top: 1rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    min-height: 48px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    background: white;
    color: var(--primary-red);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    min-height: 48px;
}

.newsletter-form .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: #e5e7eb;
    font-size: 0.8rem;
}

/* ========== TAG BANNER STYLES ========== */
.tag-banner {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.tag-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
}

.tag-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.tag-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

/* ========== SEARCH BANNER STYLES ========== */
.search-banner {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.search-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.search-form-container .search-form {
    max-width: 600px;
}

.search-form .input-group {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
}

.search-form .btn-search {
    background: white;
    color: var(--primary-red);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
}

.search-form .btn-search:hover {
    background: var(--light-gray);
    color: var(--primary-red);
}

/* ========== SEARCH RESULTS STYLES ========== */
.no-results {
    background: var(--light-bg);
    border-radius: 1rem;
    margin: 2rem 0;
}

.search-suggestions ul {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.search-tips .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========== ARCHIVE BANNER STYLES ========== */
.archive-banner {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.archive-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.archive-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.archive-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.archive-stats {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.archive-stats i {
    opacity: 0.8;
}

/* ========== ARCHIVE NAVIGATOR STYLES ========== */
.archive-navigator .archive-year {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.archive-year-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.archive-year-link:hover,
.archive-year-link.active {
    background: var(--primary-red);
    color: white;
}

.archive-months {
    padding-left: 1rem;
}

.archive-month-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.archive-month-link:hover,
.archive-month-link.active {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary-red);
}

.archive-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========== RECENT NEWS SIDEBAR STYLES ========== */
.recent-news-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.recent-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.quick-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.quick-nav-link:hover {
    background: var(--primary-red);
    color: white;
}

.quick-nav-link i {
    width: 20px;
    text-align: center;
}

/* ========== MOBILE RESPONSIVE (ANDROID) ========== */

/* Tablet and below */
@media (max-width: 991px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
    
    .nav-menu li a {
        font-size: 0.85rem;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    /* Top Header Mobile */
    .top-header {
        padding: 0.4rem 0;
        font-size: 0.75rem;
    }
    
    .top-header .row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .top-header .col-md-6 {
        width: 100%;
    }
    
    .top-header .d-flex {
        justify-content: center !important;
    }
    
    .top-header .text-end {
        text-align: center !important;
    }
    
    /* Main Header Mobile */
    .main-header {
        padding: 0.75rem 0;
    }
    
    .main-header .row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .main-header .col-md-4,
    .main-header .col-md-8 {
        width: 100%;
        text-align: center;
    }
    
    .site-logo {
        justify-content: center;
    }
    
    .site-logo img {
        height: 35px;
    }
    
    .search-box {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .search-box input {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Navigation Mobile */
    .main-nav {
        padding: 0.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu {
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        min-width: max-content;
    }
    
    .nav-menu li a {
        font-size: 0.8rem;
        white-space: nowrap;
        padding: 0.25rem 0;
    }
    
    .nav-dropdown .dropdown-menu {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        width: calc(100% - 20px);
        max-height: 60vh;
        overflow-y: auto;
    }
    
    /* News Cards Mobile */
    .news-card img,
    .news-image img {
        height: 180px;
    }
    
    .news-card .card-body {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 0.95rem;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-meta {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .news-stats {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Archive Banner Mobile */
    .archive-banner,
    .search-banner,
    .category-banner {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    .archive-header,
    .search-header,
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .archive-icon,
    .search-icon,
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .archive-title,
    .search-title,
    .category-title {
        font-size: 1.5rem;
    }
    
    .archive-description,
    .search-description,
    .category-description {
        font-size: 0.9rem;
    }
    
    .archive-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem !important;
        font-size: 0.85rem;
    }
    
    /* Sidebar Mobile */
    .col-lg-4 {
        margin-top: 2rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .trending-image {
        width: 70px;
        height: 50px;
    }
    
    .list-group-item h6 {
        font-size: 0.85rem;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding-top: 2rem;
    }
    
    .footer-content {
        padding: 1.5rem 0;
    }
    
    .footer-content .row {
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
        display: flex;
        gap: 1rem;
    }
    
    .footer-title {
        margin-top: 1.5rem;
        font-size: 1rem;
    }
    
    .footer-links {
        padding-left: 0;
    }
    
    .footer-links li a {
        font-size: 0.9rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        width: 100%;
        border-radius: 0.5rem !important;
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        min-height: 48px;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* Pagination Mobile */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    /* Article Detail Mobile */
    .article-detail {
        margin-bottom: 1.5rem;
    }
    
    .article-header {
        padding: 1.25rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .article-body {
        padding: 0 1.25rem 1.25rem;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Small Mobile devices (< 576px) */
@media (max-width: 575px) {
    .top-header .d-flex.gap-3 {
        gap: 0.5rem !important;
    }
    
    .site-logo img {
        height: 30px;
    }
    
    .news-card img,
    .news-image img {
        height: 160px;
    }
    
    .archive-title,
    .search-title,
    .category-title {
        font-size: 1.25rem;
    }
    
    .archive-icon,
    .search-icon,
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .col-md-6.mb-4 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .trending-image {
        width: 60px;
        height: 45px;
    }
    
    /* Search Form Mobile */
    .search-form-container .input-group {
        flex-direction: column;
    }
    
    .search-form-container .form-control {
        border-radius: 0.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .search-form-container .btn-search {
        width: 100%;
        border-radius: 0.5rem !important;
    }
    
    /* Newsletter Form Extra Small */
    .newsletter-form .form-control,
    .newsletter-form .btn {
        font-size: 16px !important;
        padding: 12px 16px !important;
        min-height: 50px !important;
    }
}