/* =====================================================
   RESET & GLOBAL
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f6fbf8;
    color: #222;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* =====================================================
   CONTAINER
===================================================== */
.container-narrow {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* =====================================================
   HEADER
===================================================== */
.header {
    background: #0b5d2a;
    color: #fff;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 48px;
}

.brand small {
    font-size: 12px;
    color: #cdebd8;
}

.sosmed a {
    color: #fff;
    margin-left: 10px;
    text-decoration: none;
    font-size: 14px;
}



/* =====================================================
   HERO / SLIDER
===================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.3)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 750px;
    margin-bottom: 25px;
}

.hero-content .btn {
    padding: 12px 28px;
    font-size: 16px;
}

/* =====================================================
   SECTION
===================================================== */
.section-green {
    background: #f3faf6;
    padding: 70px 0;
}

.section-light {
    background: #ffffff;
    padding: 70px 0;
}

.section-video {
    background: #f8f9fa;
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #0b5d2a;
    margin-bottom: 45px;
}

/* =====================================================
   GRID 3 KOLOM (KEGIATAN & BERITA)
===================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CARD
===================================================== */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 18px;
}

.card-body h3,
.card-body h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: #0b5d2a;
    text-decoration: none;
}

/* =====================================================
   VIDEO
===================================================== */
.section-video {
    background: linear-gradient(90deg,#0f6b5f,#0b4f4a);
    padding: 70px 0;
}

.section-video h2 {
    color: #ffffff;
    font-weight: 700;
}

.section-video p {
    color: #e6f4f1;
    line-height: 1.8;
    font-size: 16px;
}

.section-video iframe {
    border-radius: 12px;
}


/* =====================================================
   BUTTON
===================================================== */
.btn {
    border-radius: 6px;
    font-size: 14px;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #0a4e24;
    color: #fff;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    .navbar ul {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .video-container iframe {
        height: 260px;
    }
}
/* =====================
   VIDEO HERO SECTION
===================== */
.section-video-hero {
    background: linear-gradient(135deg, #0b5d2a, #0a4e24);
    padding: 80px 0;
    color: #fff;
}

.video-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: center;
}

.video-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.video-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #e6f4ec;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* MOBILE */
@media(max-width: 768px){
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-text {
        text-align: center;
    }
}
/* =====================
   PROGRAM STUDI
===================== */
.section-prodi {
    background: linear-gradient(135deg, #e6f4ec, #dff1ea);
    padding: 50px 20px;
}

.prodi-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.prodi-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    text-decoration: none;
    color: #0b5d2a;
    transition: all .35s ease;
}

.prodi-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    transition: all .35s ease;
}

.prodi-item span {
    display: block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 14px;
}

/* HOVER EFFECT */
.prodi-item:hover .prodi-icon {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 14px 30px rgba(11,93,42,0.35);
    background: #0b5d2a;
    color: #fff;
}

.prodi-item:hover span {
    color: #0b5d2a;
}

/* MOBILE */
@media (max-width: 768px) {
    .prodi-container {
        justify-content: center;
    }

    .prodi-item {
        flex: 0 0 45%;
        margin-bottom: 20px;
    }
}
.prodi-icon i {
    font-size: 34px;
    transition: all .35s ease;
}
/* ===== HEADER ===== */
.main-header {
    background: #0b6b50;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
    height: 40px;
}

/* NAV */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    display: block;
}


/* MOBILE */
.menu-toggle {
    display: none;
    background: none;
    color: white;
    font-size: 24px;
    border: none;
}

@media(max-width: 768px){
    .menu-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0b6b50;
        display: none;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav.show {
        display: block;
    }
}
/* NAVBAR */
.navbar-custom {
    background: #198754;
    padding: 0 30px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    padding: 12px 5px;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    color: #fff;
    padding: 14px 10px;
    display: inline-block;
    text-decoration: none;
}

/* ====== FIX DROPDOWN MENU ====== */

/* dropdown posisi ke bawah */
.dropdown-menu {
    margin-top: 10px;
    border-radius: 10px;
    border: none;
    padding: 10px;
    min-width: 220px;
}

