/* 
   Alebrijes de Oaxaca Teotihuacán
   Noticias Page Styles - Manchester United Inspired Design
*/

/* Alebrijes Pattern Background - Removed from body */
body.news-page {
    position: relative;
}

/* News Header Style Separator for Index Page */
.news-header-separator {
    background: #1a1a1a; /* Dark base similar to jersey background */
    border-top: 2px solid rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    padding: 0;
    position: relative;
    overflow: hidden;
    margin: 35px 0;
    height: 150px; /* Increased height for separator */
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-header-separator {
    --separator-offset: 0px;
}

.news-header-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -400px;
    right: -400px;
    width: calc(100% + 800px);
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='jerseyPattern' x='0' y='0' width='400' height='300' patternUnits='userSpaceOnUse'%3E%3C!-- Color blocks simulating jersey mosaic --%3E%3Crect x='0' y='0' width='80' height='60' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='80' y='0' width='70' height='60' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='150' y='0' width='90' height='60' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='240' y='0' width='65' height='60' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='305' y='0' width='95' height='60' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='60' width='60' height='70' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3Crect x='60' y='60' width='85' height='70' fill='%239932CC' stroke='%23000' stroke-width='2'/%3E%3Crect x='145' y='60' width='75' height='70' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='220' y='60' width='100' height='70' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='320' y='60' width='80' height='70' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='130' width='95' height='65' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='95' y='130' width='70' height='65' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='165' y='130' width='85' height='65' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3Crect x='250' y='130' width='75' height='65' fill='%239932CC' stroke='%23000' stroke-width='2'/%3E%3Crect x='325' y='130' width='75' height='65' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='195' width='65' height='105' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='65' y='195' width='90' height='105' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='155' y='195' width='70' height='105' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='225' y='195' width='85' height='105' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='310' y='195' width='90' height='105' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3C!-- Polka dot sections --%3E%3Crect x='280' y='20' width='120' height='40' fill='%231E3A8A'/%3E%3Ccircle cx='290' cy='30' r='4' fill='%23FFD700'/%3E%3Ccircle cx='310' cy='30' r='4' fill='%23FFD700'/%3E%3Ccircle cx='330' cy='30' r='4' fill='%23FFD700'/%3E%3Ccircle cx='350' cy='30' r='4' fill='%23FFD700'/%3E%3Ccircle cx='290' cy='50' r='4' fill='%23FFD700'/%3E%3Ccircle cx='310' cy='50' r='4' fill='%23FFD700'/%3E%3Ccircle cx='330' cy='50' r='4' fill='%23FFD700'/%3E%3Ccircle cx='350' cy='50' r='4' fill='%23FFD700'/%3E%3Crect x='0' y='240' width='100' height='60' fill='%231E3A8A'/%3E%3Ccircle cx='20' cy='250' r='5' fill='%23FFD700'/%3E%3Ccircle cx='40' cy='250' r='5' fill='%23FFD700'/%3E%3Ccircle cx='60' cy='250' r='5' fill='%23FFD700'/%3E%3Ccircle cx='80' cy='250' r='5' fill='%23FFD700'/%3E%3Ccircle cx='20' cy='270' r='5' fill='%23FFD700'/%3E%3Ccircle cx='40' cy='270' r='5' fill='%23FFD700'/%3E%3Ccircle cx='60' cy='270' r='5' fill='%23FFD700'/%3E%3Ccircle cx='80' cy='270' r='5' fill='%23FFD700'/%3E%3Ccircle cx='20' cy='290' r='5' fill='%23FFD700'/%3E%3Ccircle cx='40' cy='290' r='5' fill='%23FFD700'/%3E%3Ccircle cx='60' cy='290' r='5' fill='%23FFD700'/%3E%3Ccircle cx='80' cy='290' r='5' fill='%23FFD700'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23jerseyPattern)'/%3E%3C/svg%3E");
    background-size: 400px 300px;
    background-repeat: repeat-x;
    background-position: 400px 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    transform: translateX(var(--separator-offset, 0px));
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.news-header-separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* News Page Header with Search - Sticky to navbar */
.news-page-header {
    background: #1a1a1a; /* Dark base similar to jersey background */
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: transform 0.4s ease, box-shadow 0.3s ease, top 0.3s ease;
    overflow: hidden;
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
}

