/* ==========================================================================
   Al Iman Quran Academy - About & Quality Education Widget CSS
   ========================================================================== */

/* Enforce Philosopher Font across the section */
.sbw-about-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-dark, #222222);
    overflow: hidden;
    box-sizing: border-box;
}

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

/* Background Overlay */
.sbw-about-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-about-container {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Header Block */
.sbw-about-top-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px auto;
}

.sbw-about-crest {
    display: inline-block;
    margin-bottom: 12px;
}

.sbw-about-crest img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.sbw-about-crest-icon {
    font-size: 36px;
    color: var(--sbw-secondary, #FFB606);
}

.sbw-about-top-subtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sbw-muted, #6a6a6a);
    display: block;
    margin-bottom: 12px;
}

.sbw-about-main-title {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sbw-dark, #222222);
    margin: 0;
}

/* Highlight Underline Effect */
.sbw-about-highlight {
    position: relative;
    display: inline-block;
    color: var(--sbw-dark, #222222);
}

.sbw-about-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 4px;
    background-color: var(--sbw-secondary, #FFB606);
    border-radius: 2px;
}

/* Grid Layout */
.sbw-about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Content Column */
.sbw-about-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Faded Calligraphic Bismillah */
.sbw-about-bismillah-wrapper {
    margin-bottom: 18px;
}

.sbw-about-bismillah {
    font-family: var(--sbw-font-arabic, 'Amiri', serif) !important;
    font-size: 34px;
    font-weight: 700;
    direction: rtl;
    display: inline-block;
    opacity: 0.75;
    background: linear-gradient(110deg, #FFB606 0%, #058349 40%, #ffffff 70%, #FFB606 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sbw-about-bismillah-shine 5s linear infinite;
}

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

.sbw-about-subheading {
    font-size: 22px;
    font-weight: 700;
    color: var(--sbw-primary, #058349);
    margin: 0 0 18px 0;
    position: relative;
    padding-bottom: 6px;
}

.sbw-about-subheading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--sbw-primary, #058349);
    border-radius: 2px;
}

.sbw-about-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--sbw-muted, #6a6a6a);
    margin: 0 0 35px 0;
}

/* Feature Cards Grid */
.sbw-about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.sbw-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Feature Icon Circle */
.sbw-feature-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--sbw-secondary, #FFB606);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sbw-dark, #222222);
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(255, 186, 6, 0.35);
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

.sbw-feature-circle img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Hover effect: Circle turns Green (#058349) */
.sbw-feature-card:hover .sbw-feature-circle {
    background-color: var(--sbw-primary, #058349) !important;
    color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(5, 131, 73, 0.4);
}

.sbw-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sbw-dark, #222222);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.sbw-feature-card:hover .sbw-feature-title {
    color: var(--sbw-primary, #058349);
}

.sbw-feature-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sbw-muted, #6a6a6a);
    margin: 0;
}

/* Right Side - Arched Oval Images with Golden Mehrab Arch Outline */
.sbw-about-media-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    position: relative;
}

/* Arch Box Container */
.sbw-arch-box-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Golden Mehrab Arch SVG positioned above the image */
.sbw-mehrab-arch-svg {
    width: 210px;
    height: 60px;
    margin-bottom: -15px;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(255, 186, 6, 0.4));
}

.sbw-mehrab-arch-svg path {
    stroke: var(--sbw-secondary, #FFB606);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
}

/* Oval Arched Image Box */
.sbw-arch-img-box {
    position: relative;
    z-index: 2;
    width: 220px;
    height: 380px;
    border-radius: 200px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    border: 4px solid var(--sbw-white, #ffffff);
}

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

.sbw-arch-img-box:hover img {
    transform: scale(1.06);
}

/* Alternate Up-and-Down Continuous Floating Animation */
.sbw-float-up {
    animation: sbw-arch-float-up 5s ease-in-out infinite alternate;
}

.sbw-float-down {
    animation: sbw-arch-float-down 5s ease-in-out infinite alternate;
}

@keyframes sbw-arch-float-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-16px);
    }
}

@keyframes sbw-arch-float-down {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(16px);
    }
}

/* Responsive Queries */
@media (max-width: 991px) {
    .sbw-about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .sbw-about-main-title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .sbw-about-section {
        padding: 60px 0;
    }
    .sbw-about-main-title {
        font-size: 28px;
    }
    .sbw-about-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sbw-about-media-right {
        flex-direction: column;
        gap: 40px;
    }
    .sbw-arch-img-box {
        width: 260px;
        height: 350px;
    }
    .sbw-mehrab-arch-svg {
        width: 240px;
    }
}
