/* =========================
   BEAUTIFUL BLOG MODAL
========================= */

.blog-modal{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-modal.active{
    display: flex;
    animation: fadeIn .3s ease;
}

.blog-modal-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
}

.blog-modal-content{
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 2;
    animation: modalUp .4s ease;
}

.blog-modal-image img{
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 22px 22px 0 0;
}

.blog-modal-body{
    padding: 40px;
}

.blog-modal-date{
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.blog-modal-body h2{
    font-size: 34px;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #111;
    font-weight: 700;
}

.blog-modal-article p{
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 22px;
}

.blog-modal-article blockquote{
    background: #f8f8f8;
    border-left: 5px solid #e12454;
    padding: 25px;
    font-size: 20px;
    font-style: italic;
    color: #333;
    border-radius: 10px;
    margin: 35px 0;
}

.blog-modal-close{
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 5;
    transition: .3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.blog-modal-close:hover{
    background: #e12454;
    color: #fff;
    transform: rotate(90deg);
}

/* ANIMATIONS */

@keyframes modalUp{
    from{
        opacity: 0;
        transform: translateY(40px) scale(.95);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

/* RESPONSIVE */

@media(max-width:768px){

    .blog-modal-body{
        padding: 25px;
    }

    .blog-modal-body h2{
        font-size: 26px;
    }

    .blog-modal-image img{
        height: 240px;
    }

    .blog-modal-article p{
        font-size: 16px;
    }
}