/*
Theme Name: República de Córdoba
Theme URI: https://republicadecordoba.com
Author: República de Córdoba
Author URI: https://republicadecordoba.com
Description: República de Córdoba
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: noticias-hp
*/

/* --- 1. Variables & Reset --- */
:root {
    --color-primary: #3b3939;
    --color-dark: #111111;
    --color-light: #f3f4f6;
    --color-white: #ffffff;
    --color-text: #1f2937;
    --color-meta: #6b7280;

    --font-heading: 'Roboto Condensed', system-ui, sans-serif;
    --font-body: system-ui, -apple-system, sans-serif;

    --gap-sm: 1rem;
    --gap-md: 2rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.5;
    background: #fff;
}



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

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

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

/* --- 2. Layout Utilities --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.alignfull {
    width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--gap-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- 3. Header & Nav --- */
.top-bar {
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.6rem 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    min-height: 38px;
    /* Prevent micro-shifts */
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.date-tag {
    background: #fff;
    color: #4a148c;
    /* Purple from design */
    padding: 2px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.trending-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-label {
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticker-icon {
    color: #ff9800;
}

.ticker-items {
    overflow: hidden;
    white-space: nowrap;
    max-width: 600px; /* Increased for tags */
    font-weight: 500;
    opacity: 0.9;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-content {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

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

.ticker-items a {
    display: inline-block;
    padding-right: 3rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item:hover {
    color: #d00000;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.follow-label {
    margin-right: 5px;
    font-weight: 700;
}

.social-icon {
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: #fff !important;
}

.site-header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgb(0 0 0 / 11%);
    min-height: 92px;
    /* Reserve space to prevent CLS */
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111;
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title a::before {
    content: 'B';
    background: linear-gradient(135deg, #ff007c 0%, #ff014f 100%);
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.4rem;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    min-height: 40px;
    /* Stabilize menu height */
}

.menu-main-container {
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mobile-menu-header,
.mobile-search-wrap,
.mobile-menu-footer {
    display: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 0.95rem;
    color: #222;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-navigation .menu-item-has-children>a::after {
    content: '\203A';
    /* Single right-pointing angle quotation mark */
    transform: rotate(90deg);
    font-size: 1.2rem;
    display: inline-block;
    margin-top: 2px;
}

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

.search-trigger {
    background: transparent;
    border: 1px solid #eee;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #444;
    transition: all 0.3s;
}

.search-trigger:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* --- Logo Responsive Display --- */
/* Desktop: show desktop logo, hide mobile logo */
.desktop-logo-wrapper {
    display: inline-flex;
    align-items: center;
    min-width: 180px;
    min-height: 60px;
}

.mobile-logo-wrapper {
    display: none;
    align-items: center;
    min-width: 180px;
    min-height: 45px;
}

.desktop-logo-wrapper .custom-logo,
.mobile-logo-wrapper .custom-logo {
    max-height: 100px;
    width: 153px;
    height: auto;
}

/* Mobile: hide desktop logo, show mobile logo if set */
@media (max-width: 991px) {
    .desktop-logo-wrapper {
        display: none;
    }

    .mobile-logo-wrapper {
        display: inline-flex;
        min-height: 45px;
    }

    .mobile-logo-wrapper .custom-logo {
        max-height: 95px;
        width: auto;
    }
}

/* Mobile menu logo styling */
.mobile-menu-logo {
    max-height: 35px;
    width: auto;
    display: block;
}

/* Remove the ::before pseudo-element when logo image is present */
.mobile-logo:has(img)::before {
    display: none !important;
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(-20px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-overlay-inner {
    width: 100%;
    max-width: 900px;
    padding: 0 2rem;
    position: relative;
}

.search-close {
    position: absolute;
    top: -100px;
    right: 0;
    background: var(--color-primary);
    /* Purple from design */
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-overlay .search-field {
    width: 100%;
    border: none;
    border-bottom: 2px solid #eaebff;
    /* Light purple line */
    padding: 1rem 0;
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: #333;
    outline: none;
    background: transparent;
}

.search-overlay .search-field::placeholder {
    color: #999;
    font-weight: 300;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger-icon {
    width: 18px;
    height: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: -7px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s;
    border-radius: 2px;
}

@media (max-width: 991px) {
    .top-bar-inner {
        padding: 0 1rem;
    }


    .ticker-items {
        max-width: 140px;
    }

    .top-bar-right {
        display: none;
    }

    .header-main {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .site-branding {
        flex: 0 0 auto;
    }

    .header-actions {
        display: none !important;
        /* Ocultar la lupa en móvil */
    }

    .main-navigation {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f8f8;
        border-radius: 4px;
        width: 38px;
        height: 38px;
        border: 1px solid #eee;
        margin: 0;
    }

    .search-trigger {
        border: none;
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #111;
    }

    .site-title {
        font-size: 1.35rem;
    }

    .site-title a::before {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    /* Mobile Drawer */
    .menu-main-container {
        position: fixed !important;
        top: 0 !important;
        left: -100%;
        width: 85%;
        max-width: 310px;
        height: 100vh !important;
        background: #fff;
        z-index: 999999;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        box-shadow: 15px 0 50px rgba(0, 0, 0, 0.15);
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-navigation.active .menu-main-container {
        left: 0;
    }

    .mobile-menu-header {
        display: flex;
        padding: 1.25rem 1.5rem;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
        background: #fff;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    .mobile-logo {
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #000;
        margin: 0 !important;
    }

    .mobile-logo::before {
        content: 'B';
        background: linear-gradient(135deg, #ff007c 0%, #ff014f 100%);
        color: #fff;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    .mobile-menu-close {
        background: #f1f1f1;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 4px;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-search-wrap {
        padding: 1.5rem 1.5rem;
        background: #f8f8f8;
        border-bottom: 1px solid #e8e8e8;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
    }

    .mobile-search-wrap .search-form {
        width: 100%;
        display: block !important;
    }

    .mobile-search-wrap .search-field {
        width: 100% !important;
        border: 2px solid #ddd;
        border-radius: 30px;
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
        outline: none;
        background: #fff;
        transition: all 0.3s ease;
        display: block !important;
        visibility: visible !important;
    }

    .mobile-search-wrap .search-field:focus {
        border-color: #ff014f;
        box-shadow: 0 0 0 3px rgba(255, 1, 79, 0.1);
    }

    .mobile-search-wrap .search-field::placeholder {
        color: #999;
        font-weight: 400;
    }

    /* Menu Items Visibility */
    .mobile-menu-items {
        flex: 1;
        overflow-y: auto;
        padding: 0 1rem !important;
        margin: 0;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    .mobile-menu-items ul,
    .mobile-menu-items .menu>ul,
    .mobile-category-fallback {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    .mobile-menu-items li,
    .mobile-category-fallback li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    .mobile-menu-items a,
    .mobile-category-fallback li a {
        padding: 1.25rem 2.5rem !important;
        display: block !important;
        text-transform: uppercase;
        letter-spacing: 1.8px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #111 !important;
        border-bottom: 1px solid #f2f2f2;
        text-decoration: none !important;
        text-align: left !important;
        background: transparent !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: all 0.3s ease;
    }

    .mobile-menu-items a:hover,
    .mobile-category-fallback li a:hover {
        background: #fbfbfb !important;
        color: #ff014f !important;
        padding-left: 2.5rem !important;
        /* Subtle slide effect on hover */
    }

    .mobile-menu-footer {
        padding: 1.5rem;
        border-top: 1px solid #eee;
        background: #fff;
        text-align: center;
    }

    .mobile-follow-text {
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 0.75rem;
        color: #666;
        letter-spacing: 1px;
    }

    .mobile-social-icons .header-social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
}

/* Mobile Phones: Hide Top Bar (< 768px) */
@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .main-navigation {
        position: static !important;
        transform: none !important;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .menu-main-container {
        display: flex;
        justify-content: center;
        flex: 1;
        position: static;
        height: auto;
        width: auto;
        max-width: none;
        box-shadow: none;
        background: transparent;
        flex-direction: row;
        visibility: visible;
    }

    .mobile-menu-header,
    .mobile-search-wrap,
    .mobile-menu-footer,
    .mobile-follow-text {
        display: none !important;
    }

    /* Menú raíz en desktop: fila horizontal */
    .menu-main-container > ul,
    .menu-main-container > .menu > ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 1.5rem;
        padding: 0;
        list-style: none;
    }

    /* Submenús: ocultos por defecto y en columna */
    .main-navigation ul ul {
        display: none !important;
        flex-direction: column !important;
    }

    /* Mostrar submenú sólo al hacer hover sobre el li padre */
    .main-navigation li:hover > ul {
        display: flex !important;
        flex-direction: column !important;
    }

    .main-navigation li a {
        padding: 0.5rem 0;
        text-transform: capitalize;
        font-size: 0.95rem;
        letter-spacing: 0;
        border-bottom: none;
        color: #222;
    }

    .menu-toggle {
        display: none !important;
    }
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
    backdrop-filter: blur(2px);
}

/* --- 4. Component: Section Titles --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
}

.section-title-icon {
    color: var(--color-primary);
}

/* --- 5. Component: Cards --- */
.card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    position: relative;
}

.card-media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
}

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

.card:hover .card-media img {
    transform: scale(1.05);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.37rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--color-meta);
    text-transform: uppercase;
    font-weight: 600;
}

/* Style: Overlay (Magazine Hero) */
.card-overlay {
    color: #fff;
}

.card-overlay .card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}

.card-overlay .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 10;
}

.card-overlay .card-title {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.card-overlay .card-meta {
    color: rgba(255, 255, 255, 0.8);
}

/* Style: Horizontal (List) */
.card-horizontal {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}

.card-horizontal .card-media {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
}

.card-horizontal .card-title {
    font-size: 1rem;
}

/* Grid Utility for Home */
.magazine-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 960px) {
    .magazine-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* --- 6. Footer --- */
.site-footer {
    background: #000;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    font-family: 'Outfit', sans-serif;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-social-icons .header-social-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social-icons .social-icon {
    color: #fff;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.footer-social-icons .social-icon:hover {
    opacity: 0.7;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 1.5rem 0;
}

.footer-middle-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

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

.footer-about {
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.5;
}

.footer-about-title {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.footer-about p {
    margin: 0;
}

.footer-categories {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .footer-categories {
        justify-content: flex-start;
    }
}

.footer-cat-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.footer-cat-list li {
    display: flex;
    align-items: center;
}

.footer-cat-list li:not(:last-child)::after {
    content: '|';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-cat-list a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-cat-list a:hover {
    color: #d00000;
}

.footer-bottom-row-new {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.footer-copyright-new {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #ddd;
}

.copy-symbol {
    font-size: 1rem;
}

/* --- 7. Single Post --- */
.single-header {
    margin: 2rem 0;
}

.single-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 1.5rem;
}

/* --- UPDATED FOR SIDEBAR LAYOUT --- */
.main-layout-wrap {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
    .main-layout-wrap {
        grid-template-columns: minmax(0, 3fr) 1fr;
    }
}

.news-grid-mixed {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 600px) {
    .news-grid-mixed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .news-grid-mixed {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mixed Card Styles */
.news-card-detailed .news-cat-label {
    color: #d32f2f;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.news-card-detailed .card-title {
    font-size: 1.37rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.news-card-detailed .news-author {
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
    padding-top: 0.5rem;
}

.news-card-detailed .author-name {
    font-weight: 600;
    color: #333;
}

.ad-card-in-grid {
    border: 1px dashed #ddd;
    background: #fff;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-card-in-grid .ad-inner {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, #f9f9f9 25%, transparent 25%, transparent 75%, #f9f9f9 75%, #f9f9f9);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-card-in-grid .ad-label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    color: #999;
    letter-spacing: 1px;
}

/* Sidebar */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sticky-ad {
    position: sticky;
    top: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media(min-width: 600px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- HERO 1+2 SPLIT LAYOUT --- */
.hero-split-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* --- FOCUS GRID LAYOUT (1 Center + 4 Side) --- */
.news-focus-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    /* Mobile: Stacked */
}

@media (min-width: 992px) {
    .news-focus-grid {
        grid-template-columns: 1fr 2fr 1fr;
        /* Left (25%) Center (50%) Right (25%) roughly */
        align-items: flex-start;
    }

    /* Mobile visual order: Center on top? Or Left top?
       If DOM is Left - Center - Right, mobile will show Left Posts, then Center Post, then Right Posts.
       Often better to show Center Post first on mobile.
       We can use order property.
    */
    .focus-col-center {
        order: 2;
    }

    .focus-col-side.left-stack {
        order: 1;
    }

    .focus-col-side.right-stack {
        order: 3;
    }
}

@media (max-width: 991px) {

    /* On mobile, bring Center main story to top */
    .focus-col-center {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* Columns */
.focus-col-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.focus-col-center {
    display: flex;
    flex-direction: column;
    /* Center column might have just 1 big post */
}

/* Card Styles for Focus */
.news-card-side .card-title {
    font-size: 1.37rem;
    line-height: 1.3;
    font-weight: 700;
}

.news-card-main .card-title.main-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.news-card-main .news-excerpt {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
}

.hero-main-story {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-main-story .hero-media-lg {
    aspect-ratio: 16/9;
    border-radius: 0;
}

@media (max-width: 767px) {
    .magazine-hero.container {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .magazine-hero .hero-main-story .card-content,
    .magazine-hero .hero-side-column {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.hero-main-story .live-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #d00000;
    color: #fff;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-main-story .news-cat-lg {
    color: #d32f2f;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.hero-main-story .hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--color-dark);
}

.hero-main-story .hero-excerpt {
    font-size: 1.37rem;
    color: #444;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.hero-side-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-side-story {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-side-story .hero-media-sm {
    aspect-ratio: 3/2;
    border-radius: 4px;
}

.hero-side-story .side-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--color-dark);
}

.card-media {
    border-radius: 2px;
}

/* --- SINGLE POST STYLES --- */
.single-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.single-header .entry-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0.5rem 0 1rem;
    color: var(--color-dark);
}

.single-header .entry-lead {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.single-header .entry-meta-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--font-body);
}

.single-header .author-name {
    font-weight: 700;
    color: #d00000;
    text-transform: uppercase;
}

.single-header .published {
    color: #888;
}

.entry-thumbnail-full {
    margin: 0 0 2rem 0;
    max-height: 600px;
    overflow: hidden;
    border-radius: 4px;
}

.entry-thumbnail-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Content Media Fixes (Videos, Galleries) --- */
/* --- Content Media Fixes (Videos, Galleries) --- */
.entry-content .wp-block-embed {
    margin: 2.5rem 0;
}

/* Manual Responsive Video Support (YouTube/Vimeo) */
/* We exclude social media explicitly to avoid clipping */
.entry-content .wp-block-embed .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
}

.entry-content .wp-block-embed:not(.wp-block-embed-instagram):not(.wp-block-embed-twitter):not(.wp-block-embed-tiktok):not(.is-provider-instagram):not(.is-provider-twitter) iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: 0;
    border-radius: 8px;
}

/* Social Media Embeds (Instagram, Twitter, TikTok) */
/* These must be allowed to expand naturally */
.wp-block-embed-instagram,
.wp-block-embed-twitter,
.is-provider-instagram,
.is-provider-twitter {
    margin: 2.5rem auto !important;
    max-width: 540px !important;
    height: auto !important;
    min-height: 500px !important;
    overflow: visible !important;
}

.wp-block-embed-instagram .wp-block-embed__wrapper,
.wp-block-embed-twitter .wp-block-embed__wrapper,
.is-provider-instagram .wp-block-embed__wrapper {
    padding-bottom: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.wp-block-embed-instagram iframe,
.is-provider-instagram iframe {
    width: 100% !important;
    position: static !important;
    margin: 0 auto !important;
    aspect-ratio: auto !important;
}

/* Native Video & Galleries */
.entry-content .wp-block-video,
.entry-content .wp-block-gallery {
    width: 100% !important;
    max-width: 100%;
    margin: 2.5rem 0;
}

.entry-content video {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Gutenberg Gallery Design */
.wp-block-gallery {
    display: grid;
    gap: 10px;
    margin: 3rem 0 !important;
    padding: 0;
}

.wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wp-block-gallery .wp-block-image {
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.wp-block-gallery .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    margin: 0;
    transition: transform 0.5s ease;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.08);
}

.wp-block-gallery figcaption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 0.75rem;
    padding: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s;
}

.wp-block-gallery .wp-block-image:hover figcaption {
    opacity: 1;
}

/* Post Format Styles */
.format-video .entry-content .wp-block-embed:first-of-type,
.format-video .entry-content .wp-block-video:first-of-type {
    margin-top: -1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.format-gallery .entry-thumbnail-full {
    display: none;
    /* Hide featured image if it's a gallery post? Or maybe not. */
}

/* Adjust large images to not be "giant" if they are just loose */
.entry-content>.wp-block-image.alignfull img,
.entry-content>.wp-block-image.alignwide img {
    width: 100%;
}

.entry-content>.wp-block-image:not(.alignwide):not(.alignfull) {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Embed / Related Post Design --- */
.related-embed {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid var(--color-primary);
    padding: 1rem;
    margin: 2rem 0;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.related-embed:hover {
    background: #fdfdfd;
}

.related-label {
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    display: block;
}

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

.related-content-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.related-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f0f0f0;
}

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

.related-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin: 0;
    font-family: var(--font-heading);
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
    font-style: italic;
}

.entry-content {
    font-size: 1.37rem;
    line-height: 1.7;
    color: #222;
    overflow-wrap: break-word;
    word-break: break-word;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.tags-links a {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.85rem;
    color: #555;
    margin-right: 5px;
}

.tags-links a:hover {
    background: var(--color-primary);
    color: #fff;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 1.5rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin: 0 0 1rem;
}

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

.widget-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dotted #eee;
}

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

.widget-list a {
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* --- HEADER & MENU FIXES --- */

/* Wrapper */
.header-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    /* Critical for absolute menu positioning */
}

/* Logo Area */
.site-branding {
    flex-shrink: 0;
    margin-right: 0;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* Navigation Container */
.main-navigation {
    flex-grow: 1;
}

/* Menú raíz: sin wrap para evitar que los ítems caigan a una segunda línea */
.menu-main-container > ul,
.menu-main-container > .menu > ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.2rem;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
}

/* Items raíz: no comprimir, no partir */
.menu-main-container > ul > li,
.menu-main-container > .menu > ul > li {
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Regla genérica para submenús (hereda position:relative del padre) */
.main-navigation li {
    position: relative;
}

/* Menu Links */
.main-navigation li a {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--color-dark);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.main-navigation li a:hover {
    color: var(--color-primary);
}

.main-navigation li.current-menu-item a {
    color: var(--color-primary);
}

/* Submenus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-top: 2px solid var(--color-primary, #d32f2f);
    top: calc(100% + 4px);
    left: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 220px;
    padding: 0.5rem 0;
    gap: 0;
    z-index: 9999;
}

/* Links dentro del submenu */
.main-navigation ul ul li {
    width: 100%;
    white-space: normal;
}

.main-navigation ul ul li a {
    padding: 0.55rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: block;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    white-space: normal;
    text-transform: uppercase;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul ul li a:hover {
    background: #fafafa;
    color: var(--color-primary, #d32f2f);
    padding-left: 1.5rem;
}

.main-navigation li:hover > ul {
    display: flex;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #ddd;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}

/* Mobile Styles (< 992px) */
@media (max-width: 991px) {
    .header-main {
        justify-content: space-between;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        /* Ensure it's on top of everything */
        border-top: 1px solid #eee;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .site-branding {
        margin-right: auto;
    }
}

/* --- FOCUS GRID LAYOUT (1 Center + 4 Side) --- */
.news-focus-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .news-focus-grid {
        grid-template-columns: 1fr 2fr 1fr;
        align-items: flex-start;
    }

    .focus-col-center {
        order: 2;
    }

    .focus-col-side.left-stack {
        order: 1;
    }

    .focus-col-side.right-stack {
        order: 3;
    }
}

@media (max-width: 991px) {
    .focus-col-center {
        order: -1;
        margin-bottom: 2rem;
    }
}

.focus-col-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.focus-col-center {
    display: flex;
    flex-direction: column;
}

.news-card-side .card-title {
    font-size: 1.37rem;
    line-height: 1.3;
    font-weight: 700;
}

.news-card-main .card-title.main-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.news-card-main .news-excerpt {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
}


/* --- Responsive 300px Card Grid --- */
.news-grid-layout {
    display: grid;
    /* Use 280px to ensure it fits 2 columns in narrower containers (~560px+) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- Featured Row Layout --- */
.section-title {
    justify-content: space-between;
}

.section-more-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d00000;
    margin-left: auto;
    text-transform: uppercase;
}

.layout-featured-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Horizontal Featured Card */
.card-featured-horizontal {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    background: #fff;
    align-items: center;
}

@media (min-width: 768px) {
    .card-featured-horizontal {
        grid-template-columns: 1.5fr 1fr;
        /* Image wider */
        gap: 3rem;
    }
}

.card-featured-horizontal .feature-media {
    aspect-ratio: 16/9;
    border-radius: 4px;
    width: 100%;
}

.card-featured-horizontal .feature-title {
    font-size: 1.5rem;
    /* Fallback */
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .card-featured-horizontal .feature-title {
        font-size: 2.25rem;
    }
}

.card-featured-horizontal .news-cat-label {
    color: #d00000;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card-featured-horizontal .news-meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    font-weight: 600;
}

.feature-excerpt {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Sub Grid */
.sub-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .sub-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .sub-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.news-card-sub .card-title {
    font-size: 1.37rem;
    line-height: 1.35;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* --- FEATURED LARGE LEFT LAYOUT --- */
.layout-featured-large-left {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .layout-featured-large-left {
        grid-template-columns: 1.5fr 1fr;
        /* 60/40 Split */
        align-items: flex-start;
    }
}

/* Right Column Grid (4 items) */
.featured-sub-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .featured-sub-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Main Left Card Styling */
.news-card-main-left .media-large {
    aspect-ratio: 16/9;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: block;
}

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

/* Sub Right Cards Styling */
.news-card-sub-right .card-media {
    aspect-ratio: 16/9;
    /* Or 3/2 */
    border-radius: 4px;
}


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

/* --- BANNER HEADLINE FULL WIDTH BLOCK (Franja con Resaltado) --- */
.news-grid-block.banner-headline-style {
    background-color: var(--ng-bg, #000000);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
    box-sizing: border-box;
    padding: 2.75rem 0;
    margin-top: 5rem;
    margin-bottom: 5rem;
    overflow: visible;
    z-index: 5;
}

.news-grid-block.banner-headline-style .block-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 2.5rem;
}

.news-grid-block.banner-headline-style .block-title {
    color: #ffffff;
}

.news-grid-block.banner-headline-style .block-title .title-square {
    background-color: var(--ng-accent, #00e5a0);
}

.news-grid-block.banner-headline-style .view-all {
    color: var(--ng-accent, #00e5a0);
}

.news-grid-block.banner-headline-style .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow: visible;
}

.layout-banner-headline {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    width: 100%;
    overflow: visible;
}

.banner-headline-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.banner-headline-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1050px;
    overflow: visible;
}

@media (min-width: 768px) {
    .banner-headline-inner {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        min-height: 260px;
    }
}

.banner-headline-inner .banner-media {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: block;
    position: relative;
    z-index: 2;
    background-color: #111;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
    border-radius: 4px;
}

@media (min-width: 768px) {
    .banner-headline-inner .banner-media {
        width: 44%;
        max-width: 460px;
        min-height: 380px;
        height: 400px;
        aspect-ratio: unset;
        flex-shrink: 0;
        margin-top: -3.75rem;
        margin-bottom: -3.75rem;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
    }
}

.banner-headline-inner .banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.banner-headline-item:hover .banner-media img {
    transform: scale(1.04);
}

.banner-headline-inner .banner-content {
    width: 100%;
    position: relative;
    z-index: 4;
    padding: 1.5rem 0 0 0;
}

@media (min-width: 768px) {
    .banner-headline-inner .banner-content {
        width: 62%;
        margin-left: -6%;
        padding: 1rem 0;
    }
}

.banner-headline-inner .banner-title {
    margin: 0;
    font-family: var(--font-heading, 'Roboto Condensed', system-ui, sans-serif);
    font-weight: 800;
    font-size: clamp(1.4rem, 4vw, var(--ng-font-size, 32px));
    line-height: 1.6;
}

@media (min-width: 768px) {
    .banner-headline-inner .banner-title {
        font-size: var(--ng-font-size, 32px);
        line-height: 1.55;
    }
}

.banner-headline-inner .banner-title a {
    text-decoration: none;
    color: inherit;
    display: inline;
}

.banner-headline-inner .highlight-text {
    background-color: var(--ng-accent, #00e5a0);
    color: #000000;
    font-weight: 900;
    letter-spacing: -0.01em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0.16em 0.55em;
    display: inline;
    line-height: 1.65;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.banner-headline-item:hover .highlight-text {
    filter: brightness(1.06);
}

/* --- 8. Layout: List with Sidebar --- */
.layout-list-sidebar {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .layout-list-sidebar {
        grid-template-columns: 3fr 1fr;
        align-items: start;
    }
}

.list-column-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .list-column-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .list-column-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-list-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-card-horizontal-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .news-card-horizontal-sidebar {
        grid-template-columns: 1fr 1.5fr;
    }
}

.news-card-horizontal-sidebar .card-media {
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 4px;
    overflow: hidden;
}

.news-card-horizontal-sidebar .side-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.news-card-horizontal-sidebar .side-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-read-more {
    display: inline-block;
    background: #e07e56;
    /* Match the reddish/orange in screenshot */
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.3s;
}

.btn-read-more:hover {
    background: #d16b45;
}

.news-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.ad-card-sidebar {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.ad-card-sidebar img {
    max-width: 100%;
    height: auto;
    display: block;
}

.post-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0;
}

/* Purple Theme Support */
.section-title.purple {
    color: #6a1b9a;
}

.section-title.purple .section-title-icon {
    color: #6a1b9a;
}

.card-title.side-title a {
    color: #333;
}

.news-card-horizontal-sidebar:hover .side-title a {
    color: #8b008b;
    /* Purple on hover for consistency */
}

/* Custom Sidebar Content */
.custom-sidebar-content {
    width: 100%;
    margin-bottom: 2rem;
}

.custom-sidebar-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
}

/* --- CATEGORY COLUMNS LAYOUT --- */
.layout-category-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .layout-category-columns {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    }
}

.cat-column {
    display: flex;
    flex-direction: column;
}

.cat-column-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-left: 0.75rem;
    border-left: 4px solid #d44021;
    /* Vertical blue accent from image */
    color: #444;
    line-height: 1;
    display: flex;
    align-items: center;
}

.cat-column-title a:hover {
    color: var(--color-primary);
}

.cat-post-list {
    display: flex;
    flex-direction: column;
}

.cat-post-item {
    border-top: 1px solid #eee;
    padding: 0.75rem 0;
}

.cat-post-item:first-child {
    border-top: none;
    padding-top: 0;
}

.cat-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #111;
}

.cat-post-title a:hover {
    color: var(--color-primary);
}

/* --- CATEGORY PAGE STYLES --- */
.category-page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.category-header {
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    /* Blue color from image */
    font-weight: 800;
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .category-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.category-post-card .post-thumbnail {
    margin-bottom: 1rem;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
}

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

.category-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.category-post-card .post-title {
    font-size: 1.37rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.category-post-card .post-title a {
    color: #111;
    text-decoration: none;
}

.category-post-card .post-title a:hover {
    color: #d00000;
}

.category-post-card .post-meta {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Ad placeholder in grid */
.ad-placeholder.category-ad {
    grid-column: 1 / -1;
    background: #fafafa;
    padding: 2rem;
    border: 1px solid #eee;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
    border-radius: 4px;
}

.ad-placeholder.category-ad::before {
    content: 'Publicidad';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Load more button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.btn-load-more:hover {
    background: var(--color-dark);
}

.btn-load-more.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Sidebar */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-ad-placeholder {
    background: #f9f9f9;
    padding: 1rem;
    border: 1px solid #eee;
    text-align: center;
}

.sidebar-ad-placeholder span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.5rem;
}

/* --- Final Enhancements for Images & Galleries --- */
.entry-content>.wp-block-image:not(.alignwide):not(.alignfull) {
    max-width: 85%;
    margin: 2.5rem auto;
}

.entry-content>.wp-block-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.wp-block-gallery {
    background: #fdfdfd;
    padding: 1.5rem !important;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.wp-block-gallery .wp-block-image img {
    border-radius: 6px;
}

/* --- Lightbox Styles --- */
.np-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.np-lightbox.active {
    display: flex;
    opacity: 1;
}

.np-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.np-lightbox.active img {
    transform: scale(1);
}

.np-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: transform 0.2s;
}

.np-lightbox-close:hover {
    transform: scale(1.1);
}

.np-lightbox-prev,
.np-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0.7;
    z-index: 100000;
}

.np-lightbox-prev:hover,
.np-lightbox-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.np-lightbox-prev {
    left: 20px;
}

.np-lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {

    .np-lightbox-prev,
    .np-lightbox-next {
        font-size: 40px;
        padding: 10px;
    }
}

/* --- Breadcrumb Styles --- */
.breadcrumb {
    margin: 1rem 0;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none !important;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: #888;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li+li::before {
    content: '\00bb';
    /* » symbol */
    margin: 0 8px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1;
}

.breadcrumb a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-dark);
    text-decoration: underline;
}

.breadcrumb li span {
    color: #aaa;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 768px) {
    .breadcrumb li span {
        max-width: 150px;
    }
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    clear: both;
    /* Prevent overlapping with floated content above */
}

.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Video Cards Enhancements */
.post-thumbnail.has-video {
    position: relative;
    overflow: hidden;
}

.video-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #d00000;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-badge svg {
    display: block;
    width: 22px;
    height: 22px;
    color: #fff;
}

.category-post-card:hover .video-badge,
.card:hover .video-badge {
    transform: scale(1.1);
    background: #ff0000;
    opacity: 1;
}

.video-preview-container {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 4;
    background: #000;
}

.video-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-post-card:hover .video-preview-container {
    opacity: 1;
}

.post-thumbnail img {
    position: relative;
    z-index: 1;
}

/* --- Responsive Video Fixes --- */
.entry-video-top,
.entry-content .wp-block-video,
.entry-content .wp-block-embed,
.wp-video,
.mejs-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem 0;
}

.mejs-container {
    margin: 0 !important;
}

.entry-video-top iframe,
.entry-content iframe:not(.instagram-media):not([src*="instagram"]):not([src*="twitter"]):not([src*="facebook"]):not([src*="threads"]):not([src*="google.com/maps"]) {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 1.5rem 0;
}

.entry-video-top video,
.entry-content video,
.wp-block-video video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    object-fit: contain !important;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.wp-block-video,
.wp-block-embed,
.mejs-container {
    clear: both !important;
}

/* Fix Tags Visibility and Spacing */
.entry-footer {
    margin: 3rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    clear: both;
    display: block;
    width: 100%;
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-dark);
    font-weight: 600;
}

.tags-links a {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 4px;
    color: #475569;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s;
}

.tags-links a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* YouTube specific overrides if needed, but the general rule above should cover it */
.wp-block-embed-youtube .wp-block-embed__wrapper {
    height: auto;
    padding-bottom: 0;
}

/* --- 404 Error Page Styles --- */
.error-404-page {
    padding: 4rem 0;
    min-height: 60vh;
}

.error-404-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.error-404-icon {
    margin-bottom: 2rem;
    animation: pulse-404 2s ease-in-out infinite;
}

@keyframes pulse-404 {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.error-404-icon svg {
    max-width: 100%;
    height: auto;
}

.error-404-text {
    margin-bottom: 3rem;
}

.error-404-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.error-404-description {
    font-size: 1.37rem;
    color: var(--color-meta);
    margin: 0;
    line-height: 1.6;
}

.error-404-search {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--color-light);
    border-radius: 12px;
}

.error-404-search h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 1.5rem 0;
}

.error-404-search .search-form {
    position: relative;
}

.error-404-search .search-field {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.error-404-search .search-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.1);
}

.error-404-search .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-404-search .search-submit:hover {
    background: #cc0000;
    transform: translateY(-50%) scale(1.05);
}

.error-404-links {
    margin-bottom: 4rem;
}

.btn-404-home {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--color-dark);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-404-home:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.3);
}

.btn-404-home svg {
    width: 20px;
    height: 20px;
}

.error-404-suggestions {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #eee;
}

.error-404-suggestions h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 2rem 0;
    text-align: center;
}

.error-404-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .error-404-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .error-404-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.error-404-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.error-404-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.error-404-post-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--color-light);
}

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

.error-404-post-card:hover .error-404-post-thumb img {
    transform: scale(1.1);
}

.error-404-post-content {
    padding: 1.25rem;
}

.error-404-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
}

.error-404-post-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.error-404-post-title a:hover {
    color: var(--color-primary);
}

.error-404-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-meta);
}

.error-404-post-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .error-404-page {
        padding: 2rem 0;
    }

    .error-404-icon svg {
        width: 150px;
        height: 150px;
    }

    .error-404-title {
        font-size: 2rem;
    }

    .error-404-description {
        font-size: 1rem;
    }

    .error-404-search {
        padding: 1.5rem;
    }

    .error-404-suggestions h3 {
        font-size: 1.5rem;
    }
}

/* --- Global Category Label Styling --- */
.news-cat-label {
    display: inline-block;
    font-family: var(--font-body) !important;
    color: #d00000 !important;
    /* Red from design */
    font-weight: 800 !important;
    /* Extra bold */
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

.news-cat-label a {
    color: inherit;
    text-decoration: none;
}

/* --- Author Byline (Discover E-E-A-T) --- */
.author-name a {
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.author-name a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* --- Author Page Header --- */
.author-header-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 2rem;
    margin: 2rem 0 3rem;
    border-radius: 8px;
    text-align: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .author-header-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 3rem;
        gap: 2rem;
    }
}

.author-header-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-header-info {
    flex: 1;
}

.author-role-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-page-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.1;
    color: var(--color-dark);
}

.author-bio {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
}

.author-website-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.author-website-link:hover {
    text-decoration: underline;
}

/* --- Ad Grid 4 (Block) --- */
.ad-grid-4-container {
    margin: 2rem auto;
}

.ad-grid-4-cols {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1x1 Stacking */
    gap: 1rem;
}

@media (min-width: 600px) {
    .ad-grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2x2 */
    }
}

@media (min-width: 992px) {
    .ad-grid-4-cols {
        grid-template-columns: repeat(4, 1fr);
        /* Desktop: 4x1 */
    }
}

.ad-grid-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.ad-grid-item img,
.ad-grid-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
    /* Vertical aspect ratio as requested */
    transition: transform 0.3s ease;
}

.ad-grid-item:hover img,
.ad-grid-item:hover video {
    opacity: 0.95;
    transform: scale(1.02);
}

.ad-placeholder-empty {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 2px dashed #ddd;
}

/* --- Fix for Standard Blocks Layout --- */
.wp-site-blocks .wp-block-columns,
body>.wp-block-columns,
main>.wp-block-columns,
.wp-block-columns {
    max-width: 1280px;
    /* Match .container */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;

}

.wp-block-columns.alignwide {
    max-width: 1400px;

}

.wp-block-columns.alignfull {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;

}

/* Live Coverage Styles */
.live-status-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: inherit;
}

.live-badge {
    background: #e11d48;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.live-pulse {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Modern Responsive Video Support */
.entry-content .wp-block-embed:not(.wp-block-embed-instagram):not(.wp-block-embed-twitter):not(.is-provider-instagram) .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: auto !important;
    display: block;
}

.entry-content .wp-block-embed:not(.wp-block-embed-instagram):not(.wp-block-embed-twitter):not(.is-provider-instagram) iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
}

/* Allow scripts to set height for vertical/native videos */
.wp-block-video,
.wp-video,
.mejs-container {
    width: 100% !important;
    max-width: 100%;
}

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

.live-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: livePulse 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.live-last-update {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 600;
}

.live-last-update i {
    margin-right: 6px;
    color: #e11d48;
}

.live-timeline-container {
    margin: 4rem 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 3rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
    color: #111;
    border-left: 4px solid #ff014f;
    padding-left: 1rem;
    line-height: 1;
}

.live-timeline {
    position: relative;
    padding-left: 2rem;
}

.live-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f0f0f0;
}

.live-update-item {
    position: relative;
    padding-bottom: 3rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1.5rem;
}

.live-update-item:last-child {
    padding-bottom: 0;
}

.live-update-marker {
    position: absolute;
    left: -1rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    background: #ccc;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #eee;
    z-index: 2;
    transform: translateX(-50%);
    margin-left: 1px;
}

.live-update-item:first-of-type .live-update-marker {
    background: #ff014f;
    box-shadow: 0 0 0 1px #ff014f;
}

.live-update-meta {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-update-time {
    font-weight: 700;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.live-update-item:first-of-type .live-update-time {
    color: #ff014f;
}

.live-update-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 0.75rem 0 !important;
    line-height: 1.3;
}

.live-update-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.featured-update-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
    cursor: pointer;
}

.featured-update-link:hover {
    background: #f9fafb;
}

.featured-update-link:last-child {
    border-bottom: none;
}

.featured-time {
    font-weight: 800;
    color: #e11d48;
    font-size: 0.9rem;
    white-space: nowrap;
}

.featured-text {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.live-update-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.featured-badge {
    background: #fff1f2;
    color: #ff014f;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid #fecdd3;
}

/* Home Page Live Badges */
.hero-live-badge,
.card-live-badge-lg {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.hero-live-badge .live-badge,
.card-live-badge-lg .live-badge {
    position: static !important;
}

.hero-live-badge-sm,
.card-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.hero-live-badge-sm .live-badge-sm,
.card-live-badge .live-badge-sm,
.hero-live-badge-sm .live-badge,
.card-live-badge .live-badge {
    position: static !important;
}

.live-badge-sm {
    background: #e11d48;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.live-badge-sm .live-pulse {
    width: 6px;
    height: 6px;
}

.card-media,
.tapa-rdc__featured-media {
    position: relative;
    overflow: hidden;
    display: block;
}

.card-media img {
    transition: transform 0.5s ease;
}

.card-media:hover img {
    transform: scale(1.05);
}

/* --- Recent Posts Widget Adaptation --- */
.widget_recent_entries .widget-title,
.wp-block-latest-posts__heading,
h2.wp-block-heading.recent-posts-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
    margin-bottom: 0;
}

.widget_recent_entries ul,
.wp-block-latest-posts {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: popular-counter;
}

.widget_recent_entries ul li,
.wp-block-latest-posts li {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eaeaea;
    margin: 0;
    counter-increment: popular-counter;
}

.widget_recent_entries ul li:last-child,
.wp-block-latest-posts li:last-child {
    border-bottom: none;
}

.widget_recent_entries ul li::before,
.wp-block-latest-posts li::before {
    content: counter(popular-counter) ".";
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
    color: #777;
    margin-right: 15px;
    min-width: 35px;
    flex-shrink: 0;
    margin-top: -4px;
}

.widget_recent_entries ul li a,
.wp-block-latest-posts li a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #111;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget_recent_entries ul li a:hover,
.wp-block-latest-posts li a:hover {
    color: var(--color-primary);
}

/* Hide extra meta to keep the list clean like the design */
.widget_recent_entries .post-date,
.wp-block-latest-posts .wp-block-latest-posts__post-author,
.wp-block-latest-posts .wp-block-latest-posts__post-date,
.wp-block-latest-posts .wp-block-latest-posts__post-excerpt,
.wp-block-latest-posts .wp-block-latest-posts__featured-image {
    display: none !important;
}

/* --- Quick Read Blocks (Lectura Rápida) --- */
.quick-read-block {
    background: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.quick-read-block .quick-read-title {
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-read-block ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.quick-read-block ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
    font-size: 1.05rem;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-read-block ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.quick-read-block ul li strong {
    color: #111;
    min-width: 100px;
}

/* --- Breadcrumbs styling --- */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '»';
    color: #ccc;
    font-size: 1rem;
    line-height: 1;
}

.breadcrumb a {
    color: var(--color-primary);
    transition: color 0.2s;
}

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

.breadcrumb span[aria-current="page"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
}

/* --- Mobile Harmony Updates --- */
@media (max-width: 768px) {
    .single-header {
        margin: 1.25rem 0;
        padding-bottom: 1rem;
    }

    .single-header .entry-title {
        font-size: 1.85rem !important;
        /* Harmonic size for mobile */
        line-height: 1.15 !important;
        letter-spacing: -0.01em;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .single-header .entry-lead {
        font-size: 1.05rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem;
    }

    .single-header .entry-meta-header {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 4px;
    }

    .entry-thumbnail-full {
        margin-bottom: 1.5rem;
    }

    .breadcrumb span[aria-current="page"] {
        max-width: 100px;
    }

    .hero-main-story .hero-title {
        font-size: 1.65rem !important;
        line-height: 1.15 !important;
    }

    .hero-side-story .side-title {
        font-size: 1.15rem !important;
    }
}

/* --- Inline Related Posts (Leé además) --- */
.inline-related-post {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inline-related-image {
    flex: 0 0 120px;
    width: 120px;
    line-height: 0;
}

.inline-related-image img {
    width: 100%;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

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

.inline-related-content {
    flex: 1;
}

.inline-related-label {
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.inline-related-link {
    font-weight: 700;
    color: #111;
    font-size: 1.1rem;
    line-height: 1.3;
    display: block;
    text-decoration: none;
}

.inline-related-link:hover {
    color: var(--color-primary);
}

@media (max-width: 580px) {
    .inline-related-post {
        gap: 15px;
    }

    .inline-related-image {
        flex: 0 0 100px;
        width: 100px;
    }

    .inline-related-image img {
        height: 65px;
    }

    .inline-related-link {
        font-size: 1rem;
    }
}

.inline-related-link {
    font-weight: 700;
    color: #111;
    font-size: 1.1rem;
    line-height: 1.3;
    display: block;
    text-decoration: none;
}

.inline-related-link:hover {
    color: var(--color-primary);
}

@media (max-width: 580px) {
    .inline-related-post {
        gap: 15px;
    }

    .inline-related-image {
        flex: 0 0 100px;
        width: 100px;
    }

    .inline-related-image img {
        height: 65px;
    }

    .inline-related-link {
        font-size: 1rem;
    }
}


/* --- 9. Site Footer Redesign --- */
.site-footer {
    background-color: #1a1a1a;
    color: #e5e7eb;
    padding: 4rem 0 0;
    font-family: var(--font-body);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

@media (min-width: 992px) {
    .footer-main-grid {
        grid-template-columns: 250px 1fr 200px;
        align-items: flex-start;
    }
}

/* Logo Column */
.footer-logo-box {
    background-color: #d44021;
    /* Orange from branding */
    padding: 20px;
    display: inline-block;
    width: 100%;
    max-width: 180px;
    border-radius: 4px;
}

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

.footer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.1;
}

.footer-logo-text span {
    display: block;
    font-weight: 400;
}

/* About Column */
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.37rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-staff-info p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #9ca3af;
}

.footer-staff-info strong {
    color: #d1d5db;
}

.footer-staff-info a {
    color: #9ca3af;
}

.footer-staff-info a:hover {
    color: #d44021;
}

.footer-contact-highlight {
    margin-top: 1.5rem !important;
}

.footer-contact-highlight a {
    color: #d44021 !important;
    font-weight: 700;
}

/* Social Column */
.footer-social-wrapper .header-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-wrapper .social-icon {
    background: #2a2a2a;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social-wrapper .social-icon:hover {
    background: #d44021;
    transform: translateY(-3px);
}

.footer-social-wrapper svg {
    width: 18px;
    height: 18px;
}

/* Bottom Bar */
.footer-bottom {
    background-color: #0a0a0a;
    padding: 1.5rem 0;
    border-top: 1px solid #222;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.8rem;
    color: #9ca3af;
}

.footer-bottom-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.footer-bottom-nav a {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

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

/* Mobile Tweaks */
@media (max-width: 767px) {
    .site-footer {
        padding-top: 3rem;
        text-align: center;
    }

    .footer-logo-box {
        margin: 0 auto;
    }

    .footer-social-wrapper .header-social-links {
        justify-content: center;
    }

    .footer-bottom-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* --- Mixed Ads Layout --- */
.layout-mixed-ads {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .layout-mixed-ads {
        grid-template-columns: 1.2fr 1fr 1fr;
        align-items: stretch;
    }
}

.mixed-col-1,
.mixed-col-2,
.mixed-col-3 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.news-card-main-left {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-main-left .card-media {
    flex: 1;
    aspect-ratio: auto;
    min-height: 250px;
}

.news-card-sub-mixed .card-media {
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
}

.news-card-sub-mixed .card-title {
    font-size: 1.37rem;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 0.5rem;
}

.mixed-ad-box {
    background: #fdfdfd;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.mixed-ad-box .np-ad-container {
    width: 100%;
}

@media (max-width: 991px) {
    .layout-mixed-ads {
        gap: 3rem;
    }
}

/* --- Layout Stability (CLS) --- */
.header-ad-container {
    min-height: 100px;
}

.ad-slot-sidebar_square {
    min-height: 250px;
}

.ad-slot-sidebar_sticky {
    min-height: 600px;
}

.ad-slot-header_top {
    min-height: 90px;
}

.tapa-rdc__ad-slot {
    background: #f9f9f9;
}

/* Ensure ads don't collapse if empty in editor but keep them stable on frontend */
.np-ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* --- Block Header Styles (Premium) --- */
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.block-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}

.block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.title-square {
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('assets/images/badge.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    flex-shrink: 0;
}

.view-all {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.view-all:hover {
    gap: 8px;
    opacity: 0.8;
}

.view-all .arrow {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .view-all {
        align-self: flex-end;
    }
}

/* --- Block Spacing & Layout Breathing --- */
.news-grid-block,
.cnn-featured-post-block,
.cnn-secondary-list-block {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (max-width: 768px) {

    .news-grid-block,
    .cnn-featured-post-block,
    .cnn-secondary-list-block {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Social Share Buttons */
.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.social-share-buttons .share-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-meta);
    margin-right: 5px;
}

.social-share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.social-share-buttons .share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    opacity: 0.9;
}

.social-share-buttons .share-btn svg {
    pointer-events: none;
}

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

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

.share-x {
    background-color: #000000;
}

.share-telegram {
    background-color: #0088cc;
}

/**
 * Corrección de Grillas para Escritorio y Mobile 
 */

/* 1. Contenedor Padre (Desktop por defecto) */
.wp-block-columns {
    display: flex !important;
    flex-direction: row !important; /* Fuerza a que se pongan de costado en PC */
    flex-wrap: wrap !important;
    gap: 24px !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
}

/* 2. Reseteo de las columnas hijas */
.wp-block-column {
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important; /* Evita que anuncios o textos largos rompan la grilla */
}

/* 3. Forzar porcentajes exactos restando el GAP en Desktop */
/* Estructura 70/30 (Contenido + Publicidad) */
.wp-block-column[style*="width:70%"],
.wp-block-column[style*="width:70"] {
    flex: 0 0 calc(70% - 12px) !important;
    width: calc(70% - 12px) !important;
}
.wp-block-column[style*="width:30%"],
.wp-block-column[style*="width:30"] {
    flex: 0 0 calc(30% - 12px) !important;
    width: calc(30% - 12px) !important;
}

/* Estructura 25/25/25/25 (Grilla de 4) */
.wp-block-column[style*="width:25%"],
.wp-block-column[style*="width:25"] {
    flex: 0 0 calc(25% - 18px) !important;
    width: calc(25% - 18px) !important;
}

/* Estructura 15/70/15 (Centrado con laterales) */
.wp-block-column[style*="width:15%"],
.wp-block-column[style*="width:15"] {
    flex: 0 0 calc(15% - 16px) !important;
    width: calc(15% - 16px) !important;
}

/* 4. Comportamiento Responsivo (Mobile) */
@media (max-width: 767px) {
    .wp-block-columns {
        flex-direction: column !important; /* Rompe el row de PC y los manda abajo */
        gap: 28px !important;
    }

    .wp-block-column {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* ==========================================================================
   Editorial Single Article Layout
   ========================================================================== */

/* Breadcrumb */
.editorial-breadcrumb {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #666;
}
.editorial-breadcrumb a {
    color: #333;
    text-decoration: none;
}
.editorial-breadcrumb a:hover {
    color: var(--primary-color, #d32f2f);
}

/* Category Label */
.editorial-category-label {
    margin-bottom: 0.5rem;
}
.editorial-category-label a {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color, #d32f2f);
    text-decoration: none;
    letter-spacing: 1px;
}
.editorial-category-label a:hover {
    text-decoration: underline;
}

/* Title */
.single-header .editorial-title {
    font-family: var(--heading-font, sans-serif);
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.25;
    font-weight: 900;
    color: #111;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* Lead / Copete */
.editorial-lead {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.4;
    color: #444;
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

/* Meta Data */
.editorial-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-family: var(--body-font, sans-serif);
}
.meta-author {
    font-size: 14px;
}
.meta-by {
    color: #666;
}
.meta-author-name a {
    font-weight: 700;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
}
.meta-author-name a:hover {
    color: var(--primary-color, #d32f2f);
}
.meta-date {
    font-size: 13px;
    color: #777;
}

@media (min-width: 768px) {
    .editorial-meta {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .editorial-meta::before {
        content: "";
        display: none;
    }
}

/* Share Bar */
.editorial-share-bar {
    margin-bottom: 1.5rem;
}
.custom-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.custom-share-buttons .btn-share {
    display: inline-flex;
    align-items: center;
    height: 38px;
    border-radius: 19px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    font-family: var(--body-font, sans-serif);
}
.custom-share-buttons .btn-share:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
}
.custom-share-buttons .btn-share svg {
    flex-shrink: 0;
}
.custom-share-buttons .share-text {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #e0e0e0;
    line-height: 1.2;
}
.editorial-share-bar-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Main Image & Caption */
.editorial-main-image {
    margin-bottom: 2rem;
    width: 100%;
}
.editorial-main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.caption-editorial {
    font-size: 13px;
    color: #666;
    margin-top: 0.75rem;
    text-align: left;
    font-family: var(--body-font, sans-serif);
}
.caption-prefix {
    font-weight: 700;
    color: #333;
}

/* Content Body */
.editorial-content {
    max-width: 760px;
    margin: 0 auto 0 0;
    font-size: 18px;
    line-height: 1.75;
    color: #222;
}
@media (min-width: 768px) {
    .editorial-content {
        font-size: 20px;
    }
}
.editorial-content p {
    margin-bottom: 1.5rem;
}
.editorial-content h2, 
.editorial-content h3 {
    font-family: var(--heading-font, sans-serif);
    font-weight: 700;
    color: #111;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.editorial-content h2 {
    font-size: 28px;
}
.editorial-content h3 {
    font-size: 24px;
}
.editorial-content a {
    color: var(--primary-color, #d32f2f);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.editorial-content a:hover {
    color: #111;
}
.editorial-content blockquote {
    border-left: 4px solid var(--primary-color, #d32f2f);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 22px;
    font-style: italic;
    color: #333;
}
.editorial-content ul, 
.editorial-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.editorial-content li {
    margin-bottom: 0.5rem;
}

/* Ads spacing */
.ad-container {
    margin: 2rem 0;
    min-height: 250px;
}
.sidebar-ad {
    margin-top: 0;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .single-article-layout {
        padding: 0 16px;
    }
    .editorial-main-image {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }
    .editorial-main-image img {
        border-radius: 0;
    }
    .caption-editorial {
        padding: 0 16px;
    }
}

/* ============================================================
   FIX: Evitar que imágenes desborden la columna de contenido
   hacia el sidebar en el layout de entrada.
   ============================================================ */

/* La columna de contenido debe respetar su celda de grid */
.content-column {
    min-width: 0;
    overflow: hidden;
}

/* Imagen destacada: nunca más ancha que su contenedor */
.entry-thumbnail-full {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.entry-thumbnail-full img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Imágenes dentro del contenido: contenidas siempre */
.entry-content img,
.entry-content figure img,
.entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Bloques de imagen: no pueden superar el ancho disponible */
.entry-content .wp-block-image,
.entry-content figure {
    max-width: 100%;
    overflow: hidden;
}
.logo-footer img {
    width: 150px;
}


.header-ad-container.container {
    display: none;
}