#postPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    border-radius: 5px;
    max-height: 90vh; /* Set maximum height for the popup */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max height */
}

.popup_dis{
    padding-top: 10px;
}

.popup-content {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    opacity: 0;
    visibility: hidden;
}


.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

.popup-left {
    width: 35%;
    overflow: hidden;
}

.popup-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-right {
    flex: 2;
    padding: 40px;
}

.popup-right h2 {
    margin-top: 0;
}

.popup-brand {
    display: inline-block;
    padding: 10px 10px 1px 10px;
    background-color: #FFADF6;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    border-radius: 20px;
    text-align: center;
}

.popup-title {
    font-family: 'Raleway', sans-serif;
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 46.96px;
    letter-spacing: var(--DisplayLargeTracking, 0.05em);
    text-align: left;
    border-radius: 20px;
    padding-top: 10px;
}

.popup-brand h2 {
    color: #000;
    font-size: 14px !important;
}

.popup-offer {
    padding: 1px;
}

.popup-button.favorite-button {
    border: 1px solid #FFADF6;
    color: black;
    border-radius: 50px;
}

.popup-button.favorite-button:hover {
    border: 2px solid #FFADF6;
}

.popup-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 50px;
}

.popup-buttons button {
    background: #fff;
    border: unset;
    border-radius: 50px;
    border: 2px solid #fff;
}

.popup-buttons button:hover {
    border: 2px solid #FFADF6;
}

.popup-button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: #fff;
    border-radius: 50px;
}

#visitSite {
    background-color: black;
    color: white;
}

.visible {
    opacity: 1;
    visibility: visible;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2000;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #postPopup {
        width: 95%;
        max-height: 80vh; /* Reduce max height slightly for smaller screens */
    }

    .popup-left {
        width: 100%;
    }

    .popup-right {
        padding: 20px;
    }

    .popup-title {
        font-size: 28px !important;
        line-height: 32px !important;
    }

    .popup-brand h2 {
        font-size: 16px !important;
    }

    .popup-button.favorite-button {
        font-size: 14px;
    }

    .popup-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .popup-buttons button {
        width: 100%;
        margin-top: 10px;
    }

    .popupPostExcerpt{
        font-size:18px !important;
    }
    .popup-buttons button {
       
        font-size: 21px !important;
    }
}

@media (max-width: 480px) {
    .popup-right {
        padding: 15px;
    }

    .popup-title {
        font-size: 24px !important;
    }

    .popup-brand {
        font-size: 12px;
    }



    .popupPostExcerpt{
        font-size:18px !important;
    }
    .popup-buttons button {
       
        font-size: 21px !important;
    }
}

/* General Close Button Styling */
.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    width: 40px;  /* Larger size for better accessibility */
    height: 40px; /* Larger size for better accessibility */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7); /* Optional: Background to make it more visible */
    color: #fff;
}

/* Mobile Responsive Close Button */
@media (max-width: 768px) {
    .popup-content .close {
        width: 50px;  /* Even larger for mobile */
        height: 50px;
        font-size: 28px; /* Larger font size */
        top: 15px;
        right: 15px;
    }
}

/* Optional: Position Close Button at the Bottom for Mobile */
@media (max-width: 768px) {
    .popup-content .close {
        position: fixed; /* Fix position for easy access */
        top: auto;       /* Override top position */
        bottom: 20px;    /* Position at the bottom */
        right: 20px;
        z-index: 1001;  /* Ensure it stays above content */
    }
}
