/* News Section */
.news-section {
    padding: 100px 0 120px;
    background-color: var(--bg-color);
}

.news-section .container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* No News Message */
.no-news {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* News Card */
.news-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(171, 137, 101, 0.2);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.news-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #e0e0e0;
}

.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);
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.4;
    color: var(--white);
}

.news-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-size: 1.05rem;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Modal */
.news-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.news-modal-content {
    background-color: var(--bg-color);
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
    position: relative;
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(171, 137, 101, 0.2);
}

.news-modal-close {
    color: var(--white);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: var(--primary-color);
}

.modal-news-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

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

#newsModalBody {
    padding: 0;
}

.modal-news-date {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin: 30px 40px 15px;
    text-transform: uppercase;
}

.modal-news-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 40px 25px;
    line-height: 1.3;
}

.modal-news-content {
    padding: 0 40px 50px;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.3rem;
}

.modal-news-content p {
    margin-bottom: 1rem;
}

/* Image Slider */
.modal-news-slider {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.slider-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-image.active {
    opacity: 1;
    z-index: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    user-select: none;
}

.slider-btn:hover {
    background: var(--primary-color);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: var(--primary-color);
    width: 14px;
    height: 14px;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .news-section {
        padding: 60px 0 80px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-image {
        height: 200px;
    }

    .news-content {
        padding: 24px;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .news-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-news-image {
        height: 250px;
    }

    .modal-news-slider {
        height: 250px;
    }

    .slider-btn {
        font-size: 18px;
        padding: 10px 15px;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 10px;
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 12px;
        height: 12px;
    }

    .modal-news-date {
        margin: 20px 24px 12px;
    }

    .modal-news-title {
        font-size: 1.6rem;
        margin: 0 24px 20px;
    }

    .modal-news-content {
        padding: 0 24px 40px;
        font-size: 1rem;
    }

    .news-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .news-grid {
        gap: 24px;
    }

    .news-content {
        padding: 20px;
    }
}
