/* =========================================================
   ROOT & GLOBAL
========================================================= */
:root {
    --primary: #1909a9;
    --secondary: #2563eb;
    --accent: #fbc02d;
    --dark: #111827;
    --text-main: #1f2933;
    --bg-main: #f8fafc;
}

body {
    padding-top: 80px;
    background: var(--bg-main);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

/* =========================================================
   NAVBAR (FIX TOTAL)
========================================================= */

.navbar {
    background: linear-gradient(135deg, var(--primary), #312e81);
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    padding: 17px 0;
}

/* Brand */
.navbar-brand {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .5px;
}

/* Nav link */
.navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    position: relative;
    padding: 8px 14px;
    transition: all .3s ease;
}

/* Hover color */
.navbar .nav-link:hover {
    color: #ffc107 !important;
}

/* Active link */
.navbar .nav-link.active {
    color: #ffc107 !important;
    font-weight: 700;
}



/* Toggler */
.navbar-toggler {
    border-color: rgba(255,255,255,.5);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Dropdown */
.navbar .dropdown-toggle::after {
    border-top-color: #fff;
    margin-left: 6px;
}

.navbar .dropdown-menu {
    border-radius: 12px;
    border: none;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.navbar .dropdown-item {
    font-weight: 600;
    padding: 10px 18px;
    transition: all .2s ease;
}

.navbar .dropdown-item:hover {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
}

/* Hover dropdown otomatis desktop */
@media (min-width: 1000px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}


/* =========================================================
   PROFIL & VISI IMAGE ALIGN
========================================================= */

.profile-img,
.visi-img {
    width: 100%;
    min-height: 280px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform .4s ease, box-shadow .4s ease;
}

.profile-img:hover,
.visi-img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,.2);
}

.card .row {
    align-items: stretch;
}

@media (max-width: 768px) {
    .profile-img,
    .visi-img {
        min-height: 220px;
        max-height: 260px;
    }
}

/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
        url("../img/sekolah.jpg") center / cover no-repeat;
    color: #fff;
}

.hero h1 {
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}
/* =========================================================
   BUTTON
========================================================= */

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    transition: all .3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #1d4ed8);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(37,99,235,.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    border: none;
    color: #000;
    font-weight: 600;
}

.btn-warning:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(251,192,45,.45);
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    background: var(--dark);
    color: #9ca3af;
}

footer a {
    color: #9ca3af;
    transition: color .3s ease;
}

footer a:hover {
    color: #fff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}
