/* News Page Specific Styles */
/* Typography Variables */
:root {
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Content - Adjust padding for the header */
.main-content {
    padding-top: 180px;
    min-height: 100vh;
    background: var(--italian-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content > .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Categories Sidebar */
.categories-sidebar {
    position: sticky;
    top: 180px;
    background: var(--italian-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.categories-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-weight: 400;
}

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

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

.category-list a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    color: var(--primary-blue);
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Sidebar Ads */
.sidebar-ad {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-ad:hover img {
    transform: scale(1.05);
}

/* News Content */
.news-content {
    padding: 5.5rem 1.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.news-grid article:first-child {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.news-grid article:first-child .news-image {
    height: 450px;
}

.news-grid article:first-child h3,
.news-grid article:first-child h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 400;
    margin: 0.5rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Reset first card style when filtering */
.news-grid.filtering article:first-child {
    grid-column: auto;
    margin-bottom: 0;
}

.news-grid.filtering article:first-child .news-image {
    height: 240px;
}

.news-grid.filtering article:first-child h3,
.news-grid.filtering article:first-child h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* News Card */
.news-card {
    background-color: var(--italian-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-image::after {
    opacity: 1;
}

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

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    color: var(--italian-white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(5px);
}

.equipo { 
    background-color: var(--primary-blue);
}

.torneos { 
    background-color: var(--italian-green);
}

.promos { 
    background-color: var(--italian-red);
}

.clases { 
    background-color: var(--light-blue);
}

.news-card .news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: var(--primary-blue);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: var(--primary-blue);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card:hover h3,
.news-card:hover h2 {
    color: var(--italian-green);
}

.news-date {
    display: inline-block;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.news-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1rem;
    height: 2px;
    background-color: var(--italian-green);
    transform: translateY(-50%);
}

.news-excerpt {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--italian-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary-blue);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* News Modal Styles */
#newsModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

#newsModal .modal-content {
    background: var(--italian-white);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.3s ease;
    overflow: hidden;
    border: 3px solid;
    border-image: var(--gradient-italian) 1;
    /* Ensure modal fits content properly */
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: var(--italian-white);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close-modal:hover {
    color: var(--italian-red);
    background-color: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--italian-red);
}

.modal-header {
    padding: 0.8rem 1rem 0.6rem;
    flex-shrink: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-italian);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #ffffff !important;
    margin-bottom: 0.15rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.modal-header time {
    font-size: 0.8rem;
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.modal-header time::before {
    content: '📅';
    font-size: 1rem;
}

.modal-body {
    padding: 1.2rem;
    /* Remove max-height constraint to allow full content */
    overflow-y: auto;
    flex: 1;
    /* Ensure proper scrolling */
    scrollbar-width: thin;
    scrollbar-color: var(--italian-green) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gradient-italian);
    border-radius: 10px;
}

.modal-image-container {
    margin: 0 0 1.5rem 0;
    height: auto;
    max-height: 60vh;
    min-height: 150px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container::after {
    display: none !important;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px;
    background: #fff;
}

.modal-carousel {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--italian-green) transparent;
    flex-wrap: nowrap;
    align-items: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

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

.modal-carousel::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.modal-carousel::-webkit-scrollbar-thumb {
    background: var(--gradient-italian);
    border-radius: 10px;
}

.carousel-image {
    flex-shrink: 0;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-carousel img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    min-width: 140px;
    display: block;
}

.modal-carousel img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--italian-green);
}

.modal-carousel img.active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Ensure carousel container has proper dimensions */
.modal-carousel:empty {
    display: none;
}

.modal-carousel:not(:empty) {
    min-height: 110px;
}

/* Smooth scrolling for carousel */
.modal-carousel {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Carousel navigation hints */
.modal-carousel::before,
.modal-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
}

.modal-carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, transparent 100%);
}

.modal-carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255,255,255,0.8) 0%, transparent 100%);
}

.modal-body p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
    /* Ensure text is fully visible */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Modal Navigation Indicators */
.modal-carousel-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--italian-green);
    transform: scale(1.2);
    border-color: var(--primary-blue);
}

.carousel-dot:hover {
    background: var(--italian-green);
    transform: scale(1.1);
}

/* Modal Loading State */
.modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--primary-blue);
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.modal-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

/* Modal Empty State */
.modal-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--dark-gray);
    font-family: var(--font-body);
}

.modal-empty i {
    font-size: 3rem;
    color: var(--light-blue);
    margin-bottom: 1rem;
}

.modal-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-empty p {
    font-size: 1rem;
    color: var(--dark-gray);
    background: none;
    border: none;
    padding: 0;
}

/* News Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Responsive adjustments */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .featured-news .news-image {
        height: 400px;
    }

    .featured-news h2,
    .featured-news h3 {
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
}

