/* =========================================================
   SHINWA JLC — home.css
   Homepage-only sections: program cards + success slider.
   Loaded together with base.css.
   ========================================================= */

.program-section {
    width: var(--maxw);
    margin: 0 auto 10px;
}

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.6vw, 32px);
    color: var(--ink);
}

.container1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.box {
    background: var(--paper);
    padding: 26px 22px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.restimg {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.box h2 {
    font-family: var(--font-heading);
    color: var(--shu);
    font-size: 20px;
    margin-bottom: 6px;
}

.box .box-tag {
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 14px;
}

.box h3 {
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 500;
    margin: 0 0 18px;
}

.box .card-btn {
    margin-top: auto;
    align-self: center;
}

/* ---------- Success slider ---------- */
.success-section {
    width: var(--maxw);
    margin: 60px auto;
    text-align: center;
}

.slider {
    position: relative;
    width: min(100%, 680px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.slide {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: none;
}

.slide.active {
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.slider-dots button.active {
    background: var(--shu);
    transform: scale(1.25);
}

@media (max-width: 900px) {
    .container1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .restimg {
        height: 220px;
    }

    .slide {
        height: 250px;
    }
}
