/* Card Hover Effects */
.blog-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.blog-item:hover .blog-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
}

.blog-item:hover .blog-title {
    color: #e04558;
}

/* Modal Overlay */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 15px;
    overflow-y: auto; /* ✅ scroll enable */
}

.news-modal-overlay.active {
    /*display: flex;*/
    opacity: 1;
}

/* Modal Content Box */
.news-modal {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 800px;

    border-radius: 20px;
    position: relative;

    max-height: 90vh;

    overflow-y: auto; /* ✅ main fix: full scroll */
    
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-modal-overlay.active .news-modal {
    transform: scale(1);
}

/* Close Button */
.news-modal-close {
    position: sticky;   /* ✅ main fix */
    top: 10px;
    float: right;       /* right side pe rahe */

    width: 40px;
    height: 40px;

    background: #e04558;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    z-index: 10002;
    color: #ffffff;
    font-size: 1.5rem;
}


.news-modal-close:hover {
    background: #e04558;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Modal Image */
.news-modal-img {
    width: 100%;
    height: 250px; /* default mobile */
    flex-shrink: 0;
}

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

/* Modal Body */
.news-modal-body {
    padding: 2rem;
  /*  overflow-y: auto;      ✅ content scroll */
}

.news-modal-date {
    font-size: 1rem;
    color: #e04558;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.news-modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1a1a1a;
}

.news-modal-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-modal-body {
        padding: 2rem;
    }

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

    .news-modal-title {
        font-size: 1.5rem;
    }

    .news-modal-desc {
        font-size: 1rem;
    }
}
@media (min-width: 768px) {
    .news-modal-img {
        height: 400px;
    }

    .news-modal-body {
        padding: 3rem;
    }
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}