@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Roboto:wght@400;500;700&display=swap');

/* Swup Transitions */
.transition-fade {
    transition: 0.3s;
    opacity: 1;
}

html.is-animating .transition-fade {
    opacity: 0;
}

/* Variables */
:root {
    --primary-orange: #FF9900;
    --dark-bg: #1a1a1a;
    --dark-header: #333333;
    --text-color: #444444;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #dddddd;
    --container-width: 1200px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* --- NEW HEADER (AMAMBAY STYLE) --- */
.main-header-redesign {
    font-family: 'Oswald', sans-serif;
    color: #333;
    background-color: #fff;
    margin-bottom: 0;
}

/* Top Bar */
.header-top-bar {
    padding: 20px 0;
    background-color: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 100px;
}

/* Left: Date & Weather */
.header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-date {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-weather {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-weather i {
    color: var(--primary-orange);
    font-size: 1rem;
}

/* Center: Logo */
.header-logo-area {
    display: flex;
    justify-content: center;
}

.main-logo-img {
    max-height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo-link:hover .main-logo-img {
    transform: scale(1.02);
}

/* Right: Socials Premium */
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-icons-premium {
    display: flex;
    gap: 10px;
}

.social-item {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    /* Slightly rounded corners for modern look */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-item:hover {
    background: var(--primary-orange);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Bottom Bar: Nav */
.header-nav-bar {
    background-color: #000;
    /* Black Background */
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.nav-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 50px;
    /* Fixed height for consistency */
}

.main-navigation {
    height: 100%;
}

.nav-menu {
    display: flex;
    height: 100%;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 15px 15px;
    /* Increase padding for better click area */
    text-decoration: none;
    color: #fff;
    /* White Text */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    letter-spacing: 0.5px;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--primary-orange);
    color: #fff;
}

/* Home button specific style override if needed, but per request standard orange hover is fine. 
   Maintaining a subtle difference for current page if needed */

/* Search Button */
.nav-search-btn {
    background-color: var(--primary-orange);
    border: none;
    color: #fff;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    font-size: 1.2rem;
    /* Slightly larger icon */
    cursor: pointer;
}

.nav-search-btn:hover {
    background-color: #a80000;
    /* Darker red/orange */
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    /* Dark semi-transparent bg */
    z-index: 1000;
    /* On top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-search-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-search-btn:hover {
    color: var(--primary-orange);
}

.search-container {
    width: 80%;
    max-width: 800px;
    text-align: center;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    color: #fff;
    font-size: 2rem;
    padding: 15px 10px;
    font-family: 'Oswald', sans-serif;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--primary-orange);
}

.search-submit-btn {
    margin-top: 30px;
    background-color: var(--primary-orange);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.search-submit-btn:hover {
    background-color: #fff;
    color: #000;
}

/* Navigation Controls Wrapper */
.nav-controls {
    display: flex;
    height: 100%;
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 0 20px;
    height: 100%;
    cursor: pointer;
    transition: color 0.3s;
    border-left: 1px solid #333;
}

.mobile-menu-btn:hover {
    color: var(--primary-orange);
}


/* Responsive Headers */
@media (max-width: 900px) {
    .header-top-bar {
        padding: 5px 0;
        /* Compact top bar */
    }

    .top-bar-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Hide Date/Weather/Socials on mobile as requested ("Solamente el logo") */
    .header-left,
    .header-right {
        display: none !important;
    }

    /* Hide Ticker on mobile ("Lo ultimo tambien esconder") */
    .trending-bar-section {
        display: none !important;
    }

    .nav-bar-flex {
        /* Space between Hamburger (left) and Search (right) */
        justify-content: space-between;
        position: relative;
        /* Context for absolute menu */
        align-items: center;
        /* Vertically center buttons */
        /* Make it full width even inside container padding */
        margin-left: -15px;
        margin-right: -15px;
        padding: 0;
        /* Remove padding I added previously */
    }

    /* Show Mobile Button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        border-right: 1px solid #333;
        /* Separator on right */
        /* Ensure click area/icon has space from screen edge */
        padding-left: 20px;
        height: 100%;
        /* Ensure full height */
    }

    .nav-search-btn {
        /* Ensure orange bg touches edge, but icon has space */
        padding-right: 25px;
    }

    /* Mobile Menu Drawer */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        /* Ensure black bg */
        z-index: 999;
        display: none;
        /* Hidden by default */
        border-top: 2px solid var(--primary-orange);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        height: auto;
    }

    .nav-item {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #222;
    }

    .nav-item.nav-home {
        background-color: transparent;
        /* Reset special bg */
    }

    .nav-item:hover,
    .nav-item.active {
        background-color: var(--primary-orange);
    }

    /* Ensure trending ticker doesn't overlap open menu if needed (z-index handles it) */
}

/* --- AD GRID SECTION --- */
.ad-grid-section {
    padding: 20px 0;
    background-color: #ffffff;
    /* Light gray background for separation */
}

.ad-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1180px;
    margin: 0 auto;
    gap: 20px;
}

@media (max-width: 1024px) {
    .ad-grid-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

/* Base ad-space reset */
.ad-space {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

/* Top Ads (Grid) specific dimensions */
.ad-grid-container .ad-space {
    width: 100%;
    max-width: 580px;
    height: auto;
    aspect-ratio: 580 / 140;
    border: 1px solid #e2e2e2;
}

/* Sidebar Ads specific dimensions - Widget Style */
.sidebar-area .ad-space {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    /* Rounded corners like widgets */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Widget shadow */
    padding: 0;
    border: none;
}

.sidebar-area .ad-space img {
    border-radius: 8px;
}

.ad-space a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .ad-space {
        width: 100%;
        height: auto;
        min-height: 100px;
    }
}

.ad-space img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill;
    display: block;
}

/* Responsive Ad Grid */
@media (max-width: 900px) {
    .ad-grid-container {
        grid-template-columns: 1fr;
        /* Stack 1 column on mobile */
    }
}

@media (max-width: 900px) {
    .modern-category-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modern-featured {
        height: auto;
        min-height: 300px;
        /* Reduced min-height for mobile */
    }

    .modern-featured .modern-overlay {
        padding: 1.5rem;
    }

    .modern-featured h3 {
        font-size: 1.5rem;
        /* Smaller title on mobile */
    }

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

    /* Fix for Modern List Item on Mobile: Side-by-Side */
    .modern-list-item {
        display: flex;
        flex-direction: row;
        /* Force row */
        align-items: center;
        gap: 15px;
        padding: 10px;
        height: auto;
    }

    .modern-list-item img {
        width: 100px;
        /* Small fixed width */
        height: 70px;
        /* Fixed height ratio */
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 0;
        /* Remove bottom margin if any */
    }

    .modern-list-item h4 {
        font-size: 0.95rem;
        margin: 0;
        line-height: 1.3;
    }

    /* Hide extra meta if needed or adjust */
    .modern-list-item .meta {
        font-size: 0.7rem;
    }
}

/* --- TRENDING TICKER --- */
.trending-bar-section {
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Roboto', sans-serif;
}

.trending-bar-wrapper {
    display: flex;
    align-items: center;
    height: 40px;
}

.trending-label {
    background-color: #000;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-label i {
    color: var(--primary-orange);
    font-size: 0.9rem;
}

.trending-controls {
    display: flex;
    height: 100%;
}

.trending-controls button {
    border: none;
    background: #e0e0e0;
    /* Slightly darker than section bg */
    width: 30px;
    height: 100%;
    cursor: pointer;
    color: #555;
    font-size: 0.8rem;
    transition: all 0.2s;
    border-right: 1px solid #d0d0d0;
}

.trending-controls button:hover {
    background: var(--primary-orange);
    color: #fff;
}

.trending-content-area {
    flex: 1;
    padding: 0 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.trending-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.trending-text.visible {
    opacity: 1;
}

/* Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    /* Main (75%) Sidebar (25%) */
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.content-area {
    display: flex;
    flex-direction: column;
    position: -webkit-sticky;
    position: sticky;
    align-self: flex-start;
    /* Ensure it starts at top */
    z-index: 5;
    /* top or bottom will be set by JS to handle variable height */
}

@media (max-width: 900px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- GALLERY SLIDER (RCN Style) --- */
.gallery-slider-section {
    /* margin-top: 30px; */
    /* margin-bottom: 30px; */
    background-color: #f5f5f5;
    padding-top: 20px;
    padding-bottom: 20px;
}

.gallery-slider-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    /* ~70% / 30% */
    gap: 20px;
    height: 490px;
    /* Fixed height for desktop to match list scroll */
    background-color: #f5f5f5;
}

/* 1. Main Display */
.gallery-main-display {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.gallery-main-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
    /* Subtle zoom effect */
}

/* Text Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gradient protection */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    padding: 30px;
    color: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-overlay .category-tag {
    align-self: flex-start;
    margin-bottom: 15px;
}

.gallery-overlay h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: inherit;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.gallery-overlay p {
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.9;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-overlay .gallery-meta {
    font-size: 9px !important;
    opacity: 0.8;
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
}

/* 2. Navigation List */
.gallery-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    /* Scrollable */
    padding-right: 5px;
    /* Space for scrollbar */
    height: 100%;
}

/* Custom Scrollbar for list */
.gallery-nav-list::-webkit-scrollbar {
    width: 6px;
}

.gallery-nav-list::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.gallery-nav-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

.gallery-nav-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Items */
.gallery-nav-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    /* Card look */
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.gallery-nav-item:hover {
    background: #f9f9f9;
}

.gallery-nav-item.active {
    background: #f0f0f0;
    border-left-color: var(--primary-orange);
}

.gallery-nav-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.gallery-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-nav-content h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 5px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-nav-item.active .gallery-nav-content h3 {
    color: var(--primary-orange);
}

.gallery-nav-content .time {
    font-size: 9px !important;
    color: #888;
    text-transform: uppercase;
}


/* Responsive */
@media (max-width: 900px) {
    .gallery-slider-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-main-display {
        height: 300px;
    }

    .gallery-overlay h2 {
        font-size: 1.8rem;
    }

    .gallery-nav-list {
        height: auto;
        max-height: 400px;
        /* Limit height on mobile */
    }
}

/* --- MAIN SECTION HEADERS (Modern Dark) --- */
.section-header {
    background-color: #222;
    /* Dark background */
    padding: 12px 15px;
    border-left: 5px solid var(--primary-orange);
    /* Orange Stripe */
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-radius: 0 4px 4px 0;
    /* Slight rounding on right */
}

.section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: #fff;
    /* White Text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- NEWS CARD REDESIGN --- */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.news-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 180px;
    /* Fixed height for consistency */
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.news-card-img {
    width: 35%;
    /* Fixed proportion */
    max-width: 300px;
    flex-shrink: 0;
    position: relative;
}

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

.news-card-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Meta Data Line */
.news-card-meta {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}

.nc-category {
    color: var(--primary-orange);
    font-weight: 700;
}

.nc-separator {
    margin: 0 8px;
    color: #ccc;
}

/* Title */
.news-card-title {
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.news-card-title a {
    color: #111;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    /* Using Roboto as per screenshot look */
    font-weight: 700;
    font-size: 1.3rem;
    /* Larger Title */
    transition: color 0.3s;
}

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

/* Mobile News Card: Side-by-side */
@media (max-width: 600px) {
    .news-card {
        height: auto;
        min-height: 110px;
    }

    .news-card-img {
        width: 110px;
        /* Small fixed width */
        height: auto;
        min-height: 100%;
    }

    .news-card-content {
        padding: 10px 12px;
    }

    .news-card-title a {
        font-size: 1rem;
        /* Smaller title */
        line-height: 1.2;
    }

    .news-card-meta {
        font-size: 0.65rem;
        margin-bottom: 5px;
    }

    .news-card-excerpt {
        display: none;
        /* Hide excerpt on mobile for compact view */
    }
}

/* Excerpt */
.news-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Cards */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        height: auto;
        /* Allow auto height on mobile */
    }

    .news-card-img {
        width: 100%;
        max-width: none;
        height: 200px;
        /* Fixed height image on mobile */
    }

    .news-card-content {
        padding: 15px;
    }
}

.news-content {
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.news-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.news-content h3 a {
    color: #000;
}

.news-content h3 a:hover {
    color: var(--primary-orange);
}

.read-more {
    margin-top: auto;
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- SIDEBAR WIDGETS --- */

.sidebar-area {
    /* Sticky Sidebar */
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    /* Stick 20px from top */
    align-self: start;
    /* Required for sticky in grid/flex */
    height: fit-content;
    z-index: 10;
}

.widget {
    margin-bottom: 30px;
    background-color: #fff;
    border: 1px solid transparent;
    /* Cleaner look */
    border-radius: 8px;
    /* Rounded corners */
    overflow: hidden;
    /* Clip header/footer */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Stronger shadow like cards */
}

.widget-header {
    background-color: var(--dark-header);
    color: var(--white);
    padding: 10px 15px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure images in sidebar (ads) never overflow */
.widget img,
.ad-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Currency Widget Modern */
.currency-widget {
    padding: 10px 15px;
    background-color: #f9f9f9;
    /* Slight grey bg for table area */
}

.currency-table-modern {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #333;
}

.currency-table-modern th {
    text-align: right;
    font-weight: 700;
    padding-bottom: 8px;
    color: #000;
    font-size: 0.95rem;
}

.currency-table-modern th:first-child {
    text-align: left;
}

.currency-table-modern td {
    padding: 6px 0;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.currency-table-modern td:first-child {
    text-align: left;
    font-weight: 700;
    /* Bold currency names */
}

.currency-table-modern tr:last-child td {
    border-bottom: none;
}

.currency-footer {
    background-color: #ccc;
    /* Grey footer bar */
    color: #333;
    text-align: right;
    padding: 4px 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- CATEGORY SECTIONS --- */

.category-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.section-header.dark {
    background-color: #333;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-left: none;
    /* Override default */
}

.section-header.dark h2 {
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* --- MODERN TRENDING LAYOUT (Overlay + List) --- */

.modern-category-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* 60/40 split roughly */
    gap: 30px;
    margin-bottom: 50px;
}

.modern-featured {
    position: relative;
    height: 480px;
    /* Fixed height for impact */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Gradient Overlay */
.modern-featured::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    /* Gradient covers bottom 80% */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

.overlay-content {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    z-index: 2;
    /* Above gradient */
    color: #fff;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: var(--primary-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.category-tag.policiales {
    background-color: #cc0000;
}

.category-tag.nacionales {
    background-color: #006400;
}

.category-tag.internacionales {
    background-color: #003366;
}

.overlay-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.meta-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Roboto', sans-serif;
}

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

/* Right List Modern */

@media (max-width: 900px) {
    .modern-category-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modern-featured {
        height: auto;
        min-height: 300px;
    }

    .modern-list {
        gap: 15px;
    }
}

/* Removed orphan properties */

.modern-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    /* Added padding */
    background-color: #fff;
    /* White bg */
    border-radius: 8px;
    /* Rounded */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Shadow */
    transition: transform 0.3s, box-shadow 0.3s;
    /* border-bottom: 1px solid #eee;  Removed border */
    flex: 1;
    /* Each item takes equal share of height if needed, or just fits content */
}

.modern-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.modern-list-item:last-child {
    border-bottom: none;
    padding-bottom: 15px;
    /* Keep padding */
}

/* Zoom for list items thumb */
.modern-list-item img {
    width: 110px;
    height: 100%;
    /* Fill wrapper height if needed, or fixed */
    min-height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Wrapper for list image to handle overflow for zoom */
.list-img-wrapper {
    width: 110px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}

/* .modern-list-item:hover .list-img-wrapper img,
.modern-list-item:hover img {
       If wrapped, or direct img application 
       transform: scale(1.05); applied if we had wrapper.
       For direct img, we need to wrap it to prevent overflow,
} */


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

.list-tags {
    margin-bottom: 5px;
}

.tag-small {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-orange);
    background: rgba(255, 153, 0, 0.1);
    /* Light orange bg */
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.tag-small.policiales {
    color: #cc0000;
    background: rgba(204, 0, 0, 0.08);
}

.tag-small.nacionales {
    color: #006400;
    background: rgba(0, 100, 0, 0.08);
}

.tag-small.internacionales {
    color: #003366;
    background: rgba(0, 51, 102, 0.08);
}

.item-content h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 5px;
    color: #111;
}

.item-content h4 a:hover {
    color: var(--primary-orange);
}

.list-date {
    font-size: 0.75rem;
    color: #999;
}

.small-news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

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

.small-news-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
}

.small-news-content a {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #000;
}

.small-news-content a:hover {
    color: var(--primary-orange);
}

/* Dual Columns Section (Nacionales / Internacionales) */
.dual-columns-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.category-widget .category-featured img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.category-featured .category-date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.category-featured h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #111;
    font-weight: 500;
}

.category-featured p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.category-list {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.mini-item {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    align-items: flex-start;
    /* Align top for better structure */
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    /* Clean separator */
}

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

.mini-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.mini-item a {
    font-weight: 700;
    font-size: 0.95rem;
    /* Slightly larger for readability */
    line-height: 1.4;
    color: #222;
}

.mini-item a:hover {
    color: var(--primary-orange);
}

/* --- FOOTER (Imperio Redesign) --- */
.main-footer-wrapper {
    background-color: #111;
    /* Dark Background */
    color: #999;
    font-family: 'Inter', 'Roboto', sans-serif;
    margin-top: 60px;
    border-top: 4px solid var(--primary-red);
    /* Match Main Color */
}

.main-footer {
    padding-top: 60px;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-title {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
    min-width: 50px;
}

/* Col 1: About */
.footer-logo img {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-box {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    /* Darker glass */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 1rem;
}

.social-box:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-box.facebook:hover {
    background-color: #1877f2;
}

.social-box.x-twitter:hover {
    background-color: #000;
}

.social-box.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-box.youtube:hover {
    background-color: #ff0000;
}

.social-box.whatsapp:hover {
    background-color: #25d366;
}

/* Col 2: Trending Posts */
.footer-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.post-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    /* Fixed: Added for media badges */
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-icon-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 102, 0, 0.9);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-icon-badge.large {
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.media-icon-badge:hover {
    transform: scale(1.1);
    background: #ff6600;
}

.post-info h4 {
    color: #eee;
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0 0 5px;
    font-weight: 700;
}

.post-info span {
    font-size: 0.75rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Col 3: Categories & Tags */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list li a {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
    color: #999;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-links-list li a span {
    background: #222;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    color: #777;
}

.footer-links-list li a:hover {
    color: #fff;
    padding-left: 5px;
}

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

.tag-pill {
    background: #222;
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 3px;
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
}

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

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid #222;
    padding: 25px 0;
    background-color: #252525;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* --- NEW WIDGET DESIGN V2 (Trending News Style) --- */

.news-widget-v2 {
    margin-bottom: 50px;
    font-family: 'Roboto', sans-serif;
}

/* Header: Title + Red Line + Links */
.nw2-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    /* Added spacing from element above */
    background: transparent;
    border: none;
}

.nw2-header h2 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

/* Default Line (Orange by default now) */
.nw2-header-line {
    flex-grow: 1;
    height: 4px;
    background-color: var(--primary-orange);
    /* Changed default to Orange */
    border-radius: 2px;
}

/* Specific Line Colors */
.nw2-header-line.red {
    background-color: #cc0000;
}

.nw2-header-line.blue {
    background-color: #003366;
}

.nw2-header-line.green {
    background-color: #006400;
}

.nw2-header-line.purple {
    background-color: #660066;
}

.nw2-nav {
    display: flex;
    gap: 20px;
}

.nw2-nav a {
    text-decoration: none;
    color: #888;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: capitalize;
    transition: color 0.2s;
}

.nw2-nav a:hover,
.nw2-nav a.active {
    color: #000;
}

/* Grid Layout */
.nw2-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Featured vs List */
    gap: 30px;
}

/* Featured (Left) */
.nw2-featured {
    position: relative;
    height: 100%;
    /* Fill container */
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

.nw2-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.nw2-featured:hover img {
    transform: scale(1.03);
}

.nw2-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    pointer-events: none;
    /* Let clicks pass through if needed, but usually wrapper is link */
}

/* Badge Styles */
.nw2-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 10px;
    text-transform: capitalize;
}

/* Solid Variants (Featured) */
.nw2-badge.red {
    background-color: #cc0000;
    color: #fff;
}

.nw2-badge.blue {
    background-color: #003366;
    color: #fff;
}

.nw2-badge.green {
    background-color: #006400;
    color: #fff;
}

.nw2-badge.purple {
    background-color: #660066;
    color: #fff;
}

/* Light Variants (List Items) */
.nw2-badge.light-red,
.nw2-badge.pink {
    background-color: #ffe5e5;
    color: #cc0000;
}

.nw2-badge.light-blue {
    background-color: #e5f2ff;
    color: #003366;
}

.nw2-badge.light-green {
    background-color: #e5ffe5;
    color: #006400;
}

.nw2-badge.light-purple {
    background-color: #f3e5f5;
    color: #660066;
}

.nw2-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #ddd;
}

.nw2-meta-row i {
    margin-right: 5px;
}

.nw2-overlay h3 {
    font-size: 2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

/* List Items (Right) */
.nw2-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nw2-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 25px;
    /* Space for the border */
    border-bottom: 1px solid #eee;
    /* Light divider line */
}

.nw2-item:last-child {
    border-bottom: none;
    /* Remove border from last item */
    padding-bottom: 0;
}

.nw2-item-thumb {
    width: 130px;
    height: 90px;
    border-radius: 8px;
    /* Rounded container */
    overflow: hidden;
    /* Clip image */
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Soft shadow on container */
}

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

/* Hover Effect */
.nw2-item:hover .nw2-item-thumb img {
    transform: scale(1.05);
}

.nw2-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nw2-list-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #888;
}

.nw2-list-meta .nw2-badge {
    margin-right: 12px;
}

.nw2-item h4 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.nw2-item h4 a {
    color: #000;
    /* Black title as per screenshot */
    text-decoration: none;
    transition: color 0.2s;
}

.nw2-item h4 a:hover {
    color: #ff3333;
}

/* Responsive */
@media (max-width: 900px) {
    .nw2-grid {
        grid-template-columns: 1fr;
    }

    .nw2-header {
        flex-wrap: wrap;
    }

    .nw2-nav {
        display: none;
        /* Hide nav links on mobile or stack them */
    }

    .nw2-featured {
        min-height: 300px;
    }

    /* Keep list horizontal on mobile */
    .nw2-item {
        align-items: center;
    }

    .nw2-item-thumb {
        width: 100px;
        height: 70px;
    }

    .nw2-item h4 {
        font-size: 0.95rem;
    }
}

/* Scroll Top Button - Refined */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: #ff982c;
    /* Darker Red */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #cc3333;
    transform: translateY(-5px);
}

.widget-content.audio-player {
    padding: 10px;
}

/* --- ARTICLE PAGE STYLES --- */
.article-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}



/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--primary-orange);
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 5px;
}

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

