/* ==========================================================================
   Al Iman Quran Academy - Section 4: Features Grid Widget CSS
   ========================================================================== */

.sbw-fg-section {
    position: relative;
    width: 100%;
    padding: 85px 0;
    font-family: 'Philosopher', sans-serif;
    color: var(--sbw-dark, #222222);
    box-sizing: border-box;
    background-color: #ffffff;
}

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

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

/* 3-Column Grid */
.sbw-fg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    align-items: flex-start;
}

/* Feature Card Item */
.sbw-fg-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.sbw-fg-card:hover {
    transform: translateY(-4px);
}

/* Capsule Wrapper */
.sbw-fg-capsule-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

/* Golden Mosque Arch SVG Top Outline */
.sbw-fg-arch-svg {
    width: 72px;
    height: 24px;
    margin-bottom: -5px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 2px 5px rgba(255, 186, 6, 0.3));
}

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

/* Gold Arched Capsule */
.sbw-fg-capsule {
    width: 72px;
    height: 140px;
    background-color: var(--sbw-secondary, #FFB606);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sbw-dark, #222222);
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(255, 186, 6, 0.3);
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease, box-shadow 0.4s ease;
}

.sbw-fg-capsule img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

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

/* Content Box */
.sbw-fg-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 5px;
}

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

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

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

/* Responsive Queries */
@media (max-width: 991px) {
    .sbw-fg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 640px) {
    .sbw-fg-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sbw-fg-card {
        gap: 18px;
    }
}
