/* MAIN LAYOUT WRAPPER - Outside elements have grey background */
html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    overflow-y: visible !important;
}

body {
    font-family: Inter, sans-serif;
    background-color: var(--body-bg, #e8eaed);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding-top: 0;
}

/* Prevent horizontal scroll on all major containers */
/* NOTE: overflow-x: hidden can break sticky positioning */
.page-layout,
.main-wrapper,
.footer-modern,
.modern-navbar,
.navbar-collapse {
    max-width: 100% !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* ============================================
   MODERN NAVBAR - Clean 2-Row Layout
   ============================================ */

/* Main Navbar Container - Full width of viewport */
.modern-navbar {
    /* background-color: var(--navbar-bg, #fff) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important; */
    padding: 0 !important;
    /* border-bottom: 1px solid var(--border-color, #f0f0f0) !important; */
    min-height: auto !important;
    position: relative !important;
    z-index: 9999 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    will-change: transform;
    transform: translateZ(0);
}

/* Navbar fixed class - added via JS when scrolling */
.navbar-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    animation: slideDown 0.3s ease forwards;
    z-index: 9999 !important;
}

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

/* Navbar fixed container - matches main-wrapper width */
.navbar-fixed > .container {
    max-width: 100% !important;
    margin: 0 auto !important;
}

@media (min-width: 1400px) {
    .navbar-fixed > .container {
        max-width: 1320px !important;
    }
}

@media (max-width: 1399px) {
    .navbar-fixed > .container {
        max-width: 1140px !important;
    }
}

@media (max-width: 1199px) {
    .navbar-fixed > .container {
        max-width: 960px !important;
    }
}

/* Container for navbar content - matches main-wrapper width */
.modern-navbar > .container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--navbar-bg, #fff) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid var(--border-color, #f0f0f0) !important;
}

.modern-navbar.navbar-fixed > .container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 0 auto;
    width: calc(100% - 390px);
}

.ad-fixed{
    position:fixed !important;
    max-width: 100px;
}

/* Desktop: limit navbar content width to match main-wrapper */
@media (min-width: 992px) {
    .modern-navbar > .container {
        max-width: 100%;
    }
}

@media (max-width: 1399px) {
    .modern-navbar > .container {
        max-width: 100%;
    }
}

@media (max-width: 1199px) {
    .modern-navbar > .container {
        max-width: 100%;
    }
}

/* ROW 1: Top Section with Logo, Search, Actions */
.modern-navbar .navbar-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
}

/* ROW 2: Bottom Section with Menu */
.modern-navbar .navbar-row-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 0 15px;
    width: 100%;
    border-top: 1px solid #f0f0f0;
}

/* Menu on the left */
.modern-navbar .navbar-row-bottom .navbar-collapse {
    flex: 0 0 auto;
    margin-right: auto;
}

/* Search bar on the right */
.modern-navbar .navbar-row-bottom .search-form {
    margin-left: auto;
    margin-right: 0;
}

/* Navbar Brand */
.modern-navbar .navbar-brand {
    padding: 0;
    margin-right: 0;
    flex-shrink: 0;
}

.modern-navbar .navbar-brand img {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease;
}

.modern-navbar .navbar-brand:hover img {
    transform: scale(1.02);
}

/* Search Form (Desktop) */
.modern-navbar .search-form {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 auto;
}

.modern-navbar .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-navbar .search-form input {
    width: 100%;
    height: 40px;
    padding: 0 45px 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    color: #2d3748;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.modern-navbar .search-form input::placeholder {
    color: #a0aec0;
}

.modern-navbar .search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modern-navbar .search-form .btn-search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    padding: 0;
}

.modern-navbar .search-form .btn-search:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile Search Form */
.modern-navbar .mobile-search-form .input-group {
    width: 100%;
}

.modern-navbar .mobile-search-form input {
    height: 42px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 50px 0 0 50px;
    font-size: 14px;
    background: #f8f9fa;
    color: #2d3748;
}

.modern-navbar .mobile-search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: none;
}

.modern-navbar .mobile-search-form input::placeholder {
    color: #a0aec0;
}

.modern-navbar .btn-search-mobile {
    width: 46px;
    height: 42px;
    border-radius: 0 50px 50px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.modern-navbar .btn-search-mobile:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, color-mix(in srgb, var(--secondary-color) 20%, black) 100%);
}

