/* =================================================
   GOOGLE FONT
================================================= */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* =================================================
   GLOBAL RESET
================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
}

/* =================================================
   VARIABLE HEIGHT (BIAR PRESISI TANPA CELAH)
================================================= */
:root {
    --nav-height: 88px;
    --announcement-height: 42px;
}

/* =================================================
   BUTTON
================================================= */
.btn-danger {
    background-color: #bd0001;
    border-radius: 15px;
    border-color: #bd0001;
    padding: 15px 45px;
    color: white;
}

.btn-outline-danger {
    background-color: transparent;
    border-radius: 15px;
    border-color: #bd0001;
    padding: 15px 45px;
    color: #bd0001;
}

/* =================================================
   NAVBAR PREMIUM
================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    padding-top: 12px;
    padding-bottom: 12px;
    background: #ffffff;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 0 !important;
}

.navbar .navbar-nav {
    margin-left: 60px;
}

.nav-item .nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-left: 4px;
    margin-right: 4px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: #444;
    transition: 0.25s ease;
}

.navbar .nav-link:hover {
    color: #0d6efd;
}

.navbar .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    position: relative;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: #0d6efd;
    border-radius: 10px;
}

.dropdown-item {
    font-size: 12px;
}

/* =================================================
   PENGUMUMAN BAR
================================================= */
.announcement-bar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: var(--announcement-height);
    background: linear-gradient(90deg, #0d6efd, #3d8bfd);
    color: white;
    display: flex;
    align-items: center;
    z-index: 1040;
    overflow: hidden;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-bar .badge {
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
}

/* =================================================
   MARQUEE TEXT
================================================= */
.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

.marquee-content a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin-right: 40px;
}

.marquee-content a:hover {
    text-decoration: underline;
}
.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

/* 🔥 PAUSE SAAT HOVER */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}
.marquee {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes scrollText {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* =================================================
   BODY OFFSET (SUPAYA HERO TURUN RAPI)
================================================= */
body:not(.admin-page) {
    padding-top: calc(var(--nav-height) + var(--announcement-height));
}

/* =================================================
   HERO SECTION
================================================= */
#hero {
    position: relative;
    min-height: 80vh;
    padding-bottom: 40px;
}

.hero-slide {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    min-height: 80vh;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
}

.hero-text {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

/* =================================================
   PROGRAM CARD
================================================= */
.program-section {
    position: relative;
    margin-top: -100px;
    z-index: 10;
}

.program-section .shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-section .col-lg-3 > div {
    transition: 0.3s ease;
}

.program-section .col-lg-3 > div:hover {
    transform: translateY(-6px);
}

.program-card {
    min-height: 90px;
}

/* =================================================
   FOTO
================================================= */
.gallery-img,
.foto-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.foto-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.foto-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    margin: 0;
}

/* =================================================
   VIDEO
================================================= */
.section-video-page {
    padding: 80px 0;
    background: #f9f9f9;
    min-height: 100vh;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card iframe {
    width: 100%;
    height: 220px;
}

/* =================================================
   KONTAK
================================================= */
.section-kontak {
    padding: 80px 0;
    min-height: 100vh;
    background: #f9f9f9;
}

/* =================================================
   ALUMNI
================================================= */
.alumni-section {
    background: #f8f9fa;
}

.alumni-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.alumni-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.alumni-img-wrapper {
    height: 230px;
    overflow: hidden;
}

.alumni-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================================================
   ADMIN PANEL
================================================= */

/* ===== ADMIN SIDEBAR ===== */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}
.admin-toggle {
    position: sticky;
    top: 10px;
    z-index: 1020;
}

/* ================================
   SIDEBAR MODERN FIX
================================ */

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #0d6efd, #0b5ed7);
    color: white;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-top {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Scrollbar lebih clean */
.sidebar-top::-webkit-scrollbar {
    width: 6px;
}

.sidebar-top::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

/* Menu style lebih modern */
.sidebar-menu li {
    margin-bottom: 6px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.25s ease;
}

.sidebar-menu a i {
    margin-right: 10px;
    font-size: 17px;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.sidebar-menu a.active {
    background: white;
    color: #0d6efd;
    font-weight: 600;
}

/* CONTENT SHIFT karena sidebar fixed */
.content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
    background: #f8f9fa;
}
.sidebar {
    width: 250px;
    background: #0d6efd;
    color: #fff;
    padding: 20px;
}

.sidebar-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 30px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: #fff;
    text-decoration: none;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: 0.3s;
}

.sidebar-menu a i {
    margin-right: 10px;
    font-size: 18px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.2);
}
*/ .content {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
}