@media (max-width: 992px) {
    .main-content > .container {
        grid-template-columns: 1fr;
    }

    .categories-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-list a {
        padding: 0.5rem 1rem;
    }

    .sidebar-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 120px;
    }

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

    .news-grid article:first-child .news-image {
        height: 280px;
    }

    .news-grid article:first-child h3,
    .news-grid article:first-child h2 {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }

    /* Modal responsive improvements */
    #newsModal .modal-content {
        margin: 1% auto;
        width: 95%;
        max-width: none;
        border-radius: 15px;
        border-width: 2px;
        max-height: 98vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        padding: 1.5rem 1.2rem 1rem;
        border-radius: 15px 15px 0 0;
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
    }

    .modal-header h2 {
        font-family: var(--font-heading);
        font-size: 1.6rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
        color: #ffffff !important;
        margin-bottom: 0.3rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
        position: relative;
        z-index: 2;
    }

    .modal-header time {
        font-size: 0.95rem;
        color: #ffffff !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
        position: relative;
        z-index: 2;
    }

    .modal-body {
        padding: 1rem;
        overflow-y: auto;
        flex: 1;
        /* Ensure proper scrolling on mobile */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .modal-image-container {
        max-height: 40vh;
        min-height: 100px;
        border-radius: 8px;
    }

    .modal-image-container img {
        max-height: 40vh;
        border-radius: 8px;
    }

    .modal-carousel {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.5rem;
        overflow-x: auto;
        padding: 1.2rem;
        scrollbar-width: thin;
        scrollbar-color: var(--italian-green) transparent;
        flex-wrap: nowrap;
        align-items: center;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.05);
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .modal-carousel img {
        width: 140px;
        height: 90px;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 3px solid transparent;
        box-shadow: var(--shadow-sm);
        flex-shrink: 0;
        min-width: 140px;
        display: block;
    }

    .modal-body p {
        padding: 1rem;
        font-size: 1rem;
        font-family: var(--font-body);
        line-height: 1.6;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        /* Ensure text is fully visible on mobile */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .close-modal {
        right: 1rem;
        top: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    /* Hide desktop menu by default */
    .nav-menu {
        display: none !important;
    }

    /* Show mobile menu when active */
    .nav-menu.active {
        display: block !important;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
        z-index: 9999;
        padding: 2rem;
        animation: slideInDown 0.3s ease;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active a {
        display: block !important;
        color: var(--italian-white) !important;
        text-decoration: none;
        padding: 1.2rem 1.5rem;
        margin: 0.8rem 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
    }

    .nav-menu.active a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active .btn-reserva {
        background: var(--italian-green) !important;
        color: var(--italian-white) !important;
        border: 2px solid var(--italian-green);
        margin-top: 1.5rem;
    }

    .nav-menu.active .btn-reserva:hover {
        background: var(--italian-white) !important;
        color: var(--italian-green) !important;
        transform: translateY(-2px);
    }

    /* Show menu toggle button */
    .menu-toggle {
        display: block !important;
        cursor: pointer;
        padding: 0.8rem;
        background: var(--primary-blue);
        border: 2px solid var(--italian-white);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        background: var(--italian-green);
        transform: scale(1.05);
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--italian-white);
        margin: 5px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active {
        background: var(--italian-green);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Mobile touch improvements for modal */
    .modal-carousel img {
        min-height: 65px;
        touch-action: manipulation;
    }
    
    .close-modal {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve scrolling */
    .modal-body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Better modal backdrop */
    #newsModal {
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(15px);
    }
    
    /* Prevent body scroll when modal is open */
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

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

@media (max-width: 480px) {
    .news-grid article:first-child .news-image {
        height: 250px;
    }

    .news-grid article:first-child h3,
    .news-grid article:first-child h2 {
        font-family: var(--font-heading);
        font-size: 1.6rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }

    /* Full screen modal for very small screens */
    #newsModal .modal-content {
        margin: 0;
        height: 100vh;
        border-radius: 0;
        width: 100%;
        border: none;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        padding: 0.8rem 1rem 0.6rem;
        flex-shrink: 0;
        border-radius: 0;
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .modal-header h2 {
        font-family: var(--font-heading);
        font-size: 1.2rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
        color: #ffffff !important;
        margin-bottom: 0.15rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
        position: relative;
        z-index: 2;
    }

    .modal-header time {
        font-size: 0.8rem;
        color: #ffffff !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
        position: relative;
        z-index: 2;
    }

    .modal-body {
        padding: 1rem;
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }

    .modal-image-container {
        margin: -0.6rem -1rem 1rem;
        max-height: 30vh;
        min-height: 80px;
        border-radius: 0;
    }

    .modal-image-container img {
        max-height: 30vh;
        min-height: 80px;
        border-radius: 0;
    }

    .modal-image-container::after {
        display: none !important;
    }

    .modal-carousel {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        /* Force horizontal layout */
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .modal-carousel img {
        width: 120px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 3px solid transparent;
        box-shadow: var(--shadow-sm);
        flex-shrink: 0;
        min-width: 120px;
        /* Force horizontal layout */
        display: block;
    }

    .modal-body p {
        padding: 0.8rem;
        font-size: 0.95rem;
        font-family: var(--font-body);
        line-height: 1.5;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
    }

    .close-modal {
        right: 0.8rem;
        top: 0.8rem;
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
        background-color: rgba(0, 0, 0, 0.7);
    }

    /* Even better touch targets for small screens */
    .modal-carousel img {
        min-height: 55px;
        touch-action: manipulation;
    }
    
    .close-modal {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Full screen experience */
    #newsModal {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    /* Better text readability */
    .modal-body p {
        text-align: justify;
        hyphens: auto;
    }
} 