/* ========================================
   NEWS PAGE - Unified Styles
   Mobile First Approach
======================================== */

:root {
    --primary-blue: #0b2340;
    --accent-yellow: #f2e300;
    --white: #ffffff;
    --max-width: 100rem;
}

/* ========================================
   CONTAINER & LAYOUT
======================================== */

.news-page {
    /* background: #f2e300; */
        background: 
    linear-gradient(
        135deg,
        rgba(11, 35, 64, 0.65) 0%,
        rgba(11, 35, 64, 0.60) 50%,
        rgba(11, 35, 64, 0.68) 100%
    ),
    url('../img/stadion2.jpg') center center / cover no-repeat fixed;
    min-height: 100vh;
}

.news-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

/* ========================================
   SECTION HEADER - Unified
======================================== */

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
    display: inline-block;
    background: rgba(242, 227, 0, 0.1);
    color: var(--accent-yellow);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    border: 1px solid rgba(242, 227, 0, 0.3);
}

.section-header h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   POSTS GRID
======================================== */

.posts-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

/* ========================================
   NEWS CARD - Glassmorphism Style
======================================== */

.news-card {
    background: rgba(15, 31, 53, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(242, 227, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(242, 227, 0, 0.3);
    border-color: rgba(242, 227, 0, 0.3);
}

/* ========================================
   THUMBNAIL
======================================== */

.news-thumb {
    position: relative;
    overflow: hidden;
    height: clamp(12rem, 25vw, 15rem);
    background: var(--primary-blue);
}

.news-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(11, 35, 64, 0.3) 100%
    );
    z-index: 1;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.news-card:hover .news-thumb img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* ========================================
   CARD CONTENT
======================================== */

.news-content {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* Date Badge */
.news-date {
    display: inline-block;
    color: var(--primary-blue);
    background: var(--accent-yellow);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(242, 227, 0, 0.25);
    transition: all 0.3s ease;
}

.news-card:hover .news-date {
    box-shadow: 0 6px 20px rgba(242, 227, 0, 0.4);
}

/* Title */
.news-content h3 {
    color: var(--white);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h3 {
    color: var(--accent-yellow);
}

/* Excerpt */
.news-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ========================================
   READ MORE BUTTON
======================================== */

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--accent-yellow);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(242, 227, 0, 0.25);
    width: fit-content;
}

.btn-read-more::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    background: var(--white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(242, 227, 0, 0.35);
}

.btn-read-more:hover::after {
    transform: translateX(4px);
}

/* ========================================
   PAGINATION
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(242, 227, 0, 0.15);
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a,
.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    background: rgba(15, 31, 53, 0.6);
    backdrop-filter: blur(10px);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    border: 1px solid rgba(242, 227, 0, 0.2);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 227, 0, 0.3);
}

.pagination .current {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    border-color: var(--accent-yellow);
    box-shadow: 0 4px 15px rgba(242, 227, 0, 0.3);
}

/* ========================================
   EMPTY STATE
======================================== */

.news-grid > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 2vw, 1.15rem);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(15, 31, 53, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 2px dashed rgba(242, 227, 0, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
======================================== */

/* Tablet (768px+) */
@media (min-width: 48rem) {
    .posts-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px+) */
@media (min-width: 64rem) {
    .posts-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 90rem) {
    .news-grid {
        padding: clamp(5rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
    }
}

/* 2K / Ultra-wide (2560px+) */
@media (min-width: 160rem) {
    .news-grid {
        max-width: 120rem;
        margin: 0 auto;
    }
    
    .posts-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .section-header {
        max-width: 120rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 30rem) {
    .news-grid {
        padding: 2rem 1rem;
    }
    
    .posts-wrapper {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .news-thumb {
        height: 10rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-date {
        padding: 0.35rem 0.85rem;
    }
    
    .btn-read-more {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }
    
    .pagination {
        gap: 0.5rem;
    }
    
    .pagination .nav-links {
        gap: 0.35rem;
    }
    
    .pagination a,
    .pagination .current {
        min-width: 2.5rem;
        height: 2.5rem;
        padding: 0 0.75rem;
    }
    
    .section-header {
        padding: 0 0.5rem;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 22.5rem) {
    .news-grid {
        padding: 1.5rem 0.75rem;
    }
    
    .news-thumb {
        height: 8rem;
    }
    
    .news-content {
        padding: 0.875rem;
    }
    
    .news-excerpt {
        margin-bottom: 1rem;
    }
    
    .pagination a,
    .pagination .current {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.5rem;
        font-size: 0.8rem;
    }
}
