/* =========================================================================
   Variables & Design Tokens (News Portal Theme)
   ========================================================================= */
:root {
    /* Color Palette - Clean, high contrast */
    --color-bg: #FFFFFF;
    /* Clean white background for reading */
    --color-bg-alt: #F3F4F6;
    /* Light grey for distinct sections */
    --color-surface: #FFFFFF;
    --color-surface-hover: #F9FAFB;
    --color-border: #E5E7EB;

    /* Category Colors */
    --color-primary: #1D4ED8;
    /* Professional Blue (NBC style) */
    --color-mexica: #B91C1C;
    /* Red */
    --color-mexico: #047857;
    /* Green */
    --color-cultura: #7E22CE;
    /* Purple */
    --color-raices: #B45309;
    /* Amber/Brown */
    --color-politica: #0F172A;
    /* Slate/Black */
    --color-arte: #BE185D;
    /* Pink/Rose */
    --color-cine: #0369A1;
    /* Light Blue */

    --color-text-main: #111827;
    /* Dark text for readability */
    --color-text-muted: #6B7280;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    /* Strong impactful headers */
    --font-body: 'Inter', sans-serif;
    /* Clean highly readable body */

    /* Spacing & Layout */
    --container-width: 1280px;
    /* Slightly wider for news grid */
    --section-padding: 3rem 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

ul {
    list-style: none;
}

/* =========================================================================
   Utilities & Layout
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding-small {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Common News Badge */
.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.mexica-badge {
    background: var(--color-mexica);
}

.cultura-badge {
    background: var(--color-cultura);
}

.politica-badge {
    background: var(--color-politica);
}

/* Common Image Hover Scale */
.hero-image-wrapper,
.video-thumbnail,
.news-image,
.list-image {
    overflow: hidden;
    position: relative;
}

.hero-image-wrapper img,
.video-thumbnail img,
.news-image img,
.list-image img {
    transition: transform 0.6s ease;
}

a:hover img {
    transform: scale(1.05);
}

/* =========================================================================
   Header (Adapted for Dark Theme)
   ========================================================================= */
.site-header {
    background: var(--color-politica);
    /* Maching footer */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.custom-logo-link img {
    max-height: 50px;
    width: auto;
    display: block;
    transition: max-height var(--transition-base);
}

.site-header.scrolled .custom-logo-link img {
    max-height: 40px;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: white;
    line-height: 1;
}

.site-title a {
    color: white;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

/* Desktop Nav - Light Text */
.main-navigation ul {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0 auto;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.8);
    /* Lighter gray on dark bg */
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.main-navigation a:hover {
    color: white;
}

/* Mega Menu Support */
.main-navigation {
    position: static;
}

.main-navigation ul {
    position: static;
    /* Allow mega menu to position relative to nav */
}

.menu-item-has-children {
    position: static;
    /* Changed from relative for Mega Menu */
}

.main-navigation .sub-menu {
    position: absolute !important;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-politica);
    /* Maching header */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 1000;

    /* Mega Menu Grid Layout */
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.sub-menu a:hover {
    color: white;
    background: transparent;
}

/* Header Actions (Icons + Live) */
.header-right-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid var(--color-border);
    padding-left: 1rem;
}

.live-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-mexica);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
}

.live-link:hover {
    color: var(--color-mexica);
}

.blinking-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-mexica);
    border-radius: 50%;
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.icon-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    /* Adjusted for dark bg */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.icon-btn:hover {
    color: white;
    /* Hover state for dark bg */
    transform: scale(1.1);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.95);
    /* Darker blur for overlay */
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.search-overlay-close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.search-overlay-close::before,
.search-overlay-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.4s ease;
}

.search-overlay-close::before { transform: rotate(45deg); }
.search-overlay-close::after { transform: rotate(-45deg); }

.search-overlay-close:hover {
    background: var(--color-mexica);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 30px rgba(230, 0, 35, 0.4);
}

.search-overlay-close:hover::before,
.search-overlay-close:hover::after {
    background: white;
}

.search-overlay-content {
    width: 100%;
    max-width: 900px;
    padding: 0 2rem;
    text-align: center;
}

