/* ==========================================================================
   Al Iman Quran Academy - Hadith Section Widget CSS
   ========================================================================== */

.sbw-hadith-section {
    position: relative;
    width: 100%;
    padding: 90px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Philosopher', 'Outfit', sans-serif;
    color: var(--sbw-white, #ffffff);
    overflow: hidden;
    box-sizing: border-box;
}

.sbw-hadith-section *:not(.sbw-hadith-arabic) {
    font-family: 'Philosopher', 'Outfit', sans-serif;
}

/* Background Overlay */
.sbw-hadith-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Container */
.sbw-hadith-container {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Hadith Card */
.sbw-hadith-card {
    position: relative;
    background: rgba(5, 131, 73, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 182, 6, 0.4);
    border-radius: 28px;
    padding: 55px 45px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 0 30px rgba(255, 186, 6, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: sbw-hadith-card-float 6s ease-in-out infinite alternate;
}

.sbw-hadith-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(255, 186, 6, 0.2);
    border-color: rgba(255, 182, 6, 0.7);
}

/* Decorative Geometric Light Circles */
.sbw-hadith-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 182, 6, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.sbw-hadith-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(5, 131, 73, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

/* Top Crest / Icon */
.sbw-hadith-crest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--sbw-primary, #058349);
    border: 3px solid var(--sbw-secondary, #FFB606);
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 182, 6, 0.4);
    animation: sbw-hadith-pulse 3s infinite ease-in-out;
}

.sbw-hadith-crest img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sbw-hadith-icon-fallback {
    font-size: 30px;
    color: var(--sbw-secondary, #FFB606);
}

/* Subtitle Tag */
.sbw-hadith-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--sbw-secondary, #FFB606);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 182, 6, 0.3);
    margin-bottom: 30px;
}

/* Calligraphic Arabic Hadith Text */
.sbw-hadith-arabic {
    font-family: var(--sbw-font-arabic, 'Amiri', 'Traditional Arabic', serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.6;
    direction: rtl;
    margin: 0 0 25px 0;
    background: linear-gradient(110deg, #FFB606 0%, #ffffff 30%, #FFB606 50%, #ffffff 70%, #058349 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sbw-hadith-gold-shine 5s linear infinite;
    text-shadow: 0 0 25px rgba(255, 182, 6, 0.25);
    letter-spacing: 0.5px;
}

/* Divider Decoration */
.sbw-hadith-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 25px 0;
}

.sbw-hadith-divider-line {
    height: 2px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--sbw-secondary, #FFB606), transparent);
}

.sbw-hadith-divider-star {
    color: var(--sbw-secondary, #FFB606);
    font-size: 16px;
}

/* English Translation Quote */
.sbw-hadith-english {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 850px;
    margin: 0 auto 20px auto;
    font-style: italic;
}

.sbw-hadith-quote-mark {
    color: var(--sbw-secondary, #FFB606);
    font-size: 28px;
    font-weight: 700;
    line-height: 0;
    vertical-align: middle;
}

/* Reference Tag */
.sbw-hadith-reference {
    font-size: 15px;
    font-weight: 700;
    color: var(--sbw-secondary, #FFB606);
    letter-spacing: 1px;
    margin: 0;
}

/* Keyframe Animations */
@keyframes sbw-hadith-card-float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes sbw-hadith-gold-shine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes sbw-hadith-pulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 182, 6, 0.4);
    }
    50% {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 182, 6, 0.7);
    }
}

/* Responsive Queries */
@media (max-width: 767px) {
    .sbw-hadith-section {
        padding: 60px 0;
    }

    .sbw-hadith-card {
        padding: 35px 20px;
        border-radius: 20px;
    }

    .sbw-hadith-arabic {
        font-size: 30px;
        line-height: 1.7;
    }

    .sbw-hadith-english {
        font-size: 17px;
    }

    .sbw-hadith-crest {
        width: 60px;
        height: 60px;
    }
}
