/* Audience Selector Modal Styles */

.audience-modal-content {
    background: transparent;
    border: none;
    /* border-radius: 30px; */
    overflow: hidden;
    /* box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5); */
}

.audience-card-wrapper {
    overflow: hidden;
    /* height: 500px; */
    /* Let content define height or set fixed */
    min-height: 500px;
}

.audience-card {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Backgrounds */
.card-parents {
    background: #0b0e13;
    /* Dark base */
}

.card-pros {
    background: #151515;
    /* Slightly lighter/different base */
}

/* Hover Effects */
.audience-card:hover {
    z-index: 2;
    box-shadow: 0 0 50px rgba(255, 8, 8, 0.15);
    /* Slightly reduced bloom */
    border-color: var(--gt-theme);
}

.audience-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: transform 0.8s ease;
    z-index: 0;
}

/* Assign different BG images if available, else standard pattern or gradient */
.card-parents .card-bg {
    background-image: url('../../assets/img/articles/afterschoolbanner.jpg');
}

.card-pros .card-bg {
    background-image: url('../../assets/img/articles/lebanese_breadcrumb.jpeg');
}

.audience-card:hover .card-bg {
    transform: scale(1.1);
    opacity: 0.4;
}

/* Content */
/* Ensure content is above background so button borders aren't hidden */
.audience-card .content {
    position: relative;
    z-index: 10;
    max-width: 400px;
    padding: 20px;
    /* Add padding to prevent clip overlap */
}

/* Fix for button corner borders getting cut off */
.audience-card .gt-theme-btn {
    position: relative;
    z-index: 20;
    margin-top: 20px;
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--gt-theme);
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.audience-card:hover .icon-wrapper {
    background: var(--gt-theme);
    color: #fff;
    transform: scale(1.1) rotate(10deg);
    border-color: var(--gt-theme);
}

.audience-card h3 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audience-card p {
    color: #bbb;
    font-size: 16px;
    line-height: 1.6;
}

/* Light Theme Overrides */
/* Only apply if we are in a context that requires it, but simpler to keep modal dark always for impact */
/* OR, we can let it adapt. Let's make it ALWAYS DARK for that "Premium" feel, even on light theme */

/* Close Button */
.btn-close-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.btn-close-custom:hover {
    background: var(--gt-theme);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 991px) {
    .audience-card-wrapper {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .audience-card-wrapper {
        min-height: auto;
        /* height: 250px; */
    }

    .audience-card {
        padding: 25px 15px;
    }

    /* Hide description text on mobile to save space */
    .audience-card p {
        display: none;
    }

    /* Reduce icon size */
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px !important;
    }

    .audience-card h3 {
        font-size: 20px;
        margin-bottom: 15px !important;
    }

    .audience-card .gt-theme-btn {
        margin-top: 10px;
        padding: 12px 20px;
        font-size: 14px;
        min-width: auto;
    }
}