body {
    background-color: #f0f4ff;
    font-family: "Segoe UI", sans-serif;
}

.navbar-custom {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 16px 16px;
}

.hero-carousel .carousel-item {
    height: 420px;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

.hero-carousel .carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    border-radius: 0 0 16px 16px;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    text-align: left;
}

.section-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card-megamendung {
    background-image: url("/images/megamendung.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card-megamendung-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.88);
    z-index: 0;
    border-radius: 16px;
}

.card-megamendung-content {
    position: relative;
    z-index: 1;
}

.program-card {
    background: #f0f4ff;
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.2s;
}

.program-card:hover {
    transform: translateY(-3px);
}

.cara-bergabung-section {
    background-image: url("/images/Background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cara-bergabung-title {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem auto;
    display: block;
}

.cara-bergabung-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cara-bergabung-title-wrapper img {
    width: 120px;
    object-fit: contain;
    mix-blend-mode: screen;
}

.cara-bergabung-title-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    font-family: Georgia, serif;
    white-space: nowrap;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.step-item {
    text-align: center;
    color: white;
}

.step-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    mix-blend-mode: screen;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.step-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.footer-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    padding: 1rem 0;
}

.layanan-section {
    background-image: url("/images/Background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.layanan-header {
    width: 100%;
    gap: 1rem;
}

.layanan-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.layanan-title-wrapper img {
    width: 60px;
    object-fit: contain;
    mix-blend-mode: screen;
}

.layanan-title-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    font-family: Georgia, serif;
    margin: 0;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
    white-space: normal;
    text-align: center;
}

.layanan-btn {
    background: white;
    color: #0d6efd;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.layanan-btn:hover {
    background: #f0f4ff;
    color: #0a58ca;
    transform: translateX(3px);
}

.layanan-btn-arrow {
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.layanan-card {
    background: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform 0.2s;
}

.layanan-card:hover {
    transform: translateY(-3px);
    background: whitesmoke;
}

.layanan-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1679ab;
    font-family: Georgia, serif;
    margin-bottom: 0.75rem;
}

.layanan-card-desc {
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #102c57;
    line-height: 1.6;
    margin-bottom: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.layanan-badge {
    background: rgba(13, 110, 253, 0.7);
    color: #102c57;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin: 2px;
}

.megamendung-img {
    width: 50px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* ─── Galeri ─────────────────────────────────────────── */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.bg-mgmd {
    background-image: url("/images/Background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ─── LITERA Hero Section ─────────────────────────────── */
.litera-hero-section {
    background-image: url("/images/Background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.litera-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2vw, 16px);
    margin-bottom: 0.4rem;
    flex-wrap: nowrap;
}

.litera-ornament {
    width: clamp(28px, 6vw, 60px);
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    flex-shrink: 0;
}

.litera-logo-text {
    font-size: clamp(1.4rem, 5vw, 2.8rem);
    font-weight: 900;
    color: white;
    letter-spacing: clamp(2px, 1vw, 6px);
    font-family: Georgia, serif;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.litera-tagline {
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    font-size: clamp(0.75rem, 2vw, 1rem);
    padding: 0 0.5rem;
}

.litera-desc-text {
    color: white;
    font-weight: 700;
    line-height: 1.7;
    max-width: 700px;
    width: 100%;
    margin: 0 auto 2rem;
    font-family: "Segoe UI", sans-serif;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-size: clamp(0.8rem, 2.2vw, 1.05rem);
    padding: 0 0.5rem;
}

/* ─── Tombol LITERA ───────────────────────────────────── */
.litera-btn-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.litera-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2vw, 12px);
    background: linear-gradient(
        180deg,
        #e8eef5 0%,
        #c5d0dc 35%,
        #d8e2eb 65%,
        #bcc8d4 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: clamp(0.4rem, 1.5vw, 0.8rem) clamp(1rem, 6vw, 3rem);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: transform 0.2s;
    max-width: 100%;
    width: auto;
}

.litera-cta-btn:hover {
    transform: scale(1.03);
}

.litera-cta-btn span {
    font-size: clamp(1rem, 5vw, 2rem);
    font-weight: 900;
    letter-spacing: clamp(2px, 1.5vw, 5px);
    color: #1a5f8f;
    font-family: Georgia, serif;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.btn-orn-img {
    width: clamp(18px, 4vw, 40px);
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    flex-shrink: 0;
}

/* ─── Litera Card (lama, tetap dipertahankan) ─────────── */
.litera-card {
    padding: 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform 0.2s;
}

.litera-card-desc {
    font-family: "Poppins", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    line-height: 1.6;
    margin-bottom: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 400px) {
    .litera-hero-section {
        padding: 1.2rem 0.75rem;
        border-radius: 14px;
    }

    .litera-cta-btn {
        padding: 0.4rem 1rem;
        gap: 6px;
        border-radius: 10px;
    }

    .litera-cta-btn span {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .btn-orn-img {
        width: 18px;
    }

    .megamendung-img {
        width: 40px;
    }
}

@media (min-width: 401px) and (max-width: 576px) {
    .litera-cta-btn span {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .btn-orn-img {
        width: 24px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .litera-hero-section {
        padding: 2rem 1.5rem;
    }

    .litera-cta-btn span {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .btn-orn-img {
        width: 30px;
    }

    .megamendung-img {
        width: 60px;
    }

    .layanan-title-text {
        font-size: 1.6rem;
    }
}

@media (min-width: 769px) {
    .litera-hero-section {
        padding: 3rem 2rem;
    }

    .litera-cta-btn span {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .btn-orn-img {
        width: 40px;
    }

    .megamendung-img {
        width: 80px;
    }

    .layanan-title-text {
        font-size: 2rem;
    }

    .layanan-section {
        padding: 3rem 2rem;
    }
}
