/* ================================
   NEWS PAGE SPECIFIC STYLES
================================ */

.news-hero {
    position: relative;
    padding: 12rem 2rem 6rem;
    text-align: center;
    background: #e6e6e6;
    /* Warm white base */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(240, 240, 240, 0) 0%, rgba(240, 240, 240, 1) 90%);
    pointer-events: none;
    z-index: 1;
}

.news-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--text-body);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.news-hero p {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.news-grid-section {
    padding: 2rem 5% 8rem;
    background: var(--bg-body);
    position: relative;
    z-index: 2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Prevent single items from stretching to fill entire width */
.news-grid .news-card:only-child,
.news-grid .news-card:first-child:nth-last-child(1) {
    max-width: 450px;
    justify-self: start;
}

.news-card {
    background: transparent;
    border: none;
    overflow: visible;
    /* Allowing hover effects */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-img-wrapper {
    height: 400px;
    /* Cinematic height */
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    margin-bottom: 2rem;
}

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

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
    /* Subtle zoom */
}

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

.news-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-content {
    padding: 0 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.news-date {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    margin-bottom: 1rem;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-body);
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--gold);
}

.news-excerpt {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-body);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.news-card:hover .read-more {
    color: var(--gold);
    letter-spacing: 3px;
}

/* ================================
   MODAL - PREMIUM POPUP
================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex !important;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #e6e6e6;
    margin: auto;
    padding: 0;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 900px;
    position: relative;
    border-radius: 4px;
    animation: modalFadeIn 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    height: 500px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #1a1a1a;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--gold);
}

.modal-image-container {
    flex: 1;
    background: #e6e6e6;
    position: relative;
    overflow: hidden;
}

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

.modal-text {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-date {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.modal-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .news-hero {
        padding: 8rem 1.5rem 4rem;
    }

    .news-hero h1 {
        font-size: 2.5rem;
    }

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

    .news-img-wrapper {
        height: 300px;
    }

    .modal-content {
        flex-direction: column;
        height: 80vh;
        max-width: 95%;
    }

    .modal-image-container {
        height: 250px;
        flex: none;
    }

    .modal-text {
        padding: 2rem;
    }

    .modal-text h2 {
        font-size: 1.8rem;
    }
}