/* Show header when scrolled */
.news-page-header.visible {
    transform: translateY(0);
}

/* Show header from start when always-visible class is present (category filters active) */
.news-page-header.always-visible {
    transform: translateY(0) !important;
}

/* Articles page: Show header from start (no hidden initially) */
body.articles-page .news-page-header {
    transform: translateY(0) !important;
}

.news-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='jerseyPattern' x='0' y='0' width='400' height='300' patternUnits='userSpaceOnUse'%3E%3C!-- Color blocks simulating jersey mosaic --%3E%3Crect x='0' y='0' width='80' height='60' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='80' y='0' width='70' height='60' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='150' y='0' width='90' height='60' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='240' y='0' width='65' height='60' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='305' y='0' width='95' height='60' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='60' width='60' height='70' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3Crect x='60' y='60' width='85' height='70' fill='%239932CC' stroke='%23000' stroke-width='2'/%3E%3Crect x='145' y='60' width='75' height='70' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='220' y='60' width='100' height='70' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='320' y='60' width='80' height='70' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='130' width='95' height='65' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='95' y='130' width='70' height='65' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='165' y='130' width='85' height='65' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3Crect x='250' y='130' width='75' height='65' fill='%239932CC' stroke='%23000' stroke-width='2'/%3E%3Crect x='325' y='130' width='75' height='65' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='195' width='65' height='105' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='65' y='195' width='90' height='105' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='155' y='195' width='70' height='105' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='225' y='195' width='85' height='105' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='310' y='195' width='90' height='105' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3C!-- Polka dot sections --%3E%3Crect x='280' y='20' width='120' height='40' fill='%231E3A8A'/%3E%3Ccircle cx='290' cy='30' r='4' fill='%23FFD700'/%3E%3Ccircle cx='310' cy='30' r='4' fill='%23FFD700'/%3E%3Ccircle cx='330' cy='30' r='4' fill='%23FFD700'/%3E%3Ccircle cx='350' cy='30' r='4' fill='%23FFD700'/%3E%3Ccircle cx='290' cy='50' r='4' fill='%23FFD700'/%3E%3Ccircle cx='310' cy='50' r='4' fill='%23FFD700'/%3E%3Ccircle cx='330' cy='50' r='4' fill='%23FFD700'/%3E%3Ccircle cx='350' cy='50' r='4' fill='%23FFD700'/%3E%3Crect x='0' y='240' width='100' height='60' fill='%231E3A8A'/%3E%3Ccircle cx='20' cy='250' r='5' fill='%23FFD700'/%3E%3Ccircle cx='40' cy='250' r='5' fill='%23FFD700'/%3E%3Ccircle cx='60' cy='250' r='5' fill='%23FFD700'/%3E%3Ccircle cx='80' cy='250' r='5' fill='%23FFD700'/%3E%3Ccircle cx='20' cy='270' r='5' fill='%23FFD700'/%3E%3Ccircle cx='40' cy='270' r='5' fill='%23FFD700'/%3E%3Ccircle cx='60' cy='270' r='5' fill='%23FFD700'/%3E%3Ccircle cx='80' cy='270' r='5' fill='%23FFD700'/%3E%3Ccircle cx='20' cy='290' r='5' fill='%23FFD700'/%3E%3Ccircle cx='40' cy='290' r='5' fill='%23FFD700'/%3E%3Ccircle cx='60' cy='290' r='5' fill='%23FFD700'/%3E%3Ccircle cx='80' cy='290' r='5' fill='%23FFD700'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23jerseyPattern)'/%3E%3C/svg%3E");
    background-size: 400px 300px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

/* Additional overlay for better contrast */
.news-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* When navbar is scrolled/visible, move header down */
body.scrolled .news-page-header {
    top: var(--header-height, 80px);
}

/* Adjust carousel position when header is visible */
body.scrolled .news-carousel-section {
    margin-top: 0; /* Reset margin when header is visible */
}

.news-page-header-content {
    position: relative;
    z-index: 1;
    padding: 24px 0 0;
}

.news-page-header.sticky-active {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.news-page-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding-bottom: 24px;
    gap: 30px;
}

