/* ==========================================================================
   Al Iman Quran Academy - Featured Program Highlight Widget CSS
   ========================================================================== */

.sbw-fp-section * {
    font-family: 'Philosopher', sans-serif;
    box-sizing: border-box;
}

.sbw-fp-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--sbw-dark, #091D17);
    color: #ffffff;
    overflow: hidden;
}

.sbw-fp-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 131, 73, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.sbw-fp-container {
    position: relative;
    z-index: 5;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.sbw-fp-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Left Media Column (Framed Image & Floating Badges) */
.sbw-fp-left {
    flex: 1;
    position: relative;
}

.sbw-fp-media-wrapper {
    position: relative;
    overflow: visible;
    padding: 0 15px 15px 0;
}

.sbw-fp-frame-box {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid var(--sbw-secondary, #FFB606);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 182, 6, 0.25);
    background-color: #058349;
}

.sbw-fp-frame-box img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.sbw-fp-frame-box:hover img {
    transform: scale(1.05);
}

/* Floating Gold Badge (Outside frame to prevent clipping) */
.sbw-fp-floating-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    z-index: 10;
    background: linear-gradient(135deg, var(--sbw-secondary, #FFB606), #e09b00);
    color: #091D17;
    padding: 16px 24px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #ffffff;
}

.sbw-fp-floating-badge-icon {
    font-size: 26px;
}

.sbw-fp-floating-badge-text {
    display: flex;
    flex-direction: column;
}

.sbw-fp-floating-badge-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.sbw-fp-floating-badge-sub {
    font-size: 12.5px;
    opacity: 0.9;
}

/* Right Content Column */
.sbw-fp-right {
    flex: 1.1;
}

.sbw-fp-badge-pill {
    display: inline-block;
    background: rgba(255, 182, 6, 0.15);
    border: 1.5px solid var(--sbw-secondary, #FFB606);
    color: var(--sbw-secondary, #FFB606);
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.sbw-fp-title {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 16px 0;
}

.sbw-fp-title span {
    color: var(--sbw-secondary, #FFB606);
}

.sbw-fp-desc {
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Key Characteristics List */
.sbw-fp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sbw-fp-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.sbw-fp-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--sbw-primary, #058349);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    border: 1px solid var(--sbw-secondary, #FFB606);
}

/* Info Pills (Duration, Format, Certificate) */
.sbw-fp-info-pills {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.sbw-fp-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.sbw-fp-pill strong {
    color: var(--sbw-secondary, #FFB606);
}

/* Button with Dual-Side Inward Hover Animation */
.sbw-fp-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 36px;
    background-color: var(--sbw-secondary, #FFB606);
    color: var(--sbw-dark, #222222);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.sbw-fp-cta-btn::before,
.sbw-fp-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    background-color: var(--sbw-primary, #058349);
    z-index: -1;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.sbw-fp-cta-btn::before {
    left: 0;
    transform: translateX(-100%);
}

.sbw-fp-cta-btn::after {
    right: 0;
    transform: translateX(100%);
}

.sbw-fp-cta-btn:hover::before,
.sbw-fp-cta-btn:hover::after {
    transform: translateX(0);
}

.sbw-fp-cta-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(5, 131, 73, 0.45);
}

.sbw-fp-cta-btn .sbw-btn-text {
    position: relative;
    z-index: 2;
}

/* Responsive Queries */
@media (max-width: 991px) {
    .sbw-fp-row {
        flex-direction: column;
        gap: 50px;
    }
    .sbw-fp-frame-box img {
        height: 380px;
    }
    .sbw-fp-title {
        font-size: 30px;
    }
    .sbw-fp-floating-badge {
        bottom: -15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .sbw-fp-section {
        padding: 70px 0;
    }
    .sbw-fp-frame-box img {
        height: 280px;
    }
    .sbw-fp-title {
        font-size: 26px;
    }
    .sbw-fp-desc {
        font-size: 14.5px;
    }
    .sbw-fp-cta-btn {
        width: 100%;
    }
}