.article-category {
    background-color: var(--primary-orange);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    line-height: 1.2;
    color: #111;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-meta-v2 {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.article-meta-v2 span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-v2 i {
    color: var(--primary-orange);
}

.article-main-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* Fixed: Added for media badges */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-main-image img {
    width: 100%;
    display: block;
    height: auto;
}

.article-body {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

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

/* Limit images inside content to prevent layout break */
.article-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-body img,
.article-body iframe,
.article-body video,
.article-body table {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
}

.article-body blockquote {
    border-left: 5px solid var(--primary-orange);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.3rem;
    color: #555;
}

/* Share Section */
.article-share-v2 {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #222;
}

.share-btn-v2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.share-btn-v2:hover {
    transform: translateY(-3px);
}

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

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

.share-tw {
    background-color: #000;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-container {
        padding: 20px;
    }
}

.nw2-featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Category Header Redesign */
.category-header-clean {
    padding: 0 0 20px;
    background: #fff;
}

.breadcrumb-mini {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

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

.breadcrumb-mini .sep {
    margin: 0 5px;
    color: #999;
}

.cat-title-wrapper h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.cat-line {
    width: 100px;
    height: 6px;
    background: var(--primary-orange);
    margin-top: 15px;
}

@media (max-width: 768px) {
    .cat-title-wrapper h1 {
        font-size: 2.5rem;
    }
}


.cat-news-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #eee;
}