/* ===== ADMIN WRAPPER ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0d6efd;
    color: white;
    padding: 20px;
    transition: 0.35s ease;
}

.sidebar-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.sidebar-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* CONTENT */
.content {
    flex: 1;
    padding: 28px;
    background: #f8f9fa;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 9999;
        transform: translateX(-260px);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0 !important;
    }
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0d6efd;
    color: white;
    padding: 20px;
}

.content {
    flex: 1;
    padding: 28px;
    background: #f8f9fa;
}

/* =================================================
   RESPONSIVE
================================================= */
@media (max-width: 768px) {
    :root {
        --nav-height: 72px;
        --announcement-height: 40px;
    }

    .hero-text {
        font-size: 32px;
    }

    .marquee-content {
        animation-duration: 25s;
    }

    .program-section {
        margin-top: -80px;
    }
}

/* =========================================
   MOBILE NAVBAR FIX — ANTI TABRAKAN
========================================= */

/* =========================================
   ANNOUNCEMENT STABLE SYSTEM
========================================= */

/* Desktop & Mobile tetap fixed */
.announcement-bar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: var(--announcement-height);
    background: linear-gradient(90deg, #1e3a5f, #274c77);
    color: white;
    display: flex;
    align-items: center;
    z-index: 1040;
    overflow: hidden;
}

/* Body offset biar konten ga ketiban */
/* body {
    padding-top: calc(var(--nav-height) + var(--announcement-height));
} */

/* =========================================
   MOBILE NAVBAR FIX TANPA DUPLIKAT
========================================= */

@media (max-width: 991px) {
    /* Navbar boleh tinggi fleksibel */
    .navbar {
        height: auto !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Menu dropdown */
    .navbar-collapse {
        background: white;
        margin-top: 10px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    /* Nav spacing */
    .navbar .navbar-nav {
        margin-left: 0;
    }

    .nav-item .nav-link {
        padding: 10px 5px !important;
        font-size: 14px;
    }

    /* Tinggi variabel mobile */
    :root {
        --nav-height: 72px;
        --announcement-height: 40px;
    }
}

/* ===== STAT CARD ===== */
.stat-card {
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.stat-card h6 {
    font-size: 14px;
    opacity: 0.9;
}

.stat-card h3 {
    margin: 0;
    font-weight: 700;
}

.stat-card i {
    font-size: 40px;
    opacity: 0.7;
}

/* ===== MENU CARD ===== */
.menu-card {
    display: block;
    padding: 25px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.menu-card i {
    font-size: 35px;
    margin-bottom: 15px;
    color: #0d6efd;
}

body.admin-page {
    padding-top: 0 !important;
}

.galeri-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.galeri-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s;
}

.galeri-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.overlay h6 {
    margin: 0;
    font-weight: 600;
}
.btn-outline-light:hover {
    background: white;
    color: #000;
}
.kontak-card {
    border-radius: 12px;
}

.kontak-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.kontak-item i {
    font-size: 22px;
    color: #0d6efd;
}

.pengumuman-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.pengumuman-content p {
    margin-bottom: 16px;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
}

/* HERO PROFIL GRADIENT */

.profil-hero {
    margin-top: 90px;

    padding: 90px 0;

    background: linear-gradient(135deg, #0d6efd, #3a7bff);

    color: white;

    text-align: center;
}

.profil-hero h1 {
    font-size: 40px;

    letter-spacing: 1px;

    margin-bottom: 10px;
}

.profil-hero p {
    opacity: 0.9;

    font-size: 18px;
}

/* SECTION BACKGROUND */

.section-profil {
    background: #f6f8fb;
}

/* CARD PROFIL */

.profil-card {
    display: flex;

    gap: 25px;

    background: white;

    padding: 35px;

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.profil-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ICON */

.profil-icon {
    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 26px;

    background: linear-gradient(135deg, #ff512f, #dd2476);

    color: white;

    border-radius: 50%;

    flex-shrink: 0;
}

/* TEXT */

.profil-text {
    color: #666;

    line-height: 1.8;

    font-size: 16px;
}

/* MOBILE */

@media (max-width: 768px) {
    .profil-card {
        flex-direction: column;
    }

    .profil-hero {
        padding: 70px 0;
    }

    .profil-hero h1 {
        font-size: 28px;
    }
}