/* Navbar Actions (Theme Toggle + Burger) */
.modern-navbar .navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================
   DARK/LIGHT THEME TOGGLE
   ============================================ */

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--toggle-bg, #f8f9fa);
    color: var(--toggle-color, #4a5568);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary-color, var(--primary-color));
    color: #fff;
    border-color: var(--primary-color, var(--primary-color));
    transform: scale(1.05);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* ============================================
   MODERN BURGER MENU TOGGLER
   ============================================ */

/* Toggler Button */
.modern-toggler {
    border: none;
    padding: 8px;
    border-radius: 8px;
    background: var(--toggle-bg, #f8f9fa);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-toggler:hover {
    background: var(--primary-color, var(--primary-color));
}

.modern-toggler:hover .toggler-icon .line {
    background: #fff;
}

.modern-toggler:focus {
    box-shadow: none;
}

/* Animated Hamburger Icon */
.toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 16px;
    position: relative;
}

.toggler-icon .line {
    display: block;
    width: 100%;
    height: 2px;
    background: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.toggler-icon .line-1 {
    width: 16px;
    margin-bottom: 4px;
}

.toggler-icon .line-2 {
    width: 20px;
    margin-bottom: 4px;
}

.toggler-icon .line-3 {
    width: 12px;
}

/* Active State - Transforms to X */
.modern-toggler.active .toggler-icon .line-1 {
    width: 20px;
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler.active .toggler-icon .line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.modern-toggler.active .toggler-icon .line-3 {
    width: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MODERN SEARCH BAR
   ============================================ */

/* Desktop Search */
.modern-search {
    margin-left: auto;
}

.modern-search .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-search input {
    width: 200px;
    height: 38px;
    padding: 0 40px 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 13px;
    color: #2d3748;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.modern-search input::placeholder {
    color: #a0aec0;
}

.modern-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modern-search .btn-search {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    padding: 0;
}

.modern-search .btn-search:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile Search */
.modern-search-mobile .input-group {
    width: 100%;
}

.modern-search-mobile input {
    height: 42px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 50px 0 0 50px;
    font-size: 14px;
    background: #f8f9fa;
    color: #2d3748;
}

.modern-search-mobile input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: none;
}

.modern-search-mobile input::placeholder {
    color: #a0aec0;
}

.btn-search-mobile {
    width: 46px;
    height: 42px;
    border-radius: 0 50px 50px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-search-mobile:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, color-mix(in srgb, var(--secondary-color) 20%, black) 100%);
}

/* ============================================
   MODERN NAVIGATION MENU
   ============================================ */

.modern-nav {
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

@media (min-width: 992px) {
    .modern-nav {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        gap: 5px;
    }
}

.modern-nav .nav-link {
    position: relative;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-nav .nav-link:hover {
    color: var(--primary-color);
    background: transparent !important;
}

.modern-nav .nav-link.active {
    color: var(--primary-color);
    background: transparent !important;
}

/* Nav Indicator (Animated Underline) */
.nav-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modern-nav .nav-link:hover .nav-indicator {
    width: calc(100% - 28px);
    left: 14px;
}

/* ============================================
   MOBILE NAVBAR COLLAPSE
   ============================================ */

#mainNav {
    background: #fff;
    padding: 15px;
    border-radius: 0.5rem;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 992px) {
    #mainNav {
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        position: static;
        visibility: visible;
    }
}

#mainNav .navbar-nav {
    gap: 5px;
}

#mainNav .nav-link {
    padding: 12px 14px;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE NAVBAR ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    .modern-navbar {
        padding: 8px 0;
    }
    
    .modern-navbar .navbar-brand img {
        height: 32px;
    }
    
    .modern-toggler {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .toggler-icon {
        width: 18px;
        height: 14px;
    }
    
    .toggler-icon .line-1 {
        width: 14px;
    }
    
    .toggler-icon .line-2 {
        width: 18px;
    }
    
    .toggler-icon .line-3 {
        width: 10px;
    }
    
    .modern-toggler.active .toggler-icon .line-1,
    .modern-toggler.active .toggler-icon .line-3 {
        width: 18px;
    }
}

@media (max-width: 575px) {
    .modern-navbar {
        padding: 6px 0;
    }
    
    .modern-navbar .navbar-brand img {
        height: 28px;
    }

    .modern-navbar > .container {
        width: 100%;
        max-width: 100%;
    }
    .modern-navbar.navbar-fixed > .container {
        width: 100%;
    }
    .navbar-row-mobile-search{
        margin-bottom: 15px;
        width: 100%;
    }
    
    .modern-toggler {
        width: 34px;
        height: 34px;
        padding: 5px;
    }
    
    .theme-toggle {
        width: 34px;
        height: 34px;
        border-radius: 6px;
    }
    
    .toggler-icon {
        width: 16px;
        height: 12px;
    }
    
    .toggler-icon .line-1 {
        width: 12px;
        margin-bottom: 3px;
    }
    
    .toggler-icon .line-2 {
        width: 16px;
        margin-bottom: 3px;
    }
    
    .toggler-icon .line-3 {
        width: 8px;
    }
    
    .modern-toggler.active .toggler-icon .line-1,
    .modern-toggler.active .toggler-icon .line-3 {
        width: 16px;
    }
    
    #mainNav {
        margin: 8px -12px;
        border-radius: 10px 10px 0 0;
        padding: 12px;
    }
    
    .modern-nav .nav-link {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* ============================================
   DARK/LIGHT THEME CSS VARIABLES
   ============================================ */

:root {
    /* Light theme (default) */
    /* Background colors */
    --body-bg: #e8eaed;
    --navbar-bg: #ffffff;
    --card-bg: #ffffff;
    --toggle-bg: #f8f9fa;
    
    /* Text colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    /* Border colors */
    --border-color: #f0f0f0;
    --border-hover: #e5e7eb;
    
    /* Toggle colors */
    --toggle-color: #4a5568;
}

[data-theme="dark"] {
    /* Dark theme */
    /* --primary-color: #3b82f6;
    --primary-hover: #60a5fa; */
    
    /* Background colors */
    --body-bg: #111827;
    --navbar-bg: #1f2937;
    --card-bg: #1f2937;
    --toggle-bg: #374151;
    
    /* Text colors */
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    /* Border colors */
    --border-color: #374151;
    --border-hover: #4b5563;
    
    /* Toggle colors */
    --toggle-color: #d1d5db;
}

/* Apply theme colors to main elements */
[data-theme="dark"] .main-wrapper {
    background-color: var(--card-bg);
}

[data-theme="dark"] .top-bar {
    background: #1e3a5f;
}

[data-theme="dark"] .top-ad-container {
    background-color: var(--body-bg);
}

[data-theme="dark"] .page-layout {
    background-color: var(--body-bg);
}

[data-theme="dark"] .breaking-news-modern {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .breaking-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .featured-title {
    color: var(--text-primary);
}

[data-theme="dark"] .grid-card,
[data-theme="dark"] .news-item-modern {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .news-title-modern {
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .widget-title {
    color: var(--text-primary);
}

[data-theme="dark"] .popular-posts-modern li {
    border-color: var(--border-color);
}

[data-theme="dark"] .post-title {
    color: var(--text-secondary);
}

[data-theme="dark"] .popular-posts-modern li a:hover .post-title {
    color: var(--primary-color);
}

[data-theme="dark"] .tag-pill-modern {
    background-color: var(--toggle-bg);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .tag-pill-modern:hover {
    background-color: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .btn-load-more-modern {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-load-more-modern:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Dark theme for form elements */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--toggle-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}

/* Dark theme for article page */
[data-theme="dark"] .article-item-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .article-title-card a {
    color: var(--text-primary);
}

[data-theme="dark"] .article-title-card a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .article-excerpt {
    color: var(--text-secondary);
}

[data-theme="dark"] .breadcrumb-container {
    background: var(--toggle-bg);
}

[data-theme="dark"] .breadcrumb a {
    color: var(--primary-color);
}

[data-theme="dark"] .category-title {
    color: var(--primary-color);
}

[data-theme="dark"] .category-list li {
    border-color: var(--border-color);
}

[data-theme="dark"] .category-list li a {
    color: var(--text-secondary);
}

[data-theme="dark"] .category-list li a:hover {
    color: var(--primary-color);
}

/* Dark theme for comments */
[data-theme="dark"] .comment-form-modern {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .comment-form-modern .form-title {
    color: var(--text-primary);
}

[data-theme="dark"] .form-input-modern,
[data-theme="dark"] .form-textarea-modern {
    background-color: var(--toggle-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-input-modern:focus,
[data-theme="dark"] .form-textarea-modern:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-input-modern::placeholder,
[data-theme="dark"] .form-textarea-modern::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .comment-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .comment-author {
    color: var(--text-primary);
}

[data-theme="dark"] .comment-text-modern {
    color: var(--text-secondary);
}

[data-theme="dark"] .comments-title {
    color: var(--text-primary);
}

[data-theme="dark"] .article-content-modern p {
    color: var(--text-secondary);
}

[data-theme="dark"] .lead-modern {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .subheading-modern {
    color: var(--text-primary);
}

[data-theme="dark"] .article-tags-modern {
    border-color: var(--border-color);
}

[data-theme="dark"] .tags-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .tag-pill {
    background-color: var(--toggle-bg);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .tag-pill:hover {
    background-color: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .share-label {
    color: var(--text-secondary);
}

/* Footer dark theme */
[data-theme="dark"] .footer {
    background: var(--card-bg);
    color: var(--text-primary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-main {
    background: var(--card-bg);
}

[data-theme="dark"] .footer-title {
    color: var(--text-primary);
}

[data-theme="dark"] .footer-title::after {
    background: var(--primary-color);
}

[data-theme="dark"] .footer-links li a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-links li a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-categories li a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-categories li a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-copyright strong {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-bottom {
    background: var(--toggle-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .footer-copyright {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-bottom-links a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-bottom-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .social-link {
    background: var(--toggle-bg);
    color: var(--text-secondary);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .contact-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-item i {
    color: var(--primary-color);
}

[data-theme="dark"] .contact-item a {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-item a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-social {
    background: var(--toggle-bg);
    border-color: var(--border-color);
}

/* Scroll to top button dark theme */
[data-theme="dark"] .scroll-to-top {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .scroll-to-top:hover {
    background: var(--primary-hover);
}

/* ============================================
   END DARK/LIGHT THEME
   ============================================ */

/* TOP BAR - Outside white wrapper, grey background */
.top-bar {
    background: #00235f;
    color: #fff;
    font-size: 13px;
}

/* TOP AD BANNER - Outside white wrapper, grey background */
.top-ad-container {
    background-color: #e8eaed;
    padding: 15px 0;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 100;
}

.top-ad-banner {
    max-width: calc(100% - 400px);
    min-width: 800px;
    margin: 0 auto;
    max-width: 100%;
    overflow-x: hidden;
}

.top-ad-banner .widget {
    background: transparent;
}

.top-ad-banner .textwidget {
    margin: 0;
}

.top-ad-banner .iklan-wrapper {
    position: relative;
}

.top-ad-banner .iklan-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow-x: hidden;
}

.top-ad-banner .banner.ads970250 {
    width: 970px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    max-width: 100%;
}

.top-ad-banner .ads-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 1399px) {
    .top-ad-banner {
        max-width: calc(100% - 300px);
        min-width: 600px;
    }
    
    .top-ad-banner .banner.ads970250 {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 1199px) {
    .top-ad-banner {
        max-width: calc(100% - 200px);
        min-width: 500px;
    }
    
    .top-ad-banner .banner.ads970250 {
        height: 180px;
    }
    
    .top-ad-banner .ads-text {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .top-ad-banner {
        max-width: 100%;
        min-width: auto;
        padding: 0 15px;
    }
    
    .top-ad-banner .banner.ads970250 {
        height: 150px;
        border-radius: 8px;
    }
    
    .top-ad-banner .ads-text {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .top-ad-container {
        padding: 10px 0;
    }
    
    .top-ad-banner {
        padding: 0 12px;
    }
    
    .top-ad-banner .banner.ads970250 {
        height: 120px;
        border-radius: 6px;
    }
    
    .top-ad-banner .ads-text {
        font-size: 14px;
    }
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #00235f;
}

/* LAYOUT CONTAINER - Contains main wrapper and side ads */
.page-layout {
    display: flex;
    justify-content: center;
    background-color: #e8eaed;
    padding: 0 15px;
    gap: 20px;
    max-width: 100vw;
    overflow-x: visible !important;
    width: 100%;
    position: relative;
    min-height: 100vh;
    overflow-y: visible !important;
}

/* Ensure all ancestors allow sticky */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    overflow-y: visible !important;
}

.page-layout,
.main-wrapper {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* LEFT AD - Outside white wrapper */
.left-ad-container {
    width: 160px !important;
    flex-shrink: 0 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    z-index: 100 !important;
    height: calc(100vh - 75px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 20px !important;
}

.left-ad-banner {
    top: 20px !important;
    min-height: 100% !important;
}

.left-ad-banner .widget {
    background: transparent;
}

.left-ad-banner .textwidget {
    margin: 0;
}

.left-ad-banner .iklan-wrapper {
    position: relative;
}

.left-ad-banner .iklan-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.left-ad-banner .banner.ads160600 {
    width: 160px;
    height: 600px;
    background-color: #bdc3c7;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    max-width: 100%;
}

.left-ad-banner .ads-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1399px) {
    .left-ad-container {
        width: 120px;
    }
    
    .left-ad-banner .banner.ads160600 {
        width: 120px;
    }
}

@media (max-width: 1199px) {
    .left-ad-container {
        width: 100px;
    }
    
    .left-ad-banner .banner.ads160600 {
        width: 100px;
        height: 500px;
    }
}

@media (max-width: 991px) {
    .left-ad-container {
        display: none;
    }
}

/* RIGHT AD - Outside white wrapper */
.right-ad-container {
    width: 160px !important;
    flex-shrink: 0 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    z-index: 100 !important;
    height: calc(100vh - 75px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 20px !important;
}

.right-ad-banner {
    top: 20px !important;
    min-height: 100% !important;
}

.right-ad-banner .widget {
    background: transparent;
}

.right-ad-banner .textwidget {
    margin: 0;
}

.right-ad-banner .iklan-wrapper {
    position: relative;
}

.right-ad-banner .iklan-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.right-ad-banner .banner.ads160600 {
    width: 160px;
    height: 600px;
    background-color: #bdc3c7;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    max-width: 100%;
}

.right-ad-banner .ads-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1399px) {
    .right-ad-container {
        width: 120px;
    }
    
    .right-ad-banner .banner.ads160600 {
        width: 120px;
    }
}

@media (max-width: 1199px) {
    .right-ad-container {
        width: 100px;
    }
    
    .right-ad-banner .banner.ads160600 {
        width: 100px;
        height: 500px;
    }
}

@media (max-width: 991px) {
    .right-ad-container {
        display: none;
    }
}

/* MAIN WRAPPER - White box with proper width for side ads */
.main-wrapper {
    background-color: #fff;
    max-width: 100%;
    width: calc(100% - 400px);
    flex: 1 1 auto;
    border-radius: 0;
    overflow-x: hidden;
    overflow: visible;
}

@media (max-width: 1399px) {
    .main-wrapper {
        width: calc(100% - 260px);
    }
}

@media (max-width: 1199px) {
    .main-wrapper {
        width: calc(100% - 220px);
    }
}

@media (max-width: 991px) {
    .main-wrapper {
        width: 100%;
        border-radius: 0;
    }
}

/* ============================================
   MODERN NAVBAR - 3 Row Layout with Dark/Light Theme
   ============================================ */

/* ROW 1: Logo & Right Actions */
.modern-navbar .row-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    width: 100%;
}

.modern-navbar .row-1 .navbar-brand {
    flex-shrink: 0;
}

.modern-navbar .row-1 .navbar-right-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ROW 2: Search Bar (Centered) */
.modern-navbar .row-2 {
    display: flex;
    justify-content: center;
    padding: 0 0 12px 0;
    width: 100%;
}

.modern-navbar .row-2 .modern-search {
    width: 100%;
    max-width: 500px;
}

/* ROW 3: Navigation Menu */
.modern-navbar #mainNav {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Navbar Brand */
.modern-navbar .navbar-brand {
    padding: 0;
}

.modern-navbar .navbar-brand img {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease;
}

.modern-navbar .navbar-brand:hover img {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .modern-navbar .row-1 {
        padding: 10px 0;
    }
    
    .modern-navbar .row-1 .navbar-brand img {
        height: 36px;
    }
    
    .modern-navbar .row-2 {
        display: none;
    }
    
    .modern-navbar .row-2 .modern-search {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .modern-navbar .row-1 {
        padding: 8px 0;
    }
    
    .modern-navbar .row-1 .navbar-brand img {
        height: 32px;
    }
}

/* Navbar Brand */
.modern-navbar .navbar-brand {
    padding: 0;
    margin-right: 0;
}

.modern-navbar .navbar-brand img {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease;
}

.modern-navbar .navbar-brand:hover img {
    transform: scale(1.02);
}

/* ============================================
   DARK/LIGHT THEME TOGGLE
   ============================================ */

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--toggle-bg, #f8f9fa);
    color: var(--toggle-color, #4a5568);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--primary-color, var(--primary-color));
    color: #fff;
    border-color: var(--primary-color, var(--primary-color));
    transform: scale(1.05);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

@media (max-width: 991px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   MODERN BURGER MENU TOGGLER
   ============================================ */

/* Toggler Button */
.modern-toggler {
    border: none;
    padding: 8px;
    border-radius: 8px;
    background: var(--toggle-bg, #f8f9fa);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-toggler:hover {
    background: var(--primary-color, var(--primary-color));
}

.modern-toggler:hover .toggler-icon .line {
    background: #fff;
}

.modern-toggler:focus {
    box-shadow: none;
}

/* Animated Hamburger Icon */
.toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 18px;
    position: relative;
}

.toggler-icon .line {
    display: block;
    width: 100%;
    height: 2px;
    background: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.toggler-icon .line-1 {
    width: 18px;
    margin-bottom: 5px;
}

.toggler-icon .line-2 {
    width: 22px;
    margin-bottom: 5px;
}

.toggler-icon .line-3 {
    width: 14px;
}

/* Active State - Transforms to X */
.modern-toggler.active .toggler-icon .line-1 {
    width: 22px;
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler.active .toggler-icon .line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.modern-toggler.active .toggler-icon .line-3 {
    width: 22px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hide default Bootstrap toggler */
@media (min-width: 992px) {
    .modern-toggler {
        display: none !important;
    }
}

/* ============================================
   MODERN SEARCH BAR
   ============================================ */

/* Desktop Search */
.modern-search {
    margin-left: auto;
}

.modern-search .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-search input {
    width: 240px;
    height: 42px;
    padding: 0 45px 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    color: #2d3748;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.modern-search input::placeholder {
    color: #a0aec0;
}

.modern-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modern-search .btn-search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    padding: 0;
}

.modern-search .btn-search:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.modern-search .btn-search svg {
    width: 16px;
    height: 16px;
}

/* Mobile Search */
.modern-search-mobile .input-group {
    width: 100%;
}

.modern-search-mobile input {
    height: 44px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 50px 0 0 50px;
    font-size: 14px;
    background: #f8f9fa;
    color: #2d3748;
}

.modern-search-mobile input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: none;
}

.modern-search-mobile input::placeholder {
    color: #a0aec0;
}

.btn-search-mobile {
    width: 50px;
    height: 44px;
    border-radius: 0 50px 50px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-search-mobile:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, color-mix(in srgb, var(--secondary-color) 20%, black) 100%);
}

.btn-search-mobile svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   MODERN NAVIGATION MENU
   ============================================ */

.modern-nav {
    gap: 5px;
    margin: 0;
    padding: 12px 0;
    border-top: none;
    justify-content: flex-start;
    width: 100%;
}

@media (min-width: 992px) {
    .modern-nav {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        gap: 5px;
    }
}

.modern-nav .nav-link {
    position: relative;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-nav .nav-link:hover {
    color: var(--primary-color);
    background: transparent !important;
}

.modern-nav .nav-link.active {
    color: var(--primary-color);
    background: transparent !important;
}

.modern-nav .nav-link.active .nav-indicator {
    width: 100%;
    left: 0;
}

/* Nav Indicator (Animated Underline) */
.nav-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modern-nav .nav-link:hover .nav-indicator {
    width: calc(100% - 32px);
    left: 16px;
}

/* Dropdown Arrow */
.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #a0aec0;
}

.modern-nav .nav-link:hover .dropdown-arrow,
.modern-nav .nav-link.active .dropdown-arrow {
    color: var(--primary-color);
}

/* ============================================
   MODERN DROPDOWN MENU
   ============================================ */

/* Hide Bootstrap's default dropdown arrow */
.dropdown-toggle::after {
    display: none !important;
}

.modern-dropdown {
    border: none;
    border-radius: 0.5rem;
    padding: 10px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #4a5568;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modern-dropdown .dropdown-item:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

/* ============================================
   MOBILE NAVBAR COLLAPSE
   ============================================ */

#mainNav {
    background: #fff;
    padding: 15px;
    border-radius: 0.5rem;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    overflow-x: hidden;
    border-top: 1px solid #f0f0f0;
}

@media (min-width: 992px) {
    #mainNav {
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        position: static;
        visibility: visible;
        border-top: none;
    }
}

#mainNav .navbar-nav {
    gap: 5px;
}

#mainNav .nav-link {
    padding: 12px 14px;
    font-size: 14px;
}

/* Mobile dropdown styling */
#mainNav .dropdown-menu {
    border: none;
    background: #f8f9fa;
    padding: 10px 0 10px 20px;
    margin-top: 5px;
    border-radius: 0.5rem;
}

#mainNav .dropdown-item {
    padding: 10px 16px;
}

/* ============================================
   RESPONSIVE NAVBAR ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    .modern-navbar {
        padding: 10px 0;
    }
    
    .modern-navbar .navbar-brand {
        margin-right: 0;
    }
    
    .modern-navbar .navbar-brand img {
        height: 32px;
    }
    
    .modern-toggler {
        width: 40px;
        height: 40px;
    }
    
    .toggler-icon {
        width: 20px;
        height: 16px;
    }
    
    .toggler-icon .line-1 {
        width: 16px;
    }
    
    .toggler-icon .line-2 {
        width: 20px;
    }
    
    .toggler-icon .line-3 {
        width: 12px;
    }
    
    .modern-toggler.active .toggler-icon .line-1 {
        width: 20px;
    }
    
    .modern-toggler.active .toggler-icon .line-3 {
        width: 20px;
    }
}

@media (max-width: 575px) {
    .modern-navbar {
        padding: 8px 0;
    }
    
    .modern-navbar .navbar-brand img {
        height: 28px;
    }
    
    .modern-toggler {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .toggler-icon {
        width: 18px;
        height: 14px;
    }
    
    .toggler-icon .line-1 {
        width: 14px;
        margin-bottom: 4px;
    }
    
    .toggler-icon .line-2 {
        width: 18px;
        margin-bottom: 4px;
    }
    
    .toggler-icon .line-3 {
        width: 10px;
    }
    
    .modern-toggler.active .toggler-icon .line-1 {
        width: 18px;
    }
    
    .modern-toggler.active .toggler-icon .line-3 {
        width: 18px;
    }
    
    #mainNav {
        margin: 10px -12px;
        border-radius: 0.5rem 0.5rem 0 0;
        padding: 15px;
    }
    
    .modern-nav .nav-link {
        font-size: 14px;
        padding: 10px 14px;
    }
}


/* BREAKING NEWS */
.breaking-news {
    background: #e9ecef;
    font-weight: 500;
}

/* FEATURED */
.featured-news h3 {
    line-height: 1.4;
}

/* NEWS CARD */
.news-card img {
    width: 100%;
    border-radius: 6px;
}
.news-card h6 {
    font-size: 14px;
    font-weight: 600;
}

/* SECTION TITLE */
.section-title {
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* NEWS LIST */
.news-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

/* SIDEBAR */
.sidebar-box {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}
.sidebar-title {
    font-weight: bold;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* SIDEBAR AD 300x250 */
.sidebar-ad {
    width: 100%;
}

.sidebar-ad a {
    display: block;
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

/* GRID NEWS CAROUSEL */
.grid-news-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.grid-news-carousel .carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.grid-news-carousel .carousel-inner {
    width: 100%;
    overflow: hidden;
}

.grid-news-carousel .carousel-item {
    width: 100%;
    transition: transform 0.6s ease;
}

.grid-news-carousel .carousel-item > .row {
    width: 100%;
    margin: 0;
}

.grid-news-carousel .carousel-control-prev,
.grid-news-carousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: #fff !important;
    border: none;
    border-radius: 50%;
    opacity: 1;
    z-index: 99999 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.grid-news-carousel .carousel-control-prev {
    left: 8px !important;
}

.grid-news-carousel .carousel-control-next {
    right: 8px !important;
}

.grid-news-carousel .carousel-control-prev:hover,
.grid-news-carousel .carousel-control-next:hover {
    background-color: #00235f !important;
}

.grid-news-carousel .carousel-control-prev:hover .fa-chevron-left,
.grid-news-carousel .carousel-control-next:hover .fa-chevron-right {
    color: #fff;
}

.grid-news-carousel .carousel-control-prev-icon,
.grid-news-carousel .carousel-control-next-icon {
    background: none !important;
    width: auto;
    height: auto;
}

.grid-news-carousel .carousel-control-prev-icon i,
.grid-news-carousel .carousel-control-next-icon i {
    font-size: 14px;
    color: #00235f;
}

.grid-news-carousel .carousel-control-prev-icon::after,
.grid-news-carousel .carousel-control-next-icon::after {
    content: none !important;
}

/* TAGS */
.tags a {
    display: inline-block;
    background: #e9ecef;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin: 3px;
    text-decoration: none;
    color: #333;
}
.tags a:hover {
    background: #0d6efd;
    color: #fff;
}

/* POPULAR POSTS */
.popular-posts {
    padding-left: 18px;
}
.popular-posts li {
    margin-bottom: 8px;
    font-size: 14px;
}
.popular-posts li a {
    color: #333;
    text-decoration: none;
}
.popular-posts li a:hover {
    color: #00235f;
}

/* Load More Button */
.btn-lihat-lainya {
    padding: 8px 20px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-lihat-lainya:hover {
    background-color: #00235f;
    border-color: #00235f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 35, 95, 0.3);
}

.btn-lihat-lainya i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-lihat-lainya:hover i {
    transform: translateX(4px);
}

/* FEATURED ARTICLE BANNER */
.featured-article {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

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

.featured-article-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.featured-article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}

.featured-article-overlay .badge {
    font-size: 12px;
}

.featured-article-title {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    margin: 10px 0;
    color: #fff;
}

.featured-article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.featured-article-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.featured-article-link:hover .featured-article-img {
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.featured-article-link:hover .featured-article-title {
    color: #ffd700;
    transition: color 0.3s ease;
}

/* CATEGORY HEADER */
.category-header {
    border-bottom: 2px solid #00235f;
    padding-bottom: 15px;
}

.category-title {
    font-size: 24px;
    color: #00235f;
    margin-bottom: 5px;
}

/* ARTICLE LIST PAGE */
.article-item-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

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

.article-thumb {
    width: 200px;
    height: 130px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-content-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title-card {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-title-card a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title-card a:hover {
    color: #00235f;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-meta-card {
    margin-top: auto;
    font-size: 12px;
}

/* CATEGORY LIST SIDEBAR */
.category-list {
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #eee;
}

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

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list li a:hover {
    color: #00235f;
}

.category-list .badge {
    font-size: 11px;
    font-weight: normal;
}

/* PAGINATION */
.pagination {
    gap: 5px;
}

.page-link {
    color: #00235f;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #00235f;
    border-color: #00235f;
    color: #fff;
}

.page-item.active .page-link {
    background-color: #00235f;
    border-color: #00235f;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* BREADCRUMB */
.breadcrumb-container {
    background: #f8f9fa;
}
.breadcrumb {
    font-size: 13px;
    margin-bottom: 0;
}
.breadcrumb a {
    color: #00235f;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   CALM & MODERN HOMEPAGE STYLES
   ============================================ */

/* Home Container */
.home-container {
    padding: 25px 0;
}

.home-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 100%;
    overflow-x: hidden;
}

.home-body-padding {
    padding: 0 25px;
}

/* Home Main Content */
.home-main {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
}


@media (min-width: 992px) {
    .home-main {
        flex: 1 1 calc(100% - 320px);
        width: calc(100% - 320px);
    }
}

/* Sidebar Column */
.home-main + aside,
.home-main + div {
    flex: 0 0 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 992px) {
    .home-main + aside,
    .home-main + div {
        flex: 0 0 320px;
        max-width: 320px;
    }
}

/* ============================================
   MODERN BREAKING NEWS
   ============================================ */
.breaking-news-modern {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #eee;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.breaking-wrapper {
    display: flex;
    align-items: stretch;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    min-width: 0;
}

@media (max-width: 575px) {
    .breaking-wrapper {
        padding: 0;
    }
}

.breaking-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0;
    margin-right: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
    flex-shrink: 0;
    white-space: nowrap;
    height: 100%;
}

@media (max-width: 575px) {
    .breaking-badge {
        font-size: 11px;
        padding: 10px 14px;
    }
}

@media (max-width: 400px) {
    .breaking-badge {
        font-size: 10px;
        padding: 10px 12px;
    }
}

.breaking-text {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breaking-link {
    font-size: 13px;
    color: #4a5568 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .breaking-link {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .breaking-link {
        font-size: 12px;
    }
}

.breaking-link:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

[data-theme="dark"] .breaking-link {
    color: #d1d5db !important;
}

[data-theme="dark"] .breaking-link:hover {
    color: #60a5fa !important;
}

/* Breaking news separator */
.breaking-separator {
    margin: 0 8px;
    color: #a0aec0;
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .breaking-separator {
        margin: 0 5px;
        font-size: 10px;
    }
}

/* ============================================
   BREAKING NEWS TICKER (Marquee Scrolling)
   ============================================ */
.breaking-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 15px;
}

.breaking-ticker-track {
    width: 100%;
    overflow: hidden;
}

.breaking-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    gap: 0;
}

@media (max-width: 767px) {
    .breaking-ticker {
        padding: 10px 12px;
    }
}

.breaking-ticker:hover .breaking-ticker-content {
    animation-play-state: paused;
}

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

/* Dark mode support for ticker */
[data-theme="dark"] .breaking-ticker-content {
    animation: ticker-scroll-dark 30s linear infinite;
}

[data-theme="dark"] .breaking-ticker:hover .breaking-ticker-content {
    animation-play-state: paused;
}

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

/* Responsive adjustments for ticker */
@media (max-width: 991px) {
    .breaking-ticker {
        margin-left: 10px;
    }
}

@media (max-width: 767px) {
    .breaking-ticker-content {
        animation-duration: 25s;
    }
}

@media (max-width: 575px) {
    .breaking-ticker-content {
        animation-duration: 20s;
    }
    
    .breaking-ticker {
        margin-left: 8px;
    }
}

/* ============================================
   MODERN FEATURED NEWS CAROUSEL
   ============================================ */
.featured-carousel-wrapper {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.featured-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.featured-slide {
    flex: 0 0 100%;
    width: 100%;
}

.featured-slide .featured-link {
    display: block;
}

.featured-slide .featured-image-wrapper {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 18px;
}

.featured-slide .featured-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-carousel-wrapper:hover .featured-slide .featured-image {
    transform: scale(1.03);
}

.featured-slide .featured-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.featured-slide .featured-category {
    display: inline-flex;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-slide .featured-content {
    padding: 0 5px;
}

.featured-slide .featured-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #2d3748;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.featured-carousel-wrapper:hover .featured-slide .featured-title {
    color: var(--primary-color);
}

.featured-slide .featured-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #718096;
    margin: 0 0 12px 0;
}

.featured-slide .featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #a0aec0;
}

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

/* Carousel Navigation Buttons */
.featured-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
}

.featured-carousel-wrapper:hover .featured-carousel-btn {
    opacity: 1;
}

.featured-carousel-btn:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.featured-carousel-btn svg {
    color: #2d3748;
    width: 20px;
    height: 20px;
}

.featured-carousel-prev {
    left: 15px;
}

.featured-carousel-next {
    right: 15px;
}

/* Carousel Indicators */
.featured-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.featured-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.featured-indicator:hover {
    background: #a0aec0;
}

.featured-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Dark theme for featured carousel */
[data-theme="dark"] .featured-slide .featured-title {
    color: #f3f4f6;
}

[data-theme="dark"] .featured-carousel-btn {
    background: #374151;
}

[data-theme="dark"] .featured-carousel-btn svg {
    color: #f3f4f6;
}

[data-theme="dark"] .featured-carousel-btn:hover {
    background: #4b5563;
}

[data-theme="dark"] .featured-indicator {
    background: #4b5563;
}

[data-theme="dark"] .featured-indicator:hover {
    background: #6b7280;
}

[data-theme="dark"] .featured-indicator.active {
    background: var(--primary-color);
}

/* Responsive Featured Carousel */
@media (max-width: 991px) {
    .featured-slide .featured-image {
        height: 300px;
    }
    
    .featured-slide .featured-title {
        font-size: 22px;
    }
    
    .featured-carousel-btn {
        width: 42px;
        height: 42px;
        opacity: 1;
    }
    
    .featured-carousel-prev {
        left: 10px;
    }
    
    .featured-carousel-next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .featured-slide .featured-image {
        height: 250px;
        border-radius: 8px;
    }
    
    .featured-slide .featured-title {
        font-size: 20px;
    }
    
    .featured-slide .featured-excerpt {
        font-size: 13px;
        display: none;
    }
    
    .featured-carousel-btn {
        width: 38px;
        height: 38px;
    }
    
    .featured-carousel-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 575px) {
    .featured-slide .featured-image {
        height: 200px;
    }
    
    .featured-slide .featured-title {
        font-size: 18px;
    }
    
    .featured-slide .featured-meta {
        font-size: 11px;
    }
    
    .featured-carousel-btn {
        width: 34px;
        height: 34px;
    }
    
    .featured-carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .featured-indicator {
        width: 8px;
        height: 8px;
    }
}

/* ============================================
   MODERN FEATURED NEWS (Static - Deprecated)
   ============================================ */
.featured-modern {
    margin-bottom: 30px;
}

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

.featured-image-wrapper {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 18px;
}

.featured-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-modern:hover .featured-image {
    transform: scale(1.03);
}

.featured-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.featured-category {
    display: inline-flex;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-content {
    padding: 0 5px;
}

.featured-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #2d3748;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.featured-modern:hover .featured-title {
    color: var(--primary-color);
}

.featured-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #718096;
    margin: 0 0 12px 0;
}

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

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

/* ============================================
   GRID NEWS SECTION
   ============================================ */
.grid-news-section {
    margin-bottom: 35px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

.section-heading {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    position: relative;
    padding-left: 12px;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-view-all:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

[data-theme="dark"] .section-view-all {
    color: #60a5fa;
}

[data-theme="dark"] .section-view-all:hover {
    color: #93c5fd;
}

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

.grid-card {
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.grid-card .grid-link {
    text-decoration: none !important;
}

.grid-card .grid-link:hover {
    text-decoration: none !important;
}

.grid-card .grid-title {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    background: none !important;
}

.grid-card h4.grid-title {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    background: none !important;
}

.grid-card:hover {
    transform: none;
    box-shadow: none;
}

.grid-card:hover .grid-title {
    color: var(--primary-color, var(--primary-color)) !important;
}

.grid-card:hover .grid-time {
    color: var(--primary-color, var(--primary-color)) !important;
}

.grid-card:hover .grid-category {
    background: var(--primary-color, var(--primary-color)) !important;
    color: #ffffff !important;
}

.grid-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.grid-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: none;
}

.grid-card:hover .grid-image {
    transform: none;
}

.grid-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.grid-content {
    padding: 8px 0;
}

.grid-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #2d3748;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

.grid-card:hover .grid-title {
    color: #2d3748;
}

.grid-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #a0aec0;
    margin: 0;
}

/* ============================================
   LATEST NEWS SECTION
   ============================================ */
.latest-news-section {
    margin-bottom: 30px;
}

.news-list-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item-modern {
    display: flex;
    gap: 18px;
    padding: 15px;
    background: #fff;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.news-thumb-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.news-item-modern:hover .news-thumb {
    transform: scale(1.05);
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-title-modern {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #2d3748;
    margin: 0 0 8px 0;
    transition: color 0.2s ease;
}

.news-item-modern:hover .news-title-modern {
    color: var(--primary-color);
}

.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #a0aec0;
}

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

.btn-load-more-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-load-more-modern:hover {
    background: #f7fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-load-more-modern.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-load-more-modern .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more-modern .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-load-more-modern.loading .btn-text {
    display: none;
}

.btn-load-more-modern.loading .btn-loading {
    display: inline-flex;
}

/* Spinner Animation */
.spinner {
    animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Fade In Animation for New News Items */
.news-item-modern.fade-in-item {
    animation: fadeInSlideUp 0.4s ease forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News item loading skeleton */
.news-item-modern.loading-skeleton {
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   MODERN SIDEBAR
   ============================================ */
.sidebar-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    width: 100%;
}

/* Sidebar Ad - Clean Design */
.sidebar-ad-modern {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.ad-link {
    display: block;
}

.ad-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    object-fit: contain;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #fff;
    padding: 20px;
}

.widget-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 18px 0;
    padding: 10px 0 12px 12px;
    border-bottom: 2px solid #e8e8e8;
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.widget-title svg {
    color: var(--primary-color);
}

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

.tag-pill-modern {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: #f7fafc;
    color: #4a5568;
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tag-pill-modern:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Modern Popular Posts */
.popular-posts-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: post-rank;
}

.popular-posts-modern li {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
}

.popular-posts-modern li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-posts-modern li:first-child {
    padding-top: 0;
}

.popular-posts-modern li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.popular-posts-modern li a:hover {
    background-color: #f7fafc;
    transform: none;
}

.popular-posts-modern li a:hover .post-title {
    color: var(--primary-color);
}

.popular-posts-modern li a:hover .popular-post-thumb img {
    transform: scale(1.05);
}

/* Popular Post Thumbnail */
.popular-post-thumb {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

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

.popular-post-thumb .rank {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 6px 0;
}

.popular-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.popular-post-category {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.popular-post-time {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 2px;
}

.post-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #4a5568;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dark theme for popular posts with thumbnails */
[data-theme="dark"] .popular-posts-modern li {
    border-bottom-color: #374151;
}

[data-theme="dark"] .popular-posts-modern li a {
    background: transparent;
}

[data-theme="dark"] .popular-posts-modern li a:hover {
    background: transparent;
}

[data-theme="dark"] .popular-post-thumb .rank {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

[data-theme="dark"] .popular-post-category {
    color: #60a5fa;
}

[data-theme="dark"] .popular-post-time {
    color: #6b7280;
}

[data-theme="dark"] .post-title {
    color: #d1d5db;
}

[data-theme="dark"] .popular-posts-modern li a:hover .post-title {
    color: #60a5fa;
}

/* Responsive - Popular Posts with Thumbnails */
@media (max-width: 991px) {
    .popular-post-thumb {
        width: 70px;
        height: 55px;
    }
    
    .post-title {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .popular-post-thumb {
        width: 65px;
        height: 50px;
    }
    
    .popular-post-category {
        font-size: 9px;
    }
    
    .popular-post-time {
        font-size: 10px;
    }
    
    .post-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}

/* ============================================
   RESPONSIVE - HOMEPAGE & SIDEBAR
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .home-layout {
        flex-direction: column;
    }
    
    .home-main + aside,
    .home-main + div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .home-body-padding {
        padding: 0 15px;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-title {
        font-size: 22px;
    }
    
    .grid-news-carousel-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .home-container {
        padding: 20px 0;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .featured-title {
        font-size: 20px;
    }
    
    .section-heading {
        font-size: 16px;
    }
    
    .grid-news-carousel-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .grid-image {
        height: 120px;
    }
    
    .grid-title {
        font-size: 13px;
    }
    
    .news-item-modern {
        flex-direction: column;
        gap: 12px;
    }
    
    .news-thumb-wrapper {
        width: 100%;
        height: 150px;
    }
    
    .news-title-modern {
        font-size: 14px;
    }
    
    .home-body-padding {
        padding: 0 15px;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .home-container {
        padding: 15px 0;
        max-width: 100%;
    }
    
    .featured-image {
        height: 200px;
        border-radius: 8px;
    }
    
    .featured-title {
        font-size: 18px;
    }
    
    .featured-excerpt {
        font-size: 13px;
        display: none;
    }
    
    .featured-meta {
        font-size: 11px;
    }
    
    .grid-news-carousel-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .grid-card {
        display: flex;
        flex-direction: row;
        padding: 0;
    }
    
    .grid-image-wrapper {
        width: 100px;
        flex-shrink: 0;
    }
    
    .grid-image {
        height: 100%;
        min-height: 70px;
    }
    
    .grid-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
    }
    
    .grid-title {
        font-size: 11px;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
    }
    
    .grid-time {
        font-size: 10px;
    }
    
    .news-item-modern {
        padding: 12px;
        border-radius: 10px;
    }
    
    .news-thumb-wrapper {
        height: 130px;
        border-radius: 8px;
    }
    
    .news-title-modern {
        font-size: 14px;
    }
    
    .news-meta {
        font-size: 11px;
    }
    
    .sidebar-widget {
        padding: 15px;
        border-radius: 10px;
    }
    
    .widget-title {
        font-size: 14px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .tag-pill-modern {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .post-title {
        font-size: 12px;
    }
    
    .home-body-padding {
        padding: 0 12px;
    }
}

/* Article Container - Clean Layout */
.article-container {
    padding: 30px 0;
}

/* Article Body Padding - Content spacing */
.article-body-padding {
    padding: 0 25px;
}

/* Responsive padding */
@media (max-width: 767px) {
    .article-body-padding {
        padding: 0 15px;
    }
}

@media (max-width: 575px) {
    .article-body-padding {
        padding: 0 12px;
    }
}

.article-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Main Article Column */
.article-main {
    flex: 1 1 calc(100% - 320px);
    min-width: 0;
    width: calc(100% - 320px);
}

/* Sidebar Column */
.article-main + aside,
.article-main + div {
    flex: 0 0 320px;
    max-width: 320px;
}

/* Modern Article Header */
.article-header-modern {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8e8e8;
}

/* Category Pill Badge - Calm Design */
.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: #eff6ff;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
    letter-spacing: 0.3px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Modern Article Title */
.article-title-modern {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    color: #2d3748;
    margin: 0 0 18px 0;
    letter-spacing: -0.3px;
}

/* Modern Meta Information */
.article-meta-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #718096;
    transition: color 0.2s ease;
}

.meta-item:hover {
    color: var(--primary-color);
}

.meta-divider {
    width: 4px;
    height: 4px;
    background-color: #cbd5e0;
    border-radius: 50%;
}

/* Article Image - Clean Frame */
.article-image-wrapper {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-image-wrapper:hover .article-image {
    transform: scale(1.02);
}

/* Image Caption - Modern Design */
.image-caption-wrapper {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    margin-bottom:10px;
    margin-left:10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
}

.image-caption-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.image-caption-link:hover {
    color: var(--primary-color);
}

.image-caption-icon {
    flex-shrink: 0;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.image-caption-link:hover .image-caption-icon {
    color: var(--primary-color);
    transform: translateX(2px);
}

.image-caption-link span {
    position: relative;
}

.image-caption-link:hover span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

/* Dark theme for image caption */
[data-theme="dark"] .image-caption-wrapper {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-color: #374151;
}

[data-theme="dark"] .image-caption-link {
    color: #94a3b8;
}

[data-theme="dark"] .image-caption-link:hover {
    color: #60a5fa;
}

[data-theme="dark"] .image-caption-icon {
    color: #64748b;
}

[data-theme="dark"] .image-caption-link:hover .image-caption-icon {
    color: #60a5fa;
}

/* Responsive - Image Caption */
@media (max-width: 575px) {
    .image-caption-wrapper {
        padding: 6px 12px;
        margin-top: 10px;
    }
    
    .image-caption-link {
        font-size: 11px;
    }
    
    .image-caption-icon {
        width: 11px;
        height: 11px;
    }
}

/* Modern Article Content */
.article-content-modern {
    padding: 10px 0;
}

.article-content-modern p {
    font-size: 16px;
    line-height: 1.85;
    color: #4a5568;
    margin-bottom: 20px;
}

/* Lead Paragraph - Elegant Style */
.lead-modern {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #2d3748 !important;
    font-weight: 400;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px !important;
}

/* Subheadings */
.subheading-modern {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 35px 0 18px 0;
    position: relative;
    padding-bottom: 10px;
}

.subheading-modern::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Modern Blockquote - Elegant Design */
.blockquote-modern {
    position: relative;
    padding: 25px 25px 25px 70px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 0.5rem;
    border-left: none;
}

.quote-mark {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.3;
}

.quote-text {
    font-size: 16px;
    font-style: italic;
    line-height: 1.75;
    color: #4a5568;
    margin: 0;
}

/* Modern Tags Section */
.article-tags-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}

.tags-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.tags-label svg {
    color: #a0aec0;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tag Pills - Modern Design */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: #f7fafc;
    color: #4a5568;
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Share Section - Minimalist Design */
.share-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}

.share-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

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

/* Share Buttons - Circular Minimalist */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-facebook {
    background-color: #1877f2;
}

.share-facebook:hover {
    background-color: #0d65d9;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-twitter:hover {
    background-color: #0c85d0;
}

.share-whatsapp {
    background-color: #25d366;
}

.share-whatsapp:hover {
    background-color: #1fb855;
}

.share-link {
    background-color: #718096;
}

.share-link:hover {
    background-color: #4a5568;
}

/* ============================================
   MODERN COMMENTS SECTION
   ============================================ */

.comments-section-modern {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e8e8e8;
}

.comments-header {
    margin-bottom: 25px;
}

.comments-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.comments-title svg {
    color: var(--primary-color);
}

.comment-count {
    font-weight: 400;
    color: #a0aec0;
}

/* Modern Comment Form */
.comment-form-modern {
    background: #fff;
    padding: 25px;
    border-radius: 0.5rem;
    border: 1px solid #e8e8e8;
    margin-bottom: 30px;
}

.comment-form-modern .form-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group-modern {
    flex: 1;
}

.form-group-modern.full-width {
    flex: 0 0 100%;
}

.form-input-modern,
.form-textarea-modern {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #2d3748;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-input-modern:focus,
.form-textarea-modern:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-input-modern::placeholder,
.form-textarea-modern::placeholder {
    color: #a0aec0;
}

.form-textarea-modern {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button - Modern Style */
.btn-submit-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-submit-modern:active {
    transform: translateY(0);
}

/* Comment List */
.comment-list-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Modern Comment Card */
.comment-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.comment-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

/* Avatar Circle */
.comment-avatar-modern {
    flex-shrink: 0;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.avatar-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-blue-light {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.avatar-green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* Comment Body */
.comment-body-modern {
    flex: 1;
    min-width: 0;
}

.comment-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.comment-time {
    font-size: 12px;
    color: #a0aec0;
}

.comment-text-modern {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 12px 0;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-size: 12px;
    color: #a0aec0;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: var(--primary-color);
}

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

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #f7fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   RESPONSIVE - Article Page
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .article-layout {
        flex-direction: column;
    }
    
    .article-main + div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .article-title-modern {
        font-size: 26px;
    }
    
    .article-container {
        padding: 25px 0;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .article-title-modern {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .article-meta-modern {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .article-content-modern p {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .lead-modern {
        font-size: 16px !important;
    }
    
    .subheading-modern {
        font-size: 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .comment-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .comment-avatar-modern {
        align-self: flex-start;
    }
    
    .article-header-modern {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .article-tags-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .article-container {
        padding: 20px 0;
    }
    
    .article-title-modern {
        font-size: 20px;
    }
    
    .category-pill {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .article-meta-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .meta-divider {
        display: none;
    }
    
    .article-image-wrapper {
        border-radius: 8px;
    }
    
    .article-content-modern p {
        font-size: 14px;
    }
    
    .blockquote-modern {
        padding: 20px 20px 20px 55px;
    }
    
    .quote-mark {
        font-size: 45px;
        left: 12px;
        top: 10px;
    }
    
    .quote-text {
        font-size: 14px;
    }
    
    .comment-form-modern {
        padding: 20px;
    }
    
    .btn-submit-modern {
        width: 100%;
        justify-content: center;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
    }
    
    .comment-card {
        padding: 15px;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}

/* Original Article Styles - Deprecated but kept for reference */
/* .article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-title {
    font-size: 28px;
    line-height: 1.3;
}

.article-meta {
    font-size: 13px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

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

.article-content h4 {
    color: #00235f;
}

.article-content blockquote {
    font-style: italic;
}

.article-tags,
.article-share {
    border-top: 1px solid #eee;
} */

/* SIDEBAR AD 300x300 */
.banner.ads300300 {
    width: 300px;
    height: 300px;
    background-color: #bdc3c7;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.banner.ads300300 .ads-text {
    padding: 20px;
    text-align: center;
}

@media (max-width: 350px) {
    .banner.ads300300 {
        height: 200px;
    }
    
    .banner.ads300300 .ads-text {
        font-size: 14px;
    }
}

/* ============================================
   ARTICLE PAGE RESPONSIVE FIXES (575px breakpoint)
   ============================================ */

@media (max-width: 575px) {
    /* Ensure article-main takes full width on mobile */
    .article-main {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    
    /* Stack sidebar below article content */
    .article-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .article-layout > aside,
    .article-layout > div.sidebar-modern {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    /* Adjust container padding */
    .article-body-padding {
        padding: 0 12px !important;
    }
}

/* ============================================
   VERY SMALL SCREEN FIXES (350px and below)
   ============================================ */

@media (max-width: 350px) {
    /* Force article-main to 100% width on very small screens */
    .article-main {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    
    /* Ensure article layout handles very small screens properly */
    .article-layout {
        display: block !important;
        padding: 0 8px !important;
        gap: 0 !important;
    }
    
    /* Handle sidebar - make it full width on very small screens */
    .article-layout > aside,
    .article-layout > div.sidebar-modern {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin-top: 20px !important;
    }
    
    /* Hide sidebar completely on extremely small screens if needed */
    .article-layout > aside,
    .article-layout > div.sidebar-modern {
        display: block;
    }
    
    /* Adjust body padding for very small screens */
    .article-body-padding {
        padding: 0 8px !important;
    }
    
    /* Adjust article container padding */
    .article-container {
        padding: 15px 0 !important;
    }
    
    /* Ensure main wrapper doesn't overflow */
    .main-wrapper {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Ensure all major containers don't overflow */
    .page-layout,
    .main-wrapper,
    .article-container,
    .article-layout {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* SIDEBAR AD 300x250 */
.banner.ads300250 {
    width: 300px;
    height: 250px;
    background-color: #bdc3c7;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.banner.ads300250 .ads-text {
    padding: 20px;
    text-align: center;
}

@media (max-width: 350px) {
    .banner.ads300250 {
        height: 180px;
    }
    
    .banner.ads300250 .ads-text {
        font-size: 14px;
    }
}

/* COMMENTS SECTION */
.comments-section {
    background: #fff;
}

.comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact Header */
.contact-header {
    margin-bottom: 30px;
}

.contact-title {
    font-size: 28px;
    color: #00235f;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Contact Info Cards */
.contact-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.contact-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: #00235f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-card-icon i {
    color: #fff;
    font-size: 20px;
}

.contact-card h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-card p,
.contact-card p a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card p a:hover {
    color: #00235f;
}

/* Contact Form Section */
.contact-form-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.section-title {
    font-size: 18px;
    color: #00235f;
    font-weight: 600;
}

/* Modern Contact Form Styling */
.contact-form .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.contact-form .form-control,
.contact-form .form-select {
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #333;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: #fff;
    border-color: #00235f;
    box-shadow: 0 0 0 3px rgba(0, 35, 95, 0.1);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #999;
    font-size: 13px;
}

.contact-form .form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3e%3cpath d='M8 11L3 6h10l-5 5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button - Smaller and Modern */
.contact-form .btn-primary {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 6px;
    background: #00235f;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.contact-form .btn-primary:hover {
    background: #003380;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 35, 95, 0.3);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
}

/* Required field indicator */
.contact-form .text-danger {
    font-size: 11px;
    margin-left: 2px;
}

/* Form spacing */
.contact-form .mb-3 {
    margin-bottom: 16px !important;
}

/* Responsive Contact Page */
@media (max-width: 767px) {
    .contact-title {
        font-size: 24px;
    }
    
    .contact-header p {
        font-size: 14px;
    }
    
    .contact-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .contact-form-section {
        padding: 20px 15px;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ============================================
   HOME BANNER AD 728x90
   ============================================ */
.home-banner-ad {
    margin-bottom: 30px;
    text-align: center;
}

.banner-ad-link {
    display: inline-block;
    text-decoration: none;
}

.banner-ad-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Responsive Banner Ad */
@media (max-width: 767px) {
    .home-banner-ad {
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .banner-ad-image {
        border-radius: 6px;
    }
}

@media (max-width: 575px) {
    .home-banner-ad {
        margin-bottom: 20px;
        padding: 0 12px;
    }
    
    .banner-ad-image {
        border-radius: 4px;
    }
}

/* ============================================
   RELATED NEWS SECTION - Article Page
   ============================================ */
.related-news-section {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e8e8e8;
}

.related-news-header {
    margin-bottom: 25px;
}

.related-news-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.related-news-title svg {
    color: var(--primary-color);
}

/* Related News Grid - 2x2 Layout */
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

/* Related News Card */
.related-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.related-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

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

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

/* Image Wrapper */
.related-image-wrapper {
    position: relative;
    overflow: hidden;
}

.related-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Category Badge */
.related-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.related-news-card:hover .related-category {
    background: var(--primary-color);
    color: #fff;
}

/* Content Area */
.related-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #2d3748;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.related-time {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #a0aec0;
}

/* View All Link */
.related-news-footer {
    text-align: center;
    padding-top: 10px;
}

.btn-view-all-related {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all-related:hover {
    background: #f7fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Dark Theme for Related News */
[data-theme="dark"] .related-news-section {
    border-color: #374151;
}

[data-theme="dark"] .related-news-title {
    color: #f3f4f6;
}

[data-theme="dark"] .related-news-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .related-news-card:hover {
    border-color: #4b5563;
}

[data-theme="dark"] .related-title {
    color: #f3f4f6;
}

[data-theme="dark"] .related-time {
    color: #9ca3af;
}

[data-theme="dark"] .btn-view-all-related {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .btn-view-all-related:hover {
    background: #374151;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive - Related News Section */
@media (max-width: 991px) {
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .related-title {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .related-news-section {
        margin-top: 35px;
        padding-top: 25px;
    }
    
    .related-news-title {
        font-size: 16px;
    }
    
    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-news-card {
        flex-direction: row;
    }
    
    .related-image-wrapper {
        flex-shrink: 0;
        width: 140px;
    }
    
    .related-image {
        height: 100%;
        min-height: 100px;
    }
    
    .related-content {
        flex: 1;
        padding: 12px;
        justify-content: center;
    }
    
    .related-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .related-time {
        font-size: 10px;
    }
}

@media (max-width: 575px) {
    .related-news-section {
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .related-news-title {
        font-size: 15px;
    }
    
    .related-news-card {
        flex-direction: column;
    }
    
    .related-image-wrapper {
        width: 100%;
    }
    
    .related-image {
        height: 140px;
    }
    
    .related-content {
        padding: 12px;
    }
    
    .related-title {
        font-size: 13px;
    }
    
    .related-category {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .related-news-footer {
        padding-top: 5px;
    }
    
    .btn-view-all-related {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* ============================================
   MODERN CATEGORY PAGE STYLES
   ============================================ */

/* Category Header - Modern */
.category-header-modern {
    text-align: left;
    padding: 25px 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 25px;
}

.category-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50px;
    margin-bottom: 15px;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.category-icon svg {
    width: 20px;
    height: 20px;
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.category-description {
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* Category News Section */
.category-news-section {
    margin-bottom: 30px;
}

/* News Category Tag */
.news-category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    width: auto;
    white-space: nowrap;
    align-self: flex-start;
}

.news-item-modern:hover .news-category-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

/* Article Count */
.article-count {
    font-size: 13px;
    color: #a0aec0;
    font-weight: 500;
}

/* Dark theme for category page */
[data-theme="dark"] .category-header-modern {
    border-color: #374151;
}

[data-theme="dark"] .category-badge-wrapper {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
}

[data-theme="dark"] .category-icon {
    color: #60a5fa;
}

[data-theme="dark"] .category-name {
    color: #60a5fa;
}

[data-theme="dark"] .category-page-title {
    color: #f3f4f6;
}

[data-theme="dark"] .category-description {
    color: #9ca3af;
}

[data-theme="dark"] .news-category-tag {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    color: #60a5fa;
}

[data-theme="dark"] .news-item-modern:hover .news-category-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

/* Responsive Category Page */
@media (max-width: 991px) {
    .category-page-title {
        font-size: 24px;
    }
    
    .category-description {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .category-header-modern {
        padding: 20px 0;
    }
    
    .category-page-title {
        font-size: 22px;
    }
    
    .category-badge-wrapper {
        padding: 5px 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 575px) {
    .category-header-modern {
        padding: 15px 0;
    }
    
    .category-page-title {
        font-size: 20px;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .category-badge-wrapper {
        padding: 4px 10px;
    }
    
    .category-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .category-name {
        font-size: 11px;
    }
}

/* ============================================
   MODERN CONTACT PAGE STYLES
   ============================================ */

/* Contact Header - Modern */
.contact-header-modern {
    text-align: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.5rem;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.contact-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.contact-icon-wrapper svg {
    color: #fff;
}

.contact-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.contact-description {
    font-size: 15px;
    color: #718096;
    line-height: 1.65;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Cards - Modern */
.contact-cards-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.contact-card-modern {
    background: #fff;
    padding: 25px 20px;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.contact-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.contact-card-icon-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0.5rem;
    margin-bottom: 15px;
}

.contact-card-icon-modern svg {
    color: var(--primary-color);
}

.contact-card-modern h6 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.contact-card-modern p,
.contact-card-modern p a {
    font-size: 13px;
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
}

.contact-card-modern p a:hover {
    color: var(--primary-color);
}

/* Contact Form Section - Modern */
.contact-form-section-modern {
    background: #fff;
    padding: 35px;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title-modern {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.form-description {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* Modern Contact Form */
.contact-form-modern {
    max-width: 650px;
    margin: 0 auto;
}

.form-row-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 575px) {
    .form-row-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.form-group-modern {
    margin-bottom: 0;
}

.form-group-modern.full-width {
    margin-bottom: 20px;
}

.form-label-modern {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-label-modern .required {
    color: #e53e3e;
    margin-left: 2px;
}

.form-input-modern {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #2d3748;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-input-modern:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-input-modern::placeholder {
    color: #a0aec0;
}

.form-select-modern {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #2d3748;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5568' viewBox='0 0 16 16'%3e%3cpath d='M8 11L3 6h10l-5 5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.form-select-modern:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-textarea-modern {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    color: #2d3748;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-textarea-modern:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-textarea-modern::placeholder {
    color: #a0aec0;
}

/* Form Actions */
.form-actions {
    margin-top: 25px;
    text-align: center;
}

/* Submit Button - Modern */
.btn-submit-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-submit-modern:active {
    transform: translateY(0);
}

.btn-submit-modern svg {
    flex-shrink: 0;
}

/* Dark Theme for Modern Contact Page */
[data-theme="dark"] .contact-header-modern {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-color: #374151;
}

[data-theme="dark"] .contact-page-title {
    color: #f3f4f6;
}

[data-theme="dark"] .contact-description {
    color: #9ca3af;
}

[data-theme="dark"] .contact-card-modern {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .contact-card-modern h6 {
    color: #f3f4f6;
}

[data-theme="dark"] .contact-card-modern p,
[data-theme="dark"] .contact-card-modern p a {
    color: #9ca3af;
}

[data-theme="dark"] .contact-card-modern p a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .contact-card-icon-modern {
    background: #374151;
}

[data-theme="dark"] .contact-form-section-modern {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .form-title-modern {
    color: #f3f4f6;
}

[data-theme="dark"] .form-description {
    color: #9ca3af;
}

[data-theme="dark"] .form-label-modern {
    color: #d1d5db;
}

[data-theme="dark"] .form-input-modern,
[data-theme="dark"] .form-select-modern,
[data-theme="dark"] .form-textarea-modern {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

[data-theme="dark"] .form-input-modern:focus,
[data-theme="dark"] .form-select-modern:focus,
[data-theme="dark"] .form-textarea-modern:focus {
    background-color: #1f2937;
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-input-modern::placeholder,
[data-theme="dark"] .form-textarea-modern::placeholder {
    color: #6b7280;
}

/* Responsive Modern Contact Page */
@media (max-width: 991px) {
    .contact-cards-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .contact-header-modern {
        padding: 30px 20px;
    }
    
    .contact-page-title {
        font-size: 24px;
    }
    
    .contact-description {
        font-size: 14px;
    }
    
    .contact-cards-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-card-modern {
        padding: 20px 15px;
    }
    
    .contact-form-section-modern {
        padding: 25px 20px;
    }
    
    .form-title-modern {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .contact-header-modern {
        padding: 25px 15px;
    }
    
    .contact-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-page-title {
        font-size: 22px;
    }
    
    .form-group-modern.full-width {
        margin-bottom: 15px;
    }
    
    .form-input-modern,
    .form-select-modern,
    .form-textarea-modern {
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .btn-submit-modern {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* ============================================
   SEARCH PAGE STYLES
   ============================================ */

/* Search Form Container */
.search-form-container {
    margin-bottom: 30px;
}

.modern-search-page {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 18px;
    color: #a0aec0;
    pointer-events: none;
}

.search-input-page {
    width: 100%;
    height: 50px;
    padding: 0 130px 0 50px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #2d3748;
    transition: all 0.3s ease;
}

.search-input-page:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-input-page::placeholder {
    color: #a0aec0;
}

.btn-search-page {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search-page:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Search Results Section */
.search-results-section {
    margin-bottom: 30px;
}

/* No Results Container */
.no-results-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.no-results-icon {
    margin-bottom: 20px;
    color: #cbd5e0;
}

.no-results-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 12px 0;
}

.no-results-text {
    font-size: 15px;
    color: #718096;
    margin: 0 0 20px 0;
}

.no-results-suggestion {
    font-size: 13px;
    color: #a0aec0;
    margin: 0 0 8px 0;
}

.no-results-tips {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-tips li {
    position: relative;
    padding-left: 24px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
}

.no-results-tips li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #cbd5e0;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff;
}

/* News Excerpt in Search Results */
.news-excerpt {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dark theme for search page */
[data-theme="dark"] .search-input-page {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

[data-theme="dark"] .search-input-page:focus {
    background: #1f2937;
    border-color: var(--primary-color);
}

[data-theme="dark"] .search-input-page::placeholder {
    color: #6b7280;
}

[data-theme="dark"] .no-results-container {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .no-results-title {
    color: #f3f4f6;
}

[data-theme="dark"] .no-results-text {
    color: #9ca3af;
}

[data-theme="dark"] .no-results-suggestion {
    color: #6b7280;
}

[data-theme="dark"] .no-results-tips li {
    color: #9ca3af;
}

[data-theme="dark"] .no-results-tips li::before {
    color: #4b5563;
}

[data-theme="dark"] .news-excerpt {
    color: #9ca3af;
}

/* Responsive Search Page */
@media (max-width: 991px) {
    .search-form-container {
        margin-bottom: 25px;
    }
    
    .search-input-page {
        height: 46px;
        font-size: 14px;
    }
    
    .btn-search-page {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .search-form-container {
        margin-bottom: 20px;
    }
    
    .modern-search-page {
        max-width: 100%;
    }
    
    .search-input-page {
        height: 44px;
        padding: 0 120px 0 45px;
        font-size: 14px;
    }
    
    .search-input-wrapper .search-icon {
        width: 18px;
        height: 18px;
        left: 14px;
    }
    
    .btn-search-page {
        padding: 8px 18px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .no-results-container {
        padding: 40px 20px;
    }
    
    .no-results-title {
        font-size: 20px;
    }
    
    .no-results-text {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .search-form-container {
        margin-bottom: 18px;
    }
    
    .search-input-page {
        height: 42px;
        padding: 0 110px 0 42px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .search-input-wrapper .search-icon {
        width: 16px;
        height: 16px;
        left: 12px;
    }
    
    .btn-search-page {
        padding: 7px 16px;
        font-size: 12px;
        right: 4px;
    }
    
    .no-results-container {
        padding: 30px 15px;
    }
    
    .no-results-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .no-results-title {
        font-size: 18px;
    }
    
    .no-results-text {
        font-size: 13px;
    }
    
    .no-results-tips {
        max-width: 100%;
        text-align: left;
        padding-left: 20px;
    }
    
    .no-results-tips li {
        font-size: 12px;
    }
    
    .btn-back-home {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

.comment-form h6 {
    color: #00235f;
}

.comment-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.comment-header h6 {
    color: #00235f;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* ============================================
   CALM & MODERN FOOTER STYLES
   ============================================ */

/* Main Footer Container */
.footer-modern {
    background: #f8fafc;
    color: #475569;
    position: relative;
    margin-top: auto;
    padding: 30px 25px 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    max-width: 100%;
    overflow-x: hidden;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.newsletter-text h4 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
}

.newsletter-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.newsletter-form {
    flex: 1;
    max-width: 400px;
    min-width: 280px;
}

.newsletter-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    color: #fff;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
    background: #fff;
    color: #0284c7;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

/* Footer Main */
.footer-main-modern {
    padding: 0 0 35px;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Footer Column */
.footer-column {
    padding: 0;
}

/* Footer About */
.footer-about {
    padding-right: 20px;
}

@media (max-width: 1199px) {
    .footer-about {
        padding-right: 0;
    }
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 20px 0;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.footer-contact-info .contact-item svg {
    color: #0ea5e9;
    flex-shrink: 0;
}

.footer-contact-info .contact-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info .contact-item a:hover {
    color: #0ea5e9;
}

/* Footer Column Title */
.footer-column-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 8px;
    color: #0284c7;
}

/* Footer Links */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.footer-link-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.footer-link-list li:last-child a {
    border-bottom: none;
}

.footer-link-list li a:hover {
    color: #0f172a;
    background: #f1f5f9;
    border-bottom-color: #cbd5e0;
}

.footer-link-list li a svg {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.footer-link-list li a:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.footer-link-list li a:hover svg {
    color: #0ea5e9;
    transform: translateX(4px);
}

/* Footer Categories */
.footer-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.footer-category-list .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-category-list .category-link:last-child {
    border-bottom: none;
}

.footer-category-list .category-link:hover {
    background: #f1f5f9;
}

.footer-category-list .category-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
    transition: color 0.3s ease;
}

.footer-category-list .category-name svg {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.footer-category-list .category-link:hover .category-name {
    color: #0f172a;
}

.footer-category-list .category-link:hover .category-name svg {
    color: #0ea5e9;
}

.category-count {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-category-list .category-link:hover .category-count {
    background: #0ea5e9;
    color: #fff;
}

/* Footer Social Column */
.footer-social-column {
    display: flex;
    flex-direction: column;
}

.social-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.social-link-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border-radius: 0.5rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-modern:hover {
    background: #0ea5e9;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

/* App Download Section */
.app-download {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.app-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #0f172a;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.app-btn:hover {
    background: #1e293b;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

.app-btn svg {
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom-modern {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 20px 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-copyright {
    font-size: 14px;
    color: #475569;
    margin: 0;
}

.footer-copyright strong {
    color: #0284c7;
    font-weight: 700;
}

.footer-tagline {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bottom-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bottom-link svg {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.bottom-link:hover {
    color: #0284c7;
    background: #f0f9ff;
}

.bottom-link:hover svg {
    color: #0ea5e9;
}

/* Footer dark theme */
[data-theme="dark"] .footer-modern {
    background: #0f172a;
    color: #94a3b8;
}

[data-theme="dark"] .newsletter-section {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

[data-theme="dark"] .footer-column-title {
    color: #f1f5f9;
    border-color: #334155;
}

[data-theme="dark"] .title-icon {
    background: linear-gradient(135deg, #1e3a5f 0%, #0ea5e9 100%);
    color: #38bdf8;
}

[data-theme="dark"] .footer-brand-name {
    color: #f1f5f9;
}

[data-theme="dark"] .footer-description {
    color: #94a3b8;
}

[data-theme="dark"] .footer-contact-info .contact-item,
[data-theme="dark"] .footer-contact-info .contact-item a {
    color: #94a3b8;
}

[data-theme="dark"] .footer-contact-info .contact-item svg {
    color: #38bdf8;
}

[data-theme="dark"] .footer-link-list li a {
    color: #94a3b8;
}

[data-theme="dark"] .footer-link-list li a:hover {
    color: #f1f5f9;
    background: #1e293b;
}

[data-theme="dark"] .footer-link-list li a:hover svg {
    color: #38bdf8;
}

[data-theme="dark"] .footer-category-list .category-link:hover {
    background: #1e293b;
}

[data-theme="dark"] .footer-category-list .category-name {
    color: #94a3b8;
}

[data-theme="dark"] .footer-category-list .category-link:hover .category-name {
    color: #f1f5f9;
}

[data-theme="dark"] .footer-category-list .category-link:hover .category-name svg {
    color: #38bdf8;
}

[data-theme="dark"] .category-count {
    background: #1e3a5f;
    color: #38bdf8;
}

[data-theme="dark"] .footer-category-list .category-link:hover .category-count {
    background: #0ea5e9;
    color: #fff;
}

[data-theme="dark"] .social-link-modern {
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .social-link-modern:hover {
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
}

[data-theme="dark"] .app-download {
    border-color: #334155;
}

[data-theme="dark"] .app-title {
    color: #f1f5f9;
}

[data-theme="dark"] .app-btn {
    background: #1e293b;
}

[data-theme="dark"] .app-btn:hover {
    background: #334155;
}

[data-theme="dark"] .footer-bottom-modern {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .footer-copyright {
    color: #94a3b8;
}

[data-theme="dark"] .footer-tagline {
    color: #64748b;
}

[data-theme="dark"] .footer-bottom-links .bottom-link {
    color: #94a3b8;
}

[data-theme="dark"] .footer-bottom-links .bottom-link:hover {
    color: #38bdf8;
    background: #1e3a5f;
}

[data-theme="dark"] .footer-bottom-links .bottom-link svg {
    color: #64748b;
}

[data-theme="dark"] .footer-bottom-links .bottom-link:hover svg {
    color: #38bdf8;
}

/* Responsive Footer */
@media (max-width: 1199px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text h4 {
        font-size: 18px;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-column-title {
        justify-content: center;
    }
    
    .footer-logo-wrapper {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-contact-info {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .newsletter-section {
        padding: 25px 20px;
        border-radius: 0.5rem;
        margin-bottom: 30px;
    }
    
    .newsletter-text h4 {
        font-size: 17px;
    }
    
    .newsletter-text p {
        font-size: 13px;
    }
    
    .newsletter-input-wrapper {
        flex-direction: column;
        padding: 8px;
    }
    
    .newsletter-input {
        text-align: center;
        padding: 12px;
    }
    
    .newsletter-btn {
        width: 100%;
        border-radius: 8px;
    }
    
    .footer-main-modern {
        padding: 0 0 25px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-left {
        align-items: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .bottom-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .newsletter-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .newsletter-text h4 {
        font-size: 16px;
    }
    
    .newsletter-text p {
        font-size: 12px;
    }
    
    .app-buttons {
        flex-direction: row;
    }
    
    .app-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
    }
    
    .footer-bottom-links {
        gap: 10px;
    }
    
    .bottom-link {
        gap: 4px;
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Animation for footer elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.5s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.15s; }
.footer-column:nth-child(3) { animation-delay: 0.2s; }
.footer-column:nth-child(4) { animation-delay: 0.25s; }

.newsletter-section {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.05s;
    opacity: 0;
}

/* Smooth scroll behavior */
.footer-modern a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FLOATING SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #00235f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background-color: #003380;
    transform: translateY(0);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top i {
    font-size: 20px;
}

/* RESPONSIVE - Large Desktop (1400px+) */
@media (max-width: 1399px) {
    .main-wrapper {
        max-width: calc(100% - 300px);
        min-width: 0;
    }
    
    .top-ad-banner {
        max-width: calc(100% - 300px);
        min-width: 0;
    }
    
    .left-ad-container,
    .right-ad-container {
        width: 120px;
    }
    
    .left-ad-banner img,
    .right-ad-banner img {
        width: 120px;
        height: 600px;
    }
}

/* RESPONSIVE - Desktop (1200px) */
@media (max-width: 1199px) {
    .main-wrapper {
        max-width: calc(100% - 250px);
        min-width: 0;
    }
    
    .top-ad-banner {
        max-width: calc(100% - 250px);
        min-width: 0;
    }
    
    .left-ad-container,
    .right-ad-container {
        width: 100px;
    }
    
    .left-ad-banner img,
    .right-ad-banner img {
        width: 100px;
        height: 600px;
    }
}

/* RESPONSIVE - Tablet and Mobile - Hide side ads */
@media (max-width: 991px) {
    .page-layout {
        flex-direction: column;
        padding: 0;
    }
    
    .main-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
    
    .left-ad-container,
    .right-ad-container {
        display: none;
    }
    
    .top-ad-banner {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* RESPONSIVE - Mobile top ad */
@media (max-width: 480px) {
    .top-ad-container {
        padding: 10px;
    }
    
    .top-ad-banner img {
        max-height: 100px;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .main-wrapper {
        max-width: 90%;
    }
    
    .left-ad-container,
    .right-ad-container {
        width: 120px;
    }
    
    .left-ad-banner .banner,
    .right-ad-banner .banner {
        width: 120px;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .main-wrapper {
        max-width: 95%;
    }
    
    .left-ad-container,
    .right-ad-container {
        width: 100px;
    }
    
    .left-ad-banner .banner,
    .right-ad-banner .banner {
        width: 100px;
    }
    
    .navbar-search input {
        width: 180px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    /* Layout */
    .page-layout {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .main-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
    
    .left-ad-container,
    .right-ad-container {
        display: none;
    }
    
    /* Top banner */
    .top-ad-banner {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .top-ad-banner .banner.ads970250 {
        width: 100%;
        height: 200px;
    }
    
    /* Navbar */
    .main-navbar {
        position: relative !important;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    /* Burger menu button */
    .navbar-toggler {
        padding: 5px 8px;
    }
    
    .navbar-toggler-icon {
        width: 1.1em;
        height: 1.1em;
        min-width: 18px;
    }
    
    /* Mobile search bar inside burger menu */
    .navbar-search-mobile {
        margin-bottom: 15px !important;
    }
    
    .navbar-search-mobile input {
        padding: 10px 12px;
    }
    
    .navbar-search-mobile .btn-search {
        padding: 10px 15px;
    }
    
    /* Hide desktop search bar on mobile/tablet */
    .navbar-search {
        display: none !important;
    }
    
    .navbar-collapse {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        margin-top: 15px;
    }
    
    .navbar-nav {
        gap: 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* Dropdown */
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
        background: #f8f9fa;
    }
    
    /* Breaking news */
    .breaking-news {
        font-size: 14px;
    }
    
    /* Featured news */
    .featured-news h3 {
        font-size: 20px;
    }
    
    .featured-news img {
        height: auto;
    }
    
    /* Grid news carousel */
    .grid-news-carousel .carousel-item > .row .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* News list */
    .news-item img {
        width: 120px;
        height: 80px;
    }
    
    .news-item h6 {
        font-size: 14px;
    }
    
    /* Sidebar */
    .sidebar-ad {
        text-align: center;
    }
    
    .sidebar-ad .banner {
        margin: 0 auto;
    }
    
    .sidebar-box {
        margin-bottom: 20px;
    }
    
    /* Article */
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 15px;
    }

    /* Article List Page */
    .category-title {
        font-size: 22px;
    }
    
    .article-item-card {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: 180px;
        margin-bottom: 12px;
    }
    
    .article-content-card {
        margin-left: 0 !important;
    }
    
    .article-title-card {
        font-size: 17px;
    }
    
    .article-excerpt {
        display: none !important;
    }
    
    /* Featured Article */
    .featured-article-img {
        height: 280px;
    }
    
    .featured-article-title {
        font-size: 20px;
    }
    
    .featured-article-excerpt {
        display: none;
    }
    
    .featured-article-overlay {
        padding: 20px;
    }
    
    /* Category List */
    .category-list li a {
        padding: 8px 0;
    }
    
    /* Comments */
    .comment-form {
        padding: 15px;
    }
    
    .comment-form .row {
        margin: 0;
    }
    
    .comment-form .col-md-6 {
        padding: 0;
        margin-bottom: 10px;
    }
    
    /* Footer */
    .top-footer {
        padding: 15px 0;
    }
    
    .top-footer .row {
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .footer-menu {
        justify-content: center !important;
    }
    
    .footer-menu li {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Top bar */
    .top-bar {
        font-size: 11px;
    }
    
    /* Navbar */
    .navbar-brand img {
        height: 30px;
    }
    
    .navbar-search input {
        font-size: 14px;
    }
    
    .btn-search {
        padding: 8px 12px;
    }
    
    /* Breaking news */
    .breaking-news {
        font-size: 13px;
        padding: 10px 0;
    }
    
    /* Featured news */
    .featured-news h3 {
        font-size: 18px;
    }
    
    .featured-news p {
        font-size: 14px;
    }
    
    /* Grid news carousel */
    .grid-news-carousel .carousel-item > .row .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .grid-news-carousel .news-card {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .grid-news-carousel .news-card img {
        width: 100px;
        height: 70px;
        object-fit: cover;
    }
    
    .grid-news-carousel .news-card h6 {
        font-size: 13px;
        margin-left: 15px;
        margin-top: 0;
        flex: 1;
    }
    
    /* News list */
    .news-item {
        flex-direction: column;
    }
    
    .news-item img {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }
    
    .news-item .ms-3 {
        margin-left: 0 !important;
    }
    
    .news-item h6 {
        font-size: 15px;
    }
    
    /* Sidebar */
    .sidebar-title {
        font-size: 14px;
    }
    
    .tags a {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .popular-posts {
        padding-left: 20px;
    }
    
    .popular-posts li {
        font-size: 13px;
    }
    
    /* Article */
    .article-header {
        padding-bottom: 15px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 10px !important;
    }
    
    .article-content {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .article-content h4 {
        font-size: 18px;
    }
    
    .article-content blockquote {
        padding: 15px !important;
        font-size: 14px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
    }
    
    /* Comments */
    .comments-section h4 {
        font-size: 18px;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 10px !important;
    }
    
    .comment-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .comment-header h6 {
        font-size: 14px;
    }
    
    .comment-text {
        font-size: 13px;
    }

    /* Article List Page Mobile */
    .category-header {
        padding-bottom: 12px;
        margin-bottom: 20px !important;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .article-item-card {
        padding: 12px;
        margin-bottom: 15px !important;
    }
    
    .article-thumb {
        height: 150px;
    }
    
    .article-title-card {
        font-size: 16px;
    }
    
    .article-meta-card {
        font-size: 11px;
    }
    
    /* Featured Article Mobile */
    .featured-article {
        margin-bottom: 20px !important;
    }
    
    .featured-article-img {
        height: 200px;
    }
    
    .featured-article-title {
        font-size: 18px;
    }
    
    .featured-article-overlay {
        padding: 15px;
    }
    
    .featured-article-meta {
        font-size: 11px;
    }
    
    .category-list li a {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .category-list .badge {
        font-size: 10px;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Footer */
    .top-footer {
        padding: 15px 0;
    }
    
    .footer-menu li {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-menu li a {
        font-size: 13px;
        padding: 8px 0;
    }
    
    /* Scroll to top */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top i {
        font-size: 16px;
    }
}

/* Mobile Portrait (575px and below) */
@media (max-width: 575px) {
    /* General */
    body {
        font-size: 14px;
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Top bar */
    .top-bar {
        padding: 8px 0 !important;
        font-size: 10px;
    }
    
    /* Top ad */
    .top-ad-container {
        padding: 10px 0;
    }
    
    .top-ad-banner .banner.ads970250 {
        height: 150px;
    }
    
    .top-ad-banner .ads-text {
        font-size: 16px;
    }
    
    /* Navbar */
    .main-navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        flex: 1;
        padding-right: 10px;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    /* Burger menu button - smaller on mobile */
    .navbar-toggler {
        padding: 5px 8px;
        flex-shrink: 0;
    }
    
    .navbar-toggler-icon {
        width: 1em;
        height: 1em;
        min-width: 16px;
    }
    
    /* Mobile search bar inside burger menu */
    .navbar-search-mobile {
        margin-bottom: 12px !important;
    }
    
    .navbar-search-mobile .input-group {
        flex-wrap: nowrap;
    }
    
    .navbar-search-mobile input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .navbar-search-mobile .btn-search {
        padding: 10px 12px;
    }
    
    /* Hide desktop search bar on mobile */
    .navbar-search {
        display: none !important;
    }
    
    .navbar-collapse {
        padding: 12px;
        margin-top: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Breaking news */
    .breaking-news {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .breaking-news .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Main content area */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .my-4 {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* Featured news */
    .featured-news {
        margin-bottom: 20px !important;
    }
    
    .featured-news h3 {
        font-size: 16px;
    }
    
    .featured-news p {
        font-size: 13px;
    }
    
    /* Grid news carousel */
    .grid-news-carousel {
        margin-bottom: 20px !important;
    }
    
    .grid-news-carousel .news-card {
        flex-direction: column;
    }
    
    .grid-news-carousel .news-card img {
        width: 100%;
        height: 120px;
    }
    
    .grid-news-carousel .news-card h6 {
        margin-left: 0;
        margin-top: 8px;
        font-size: 13px;
    }
    
    /* Section title */
    .section-title {
        font-size: 16px;
    }
    
    /* News list */
    .news-list {
        margin-top: 15px;
    }
    
    .news-item img {
        height: 120px;
    }
    
    .news-item h6 {
        font-size: 14px;
    }
    
    .news-item .small {
        font-size: 11px;
    }
    
    /* Sidebar */
    .sidebar-box {
        padding: 12px;
    }
    
    .sidebar-title {
        font-size: 13px;
        padding-bottom: 8px;
    }
    
    .tags a {
        font-size: 10px;
        padding: 3px 6px;
        margin: 2px;
    }
    
    .popular-posts li {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .banner.ads300300,
    .banner.ads300250 {
        width: 100%;
        height: 200px;
    }
    
    .banner.ads300300 .ads-text,
    .banner.ads300250 .ads-text {
        font-size: 16px;
    }
    
    /* Article */
    .article-header {
        margin-bottom: 15px !important;
        padding-bottom: 15px;
    }
    
    .article-header .badge {
        font-size: 10px;
    }
    
    .article-title {
        font-size: 18px;
        margin-bottom: 10px !important;
    }
    
    .article-meta {
        font-size: 11px;
    }
    
    .article-header img {
        margin-bottom: 15px !important;
    }
    
    .article-content {
        font-size: 14px;
    }
    
    .article-content p {
        margin-bottom: 12px;
    }
    
    .article-content h4 {
        font-size: 16px;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .article-content blockquote {
        font-size: 13px;
        padding: 12px !important;
    }
    
    .article-tags,
    .article-share {
        padding-top: 15px !important;
        margin-top: 20px !important;
    }
    
    .article-tags h6,
    .article-share h6 {
        font-size: 13px;
    }
    
    .article-share .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* Comments */
    .comments-section {
        margin-top: 25px !important;
        padding-top: 20px !important;
    }
    
    .comments-section h4 {
        font-size: 16px;
        margin-bottom: 15px !important;
    }
    
    .comment-form {
        padding: 12px;
        margin-bottom: 25px !important;
    }
    
    .comment-form h6 {
        font-size: 13px;
    }
    
    .comment-form input,
    .comment-form textarea {
        font-size: 13px;
    }
    
    .comment-form textarea {
        min-height: 100px;
    }
    
    .comment-form button {
        width: 100%;
    }
    
    .comment-item {
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
    }
    
    .avatar-placeholder {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    .comment-text {
        font-size: 12px;
    }
    
    .comment-text + a {
        font-size: 11px;
    }
    
    /* Footer */
    .footer {
        margin-top: 20px !important;
    }
    
    .top-footer {
        padding: 15px 0;
    }
    
    .footer-logo img {
        height: 30px;
    }
    
    .footer-menu {
        gap: 10px !important;
    }
    
    .footer-menu li {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-menu li a {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .footer-bottom {
        padding: 15px 0 !important;
    }
    
    .footer-bottom p {
        font-size: 14px;
    }
    
    .footer-bottom small {
        font-size: 11px;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .top-ad-container,
    .left-ad-container,
    .right-ad-container,
    .navbar,
    .breaking-news,
    .scroll-to-top,
    .footer,
    .sidebar {
        display: none !important;
    }

    .main-wrapper {
        max-width: 100%;
        box-shadow: none;
    }

    .article-content {
        font-size: 12pt;
    }
}

/* ============================================
   ELEGANT 404 ERROR PAGE - REFINED DESIGN
   ============================================ */

/* 404 Page Container */
.error-page-container {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background-color: var(--body-bg, #f8f9fa);
    position: relative;
}

/* Decorative background elements */
.error-page-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

/* Error Page Wrapper */
.error-page-wrapper {
    text-align: center;
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 404 Icon Container */
.error-illustration {
    margin-bottom: 32px;
    position: relative;
}

.error-illustration svg {
    width: 100px;
    height: 100px;
    color: var(--primary-color, #3b82f6);
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-page-wrapper:hover .error-illustration svg {
    transform: scale(1.08) rotate(-3deg);
    opacity: 1;
}

/* Subtle floating animation */
.error-illustration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 404 Number - Large & Elegant */
.error-code {
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(145deg, var(--primary-color, #3b82f6) 0%, #1d4ed8 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -3px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

@media (max-width: 575px) {
    .error-code {
        font-size: 64px;
        letter-spacing: -2px;
    }
    
    .error-illustration svg {
        width: 80px;
        height: 80px;
    }
}

/* Error Title - Clean Typography */
.error-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

@media (max-width: 575px) {
    .error-title {
        font-size: 19px;
    }
}

/* Error Description - Readable Text */
.error-description {
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.7;
    margin: 0 0 36px 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575px) {
    .error-description {
        font-size: 13px;
        line-height: 1.6;
        max-width: 100%;
    }
}

/* Suggestion Section */
.error-suggestions {
    margin-bottom: 32px;
}

.suggestion-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px 0;
}

/* Suggestion List - Horizontal Layout */
.suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.suggestion-list li {
    flex-shrink: 0;
}

.suggestion-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.suggestion-link svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted, #9ca3af);
    transition: all 0.25s ease;
}

.suggestion-link:hover {
    color: var(--primary-color, #3b82f6);
    border-color: var(--primary-color, #3b82f6);
    background: rgba(59, 130, 246, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.suggestion-link:hover svg {
    color: var(--primary-color, #3b82f6);
}

/* Categories Section */
.error-categories {
    margin-bottom: 36px;
}

.categories-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px 0;
}

/* Category Tags - Minimal Pills */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.category-tag:hover {
    background: var(--primary-color, #3b82f6);
    border-color: var(--primary-color, #3b82f6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Divider */
.error-divider {
    width: 40px;
    height: 1px;
    background: var(--border-color, #e5e7eb);
    margin: 32px auto;
}

/* Back Button - Elegant & Minimal */
.back-button-wrapper {
    margin-top: 8px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    color: #ffffff;
}

.back-button:active {
    transform: translateY(-1px);
}

.back-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* Dark Theme for 404 Page */
[data-theme="dark"] .error-page-container {
    background-color: var(--body-bg, #0f172a);
}

[data-theme="dark"] .error-page-container::before {
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 40%);
}

[data-theme="dark"] .error-title {
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .error-description {
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .suggestion-title,
[data-theme="dark"] .categories-title {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .suggestion-link {
    background: var(--card-bg, #1e293b);
    border-color: var(--border-color, #334155);
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .suggestion-link svg {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .suggestion-link:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color, #3b82f6);
    color: #60a5fa;
}

[data-theme="dark"] .suggestion-link:hover svg {
    color: #60a5fa;
}

[data-theme="dark"] .category-tag {
    background: var(--card-bg, #1e293b);
    border-color: var(--border-color, #334155);
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .category-tag:hover {
    background: var(--primary-color, #3b82f6);
    border-color: var(--primary-color, #3b82f6);
    color: #ffffff;
}

[data-theme="dark"] .error-divider {
    background: var(--border-color, #334155);
}

/* Responsive 404 Page */
@media (max-width: 767px) {
    .error-page-container {
        padding: 40px 16px;
        min-height: 75vh;
    }
    
    .error-page-wrapper {
        max-width: 100%;
    }
    
    .error-illustration {
        margin-bottom: 24px;
    }
    
    .suggestion-list {
        gap: 10px;
    }
    
    .suggestion-link {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .category-tags {
        gap: 6px;
    }
    
    .category-tag {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .error-divider {
        margin: 28px auto;
    }
}

@media (max-width: 575px) {
    .error-page-container {
        padding: 32px 12px;
    }
    
    .back-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .error-suggestions {
        margin-bottom: 28px;
    }
    
    .category-tags {
        gap: 6px;
    }
}

/* ============================================
   CATEGORY SECTIONS ON HOMEPAGE
   ============================================ */
.category-section {
    margin-bottom: 35px;
}

.category-with-sidebar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 1 Big Featured News (Left) */
.category-featured {
    flex: 0 0 55%;
}

.category-featured-link {
    display: block;
    text-decoration: none !important;
}

.category-featured-image-wrapper {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 12px;
}

.category-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-featured-link:hover .category-featured-image {
    transform: none;
}

.category-featured-content {
    padding: 0 5px;
}

.category-featured-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #2d3748;
    margin: 0 0 6px 0;
    transition: color 0.2s ease;
}

.category-featured-link:hover .category-featured-title {
    color: var(--primary-color, var(--primary-color));
}

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

/* 3 Small News List (Right - Stacked) */
.category-news-list {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.category-news-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.category-news-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.category-news-item:only-child {
    border-radius: 0.5rem;
}

.category-news-item:hover .category-news-title {
    color: var(--primary-color, var(--primary-color));
}

.category-news-thumb-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

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

.category-news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-news-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #2d3748;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.category-news-time {
    font-size: 11px;
    color: #a0aec0;
}

/* Dark theme for category sections */
[data-theme="dark"] .category-news-item {
    background: #1f2937;
    border-bottom-color: #374151;
}

[data-theme="dark"] .category-featured-title {
    color: #f3f4f6;
}

[data-theme="dark"] .category-featured-link:hover .category-featured-title {
    color: var(--primary-color);
}

[data-theme="dark"] .category-news-title {
    color: #f3f4f6;
}

[data-theme="dark"] .category-featured-time,
[data-theme="dark"] .category-news-time {
    color: #9ca3af;
}

/* Responsive - Category sections */
@media (max-width: 991px) {
    .category-with-sidebar {
        flex-direction: column;
    }
    
    .category-featured {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .category-featured-image-wrapper {
        aspect-ratio: 16/10;
    }
    
    .category-news-list {
        flex: 0 0 100%;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .category-news-item {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 575px) {
    .category-section {
        margin-bottom: 25px;
    }
    
    .category-featured-title {
        font-size: 16px;
    }
    
    .category-news-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-news-item {
        flex: 0 0 100%;
        padding: 10px;
    }
    
    .category-news-thumb-wrapper {
        width: 80px;
        height: 60px;
    }
    
    .category-news-title {
        font-size: 12px;
    }
}



