/* ================= ROOT COLOR ================= */
:root {
    --primary: #1e3a8a; /* Biru pendidikan */
    --primary-light: #3b82f6;
    --primary-dark: #172554;
    --secondary-soft: #fde68a;
    --secondary: #facc15; /* Kuning prestasi */
    --bg-light: #f8fafc;
    --text-dark: #1f2937;
}

/* ================= BODY ================= */
body {
    font-family: "Segoe UI", sans-serif;
    background: #ffffff;
    color: var(--text-dark);
}

/* ================= NAVBAR CORE ================= */
.navbar {
    transition: all 0.4s ease-in-out;
    padding: 15px 0;
    z-index: 1050;
}

/* KONDISI DI ATAS (DESKTOP - TRANSPARAN) */
@media (min-width: 992px) {
    .navbar:not(.scrolled) {
        background-color: transparent !important;
    }
    .navbar:not(.scrolled) .nav-link,
    .navbar:not(.scrolled) .navbar-brand {
        color: #a0d4fb !important;
    }
}

/* KONDISI SAAT DI-SCROLL (PUTIH) */
.navbar.scrolled {
    background-color: #232424 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand {
    color: white !important;
}

.navbar .nav-link {
    position: relative;
    font-weight: 500;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
    width: 80%;
}

/* ================= HAMBURGER ICON (NO DOUBLE) ================= */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

/* Hapus semua background-image lama dan gunakan ini saja */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(30, 58, 138, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* ================= TAMPILAN HP (MOBILE) ================= */
@media (max-width: 991px) {
    .navbar {
        background-color: #ffffff !important; /* Navbar HP selalu putih agar aman */
        color: black;
    }

    .navbar .nav-link,
    .navbar .navbar-brand {
        color: var(--primary) !important;
    }

    .navbar-collapse {
        background-color: #ffffff;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

/* ================= DROPDOWN ================= */
.dropdown-menu {
    border-radius: 12px;
    border: none;
    background: #0b0b0b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: fadeDown 0.3s ease;
}

.dropdown-item {
    color: var(--primary);
}

.dropdown-item:hover {
    background-color: #0b0b0b;
    color: #fff;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover dropdown (desktop) */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.bg-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.7);
    z-index: 0;
}
.img-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
/* Wave */
.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: #fff;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

/* ================= BUTTON ================= */
.btn-warning {
    background: var(--secondary);
    border: none;
    font-weight: bold;
}

.btn-warning:hover {
    background: #eab308;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
}

/* ================= SECTION ================= */
section {
    padding: 80px 0;
}

/* Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-weight: 800;
    position: relative;
}

.section-title h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--secondary);
    display: block;
    margin: 10px auto;
    border-radius: 10px;
}

/* ================= CARD ================= */
.card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.3s;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Icon efek */
.card i {
    transition: 0.3s;
}

.card:hover i {
    transform: scale(1.2);
    color: var(--secondary);
}

/* ================= STATS ================= */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.stats h2 {
    font-size: 2.8rem;
    font-weight: bold;
}

/* ================= JURUSAN ================= */
.jurusan-card {
    border-radius: 20px;
    border: none;
    transition: 0.4s;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* ICON */
.icon-box {
    width: 70px;
    height: 70px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* HOVER */
.jurusan-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* ================= WARNA PER JURUSAN ================= */

/* RPL → Biru */
.rpl {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

/* TKJ → Hijau */
.tkj {
    background: linear-gradient(135deg, #16a34a, #065f46);
}

/* DKV → Ungu / Pink */
.dkv {
    background: linear-gradient(135deg, #d946ef, #9333ea);
}

/* PSPT → Orange */
.pspt {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

/* TEXT */
.jurusan-card h5 {
    font-weight: bold;
}

.jurusan-card p {
    font-size: 14px;
    opacity: 0.9;
}

.jurusan-card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: moveBg 15s linear infinite;
}

/*================ berita =================== */
/* LIST SAMPING */
.berita-list img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.berita-list {
    cursor: pointer;
    transition: 0.3s;
}

.berita-list:hover {
    transform: translateX(5px);
}

/* GRID */
.berita-grid {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.berita-grid img {
    height: 180px;
    object-fit: cover;
}

.berita-grid:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
/* ================= FOOTER ================= */
footer {
    background: var(--primary);
    color: white;
}

/* ================= ANIMASI ================= */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveBg {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-50px, -50px);
    }
}
