.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 16px;
}

.card-container .single-subject {
    width: calc(33.3% - 16px);
    border-radius: 22px;
    text-align: center;
    background: #EBF9FF;
    text-decoration: none !important;
    font-size: 24px;
    font-weight: 600;
    color: #106F97;
    padding: 82px 0;
    position: relative;
    overflow: hidden;
}

.card-container .single-subject:nth-child(even) {
    border-radius: 66px;
}


#subject-title.heading {
    color: #000;
    font-weight: bold;
    font-size: 38px;
    text-align: center;
    padding: 40px 0;
}

.subject-bundle-container {
    padding: 100px 0;
    display: flex;
    gap: 40px;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.subject-bundle-container .title {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
}

.aladwaa-bundles {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.aladwaa-bundle {
    width: calc(25% - 15px);
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 36px;
    background-color: #E6F8FF
}

@media (max-width: 850px) {
    .aladwaa-bundle {
        width: calc(50% - 10px);
    }

}

.aladwaa-price {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 10px;
}

.aladwaa-price span {
    font-size: 24px;
    font-weight: bold;
}

.aladwaa-advantages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aladwaa-bundle h3 {
    font-weight: normal;
    font-size: 20px;
}

.aladwaa-advantages li {
    display: flex;
    margin-bottom: 12px;
}

.aladwaa-advantages li .text {
    color: #000;
    font-size: 16px;
}

.aladwaa-advantages li .icon::before {
    content: "✔";
    margin-right: 12px;
    background-color: #fff;
    width: 24px;
    height: 24px;
    display: inline-block;
    text-align: center;
    border-radius: 50px;
    line-height: 24px;
}

.aladwaa-add-to-cart {
    background-color: #00B5FF;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    width: calc(100% - 20px);
    border-radius: 50px;
    margin: 50px 10px 0;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
}


#loginPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.login-popup {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    width: 400px;

}

.login-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.login-popup h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E6E6E6;
    border-radius: 16px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #00B5FF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.social-login {
    text-align: center;
    margin: 20px 0;
}

.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.facebook-btn,
.google-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
}

.signup-btn {
    background-color: #FFD700;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
}

/* loader
************************************/
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loader-overlay.active {
    opacity: 1;
    display: flex !important;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.loader-animation {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-spinner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 2;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(33, 150, 243, 0.1);
    border-top: 3px solid #2196F3;
    border-right: 3px solid #2196F3;
    border-radius: 50%;
    animation: spinRing 2s linear infinite;
}

.edu-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 20px;
    transform-origin: center;
    opacity: 0;
}

.edu-icon:nth-child(3) {
    --angle: 0deg;
    animation: iconBurst 3s infinite linear 0s;
}

.edu-icon:nth-child(4) {
    --angle: 45deg;
    animation: iconBurst 3s infinite linear 0.375s;
}

.edu-icon:nth-child(5) {
    --angle: 90deg;
    animation: iconBurst 3s infinite linear 0.75s;
}

.edu-icon:nth-child(6) {
    --angle: 135deg;
    animation: iconBurst 3s infinite linear 1.125s;
}

.edu-icon:nth-child(7) {
    --angle: 180deg;
    animation: iconBurst 3s infinite linear 1.5s;
}

.edu-icon:nth-child(8) {
    --angle: 225deg;
    animation: iconBurst 3s infinite linear 1.875s;
}

.edu-icon:nth-child(9) {
    --angle: 270deg;
    animation: iconBurst 3s infinite linear 2.25s;
}

.edu-icon:nth-child(10) {
    --angle: 315deg;
    animation: iconBurst 3s infinite linear 2.625s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes iconBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    35% {
        transform: translate(-50%, -50%) translate(calc(cos(var(--angle, 0deg)) * 60px),
                calc(sin(var(--angle, 0deg)) * 60px)) scale(1);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, -50%) translate(calc(cos(var(--angle, 0deg)) * 80px),
                calc(sin(var(--angle, 0deg)) * 80px)) scale(1.2);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) translate(calc(cos(var(--angle, 0deg)) * 100px),
                calc(sin(var(--angle, 0deg)) * 100px)) scale(0);
        opacity: 0;
    }
}

.checkout-payment {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.checkout-payment .left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.checkout-payment .left a {
    display: inline-block;
    max-width: 160px;
    margin: 0 10px;
}



/* = popup
-----------------------------------------*/
/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup box */
.popup {
    background: #fff;
    width: 420px;
    border-radius: 35px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-in-out;
}

/* Illustration (placeholder circle with icon) */
.popup .icon {
    width: 320px;
    background: #f3f7ff;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Message */
.popup p {
    font-size: 16px;
    color: #000;
    font-weight: bold;
    margin: 15px 10px 25px;
}

/* Buttons */
.popup .buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup button {
    border: none;
    border-radius: 25px;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
}

.popup .replace {
    background: #00aaff;
    color: #fff;
}

.popup .cancel {
    background: #f5e5b6;
    color: #333;
}

/* Animation */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}