/* =========================
   BLOG PAGE CSS
========================= */

.blog-banner {

    height: 50vh;

    background: url('../images/banners/banner4.jpg') center/cover no-repeat;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

}

.banner-overlay {

    position: absolute;

    width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.6);

}

.banner-content {

    position: relative;

    z-index: 2;

    text-align: center;

    color: #fff;

}

.banner-content h1 {

    font-size: 52px;

    margin-bottom: 10px;

}

.blog-section {

    padding: 80px 0;

    background: #f8f9fa;

}

.blog-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

}

.blog-card {

    background: #fff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition: 0.3s;

}

.blog-card:hover {

    transform: translateY(-8px);

}

.blog-image img {

    width: 100%;

    height: 250px;

    object-fit: cover;

}

.blog-content {

    padding: 25px;

}

.blog-date {

    font-size: 14px;

    color: #777;

}

.blog-content h3 {

    margin: 15px 0;

    font-size: 24px;

    line-height: 1.5;

}

.blog-content p {

    color: #555;

    margin-bottom: 20px;

}

.read-btn {

    display: inline-block;

    padding: 10px 20px;

    background: #0a58ca;

    color: #fff;

    border-radius: 5px;

    transition: 0.3s;

}

.read-btn:hover {

    background: #084298;

}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px) {

    .blog-grid {

        grid-template-columns: 1fr;

    }

}

@media(max-width: 768px) {

    .banner-content h1 {

        font-size: 34px;

    }

    .blog-content h3 {

        font-size: 22px;

    }

}

@media(max-width: 480px) {

    .banner-content h1 {

        font-size: 28px;

    }

    .banner-content p {

        font-size: 14px;

        padding: 0 10px;

    }

    .blog-content {

        padding: 20px;

    }

    .blog-content h3 {

        font-size: 20px;

    }

}

/* =========================
   BLOG MODAL
========================= */

.blog-modal {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.7);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 9999;

}

.modal-content {

    background: #fff;

    width: 100%;

    max-width: 700px;

    padding: 35px;

    border-radius: 10px;

    position: relative;

    animation: popup 0.3s ease;

    max-height: 90vh;

    overflow-y: auto;

}

.modal-content h2 {

    margin-bottom: 20px;

    color: #0a58ca;

    line-height: 1.5;

}

.modal-content p {

    line-height: 2;

    color: #555;

}

.close-modal {

    position: absolute;

    top: 15px;

    right: 20px;

    font-size: 32px;

    cursor: pointer;

    color: #333;

}

@keyframes popup {

    from {

        transform: scale(0.8);

        opacity: 0;

    }

    to {

        transform: scale(1);

        opacity: 1;

    }

}

/* MOBILE */

@media(max-width: 768px){

    .modal-content{

        padding: 25px;

    }

    .modal-content h2{

        font-size: 24px;

    }

}

@media(max-width: 480px){

    .modal-content{

        padding: 20px;

    }

    .modal-content h2{

        font-size: 20px;

    }

    .modal-content p{

        font-size: 14px;

        line-height: 1.8;

    }

}