/* ==========================================================================
   Al Iman Quran Academy - "Your Learning Journey" Roadmap Widget CSS
   ========================================================================== */

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

.sbw-lj-section {
    position: relative;
    padding: 100px 0;
    background-color: #f7faf8;
    overflow: hidden;
}

/* Background Overlay */
.sbw-lj-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

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

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

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

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

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

/* 4-Step Grid Roadmap */
.sbw-lj-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Connecting Line Removed */
.sbw-lj-grid::before {
    display: none !important;
}

.sbw-lj-card {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    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;
}

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

/* Numbered Badge (Default: Golden, Hover: Green) */
.sbw-lj-number-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--sbw-secondary, #FFB606);
    color: #091D17;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 20px rgba(255, 182, 6, 0.4);
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.sbw-lj-card:hover .sbw-lj-number-badge {
    background-color: var(--sbw-primary, #058349);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(5, 131, 73, 0.45);
}

/* Icon Box */
.sbw-lj-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(5, 131, 73, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: background-color 0.3s ease;
}

.sbw-lj-icon-box img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sbw-lj-icon-fallback {
    font-size: 28px;
}

.sbw-lj-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2923;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.sbw-lj-step-desc {
    font-size: 14.5px;
    color: #55635d;
    line-height: 1.55;
    margin: 0;
}

/* Responsive Queries */
@media (max-width: 1199px) {
    .sbw-lj-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .sbw-lj-grid::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .sbw-lj-section {
        padding: 70px 0;
    }
    .sbw-lj-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sbw-lj-main-title {
        font-size: 30px;
    }
    .sbw-lj-card {
        padding: 28px 20px 24px 20px;
    }
}
