.cet-popup-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(36, 63, 61, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-family: inherit;
    padding: 20px;
    box-sizing: border-box;
}

.cet-popup-overlay.cet-show {
    opacity: 1;
}

.cet-popup-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 38px 38px 34px;
    border-radius: 30px;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease-in-out;
    background-image:
        linear-gradient(rgba(31, 127, 120, 0.74), rgba(31, 127, 120, 0.78)),
        url("https://ceterap.com/wp-content/uploads/2026/06/WORKSHOP-CAA-CET.webp");
    background-size: cover;
    background-position: center;
}

.cet-popup-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(215,123,104,0.20), transparent 38%);
    pointer-events: none;
}

.cet-popup-content > * {
    position: relative;
    z-index: 2;
}

.cet-popup-overlay.cet-show .cet-popup-content {
    transform: translateY(0) scale(1);
}

.cet-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
}

.cet-popup-close:hover {
    background: #ffffff;
    color: #1F7F78;
}

.cet-popup-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: 0.8px;
}

.cet-popup-title {
    color: #ffffff !important;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.cet-popup-desc {
    color: #ffffff !important;
    font-size: 16px;
    line-height: 1.52;
    margin: 0 auto 22px;
    max-width: 410px;
}

.cet-popup-details {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 0 26px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.cet-popup-details span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cet-popup-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 330px;
    min-height: 56px;
    margin: 0 auto;
    padding: 16px 30px !important;
    background: #d77b68 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 16px 34px rgba(215, 123, 104, 0.42);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.cet-popup-btn,
.cet-popup-btn:visited,
.cet-popup-btn:hover,
.cet-popup-btn:active,
.cet-popup-btn:focus {
    color: #ffffff !important;
}

.cet-popup-btn:hover {
    background: #c96d5b !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(215, 123, 104, 0.52);
}

.cet-popup-small {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 13px;
    line-height: 1.4;
    margin: 16px 0 0;
}

@media (max-width: 767px) {
    .cet-popup-overlay {
        padding: 16px;
    }

    .cet-popup-content {
        max-width: 92vw;
        padding: 38px 22px 30px;
        border-radius: 26px;
    }

    .cet-popup-close {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .cet-popup-tag {
        font-size: 11px;
        padding: 7px 14px;
        margin-bottom: 18px;
    }

    .cet-popup-title {
        font-size: 29px !important;
        line-height: 1.12 !important;
        margin-bottom: 18px;
    }

    .cet-popup-desc {
        font-size: 15.5px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .cet-popup-details {
        flex-direction: column;
        gap: 8px;
        font-size: 15px;
        margin-bottom: 24px;
    }

    .cet-popup-btn {
        max-width: 100%;
        width: 100%;
        font-size: 16px;
        min-height: 54px;
    }
}

@media (max-width: 380px) {
    .cet-popup-title {
        font-size: 26px !important;
    }

    .cet-popup-desc {
        font-size: 14.5px;
    }

    .cet-popup-content {
        padding: 38px 18px 28px;
    }
}