.cat-thumb {
    flex: 0 0 300px;
    height: 190px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* Fixed: Added for media badges */
}

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

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

.cat-content {
    flex: 1;
}

.cat-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.badg-cat {
    background: var(--primary-orange);
    color: #fff;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.cat-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.cat-content h2 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.cat-content h2 a:hover {
    color: var(--primary-orange);
}

.cat-content p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.read-more-btn:hover {
    gap: 12px;
}

.pagination-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination-v2 a,
.pagination-v2 span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination-v2 a:hover:not(.disabled) {
    background: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

.pagination-v2 .current {
    background: #111;
    color: #fff;
    border-color: #111;
}

.pagination-v2 .prev,
.pagination-v2 .next {
    width: auto;
    padding: 0 15px;
}

.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-modern .page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-modern .page-link:hover {
    border-color: #111;
    background: #f8f8f8;
}

.pagination-modern .page-link.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.pagination-modern .page-link.prev,
.pagination-modern .page-link.next {
    padding: 0 20px;
    gap: 10px;
    min-width: auto;
}

.pagination-modern .page-info {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 15px;
}

@media (max-width: 600px) {
    .pagination-modern .page-info {
        display: none;
    }
}

.pagination-modern .page-dots {
    color: #999;
    font-weight: bold;
    padding: 0 5px;
}

@media (max-width: 480px) {
    .pagination-modern {
        gap: 5px;
    }

    .pagination-modern .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}


@media (max-width: 768px) {
    .cat-news-item {
        flex-direction: column;
        gap: 15px;
    }

    .cat-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 220px;
    }
}

