/* ================= CARD LAYOUT ================= */
.card-wrapper {
    position: relative;
}
.rotate-90 {
    transform: rotate(90deg);
}
.main-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #e0f2fe, #ffffff);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 140px;
}

.main-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    background: #79a7ec;
}
.main-card:hover h6,
.main-card:hover p {
    color: #fff !important;
}

/* ================= FULLSCREEN POPUP ================= */
.popup-box {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

.popup-box.active {
    opacity: 1;
    visibility: visible;
}

/* ================= POPUP CONTENT ================= */
.popup-content {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 1.75rem;
    width: 90%;
    max-width: 920px;
    max-height: 85vh;
    /* prevent overflow */
    padding: 2.5rem 2rem;
    text-align: center;

    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);

    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.popup-box.active .popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ================= POPUP TITLE ================= */
#popupTitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0d6efd;
}

/* ================= POPUP LIST ================= */
#popupList {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 60vh;
    /* scrollable content */
    padding-right: 0.25rem;
}

#popupList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.4rem;
    background: #f8fafc;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

#popupList li:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

/* ================= BUTTONS ================= */
.popup-content .btn {
    transition: all 0.25s ease;
    padding: 0.5rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.popup-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, .25);
}

/* ================= CLOSE ICON ================= */
.popup-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: rotate(90deg);
}

/* ================= SCROLLBAR STYLING ================= */
#popupList::-webkit-scrollbar {
    width: 6px;
}

#popupList::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.4);
    border-radius: 3px;
}

#popupList::-webkit-scrollbar-track {
    background: transparent;
}

.cta-section {
    position: relative;
    padding: 11rem 0;
    overflow: hidden;
    background-color: #0d6efd;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(13, 110, 253, .15), transparent 70%);
    top: -120px;
    left: -120px;
}

.cta-section::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(13, 110, 253, .12), transparent 70%);
    bottom: -120px;
    right: -120px;
}

.cta-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.cta-content.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .75rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(13, 110, 253, .35);
    transition: all .25s ease;
}

.cta-btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 50px rgba(13, 110, 253, .45);
}

.cta-btn-outline {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    border: 2px solid #0d6efd;
    color: #0d6efd;
    border-radius: 50px;
    padding: .75rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all .25s ease;
}

.cta-btn-outline:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-4px) scale(1.05);
}
