/* ==========================================================================
   Al Iman Quran Academy - Section 5: Stats Banner Widget CSS
   ========================================================================== */

.sbw-stats-section {
    position: relative;
    width: 100%;
    padding: 100px 0 70px 0;
    font-family: 'Philosopher', sans-serif;
    color: var(--sbw-white, #ffffff);
    box-sizing: border-box;
    overflow: visible;
}

.sbw-stats-section * {
    font-family: 'Philosopher', sans-serif;
}

.sbw-stats-container {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Green Banner Box */
.sbw-stats-banner-box {
    position: relative;
    background-color: var(--sbw-primary, #058349);
    border-radius: 24px;
    padding: 55px 50px 55px 440px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 320px;
    box-shadow: 0 20px 50px rgba(5, 131, 73, 0.35);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Pattern & Faded Islamic SVG Overlay */
.sbw-stats-pattern-overlay {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.sbw-stats-islamic-svg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.85;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, transparent 100%);
}

/* Left Breakout Circular Image Wrapper (Top Only Overflow) */
.sbw-stats-img-wrapper {
    position: absolute;
    left: 35px;
    top: -70px;
    width: 390px;
    height: 390px;
    z-index: 10;
}

/* Circular Image Box */
.sbw-stats-circle-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
}

.sbw-stats-circle-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gold Student Badge (Enlarged & Positioned Inside Green Box at Bottom Left) */
.sbw-stats-badge {
    position: absolute;
    bottom: 25px;
    left: 15px;
    z-index: 12;
    background-color: var(--sbw-secondary, #FFB606);
    color: var(--sbw-dark, #222222);
    border-radius: 50px;
    padding: 16px 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border: 4px solid #ffffff;
}

.sbw-stats-badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--sbw-primary, #058349);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sbw-stats-badge-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sbw-stats-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sbw-stats-badge-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--sbw-dark, #222222);
    letter-spacing: -0.5px;
}

.sbw-stats-badge-sub {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Right Content Block */
.sbw-stats-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 5;
}

.sbw-stats-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.22;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.sbw-stats-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    max-width: 650px;
}

/* Bottom Stats & Action Bar */
.sbw-stats-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 15px;
}

.sbw-stats-rating-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sbw-stats-rating-score {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.sbw-stats-rating-sub {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.sbw-stats-stars {
    color: var(--sbw-secondary, #FFB606);
    font-size: 18px;
    letter-spacing: 2px;
}

.sbw-stats-cta-btn {
    background-color: var(--sbw-secondary, #FFB606);
    color: var(--sbw-dark, #222222);
    font-size: 15px;
    font-weight: 700;
    padding: 15px 36px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(255, 186, 6, 0.35);
}

/* Responsive Queries */
@media (max-width: 1200px) {
    .sbw-stats-banner-box {
        padding-left: 360px;
    }
    .sbw-stats-img-wrapper {
        width: 320px;
        height: 320px;
        left: 20px;
        top: -50px;
    }
    .sbw-stats-badge {
        padding: 12px 24px;
    }
    .sbw-stats-badge-num {
        font-size: 26px;
    }
    .sbw-stats-title {
        font-size: 34px;
    }
}

@media (max-width: 880px) {
    .sbw-stats-section {
        padding: 80px 0 50px 0;
    }
    .sbw-stats-banner-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 190px 30px 40px 30px;
    }
    .sbw-stats-img-wrapper {
        top: -70px;
        left: 50%;
        transform: translateX(-50%);
        width: 250px;
        height: 250px;
    }
    .sbw-stats-badge {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .sbw-stats-action-bar {
        flex-direction: column;
        gap: 20px;
    }
    .sbw-stats-title {
        font-size: 28px;
    }
}