/* Article Gallery Section */
.article-gallery-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.gallery-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-title i {
    color: var(--primary-orange);
}

.article-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.photo-item {
    position: relative;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: var(--primary-orange);
    text-decoration: none;
}

#lightboxCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: 'Roboto', sans-serif;
}

@media (max-width: 768px) {
    .article-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-content {
        width: 100%;
    }
}

/* Related News & Comments */
.section-title-v3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.section-title-v3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--primary-orange);
}

.related-news-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    margin-bottom: 30px;
}

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

.related-thumb {
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

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

.related-info h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 8px;
}

.related-info h4 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.related-info h4 a:hover {
    color: var(--primary-orange);
}

.related-info .date {
    font-size: 0.85rem;
    color: #777;
}

.facebook-comments-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

/* --- Search Page Styles (Google-Like Refined) --- */
.search-page-wrapper {
    background: #fff;
    min-height: 100vh;
}

.search-bar-integrated {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e8eaed;
}

.page-search-form {
    max-width: 1200px;
}

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

.page-search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    font-size: 1rem;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    outline: none;
    transition: box-shadow 0.2s;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.page-search-input:focus {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(0, 0, 0, 0);
}

.page-search-btn-icon {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #4285f4;
    font-size: 1.1rem;
    cursor: pointer;
}

