/*
Theme Name: Periodistas
Theme URI: https://example.com/periodistas
Author: WeMakingMx
Description: A premium news theme for periodistas with Tailwind, Vue and Block support.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: periodistas
*/

/* Basic Resets & WordPress standard classes */
*,
*::before,
*::after,
.rounded,
.rounded-sm,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
.rounded-full {
    border-radius: 0 !important;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.alignwide {
    margin-left: -5vw;
    margin-right: -5vw;
    max-width: 110vw;
    width: 110vw;
}

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

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Base styles for WP Content */
.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.entry-content h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 2rem 0 1rem;
}

/* Submenu / Dropdown Styles */
.menu-item {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #E11A22;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 50;
    padding: 1rem 0;
}

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

.sub-menu li {
    display: block;
    width: 100%;
}

.sub-menu li a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #1A1A1A;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sub-menu li a:hover {
    background: #f8f8f8;
    color: #E11A22;
}

/* Container Wide */
.container-wide {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==========================================================================
   BLOCK SECTIONS & SPACING FIX
   ========================================================================== */
.site-main section.block-section,
.site-main .opinion-section,
.site-main .multimedia-section,
.site-main .gobierno-section,
.site-main .municipios-section,
.site-main .legislativo-section,
.site-main .category-blocks-section {
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
    clear: both;
}

@media (max-width: 768px) {
    .site-main section.block-section,
    .site-main .opinion-section,
    .site-main .multimedia-section,
    .site-main .gobierno-section,
    .site-main .municipios-section,
    .site-main .legislativo-section,
    .site-main .category-blocks-section {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}
.hero-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
}
.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.hero-slider-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 25;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border-radius: 9999px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.hero-slider-btn:hover {
    background: #E11A22;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}
.hero-slider-btn.prev {
    left: 0.75rem;
}
.hero-slider-btn.next {
    right: 0.75rem;
}
.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-slider-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.hero-slider-dot.active {
    width: 1.75rem;
    background-color: #E11A22;
}

/* ==========================================================================
   PAGINATION STYLES
   ========================================================================== */
.pagination {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}
.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 800;
    color: #1a1a1a;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    text-decoration: none;
}
.pagination .page-numbers:hover {
    background-color: #E11A22;
    color: #ffffff;
    border-color: #E11A22;
    transform: translateY(-1px);
}
.pagination .page-numbers.current {
    background-color: #E11A22;
    color: #ffffff;
    border-color: #E11A22;
    box-shadow: 0 4px 6px -1px rgba(225, 26, 34, 0.3);
}
.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ==========================================================================
   ANIMATED SOCIAL SHARE BUTTONS
   ========================================================================== */
@keyframes sharePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.share-bar-top .social-share-btn {
    position: relative;
    overflow: hidden;
}
.share-bar-top .social-share-btn:hover {
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.25);
}
.share-bar-top .share-facebook:hover {
    box-shadow: 0 8px 16px -2px rgba(24, 119, 242, 0.4);
}
.share-bar-top .share-whatsapp:hover {
    box-shadow: 0 8px 16px -2px rgba(37, 211, 102, 0.4);
}
.share-bar-top .share-telegram:hover {
    box-shadow: 0 8px 16px -2px rgba(34, 158, 217, 0.4);
}

/* ==========================================================================
   GLOBAL HEADING TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.site-title,
.font-heading {
    font-family: "Helvetica Neue", Helvetica, Arial, "Utkal", sans-serif !important;
}

/* ==========================================================================
   ENHANCED GALLERY SUPPORT (Gutenberg, Classic & Imported SU Carousels)
   ========================================================================== */
.entry-content .wp-block-gallery,
.entry-content .gallery,
.entry-content .su-image-carousel {
    display: grid !important;
    gap: 1.5rem !important;
    margin: 2.5rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    grid-template-columns: repeat(2, 1fr) !important;
}

.entry-content .su-image-carousel-item {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    width: 100% !important;
    background: #f8fafc !important;
}

