/* ==========================================================================
   Al Iman Quran Academy - Core Islamic Values CSS
   ========================================================================== */

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

.sbw-abval-section {
    position: relative;
    padding: 100px 0;
    background-color: #ffffff;
    color: #1a2923;
    overflow: hidden;
}

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

/* Header */
.sbw-abval-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px auto;
}

.sbw-abval-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sbw-primary, #058349);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.sbw-abval-main-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a2923;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.sbw-abval-main-title span {
    color: var(--sbw-primary, #058349);
}

.sbw-abval-desc {
    font-size: 16.5px;
    color: #55635d;
    line-height: 1.6;
    margin: 0;
}

/* 4 Cards Grid */
.sbw-abval-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    width: 100%;
}

.sbw-abval-card {
    background-color: var(--sbw-bg-light, #f7faf8);
    border-radius: 20px;
    padding: 36px 26px 30px 26px;
    border: 2px solid rgba(5, 131, 73, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.sbw-abval-card:hover {
    transform: translateY(-8px);
    border-color: var(--sbw-primary, #058349);
    box-shadow: 0 18px 40px rgba(5, 131, 73, 0.18);
}

.sbw-abval-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: rgba(255, 182, 6, 0.15);
    border: 2px solid var(--sbw-secondary, #FFB606);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(255, 182, 6, 0.25);
    transition: transform 0.4s ease, background 0.4s ease;
}

.sbw-abval-icon-box img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.sbw-abval-card:hover .sbw-abval-icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--sbw-primary, #058349);
    border-color: var(--sbw-primary, #058349);
}

.sbw-abval-item-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a2923;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.sbw-abval-item-desc {
    font-size: 14.5px;
    color: #55635d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Queries */
@media (max-width: 991px) {
    .sbw-abval-section .sbw-abval-container .sbw-abval-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .sbw-abval-section {
        padding: 50px 0;
    }
    .sbw-abval-container {
        padding: 0 16px;
    }
    .sbw-abval-header {
        margin-bottom: 30px;
    }
    .sbw-abval-main-title {
        font-size: 26px;
    }
    .sbw-abval-section .sbw-abval-container .sbw-abval-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .sbw-abval-section .sbw-abval-container .sbw-abval-grid .sbw-abval-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 20px 22px 20px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }
    .sbw-abval-icon-box {
        width: 54px;
        height: 54px;
        font-size: 24px;
        margin-bottom: 14px;
    }
    .sbw-abval-item-title {
        font-size: 17.5px;
        margin-bottom: 8px;
    }
    .sbw-abval-item-desc {
        font-size: 14px;
        line-height: 1.5;
    }
}