.container-full-search {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.results-count {
    color: #70757a;
    font-size: 0.9rem;
    margin-top: 15px;
}

.google-style-results {
    margin-top: 30px;
    margin-bottom: 50px;
}

.google-result-item {
    margin-bottom: 35px;
    max-width: 1200px;
}

.result-breadcrumb {
    font-size: 0.85rem;
    color: #202124;
    margin-bottom: 4px;
}

.result-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 400;
}

.result-title a {
    color: #1a0dab;
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-body {
    display: flex;
    gap: 15px;
}

.result-thumb {
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* Fixed: Added for media badges */
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-text-content {
    flex: 1;
}

.result-excerpt {
    color: #4d5156;
    font-size: 0.9rem;
    line-height: 1.58;
}

.result-date {
    color: #70757a;
    font-weight: 500;
}

/* Numeric Pagination Styles */
.numeric-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f3f4;
    color: #3c4043;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.page-num.active {
    background: #111;
    color: #fff;
}

.no-results,
.search-prompt,
.no-results-message,
.search-prompt-message {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.no-results i,
.search-prompt i,
.no-results-message i,
.search-prompt-message i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-results h3,
.no-results-message h3,
.search-prompt-message h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

/* Search inline form */
.search-inline-form {
    margin-bottom: 30px;
    max-width: 600px;
}

.search-results-count {
    color: #666;
    font-size: 0.95rem;
    margin-top: 10px;
}


.page-num:not(.active):hover {
    background: #e8eaed;
}

.next-btn-modern {
    background: #f1f3f4;
    padding: 0 20px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    color: #3c4043;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
    transition: background 0.2s;
}

.next-btn-modern:hover {
    background: #e8eaed;
}

/* Pagination Style Google */
.google-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.pagination-o {
    font-family: 'Product Sans', 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.pagination-o .g {
    color: #4285F4;
}

.pagination-o .o {
    color: #EA4335;
}

.pagination-o .o:nth-child(3) {
    color: #FBBC05;
}

.pagination-o .o:nth-child(4) {
    color: #4285F4;
}

.pagination-o .o:nth-child(5) {
    color: #34A853;
}

.pagination-o .o:nth-child(6) {
    color: #EA4335;
}

.pagination-o .l {
    color: #34A853;
}

.pagination-o .e {
    color: #EA4335;
}

.pagination-numbers {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
}

.pagination-numbers span,
.pagination-numbers a {
    text-decoration: none;
    color: #1a0dab;
}

.pagination-numbers .current {
    color: #000;
    font-weight: 700;
}

@media (max-width: 768px) {
    .result-body {
        flex-direction: column;
    }

    .result-thumb {
        width: 100%;
        height: 180px;
    }
}

/* --- Hosting Logo Footer --- */
.hosting-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #999;
}

.hosting-logo img {
    height: 25px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    /* Subtle look */
    transition: filter 0.3s;
}

.hosting-logo a:hover img {
    filter: grayscale(0%) brightness(1);
}

/* --- Mobile Header Redesign (Centered Logo) --- */
@media (max-width: 768px) {
    .top-bar-flex {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
        min-height: auto;
    }

    /* 1. Logo First & Centered */
    .header-logo-area {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }

    .header-logo-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .main-logo-img {
        max-height: 80px;
        /* Adjust scale for mobile */
    }

    /* 2. Social Icons Second */
    .header-right {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .social-icons-premium {
        justify-content: center;
    }

    /* 3. Date & Weather Last */
    .header-left {
        order: 3;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
}

/* === FLOATING RADIO PLAYER === */
.floating-radio {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-radio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--primary-orange);
    cursor: pointer;
}

.floating-radio-header .radio-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-radio-header .radio-label i {
    margin-right: 8px;
}

.radio-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.floating-radio.collapsed .radio-toggle-btn i {
    transform: rotate(180deg);
}

.floating-radio-body {
    padding: 15px;
    background: #1a1a1a;
    transition: max-height 0.3s ease, padding 0.3s ease;
    max-height: 100px;
    overflow: hidden;
}

.floating-radio.collapsed .floating-radio-body {
    max-height: 0;
    padding: 0 15px;
}

.floating-radio-body audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

/* Custom audio player styling */
.floating-radio-body audio::-webkit-media-controls-panel {
    background: #2d2d2d;
}

.floating-radio-body audio::-webkit-media-controls-play-button {
    background-color: var(--primary-orange);
    border-radius: 50%;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .floating-radio {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

/* --- SIDEBAR WIDGETS --- */
.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-news-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.sidebar-news-item.featured {
    flex-direction: column;
    gap: 10px;
}

.sidebar-news-item .sn-thumb {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-news-item.featured .sn-thumb {
    width: 100%;
    height: 180px;
}

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

.sidebar-news-item:hover .sn-thumb img {
    transform: scale(1.05);
}

.sidebar-news-item .sn-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.sidebar-news-item.featured .sn-content h4 {
    font-size: 1.1rem;
}

.sidebar-news-item .sn-content h4 a {
    color: var(--dark-bg);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-news-item .sn-content h4 a:hover {
    color: var(--primary-orange);
}

.sidebar-news-item .sn-date {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* FIX: Limit excessive height of vertical images on mobile */
@media (max-width: 768px) {
    .article-main-image img {
        max-height: 500px;
        width: auto !important;
        margin: 0 auto;
        object-fit: contain;
        display: block;
        max-width: 100%;
    }
}