.news-page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 12px 0;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Top Search - Premium Design */
.news-search-top {
    flex: 1;
    max-width: 650px;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.search-input-container-top {
    position: relative;
    width: 100%;
}

.search-icon-top {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-input-container-top:focus-within .search-icon-top {
    color: var(--primary);
}

.news-search-input-top {
    width: 100%;
    padding: 12px 50px 12px 50px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: var(--white);
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-search-input-top:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(243, 106, 33, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.news-search-input-top::placeholder {
    color: #999;
    font-weight: 400;
}

.search-clear-btn-top {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s ease;
    z-index: 2;
}

.search-clear-btn-top:hover {
    background: rgba(243, 106, 33, 0.1);
    color: var(--primary);
}

.search-clear-btn-top svg {
    width: 16px;
    height: 16px;
}

.search-clear-btn-top svg {
    width: 18px;
    height: 18px;
}

/* Category Filters Bar - Minimalist Design */
.category-filters-bar {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0);
    padding-top: 0;
    margin-top: 0;
    flex-wrap: nowrap;
    background: transparent;
    position: relative;
    z-index: 2;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    width: 100%;
    scroll-behavior: smooth;
}

.category-filters-bar::-webkit-scrollbar {
    display: none;
}

.category-filters-bar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-btn-top {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px 24px;
    color: #555;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-main);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px;
}


.filter-btn-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.filter-btn-top:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.filter-btn-top.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 1);
    font-weight: 700;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(243, 106, 33, 0.4);
}

.filter-btn-top.active::after {
    transform: scaleX(0);
}

/* News Carousel Section - Hero Image Style */
.news-carousel-section {
    background: transparent;
    padding: 0;
    border-bottom: none;
    position: relative;
    z-index: 1;
    margin-top: -100px; /* Move up slightly to fill header space when hidden */
    transition: margin-top 0.4s ease;
}

.carousel-section-title {
    display: none;
}

.news-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000; /* Uniform dark background for hero image */
}

.news-carousel-section .container {
    background: transparent;
    padding: 0;
}

.news-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    cursor: pointer;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.carousel-item.active .carousel-item-image img {
    transform: scale(1.05);
}

.carousel-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 60px 40px 40px;
    color: var(--white);
    z-index: 3;
}

.carousel-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-item-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(243, 106, 33, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-prev {
    left: 24px;
}

.carousel-next {
    right: 24px;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: var(--white);
    border-color: #e0e0e0;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 10;
    padding: 0;
}

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

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.carousel-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(243, 106, 33, 0.5);
}

/* Main News Section */
.news-main-section {
    background: #fafafa;
    padding: 40px 0 80px;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

/* News Grid Container - Manchester United Style */
.news-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 30px;
    grid-auto-rows: min-content;
}

/* All Cards Same Size */
.news-card-modern {
    grid-column: span 3;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
}

.news-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-card-modern.hidden {
    display: none !important;
}

/* News Card Image */
.news-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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


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

.news-card-modern .news-card-image {
    height: 200px;
}

.news-card-text .news-card-image {
    display: none;
}

.news-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.news-category-badge.liga-tdp {
    background: var(--primary);
}

.news-category-badge.visorias {
    background: #00BBB4;
}

.news-category-badge.fuerzas-basicas {
    background: #9b59b6;
}

.news-category-badge.club {
    background: #e67e22;
}

/* News Card Content */
.news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: lowercase;
}

.news-card-time {
    color: var(--text);
    font-weight: 600;
}

.news-card-separator {
    color: #ccc;
}

.news-card-type {
    color: var(--text-light);
}

/* News Card Title - Manchester United Style */
.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.news-card-large .news-card-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

/* News Card Subtitle/Excerpt */
.news-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-modern .news-card-subtitle {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
}

/* Legacy styles for older format cards */
.news-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.news-card-date svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.news-card-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-link:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* Share Button */
.news-card-share {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.news-card-text .news-card-share {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 12px;
    align-self: flex-start;
}

.news-card-modern:hover .news-card-share {
    opacity: 1;
}

.news-card-share:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.news-card-share:hover svg {
    color: var(--white);
}

.news-card-share svg {
    width: 18px;
    height: 18px;
    color: var(--text);
    transition: color 0.2s ease;
}

/* Pagination */
.news-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    min-width: 120px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(243, 106, 33, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 106, 33, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 18px;
    height: 18px;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-number {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.pagination-number:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-number.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(243, 106, 33, 0.3);
}

/* No Results Message - Enhanced Design */
.no-results-message {
    text-align: center;
    padding: 100px 40px;
    display: none;
    margin: 80px auto;
    max-width: 600px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px dashed #e0e0e0;
    position: relative;
    overflow: hidden;
}

.no-results-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(243, 106, 33, 0.5) 100%);
}

