/* =================================
   MODERN DESIGN - SDIT AR-RIDWAN
================================= */

:root {
    --sdit-green: #16834b;
    --sdit-dark: #105c37;
    --sdit-light: #eaf7ef;
    --sdit-yellow: #ffc943;
    --sdit-text: #26352c;
    --sdit-muted: #6b786f;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--sdit-text);
    background: #fff;
}

html {
    scroll-behavior: smooth;
}

.navbar {
    background: rgba(255,255,255,.97) !important;
    padding: 12px 0 !important;
    box-shadow: 0 5px 25px rgba(20,70,40,.08) !important;
}

.navbar-brand span {
    color: var(--sdit-dark) !important;
    font-size: 19px;
    font-weight: 800 !important;
}

.navbar .nav-link {
    color: #34483b !important;
    font-size: 14px !important;
    font-weight: 600;
    padding: 10px 13px !important;
    transition: .25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--sdit-green) !important;
}

.navbar .nav-link.active::after {
    background: var(--sdit-yellow) !important;
    height: 3px !important;
}

.navbar .btn-primary {
    background: var(--sdit-green) !important;
    border-color: var(--sdit-green) !important;
    border-radius: 30px;
    font-weight: 600;
}

/* HERO */
#hero {
    position: relative;
}

#hero .hero-slide {
    min-height: 570px;
    background-size: cover;
    background-position: center;
    position: relative;
}

#hero .hero-overlay {
    min-height: 570px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(8,48,28,.78), rgba(8,48,28,.18));
}

#hero .hero-text {
    font-size: clamp(30px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 3px 15px rgba(0,0,0,.2);
}

#hero .hero-subtitle {
    max-width: 700px;
    margin: 18px auto 0;
    font-size: 17px;
    line-height: 1.8;
}

/* PROGRAM */
.program-section {
    margin-top: -65px !important;
    position: relative;
    z-index: 5;
}

#program .col-lg-3 > div {
    border: 1px solid #edf3ee;
    border-radius: 18px !important;
    min-height: 112px;
    padding: 22px !important;
    box-shadow: 0 12px 30px rgba(25,80,45,.09) !important;
    transition: .3s ease;
}

#program .col-lg-3 > div:hover {
    transform: translateY(-7px);
    border-color: #b9e5c8;
}

#program p {
    color: var(--sdit-dark);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}

/* SECTION HEADINGS */
#berita,
#footer {
    position: relative;
}

#berita {
    padding-top: 75px !important;
    padding-bottom: 75px !important;
}

.header-berita h2 {
    color: var(--sdit-dark);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
}

.header-berita h2::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 10px;
    background: var(--sdit-yellow);
}

/* NEWS CARDS */
#berita .konten-berita {
    padding: 18px;
}

#berita .konten-berita h4 {
    color: var(--sdit-dark);
    font-size: 18px;
    line-height: 1.5;
}

#berita .card-border-0 {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf2ee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(25,80,45,.07);
    transition: .3s ease;
}

#berita .card-border-0:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(25,80,45,.13);
}

#berita .card-border-0 > img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* FOOTER */
#footer {
    border-top: 1px solid #e6f0e8;
    background: #f4faf5 !important;
}

#footer h5 {
    color: var(--sdit-dark);
    font-weight: 800;
}

#footer a {
    color: #617268 !important;
    transition: .2s;
}

#footer a:hover {
    color: var(--sdit-green) !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .navbar .navbar-collapse {
        padding: 15px 0;
    }

    .navbar .nav-link {
        padding: 10px 5px !important;
    }

    #hero .hero-slide,
    #hero .hero-overlay {
        min-height: 470px;
    }

    .program-section {
        margin-top: -35px !important;
    }
}

@media (max-width: 576px) {
    #hero .hero-slide,
    #hero .hero-overlay {
        min-height: 390px;
    }

    #hero .hero-text {
        font-size: 30px;
    }

    #hero .hero-subtitle {
        font-size: 14px;
    }

    .program-section {
        margin-top: 20px !important;
    }

    #program .col-lg-3 > div {
        min-height: 90px;
    }

    #berita {
        padding-top: 50px !important;
    }
}

/* ===== SAMBUTAN KEPALA SEKOLAH ===== */
.sdit-welcome-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #f4faf5 0%, #ffffff 65%);
}

.sdit-welcome-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    align-items: center;
    gap: 65px;
}

.sdit-welcome-content {
    max-width: 760px;
}

.sdit-welcome-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sdit-green);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 22px;
}

.sdit-welcome-label span {
    width: 35px;
    height: 4px;
    background: var(--sdit-yellow);
    border-radius: 5px;
}

.sdit-welcome-name {
    color: var(--sdit-dark);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    margin-bottom: 8px;
}

.sdit-welcome-position {
    color: var(--sdit-muted);
    font-weight: 600;
    margin-bottom: 25px;
}

.sdit-welcome-greeting {
    color: var(--sdit-dark);
    font-weight: 700;
    margin-bottom: 18px;
}

.sdit-welcome-message p {
    color: #536158;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 17px;
    text-align: justify;
}

.sdit-welcome-closing {
    color: var(--sdit-dark);
    font-weight: 700;
    margin-top: 22px;
}

.sdit-welcome-photo {
    width: 100%;
    max-width: 420px;
    justify-self: center;
    position: relative;
    padding: 0 15px 25px 0;
}

.sdit-welcome-photo-frame {
    overflow: hidden;
    border-radius: 22px;
    border: 7px solid #fff;
    box-shadow: 0 18px 45px rgba(20,70,40,.16);
}

.sdit-welcome-photo-frame img {
    display: block;
    width: 100%;
    height: 490px;
    object-fit: cover;
    object-position: center;
}

.sdit-welcome-photo-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 90%;
    padding: 17px 20px;
    background: var(--sdit-green);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(20,70,40,.18);
}

.sdit-welcome-photo-caption span {
    display: block;
    color: #ffe39a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sdit-welcome-photo-caption strong {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .sdit-welcome-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sdit-welcome-content {
        max-width: 100%;
    }

    .sdit-welcome-photo {
        max-width: 390px;
    }
}

@media (max-width: 576px) {
    .sdit-welcome-section {
        padding: 55px 0;
    }

    .sdit-welcome-message p {
        font-size: 13px;
        text-align: left;
    }

    .sdit-welcome-photo-frame img {
        height: 390px;
    }
}