/* warna kuning konsisten */
.dropdown-yellow {
    background: #ffd24d;
}

/* item */
.dropdown-yellow .dropdown-item {
    color: #000;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
}

/* hover item */
.dropdown-yellow .dropdown-item:hover {
    background: #f5c400;
    color: #000;
}

/* hilangkan dropdown ke samping */
.dropdown-menu-end {
    right: auto;
    left: 0;
}
/* ================= PAGE HOMEPAGE ================= */


 .page-home-item{
    display:flex;
    gap:10px;
    background:#0fdb8a;
    border-radius:2px;
    margin-bottom:20px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    min-height:100px; /* 🔑 ini kunci */
}



   .page-thumb{
    width:15%;          /* lebih ramping */
    min-width:150px;
    max-width:220px;
}

.page-thumb img{
    width:50%;
    height:50%;
    object-fit:cover;
}

.thumb-placeholder{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#022e0d;
    font-size:14px;
}


.page-content{
    flex:1;
    padding:20px 24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}



    .btn-page{
    background:#198754;
    color:#fff;
    padding:8px 16px;
    border-radius:15px;
    font-size:14px;
    text-decoration:none;
    width:center;
}

.btn-page:hover{
    background:#157347;
}
/* ================= ADMIN /MENU ================= */

.ui-state-highlight {
    height: 45px;
    background: #e9f7ef;
    border: 1px dashed #198754;
}
.submenu {
    margin-left: 25px;
}
.dropdown-mega {
    position: static;
}

.mega-menu {
    width: 520px;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
}

.mega-column {
    display: flex;
    background: #fff;
}

.mega-item {
    position: relative;
    width: 200px;
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.mega-item:hover {
    background: #f8f9fa;
}

.mega-item.has-child::after {
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.mega-sub {
    position: absolute;
    top: 0;
    left: 100%;
    width: 200px;
    background: #fbbf24;
    display: none;
    flex-direction: column;
}

.mega-sub a {
    padding: 14px 18px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.mega-sub a:hover {
    background: #f59e0b;
}

.mega-item.has-child:hover .mega-sub {
    display: flex;
}
.social-header a {
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-header a:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: 0.8;
}
.hover-card {
    transition: all .3s ease;
}
.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
/* ===== HEADER SOSIAL ===== */
.header-social a {
    color: #fff;
    font-size: 20px;
    transition: all .3s ease;
}

.header-social a:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: .85;
}

/* ===== DROPDOWN WARNA KUNING ===== */
.dropdown-yellow {
    background: #ffd54f;
    border-radius: 10px;
    padding: 8px;
}

.dropdown-yellow .dropdown-item {
    color: #1f2d1f;
    font-weight: 500;
    border-radius: 6px;
}

.dropdown-yellow .dropdown-item:hover {
    background: rgba(0,0,0,0.1);
}

/* ===== NAVBAR FIX ===== */
.navbar .nav-link {
    font-weight: 500;
    padding: 14px 18px;
}
/* INFO IMAGE BANNER */
.section-info-full{
    width: 100%;
    margin: 60px 0;
}

.info-wrapper{
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 2px;
}

.info-img{
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.info-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20,90,60,.85),
        rgba(20,90,60,.4)
    );
    color: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .info-banner img {
        height: 300px;
    }

    .info-banner-content {
        max-width: 100%;
        padding: 25px;
    }

    .info-banner-content h2 {
        font-size: 26px;
    }
}
.running-text {
    background: #d3ce38;
    color: #020202;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.running-track {
    display: inline-block;
    padding-left: 100%;
    animation: runningText 25s linear infinite;
}

.running-track span {
    font-weight: 600;
    font-size: 15px;
}

@keyframes runningText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
.running-text {
    position: sticky;
    top: 70px; /* SESUAI tinggi navbar */
    z-index: 998;

    background: #198754;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
}
.logo-stisnu {
    height: 50px;
    width: auto;
}
.running-text{
    position: sticky;
    top: 70px;
    z-index: 999;
    background:#b4a604;
    color:#fff;
    padding:6px 0;
    font-weight:600;
}