.no-results-message.show {
    display: block;
}

.search-icon-no-results,
.no-results-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
    margin: 0 auto 32px;
    display: block;
    opacity: 0.7;
    stroke-width: 2;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(243, 106, 33, 0.2));
}

.no-results-message:hover .search-icon-no-results,
.no-results-message:hover .no-results-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(243, 106, 33, 0.3));
}

.no-results-message h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.no-results-message p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
    font-weight: 400;
    position: relative;
    z-index: 1;
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-grid-container {
        grid-template-columns: repeat(12, 1fr);
        gap: 20px;
    }

    .news-card-modern {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .news-page-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .news-search-top {
        max-width: 100%;
        margin-left: 0;
    }

    .news-grid-container {
        grid-template-columns: repeat(6, 1fr);
    }

    .news-card-modern {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .news-carousel-section {
        padding: 0;
        margin-top: 0;
    }

    .carousel-section-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .carousel-item {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .carousel-item-image {
        width: 100%;
        height: 100%;
    }

    .carousel-btn {
        display: none;
    }

    .news-page-header {
        padding: 0;
    }

    .news-page-header-content {
        padding: 16px 0 0;
    }

    .news-page-header-content .container {
        padding-left: 0;
        padding-right: 0;
    }

    .news-page-header-inner {
        padding-bottom: 16px;
        gap: 16px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .news-page-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
        letter-spacing: 2px;
    }

    .category-filters-bar {
        display: none;
    }

    .news-search-top {
        margin-top: 12px;
    }

    .news-search-input-top {
        padding: 10px 45px 10px 45px;
        font-size: 0.9rem;
    }

    .news-main-section {
        padding: 20px 0 40px;
        min-height: auto;
    }

    .news-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .news-card-modern {
        grid-column: span 1;
    }

    .news-card-modern .news-card-image {
        height: 180px;
    }

    .news-carousel-wrapper {
        height: 240px;
    }

    .carousel-item-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .carousel-item-content {
        padding: 24px 16px 16px;
    }

    .carousel-item-meta {
        font-size: 0.75rem;
        margin-bottom: 10px;
        gap: 8px;
    }

    .news-card-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

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

    .news-card-meta {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .news-card-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .news-pagination {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 40px;
    }

    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .pagination-number {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-page-header-content {
        padding: 12px 0 0;
    }

    .news-page-header-content .container {
        padding-left: 0;
        padding-right: 0;
    }

    .news-page-header-inner {
        padding-bottom: 12px;
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .news-page-title {
        font-size: 1.35rem;
        margin-bottom: 6px;
        letter-spacing: 1.5px;
    }

    .category-filters-bar {
        display: none;
    }

    .news-search-top {
        margin-top: 10px;
    }

    .news-search-input-top {
        padding: 9px 40px 9px 40px;
        font-size: 0.85rem;
    }

    .news-carousel-wrapper {
        height: 200px;
    }

    .carousel-item-title {
        font-size: 1.2rem;
    }

    .carousel-item-content {
        padding: 20px 12px 12px;
    }

    .carousel-item-meta {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .news-main-section {
        padding: 16px 0 32px;
    }

    .news-grid-container {
        gap: 12px;
        margin-top: 16px;
    }

    .news-card-modern .news-card-image {
        height: 160px;
    }

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

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

    .news-card-subtitle {
        font-size: 0.8rem;
    }

    .news-card-meta {
        font-size: 0.75rem;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-btn {
        padding: 10px;
        min-width: 44px;
    }

    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .no-results-message {
        padding: 50px 16px;
        margin: 30px auto;
    }
    
    .search-icon-no-results {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }
    
    .no-results-message h3 {
        font-size: 1.3rem;
    }
    
    .no-results-message p {
        font-size: 0.9rem;
    }
}
