/* ==========================================================================
   Al Iman Quran Academy - Scholar Selection Rigor CSS (Organic & Non-Boxy)
   ========================================================================== */

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

.sbw-ts-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--sbw-bg-light, #f7faf8);
    color: #1a2923;
    overflow: hidden;
}

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

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

.sbw-ts-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-ts-main-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a2923;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

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

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

/* Organic 4 Stages Grid */
.sbw-ts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sbw-ts-card {
    position: relative;
    background: #ffffff;
    border-radius: 28px 28px 28px 8px;
    padding: 36px 26px 30px 26px;
    border: 2px solid rgba(5, 131, 73, 0.12);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
    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;
}

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

.sbw-ts-node {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--sbw-secondary, #FFB606);
    color: #091D17;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(255, 182, 6, 0.35);
    border: 3px solid #ffffff;
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.sbw-ts-card:hover .sbw-ts-node {
    transform: scale(1.15) rotate(10deg);
    background-color: var(--sbw-primary, #058349);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(5, 131, 73, 0.35);
}

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

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

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

@media (max-width: 767px) {
    .sbw-ts-section {
        padding: 60px 0;
    }
    .sbw-ts-container {
        padding: 0 16px;
    }
    .sbw-ts-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }
    .sbw-ts-card {
        padding: 26px 20px;
        border-radius: 20px;
    }
    .sbw-ts-main-title {
        font-size: 28px;
    }
}