.entry-content .su-image-carousel-item img {
    width: 100% !important;
    height: auto !important;
    min-height: 240px !important;
    max-height: 380px !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    border-radius: 0.75rem !important;
    display: block !important;
    margin: 0 !important;
    transition: transform 0.5s ease !important;
}

.entry-content .su-image-carousel-item:hover img {
    transform: scale(1.04) !important;
}

.entry-content .wp-block-gallery.columns-1,
.entry-content .gallery.gallery-columns-1 {
    grid-template-columns: 1fr !important;
}

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

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

.entry-content .wp-block-gallery.columns-4,
.entry-content .gallery.gallery-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

@media (max-width: 768px) {
    .entry-content .wp-block-gallery,
    .entry-content .gallery,
    .entry-content .su-image-carousel,
    .entry-content .wp-block-gallery.columns-2,
    .entry-content .wp-block-gallery.columns-3,
    .entry-content .gallery.gallery-columns-2,
    .entry-content .gallery.gallery-columns-3 {
        grid-template-columns: 1fr !important;
    }
}

.entry-content .wp-block-gallery .wp-block-image,
.entry-content .gallery .gallery-item {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin: 0 !important;
    width: 100% !important;
    background: #f8fafc !important;
}

.entry-content .wp-block-gallery .wp-block-image:hover,
.entry-content .gallery .gallery-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.entry-content .wp-block-gallery img,
.entry-content .gallery img,
.entry-content .wp-block-gallery .wp-block-image img,
.entry-content .gallery .gallery-item img {
    width: 100% !important;
    height: auto !important;
    min-height: 280px !important;
    max-height: 480px !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    border-radius: 0.75rem !important;
    display: block !important;
    margin: 0 !important;
    transition: transform 0.5s ease !important;
}

.entry-content .wp-block-gallery .wp-block-image:hover img,
.entry-content .gallery .gallery-item:hover img {
    transform: scale(1.05) !important;
}

.entry-content .wp-block-gallery figcaption,
.entry-content .gallery .gallery-caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 2rem 1rem 0.75rem !important;
    margin: 0 !important;
    text-align: left !important;
    font-style: normal !important;
}

/* ==========================================================================
   CNN EDITORIAL ARTICLE STYLING
   ========================================================================== */
.cnn-article-body p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f1f1f;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.cnn-article-body h2,
.cnn-article-body h3,
.cnn-article-body h4 {
    font-weight: 900;
    color: #0c0c0c;
    line-height: 1.25;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cnn-article-body h2 {
    font-size: 1.75rem;
}

.cnn-article-body h3 {
    font-size: 1.35rem;
}

.cnn-article-body blockquote {
    border-left: 3px solid #E11A22;
    padding-left: 1.25rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
    font-size: 1.15rem;
}

.cnn-article-body img {
    border-radius: 0.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    max-width: 100%;
    height: auto;
}

.cnn-article-body figcaption {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

/* Sidebar CNN widget */
.sidebar-cnn-widget h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   GALLERY LIGHTBOX MODAL
   ========================================================================== */
.entry-content .wp-block-gallery img,
.entry-content .gallery img,
.entry-content .su-image-carousel img {
    cursor: zoom-in !important;
}

.periodistas-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.periodistas-gallery-modal.is-open {
    display: flex;
    opacity: 1;
}

.periodistas-gallery-modal-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.periodistas-gallery-modal-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 10001;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.periodistas-gallery-modal-close:hover {
    background: #E11A22;
    border-color: #E11A22;
}

.periodistas-gallery-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.periodistas-gallery-modal-nav:hover {
    background: #E11A22;
    border-color: #E11A22;
}

.periodistas-gallery-modal-nav.prev {
    left: 1.25rem;
}

.periodistas-gallery-modal-nav.next {
    right: 1.25rem;
}

.periodistas-gallery-modal-meta {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    text-align: center;
    color: #ffffff;
    max-width: 85vw;
}

.periodistas-gallery-modal-counter {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e5e7eb;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.25rem 0.75rem;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.periodistas-gallery-modal-caption {
    font-size: 0.875rem;
    color: #d1d5db;
    margin: 0;
}





