/* ============ Base Styles ============ */

body.modal-open {
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

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

.blog-hed .caption h1 {
    font-size: 55px;
}

/* ============ Blog Section ============ */

.blog-mp .item {
    margin-bottom: 50px;
}

.blog-mp .item .img {
    border-radius: 15px;
    height: 255px;
    overflow: hidden;
}

.blog-mp .item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hed .container {
    padding: 120px 60px;
}

/* ============ Modal Styles ============ */

.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.news-modal .modal-content {
    position: fixed;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    width: 45%;
    max-height: 80vh;
    overflow-y: auto;
    background-color: var(--theme-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    z-index: 1001;
    animation: modalFade 0.3s ease-in-out;
}

.news-modal .modal-content img {
    width: 100%;
    max-height: 480px;
    display: block;
    margin-bottom: 1rem;
}

.news-modal .modal-content p {
    color: var(--main-color);
}

.news-modal .modal-gallery {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

.news-modal .modal-gallery img {
    max-width: 350px;
    max-height: 350px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.news-modal .modal-close {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--main-color);
}

/* ============ Responsive Styles ============ */

@media (max-width: 992px) {
    .blog-mp .item .img {
        height: 400px;
    }

    .hero-image {
        height: 450px;
        font-size: 1.75rem;
    }

    .news-modal .modal-content {
        max-width: 95%;
        width: 95%;
        top: 35%;
    }
}

@media (max-width: 767px) {
    .blog-hed .caption h1 {
        font-size: 40px;
    }

    .blog-hed .container {
        padding: 80px 30px;
    }

    .news-modal .modal-content {
        max-width: 95%;
        width: 95%;
        top: 40%;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 400px;
        font-size: 1.5rem;
    }

    .blog-hed .caption h1 {
        font-size: 30px;
    }

    .blog-hed .container {
        padding: 60px 20px;
    }

    .blog-mp .item .img {
        height: 400px;
    }

    .news-modal .modal-content {
        max-width: 95%;
        width: 95%;
        top: 50%;
    }

    .modal-gallery {
        grid-template-columns: repeat(1, 1fr);
    }

}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
