/* Style for the main popup container */
.popup-container {
    position: fixed;
    width: 380px;
    height: auto;
    background-color: #062539;
    color: #fff;
    z-index: 99999;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.popup-container.show-popup {
    opacity: 1;
    visibility: visible;
}

/* Style for the content inside the popup */
.popup-content {
    position: relative;
    padding: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 380px;
    width: 100%;
}

/* Style for the close button */
.popup-close {
    content: "X";
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.001);
    padding: 5px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    border: none;
    color: white;
    z-index: 50;
}

/* Style for the featured image container */
.preview-image-container {
    height: auto;
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* Style for the image inside the featured image container */
.preview-image-container img {
    width: 100%;
    display: block;
}

/* Style for the "Featured" label overlay on the image */
.overlay-featured-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(21, 21, 21, 0.3);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Style for the container of the displayed data */
.preview-details-container{
    padding: 20px;
}

/* Style for the post details, like title and excerpt */
.preview-details-container h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0px;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

/* Style for the excerpt text of the post */
.preview-details-container .excerpt {
    font-size: 12px;
    color: #fff;
    line-height: 1.5;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    margin-bottom: 20px;
}

/* Style for the Read More button */
.popup-button {
    display: inline-block;
    padding: 7px 15px;
    background: #50dec8;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0px;
    margin-top: 10px;
    border: 2px solid #50dec8;
    box-shadow: inset 0 0 0 2px #062539;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Hover state style for the Read More button */
.popup-button:hover {
    background: #005177;
    border-color: #005177;
}


/* Positioning styles for the popup */

/* Center of the viewport */
.popup-container.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Top left corner of the viewport */
.popup-container.top-left {
    top: 5px;
    left: 5px;
    transform: none;
}

/* Top right corner of the viewport */
.popup-container.top-right {
    top: 5px;
    right: 5px;
    left: auto;
    transform: none;
}

/* Bottom left corner of the viewport */
.popup-container.bottom-left {
    bottom: 5px;
    left: 5px;
    top: auto;
    transform: none;
}

/* Bottom right corner of the viewport */
.popup-container.bottom-right {
    bottom: 5px;
    right: 5px;
    left: auto;
    top: auto;
    transform: none;
}

/* Overlay styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}


/* Mobile-specific styles */

/* Styles to make the popup full-screen on mobile devices when the screen width is 768px or less */
@media (max-width: 768px) {
    .popup-container.mobile-fullscreen {
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        height: 70%;
        transform: none;
        border: none;
        overflow: auto;
        margin: 0 auto;
    }

    .popup-container.no-mobile {
        display: none !important;
    }

    /* Adjust content styles inside the full-screen mobile popup */
    .popup-container.mobile-fullscreen .popup-content {
        max-width: 100%;
        height: auto;
        box-shadow: none;
    }
}
@media (max-width: 580px) {
    .popup-container.mobile-fullscreen {
        top: 13%;
        left: 0;
        right: 0;
        bottom: 0;
        width: 90%;
        height: 80%;
        transform: none;
        border: none;
        overflow: auto;
        margin: 0 auto;
    }
}

/* Styling for the popup inside the slider */
.et_pb_fullwidth_slider_0 .popup-container {
    position: absolute;
    top: 5%;
    right: 0px;
    transform: translate(-50%);
    width: 80%;
    max-width: 380px;
    z-index: 10;
}

/* Estilos responsivos (por ejemplo, para pantallas más pequeñas) */
@media (max-width: 768px) {
    .et_pb_fullwidth_slider_0 .popup-container {
        width: 90%;
        transform: none !important;
    }
}