.search-form-cinematic {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.search-form-cinematic:focus-within {
    border-color: var(--color-mexica);
}

.search-field-cinematic {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    font-family: var(--font-heading);
    outline: none;
}

.search-field-cinematic::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit-cinematic {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.search-submit-cinematic:hover {
    opacity: 1;
    color: var(--color-mexica);
}

.search-suggestions {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.search-suggestions span {
    color: white;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-suggestions span:hover {
    color: var(--color-mexica);
}

@media (max-width: 768px) {
    .search-field-cinematic {
        font-size: 1.8rem;
    }
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-submit {
    margin-left: 1rem;
    border-radius: 4px;
}

/* Mobile Only Elements */
.mobile-menu-header,
.mobile-menu-footer,
.menu-close,
.mobile-logo,
.site-title-mobile {
    display: none;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 2px;
}

/* =========================================================================
   News Hero Grid (1 Large, 2 Small)
   ========================================================================= */
.news-hero-section {
    padding-top: 2rem;
}

.news-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.hero-link {
    display: block;
    height: 100%;
    position: relative;
}

.hero-item {
    position: relative;
}

/* Main Large Image */
.hero-main .hero-image-wrapper {
    height: 500px;
    border-radius: 4px;
}

.hero-main .hero-image-wrapper img {
    height: 100%;
    width: 100%;
}

.hero-main .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    color: white;
}

.hero-main .hero-title {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.hero-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small Stacked Images */
.hero-secondary-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-small {
    height: calc((500px - 1.5rem) / 2);
    /* Half of large minus gap */
}

.hero-small .hero-image-wrapper {
    height: 100%;
    border-radius: 4px;
}

.hero-small .hero-image-wrapper img {
    height: 100%;
    width: 100%;
}

.hero-small .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: white;
}

.hero-small .hero-title-small {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hero-meta {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-small .hero-meta {
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================================================
   Video Gallery
   ========================================================================= */
.section-header-news {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-title-news {
    font-size: 1.75rem;
    margin: 0;
    text-transform: uppercase;
}

.view-all-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

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

.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-responsive-container iframe,
.video-responsive-container object,
.video-responsive-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    /* Stretch to grid track height */
    max-height: 480px;
    /* Force scroll before it gets too tall */
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for the playlist */
.video-sidebar-list::-webkit-scrollbar {
    width: 6px;
}

.video-sidebar-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.video-sidebar-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.video-sidebar-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.video-list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    align-items: center;
    background: #fff;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.video-list-item:hover {
    background: var(--color-surface-hover);
}

.video-list-thumbnail {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.video-list-item:hover .play-button-small {
    background: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-small svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.video-list-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-list-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* =========================================================================
   Category Blocks (Grid with 1 Main + List)
   ========================================================================= */
.category-border-top {
    border-top: 4px solid var(--color-border);
    padding-top: 1rem;
}

/* Dynamic border colors per category requested */
.border-mexica {
    border-color: var(--color-mexica);
}

.border-mexico {
    border-color: var(--color-mexico);
}

.border-noti {
    border-color: var(--color-primary);
}

/* Newly requested */
.border-cultura {
    border-color: var(--color-cultura);
}

.border-ciudadano-mexicano {
    border-color: var(--color-mexico);
}

/* Using green as distinct */
.border-raices {
    border-color: var(--color-raices);
}

.border-politica {
    border-color: var(--color-politica);
}

.border-arte {
    border-color: var(--color-arte);
}

.border-cine {
    border-color: var(--color-cine);
}

.border-mexica-gourmet {
    border-color: #f59e0b;
}

/* Orange/Gold for Gourmet */
.border-agricola-mexicana {
    border-color: #10b981;
}

/* Emerald Green for Agricola */
.border-agro-mexico {
    border-color: #059669;
}

/* Dark Green for Agro */
.border-politico-mexicano {
    border-color: var(--color-politica);
}

/* Red/Dark Red for Politica */

/* =========================================================================
   Mexica Originals Carousel
   ========================================================================= */
.mexica-originals-wrapper {
    background-color: #111827;
    /* Dark background */
    color: white;
}

.header-originals .section-title-news {
    color: white;
}

.originals-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.originals-carousel::-webkit-scrollbar {
    height: 8px;
}

.originals-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.originals-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.originals-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.original-poster-card {
    flex: 0 0 260px;
    /* Fixed width for poster */
    scroll-snap-align: start;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 380px;
    /* Poster aspect ratio */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.poster-link {
    display: block;
    width: 100%;
    height: 100%;
}

.poster-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.poster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.poster-play-btn {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all var(--transition-base);
}

.poster-play-btn svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.poster-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: white;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.poster-content .category-badge {
    position: relative;
    top: 0;
    left: 0;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.poster-title {
    color: white;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.poster-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Hover Effects Desktop */
@media (hover: hover) {
    .original-poster-card:hover .poster-image img {
        transform: scale(1.05);
    }

    .original-poster-card:hover .poster-overlay,
    .original-poster-card:hover .poster-play-btn {
        opacity: 1;
    }

    .original-poster-card:hover .poster-play-btn {
        transform: translate(-50%, -50%) scale(1);
    }

    .original-poster-card:hover .poster-content {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   Noti (Background Image Grid)
   ========================================================================= */
.noti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.noti-bg-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.noti-bg-link {
    display: block;
    height: 100%;
}

.noti-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.noti-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.noti-bg-card:hover .noti-bg-image img {
    transform: scale(1.05);
}

.noti-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.noti-bg-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    color: white;
    z-index: 2;
}

.noti-bg-title {
    color: white;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.noti-bg-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================================================
   Canal Ciudadano Mexicano
   ========================================================================= */
.section-subtitle-news {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.ciudadano-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.ciudadano-main-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.ciudadano-image {
    height: 350px;
}

.ciudadano-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ciudadano-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ciudadano-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ciudadano-excerpt {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ciudadano-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.btn-read-more {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
    margin-top: auto;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-read-more:hover {
    background: #1e3a8a;
    /* Darker blue */
    transform: translateY(-2px);
    color: white;
}

.ciudadano-notes-list {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-list-header {
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--color-text-main);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.ciudadano-note-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.ciudadano-note-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ciudadano-note-link {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.note-date {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.note-content {
    flex: 1;
}

.note-title {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.note-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.news-list-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
}

.featured-news-card .news-image {
    height: 350px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.featured-news-card .news-image img {
    height: 100%;
    width: 100%;
}

.featured-news-card .news-title {
    font-size: 1.5rem;
}

.featured-news-card .news-excerpt {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.news-card .news-meta {
    color: var(--color-text-muted);
    /* Overriding white meta for white background layout */
}

/* Side List */
.news-side-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-link {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: start;
}

.list-image {
    height: 90px;
    border-radius: 4px;
}

.list-image img {
    height: 100%;
    width: 100%;
}

.list-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.list-content .news-meta {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-text-muted);
}

/* =========================================================================
   Recent News & Weather
   ========================================================================= */
.recent-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Custom Recent News Featured */
.recent-news-featured {
    margin-bottom: 0.5rem;
}

.recent-featured-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.recent-featured-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.recent-featured-content {
    padding-right: 1rem;
}

.recent-featured-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.recent-featured-excerpt {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.recent-featured-image {
    height: 100%;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.recent-featured-link:hover .recent-featured-image img {
    transform: scale(1.05);
}

/* 3 Background Cards Below */
.recent-news-cards-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.recent-bg-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bg-card-link {
    display: block;
    height: 100%;
}

.bg-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.recent-bg-card:hover .bg-card-image img {
    transform: scale(1.05);
}

.bg-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.bg-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    color: white;
    z-index: 2;
}

.bg-card-title {
    color: white;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.bg-card-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.weather-sidebar {
    height: 100%;
}

.weather-widget {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 8px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

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

.weather-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.weather-location {
    font-size: 0.9rem;
    opacity: 0.9;
    top: 0;
}

.weather-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon {
    width: 64px;
    height: 64px;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.weather-details p {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Updated Weather Widget for Forecast */
.weather-forecast {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.forecast-day .day-name {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.sm-weather-icon {
    width: 24px;
    height: 24px;
}

.forecast-day .day-temp {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* =========================================================================
   Mexica Originals Section
   ========================================================================= */
.mexica-originals-wrapper {
    background-color: #111827;
    color: white;
}

.header-originals .section-title-news,
.header-originals .view-all-link {
    color: white;
}

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

.original-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.original-link {
    display: block;
    height: 100%;
    color: white;
}

.original-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.original-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.original-card:hover .original-image-bg img {
    transform: scale(1.05);
}

.original-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.original-main {
    height: 500px;
}

.originals-secondary-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.original-small {
    /* Height calculation for 3 stacked items: total height minus 2 gaps (1.5rem each) divided by 3 */
    height: calc((500px - 3rem) / 3);
}

.original-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
}

.original-title {
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.original-title-small {
    font-size: 1.1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    color: white;
}

.original-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.original-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 600;
}

/* =========================================================================
   Single Post Hero & Content
   ========================================================================= */
.post-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    background-color: var(--color-politica);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 3rem;
}

.post-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.post-hero-category {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.post-hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white;
}

.post-hero-excerpt {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.post-hero-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.post-share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

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

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

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

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

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

.share-copy:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.post-reading-area {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

/* =========================================================================
   Sticky Share Bar
   ========================================================================= */
.sticky-share-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-share-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-share-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-share-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-main);
    display: none;
    /* Hidden on mobile by default */
}

.sticky-share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    /* Full width center on mobile */
}

@media (min-width: 768px) {
    .sticky-share-title {
        display: block;
    }

    .sticky-share-buttons {
        width: auto;
        justify-content: flex-end;
    }
}

.sticky-share-buttons .share-btn {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.sticky-share-buttons .share-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.sticky-share-buttons .share-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.sticky-share-buttons .share-whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

/* =========================================================================
   Footer (Adapted for Light Theme)
   ========================================================================= */
.site-footer {
    background-color: var(--color-politica);
    /* Dark footer */
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: #9CA3AF;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-heading {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

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

.footer-menu-list li {
    margin-bottom: 0.75rem;
}

.footer-menu-list a {
    color: #9CA3AF;
    transition: color var(--transition-fast);
}

.footer-menu-list a:hover {
    color: white;
}

.contact-column p {
    color: #9CA3AF;
    margin-bottom: 0.75rem;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #374151;
    border-radius: 50%;
    color: #9CA3AF;
    transition: all var(--transition-fast);
}

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

.social-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.footer-logo-placeholder {
    display: inline-block;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-logo-placeholder:hover {
    opacity: 1;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9CA3AF;
}

/* =========================================================================
   Animations
   ========================================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */
@media (max-width: 1024px) {
    .news-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main .hero-image-wrapper {
        height: 400px;
    }

    .hero-secondary-wrap {
        flex-direction: row;
    }

    .hero-small {
        flex: 1;
        height: 250px;
    }

    .news-list-grid,
    .recent-news-grid,
    .originals-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .weather-widget {
        position: static;
    }

    .news-side-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Side by side on tablet */
    }

    .video-playlist-grid {
        grid-template-columns: 1fr;
    }

    .originals-secondary-wrap {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .original-small {
        flex: 1;
        min-width: 200px;
        height: 250px;
    }
}

    /* Mobile Navigation logic unified later in file */


/* =========================================================================
   Live Page Styles
   ========================================================================= */

.live-page-container {
    background-color: var(--color-bg);
    /* matches theme */
}

/* Live Hero Section */
.live-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background-color: var(--color-politica);
    /* Dark background for cinema feel */
    color: #fff;
    min-height: calc(100vh - 80px);
    /* Fill screen below header */
}

.live-video-player {
    position: relative;
    width: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-video-player video {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.live-indicator {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(220, 38, 38, 0.9);
    /* Red indicator */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.current-channel-title {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    z-index: 10;
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.live-channels-list {
    background-color: #1a202c;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.channels-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.channels-header h3 {
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.25rem;
}

#channel-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* Custom Scrollbar for Channels */
#channel-list::-webkit-scrollbar {
    width: 8px;
}

#channel-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

#channel-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#channel-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.channel-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.channel-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-mexica);
}

.channel-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.channel-info {
    display: flex;
    flex-direction: column;
}

.channel-info strong {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.channel-info span {
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Live Gallery Sections */
.gallery-channel-row {
    margin-bottom: 3rem;
}

.gallery-main-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text-main);
}

.channel-header-bar {
    border-top: 4px solid var(--color-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.channel-header-bar h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--color-text-main);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all var(--transition-fast);
}

.video-card:hover .play-button-overlay {
    opacity: 1;
    background: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-overlay svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}

.video-duration {
    display: inline-block;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    position: absolute;
    bottom: calc(100% - 1.5rem);
    /* Assuming it sits relative to thumbnail */
    right: 0.5rem;
    z-index: 5;
}

.video-card {
    position: relative;
}

.video-card .video-thumbnail {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    aspect-ratio: 16/9;
}

.video-card h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .live-hero {
        grid-template-columns: 1fr;
    }

    .live-video-player {
        height: 50vh;
    }

    .live-channels-list {
        max-height: 40vh;
    }
}

@media (max-width: 768px) {
    .current-channel-title {
        font-size: 1.75rem;
        bottom: 1rem;
        left: 1rem;
    }

    .live-indicator {
        top: 1rem;
        left: 1rem;
    }
}
/* =========================================================================
   Gourmet Page Specific Styles
   ========================================================================= */
.gourmet-hero-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    min-height: 500px;
}

.gourmet-slider-container {
    position: relative;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gourmet-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    padding: 4rem;
}

.gourmet-slide.is-active {
    opacity: 1;
    z-index: 5;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    color: white;
}

.slide-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-excerpt {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.slide-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.is-active {
    background: white;
    transform: scale(1.3);
}

/* Sidebar Column */
.restaurants-list-card {
    background: white;
    border-radius: 12px;
    height: 100%;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-header-gourmet {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-text-main);
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: var(--color-mexica);
    font-weight: 800;
    text-transform: uppercase;
}

.restaurants-list {
    flex: 1;
}

.restaurant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.res-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.res-tag {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.res-rating {
    font-weight: 800;
    color: #f59e0b;
    font-size: 0.9rem;
}

.view-all-restaurants {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .gourmet-hero-layout {
        grid-template-columns: 1fr;
    }
    
    .gourmet-sidebar-column {
        order: 2;
    }
    
    .gourmet-slider-column {
        order: 1;
        height: 400px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .gourmet-slide {
        padding: 2rem;
    }
    
    .slider-controls {
        left: 2rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
}

/* =========================================================================
   Noti Page Specific Styles (Masonry & Submenu)
   ========================================================================= */
.noti-category-nav {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.noti-submenu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.noti-submenu a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.noti-submenu li.active a,
.noti-submenu a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Masonry Hero Grid */
.noti-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    padding: 2rem 0;
}

.noti-hero-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.masonry-large {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-small {
    grid-column: span 1;
    grid-row: span 1;
}

.masonry-link {
    display: block;
    height: 100%;
    position: relative;
}

.masonry-image {
    height: 100%;
}

.masonry-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    z-index: 2;
}

.masonry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 3;
    color: white;
}

.masonry-title {
    font-size: 1.1rem;
    line-height: 1.3;
    color: white;
    margin: 0;
}

/* Noti Slideshow (Special Masonry Large) */
.noti-slideshow-container {
    background: #000;
}

.noti-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.noti-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.noti-badge {
    display: inline-block;
    background: var(--color-mexica);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.btn-read-more {
    display: inline-block;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 3px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .noti-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .noti-masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    
    .masonry-large {
        grid-row: span 1;
    }
    
    .noti-submenu {
        gap: 1rem;
    }
}

/* =========================================================================
   Home Page Hero Redesign (Slider & Square Corners)
   ========================================================================= */
.news-hero-grid {
    gap: 0 !important;
}

.news-hero-grid .hero-item,
.news-hero-grid .hero-image-wrapper,
.news-hero-grid .hero-main .hero-image-wrapper,
.news-hero-grid .hero-small .hero-image-wrapper {
    border-radius: 0 !important;
}

.home-hero-slider-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.home-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.home-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 5;
}

.home-slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.home-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-slider-dot.is-active {
    background: white;
    transform: scale(1.2);
}

/* Ensure no shadows or rounding in hero */
.hero-item {
    box-shadow: none !important;
}

.news-hero-grid .article {
    border-radius: 0 !important;
}

/* Full Bleed Hero Section */
.section-full-bleed {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.section-full-bleed .news-hero-grid {
    max-width: 100% !important;
    width: 100% !important;
}

/* =========================================================================
   Cinematic Hero Slideshow
   ========================================================================= */
.cinematic-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
}

.cinematic-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.cinematic-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
}

.cinematic-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.cinematic-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cinematic-video-bg,
.cinematic-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cinematic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.cinematic-content-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
}

.cinematic-content {
    max-width: 600px;
    color: white;
    padding-left: 2rem;
}

.cinematic-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.cinematic-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.cinematic-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    background: var(--color-mexica);
    color: white;
    transition: all 0.3s ease;
}

.cinematic-btn:hover {
    background: white;
    color: var(--color-mexica);
    transform: translateY(-3px);
}

.play-icon {
    width: 24px;
    height: 24px;
}

.cinematic-controls {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cinema-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cinema-dot.is-active {
    background: white;
    border-color: var(--color-mexica);
    transform: scale(1.3);
}

/* Animations */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease forwards;
}

.is-active .fade-in-left {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .cinematic-hero { 
        height: 60vh !important; 
        min-height: 400px !important; 
    }
    .cinematic-content { 
        padding-left: 1.5rem; 
        padding-right: 1.5rem; 
        text-align: center; 
        margin: 0 auto; 
    }
    .cinematic-title { 
        font-size: 1.8rem !important; 
        line-height: 1.2;
    }
    .cinematic-description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
    }
    .cinematic-overlay { 
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%) !important; 
    }
}

/* YouTube Background for Cinematic Hero */
.cinematic-youtube-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.cinematic-youtube-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Adjust overlay to be slightly darker for YouTube contrast */
.cinematic-slide .cinematic-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}

/* YouTube Background Coverage Improvement */
@media (min-aspect-ratio: 16/9) {
    .cinematic-youtube-bg {
        width: 100%;
        height: auto;
    }
}
@media (max-aspect-ratio: 16/9) {
    .cinematic-youtube-bg {
        width: auto;
        height: 100%;
    }
}

.cinematic-youtube-wrapper {
    background: #000;
}

/* Full Screen Cinematic Hero (True 100vh) */
.cinematic-hero {
    height: 100vh !important;
    min-height: 100vh !important;
}

.cinematic-youtube-bg {
    width: 100vw !important;
    height: 100vh !important;
}

/* Hide Cinematic Controls as requested */
.cinematic-controls {
    display: none !important;
}

/* Consolidating header styles further down for easier maintenance */

/* =========================================================================
   Mexica Originals Carousel
   ========================================================================= */
.originals-carousel-section {
    overflow: hidden;
    padding-bottom: 4rem;
}

.container-full {
    width: 100%;
}

.padding-left-standard {
    padding-left: 2rem;
}

.originals-carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 2rem 2rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.originals-carousel-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.original-card {
    flex: 0 0 300px;
    transition: transform 0.3s ease;
}

.original-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.original-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.original-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(185, 28, 28, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.original-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    width: 24px;
    height: 24px;
}

.original-content {
    margin-top: 1rem;
}

.original-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.original-meta {
    font-size: 0.8rem;
    color: var(--color-mexica);
    font-weight: 800;
    text-transform: uppercase;
}

.carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.carousel-prev, .carousel-next {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--color-mexica);
    border-color: var(--color-mexica);
}

/* Hero Text Visibility Refinement */
.cinematic-title {
    text-shadow: 2px 4px 8px rgba(0,0,0,0.8);
}

.cinematic-description {
    text-shadow: 1px 2px 4px rgba(0,0,0,0.8);
    font-size: 1.3rem;
    max-width: 700px;
}

.cinematic-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
}

/* Vertical Dots Navigation for Hero */
.cinematic-controls-vertical {
    position: absolute;
    right: 2rem;
    bottom: 4rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cinema-dot-v {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.cinema-dot-v.is-active {
    background: var(--color-mexica);
    border-color: white;
    transform: scale(1.3);
}

.cinema-dot-v:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Deep Clean YouTube UI - Cropping edges to hide title and logo */
.cinematic-youtube-bg {
    transform: translate(-50%, -50%) scale(1.35) !important; /* Scale up to push UI elements outside the container */
    pointer-events: none !important;
}

.cinematic-youtube-wrapper {
    pointer-events: none !important;
    background: #000;
}

/* 1/3 Sidebar Layout for Hero Content */
.cinematic-content {
    width: 33.33vw !important;
    min-width: 350px !important;
    height: 100vh !important;
    max-width: none !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 4rem !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    z-index: 20 !important;
}

.cinematic-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    margin-bottom: 2rem !important;
}

.cinematic-description {
    font-size: 1.1rem !important;
    margin-bottom: 3rem !important;
    line-height: 1.5;
}

/* Adjust overlay to not conflict with sidebar */
.cinematic-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%) !important;
}

@media (max-width: 768px) {
    .cinematic-content {
        width: 100% !important;
        min-width: 100% !important;
        height: 100% !important;
        padding: 2rem !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-right: none !important;
        text-align: center !important;
        align-items: center !important;
    }
}

/* Floating Hero Content Box with Margins */
.cinematic-content {
    height: auto !important;
    max-height: calc(100vh - 8rem) !important;
    margin: 4rem 0 4rem 4rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 768px) {
    .cinematic-content {
        margin: 2rem !important;
        max-height: calc(100% - 4rem) !important;
    }
}

/* Centered-Left Floating Hero Content Box Refinement */
.cinematic-content {
    margin: 4rem !important; /* Margins on all sides */
    padding: 3rem !important; /* Padding on all sides */
    width: clamp(350px, 33.33vw, 500px) !important; /* Constrain width better */
}

.cinematic-title {
    color: #ffffff !important; /* Explicit bright white */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.cinematic-description {
    color: rgba(255, 255, 255, 0.95) !important;
}

@media (max-width: 768px) {
    .cinematic-content {
        margin: 1.5rem !important;
        padding: 2rem !important;
        width: calc(100% - 3rem) !important;
    }
}

/* Removing Hero Content Box Background - Leaving only Text */
.cinematic-content {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 600px !important; /* Restore a reasonable width for text only */
    max-width: 80% !important;
    margin-left: 10% !important; /* Center-leftish positioning */
}

.cinematic-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9) !important;
}

.cinematic-description {
    text-shadow: 1px 1px 10px rgba(0,0,0,0.9) !important;
    font-size: 1.2rem !important;
}

@media (max-width: 768px) {
    .cinematic-content {
        width: 90% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
}

/* TikTok Carousel Styling - Refined Light Theme */
.tiktok-carousel-section {
    background: #f8fafc; /* Light color as requested */
    padding: 4rem 0;
    margin: 4rem 0; /* Add margins between sections */
    border-radius: 20px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.tiktok-carousel-section .section-title-news {
    color: #1e293b !important; /* Dark title for light background */
}

.tiktok-feed-wrapper {
    padding: 0 4rem;
    min-height: 400px;
}

/* Ensure TikTok feed elements look good in light theme */
.tiktok-feed-wrapper iframe, 
.tiktok-feed-wrapper .tiktok-feed {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .tiktok-carousel-section {
        width: 100%;
        margin: 2rem 0;
        padding: 2rem 0;
        border-radius: 0;
    }
    .tiktok-feed-wrapper {
        padding: 0 1rem;
    }
}

.tiktok-grid-native {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 2rem 2.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.tiktok-native-item {
    flex: 0 0 325px;
    min-width: 325px;
    min-height: 580px; /* Approximate height for TikTok player */
    background: rgba(255, 255, 255, 0.05); /* Subtle background for loading state */
    border-radius: 12px;
}

.tiktok-native-item iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
}

.tiktok-grid-native::-webkit-scrollbar {
    height: 6px;
}

.tiktok-grid-native::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.tiktok-grid-native::-webkit-scrollbar-thumb {
    background: var(--color-mexica);
    border-radius: 10px;
}

/* Comments Styling */
.comments-area {
    margin-top: 4rem;
}

.comments-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: 12px;
}

.comment-body .comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-content {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.comment-reply-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-mexica);
    text-decoration: none;
}

.comment-respond {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    margin-bottom: 1rem;
}

.comment-form .submit {
    cursor: pointer;
}

/* WordPress System Compatibility Styles */
.archive-area, .search-results-area, .error-404-area {
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: 60vh;
}

.page-header.section-header {
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--color-mexica);
    display: inline-block;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--color-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
/* Category Portal Slideshow Styles */
.portal-hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background: var(--color-bg);
    overflow: hidden;
}

.portal-slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.portal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
    z-index: 1;
}

.portal-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.portal-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.portal-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.portal-slide.is-active .portal-slide-bg img {
    transform: scale(1);
}

.portal-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
}

.portal-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    padding-left: 5%;
}

.portal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-mexica);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    align-self: flex-start;
}

.badge-agro { background: #064e3b; }

.portal-slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.portal-slide-excerpt {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
}

.portal-btn {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    font-weight: 600;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.portal-slide.is-active .animate-up {
    opacity: 1;
    transform: translateY(0);
}

.portal-slide.is-active .portal-slide-title { transition-delay: 0.2s; }
.portal-slide.is-active .portal-slide-excerpt { transition-delay: 0.4s; }
.portal-slide.is-active .portal-btn { transition-delay: 0.6s; }

/* Dots Navigation */
.portal-slider-controls {
    position: absolute;
    bottom: 40px;
    left: 5%;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.portal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portal-dot.is-active {
    background: white;
    transform: scale(1.3);
}

/* Responsiveness */
@media (max-width: 768px) {
    .portal-hero-section {
        height: 60vh;
    }
    
    .portal-slide-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    }
    
    .portal-slide-content {
        justify-content: flex-end;
        padding-bottom: 80px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .portal-slide-title {
        font-size: 2.2rem;
    }
}
.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.entry-title a {
    color: var(--color-text);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--color-mexica);
}

.entry-summary {
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.pagination, .nav-links {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.page-numbers {
    padding: 0.5rem 1rem;
    background: var(--color-bg-alt);
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-text);
}

.page-numbers.current {
    background: var(--color-mexica);
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: 12px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-mexica);
    padding-left: 1rem;
}

/* Generic Category Submenu Styles */
.category-nav-secondary {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.category-submenu-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-submenu-list a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.category-submenu-list li.active a,
.category-submenu-list a:hover {
    color: var(--color-mexica);
    border-bottom-color: var(--color-mexica);
}

/* Specific Category Colors for Submenu Hovers */
.category-noti .category-submenu-list li.active a { color: #ef4444; border-bottom-color: #ef4444; }
.category-agro .category-submenu-list li.active a { color: #10b981; border-bottom-color: #10b981; }
.category-gourmet .category-submenu-list li.active a { color: #f59e0b; border-bottom-color: #f59e0b; }
.category-originals .category-submenu-list li.active a { color: #8b5cf6; border-bottom-color: #8b5cf6; }
.category-series .category-submenu-list li.active a { color: #3b82f6; border-bottom-color: #3b82f6; }

@media (max-width: 768px) {
    .category-submenu-list {
        gap: 1.25rem;
    }
    .category-submenu-list a {
        font-size: 0.7rem;
    }
}

/* Noti Page Sub-Header Refinement */
.news-portal .category-nav-secondary {
    position: sticky;
    top: 70px; /* Adjust based on header height */
    z-index: 99;
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-portal .category-submenu-list li.active a {
    color: var(--color-mexica) !important;
    border-bottom: 2px solid var(--color-mexica);
}

.news-portal .category-submenu-list a {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Ensure content starts correctly below sticky nav */
.news-portal .noti-hero-section {
    padding-top: 2rem !important;
}

@media (max-width: 768px) {
    .news-portal .category-nav-secondary {
        top: 60px; /* Mobile header height */
    }
}

/* =========================================================================
   Responsive Navigation Fixed & Refined
   ========================================================================= */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex !important;
        margin-left: 1rem;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    }

    .main-navigation {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh;
        background: rgba(10, 15, 30, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 3000;
        display: flex !important;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }

    .main-navigation.is-open {
        right: 0 !important;
        visibility: visible;
        opacity: 1;
    }

    .mobile-menu-header {
        padding: 1.5rem 2rem;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-logo img {
        max-height: 35px;
        width: auto;
    }

    .menu-close {
        display: block !important;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .menu-close:hover {
        background: var(--color-mexica);
        border-color: var(--color-mexica);
        transform: rotate(90deg);
    }

    .main-navigation ul#primary-menu {
        flex-direction: column;
        width: 100%;
        gap: 0 !important;
        padding: 1.5rem 2rem !important;
        flex-grow: 1;
    }

    .main-navigation ul#primary-menu > li > a {
        font-family: 'Outfit', sans-serif;
        font-size: 1.2rem !important;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        padding: 1rem 0 !important;
        color: white;
    }

    .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1.5rem !important;
        padding: 0.5rem 0 1.5rem 0 !important;
        margin: 0;
    }

    .sub-menu a {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
        padding: 0.3rem 0 !important;
        border: none !important;
    }

    .mobile-menu-footer {
        display: block !important;
        padding: 2.5rem 2rem;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .follow-us {
        font-family: 'Outfit', sans-serif;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        margin-bottom: 1.2rem;
        color: rgba(255, 255, 255, 0.4);
        font-weight: 500;
        text-align: center;
    }

    .mobile-social-icons {
        display: flex;
        justify-content: center;
        gap: 2rem;
        padding-top: 0.5rem;
    }

    .mobile-social-icons a {
        color: white;
        font-size: 1.1rem;
        opacity: 0.5;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .mobile-social-icons a:hover {
        opacity: 1;
        color: var(--color-mexica);
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
    }

    .header-actions {
        border: none !important;
        padding: 0 !important;
    }
    
    .hamburger {
        background-color: white !important;
    }
}

/* Body lock when menu open */
body.menu-open {
    overflow: hidden;
}

/* Sticky Secondary Nav Refinement */
.category-nav-secondary {
    position: sticky !important;
    z-index: 99;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: top 0.3s ease;
}

/* Consolidated Header Visibility Refinements */
.site-header {
    background: rgba(10, 15, 30, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: sticky !important;
    top: 0;
    width: 100%;
}

.site-header.scrolled {
    background: rgba(10, 15, 30, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Home Page Header Transparency */
.home .site-header,
.front-page .site-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: absolute !important;
    border-bottom: none !important;
}

.home .site-header.scrolled,
.front-page .site-header.scrolled {
    background: rgba(10, 15, 30, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: sticky !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* General Proportion & Alignment Tweaks */
.news-hero-grid, .video-playlist-grid, .noti-grid {
    gap: 1.5rem !important;
}

@media (max-width: 1024px) {
    .news-hero-grid, .video-playlist-grid, .recent-news-grid, .news-list-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .hero-main .hero-image-wrapper {
        height: 350px !important;
    }
    .hero-secondary-wrap {
        flex-direction: column !important;
    }
    .hero-small {
        height: auto !important;
        min-height: 200px;
    }
    .video-sidebar-list {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0;
    }
    .video-list-item {
        grid-template-columns: 120px 1fr !important;
    }
    .recent-featured-link {
        grid-template-columns: 1fr !important;
        padding: 1rem;
    }
    .recent-news-cards-wrap {
        grid-template-columns: 1fr !important;
    }
    .news-side-list {
        grid-template-columns: 1fr !important;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .noti-grid {
        grid-template-columns: 1fr !important;
    }
    .section-padding {
        padding: 2.5rem 1rem !important;
    }

    /* Footer Mobile Refinement [UNIFIED] */
    .footer-widgets {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2.5rem;
    }

    .branding-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .footer-logo-main {
        height: 40px !important; /* Slightly smaller for mobile */
    }

    .footer-description {
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem; /* Better for mobile */
        padding: 0 1rem;
    }

    .footer-heading {
        font-size: 1rem !important; /* Slightly more compact */
        margin-bottom: 1rem;
    }

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

    .footer-menu-list a {
        font-size: 0.95rem; /* Easy to tap but compact */
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-logos {
        justify-content: center !important;
        gap: 1.25rem !important;
        padding: 2rem 1rem;
    }

    .footer-brand-link img {
        height: 28px !important; /* Balanced for mobile */
    }

    .site-info {
        text-align: center;
        font-size: 0.8rem;
        padding: 0 1.5rem;
    }

    /* Global Proportions Refinement */
    .section-header-news {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .view-all-link {
        margin-top: 0.25rem;
    }

    .originals-carousel-container {
        padding: 1rem 1rem 2rem !important;
        gap: 1rem !important;
    }

    .original-card {
        flex: 0 0 250px !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

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

    .container, .container-full {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* =========================================================================
   Mexica Originals Highlight Slider
   ========================================================================= */
.originals-highlight-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    min-height: 450px;
}

.highlight-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
    z-index: 1;
}

.highlight-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05); /* Slightly lighter backdrop for contrast against dark navy */
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.agro-doc-video {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.highlight-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 1); /* Full white for maximum visibility */
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.highlight-indicators {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.3);
}

.indicator.is-active {
    background: var(--color-mexica);
    width: 60px;
}

@media (max-width: 991px) {
    .originals-highlight-slider-container {
        min-height: 600px;
    }
    .highlight-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 2rem;
    }
    .highlight-title {
        font-size: 1.8rem;
    }
}
