/* Overlay for the popup */
.popup .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    display: none; /* Hidden by default */
    
}

    
    /* For webkit browsers like Chrome, Safari, Edge */
.popup .content::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}
    
    /* Scrollbar styling for Chrome, Safari, etc. */
.popup .content::-webkit-scrollbar-thumb {
    background-color: transparent;
}


/* Popup content positioning */
.popup .content {
    border-radius: 12px;
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%) scale(0); /* Initially hidden, centered */
    background-color: white;

    width: 80%; /* For larger screens */
    max-width: 90%;
    max-height: 84vh; /* Limits height of the popup */
    overflow-y: auto; /* Allows scrolling if content overflows */
    z-index: 2;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 300ms ease-in-out;
}

.popup .content h1 {
    color: #222;
    font-size: 35px;
    margin-top: 20px;
    font-weight: bold;
}

/* Close button for the popup (absolute inside the content) */
.popup .close-btn {
    position: absolute;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #222;
    color: white;
    font-size: 25px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3; /* Ensure it's on top of other elements */
    display: none;
}
.popup .content p {
    margin-top: 10px;
    padding: 0px 20px;
    color: rgb(86, 86, 86);
    font-family: 16px;
    text-align: left;
}
.popup .content h2 {
    /* margin-top: 10px; */
    padding: 0px 20px;
    color: rgb(86, 86, 86);
    font-size: 14px;
    text-align: left;
    font-weight: bold;
    margin-bottom: -10px;
    margin-top: 10px;
}
.popup .content .pop-img{
    padding: 10px 100px;

}

/* Close button at the bottom inside the popup */
.popup .close-btn-bottom {
    margin-top: 15px;
    width: 200px;
    background-color: #222;
    color: white;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border: none;
    border-radius: 12px;
   
    align-self: center; /* Horizontally centers the button */
    margin-bottom: 5px;
}

/* Popup visible when active */
.popup.active .overlay {
    display: block;
}
.popup.active .overlay-1 {
    display: block;
}


.popup.active .content {
    transform: translateX(-50%) scale(1); /* Content becomes visible */
}

.popup.active .close-btn {
    display: block; /* Show close button when popup is active */
}


@media screen and (max-width: 1000px) {
    .popup .content img{
        /* width: 80%; */
    }

}


/* Responsive behavior for smaller screens */
@media screen and (max-width: 700px) {
    .popup .content {
        width: 87%; /* For smaller screens, reduce the width */
        max-width: 90%;
        bottom: 10%;
        padding: 20px 5px;

        top: 8%; /* Adjust top positioning for smaller screens */
    }
   
    .popup {
        /* width: 100%; */
    }
    .popup .content .pop-img{
        width: 100%;
        /* width: 80%; */
        padding: 10px 0px;
    }

    
   

}



/* Basic Style for Read More Button */
.Read-more {
    background-color: transparent; 
    color: #5e5e5e; 
    font-size: 16px; 
    border: none; 
    padding: 5px 10px; 
    padding: 0px 2px ;
    /* text-decoration: underline;  */
    cursor: pointer; /* Pointer cursor to show it is clickable */
}

.Read-more:focus {
    outline: none; /* Remove outline when focused */
}

.Read-more:active {
    color: #0056b3; /* Darker blue on click */
}
