body {
    font-family: 'Montserrat','Poppins', sans-serif;
    padding-top: 0;
}

section:not(.hero-carousel) {
    scroll-margin-top: 80px;
}

.hero-carousel{
    margin-top: -70px;
}

/* --- HERO SLIDE --- */
.hero-slide {
    position: relative;
    height: min(100vh, 760px);
    overflow: hidden;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- OVERLAY GRADIENT --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15));
    z-index: 1;
}

/* --- Override default Bootstrap carousel caption --- */
.carousel-caption {
    position: absolute;
    bottom: 60px;
    /* Jarak dari bawah slide, sesuaikan dengan tinggi indikator */
    top: auto !important;
    /* Hapus efek tengah Bootstrap */
    transform: none !important;
    /* Hapus translateY(-50%) default Bootstrap */
    left: 50%;
    translate: -50% 0;
    /* Tengah horizontal */
    z-index: 2;
    width: 90%;
    max-width: 850px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    padding: 0 1rem;
}

/* Overlay gradient bawah agar teks tetap jelas */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
    z-index: 1;
}

/* Hero text */
.hero-title {
    font-weight: 700;
    line-height: 1.2;
    font-size: clamp(1rem, 3vw + 0.5rem, 2rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1vw + 0.6rem, 1.1rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

/* Tombol CTA */
.btn-cta {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- Responsif di HP --- */
@media (max-width: 576px) {
    .carousel-caption {
        bottom: 40px;
        /* sedikit lebih tinggi agar tak menutupi indikator */
    }

    .hero-title {
        font-size: clamp(0.9rem, 4vw, 1.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.75rem, 3vw, 1rem);
    }
}

/* --- RTL (untuk bahasa Arab) --- */
html[dir="rtl"] .carousel-caption {
    text-align: center;
    justify-content: center;
}

/* Brand color: senada #6F869E */
:root {
    --brand: #6F869E;
    --brand-600: #5f758c;
    --brand-50: #eef2f6;
}

.btn-brand {
    background-color: var(--brand);
    color: #fff;
    border: none;
}

.btn-brand:hover {
    background-color: var(--brand-600);
    color: #fff;
}

.btn-outline-brand {
    border: 1px solid var(--brand);
    color: var(--brand);
    background: transparent;
}

.btn-outline-brand:hover {
    background: var(--brand);
    color: #fff;
}

.section-intro {
    background: #fff;
    border-bottom: 1px solid #edf0f4;
}

.section-muted {
    background: linear-gradient(180deg, #f7f9fb 0%, #fff 100%);
}

.metric-card {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.metric-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: #111827;
    letter-spacing: .02em;
}

.metric-label {
    font-size: .85rem;
    color: #6b7280;
}

.feature-card {
    border: 1px solid #e6ebf0;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.text-brand {
    color: var(--brand) !important;
}

.bullet {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: #fff;
    border: 1px dashed #e6ebf0;
    color: #374151;
}

.tile {
    display: grid;
    place-items: center;
    gap: .35rem;
    min-height: 96px;
    padding: 1rem;
    border: 1px solid #e6ebf0;
    border-radius: .75rem;
    background: #fff;
    text-decoration: none;
    color: #111827;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tile i {
    font-size: 1.4rem;
    color: var(--brand);
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    border-color: var(--brand);
}

/* RTL small care */
html[dir="rtl"] .bullet {
    justify-content: flex-end;
}

.section-vision-mission {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #eef1f5;
}

.section-vision-mission h2 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    letter-spacing: 0.02em;
}

.section-vision-mission .card {
    border-radius: 1rem;
}

.section-vision-mission .mission-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #374151;
    display: flex;
    align-items: flex-start;
}

.section-vision-mission .mission-list li i {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.15rem;
}


.trumbowyg-box,
.trumbowyg-editor {
    border-radius: 0.5rem;
    border-color: #dee2e6;
    font-family: 'Poppins', sans-serif;
    min-height: 200px;
}

.trumbowyg-button-pane {
    border-radius: 0.5rem 0.5rem 0 0;
}

.trumbowyg-editor {
    background: #fff;
    color: #212529;
    line-height: 1.6;
}

/* Gambar dalam artikel responsif di semua device */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    /* hilangkan inline-gap */
    margin: 1rem auto;
    /* center + beri spasi vertikal */
    border-radius: .25rem;
    /* opsional: sudut lembut */
}

/* Batasi gambar yang sangat besar di layar lebar */
@media (min-width: 992px) {
    .content img {
        max-width: 900px;
        /* atau 70ch sesuai selera layout */
    }
}

/* Jika ada gambar di-wrap <figure> + <figcaption> */
.content figure {
    margin: 1.25rem auto;
}

.content figure img {
    margin: 0 auto .5rem;
}

.content figcaption {
    color: #6c757d;
    font-size: .9rem;
    text-align: center;
}

/* Jika ada gambar di-floating di artikel lama */
.content img[style*="float:left"],
.content img.float-start {
    margin: .5rem 1rem .5rem 0;
}

.content img[style*="float:right"],
.content img.float-end {
    margin: .5rem 0 .5rem 1rem;
}

@media (max-width: 576px) {

    .content img[style*="float:"],
    .content img.float-start,
    .content img.float-end {
        float: none !important;
        margin: 1rem auto !important;
    }
}

/* Responsive embed (kalau ada video di body) */
.content iframe,
.content video {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* aman untuk YouTube/Vimeo */
    display: block;
    margin: 1rem 0;
}

.rich-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.2rem;
    margin-bottom: 1.25rem;
}

.rich-text li {
    margin-bottom: 0.5rem;
}

.object-fit-cover {
    object-fit: cover !important;
}
