/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

.h-200 {
  height: 200px;
}
p > img {
  width: 100%;
}
table {
  font-family: sans-serif;
  color: #444;
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #f2f5f7;
}
th {
  padding: 5px;
}
table tr th {
  background: #35a9db;
  color: #fff;
  font-weight: normal;
}

table,
td {
  padding: 8px 20px;
  text-align: center;
}
table tr:hover {
  background-color: #f5f5f5;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}
ul.pagination {
  display: inline-block;
  padding: 0;
  margin: 0;
}

ul.pagination li {
  display: inline;
}

ul.pagination li a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}

.mm-panels > .mm-panel > .mm-navbar + .mm-listview {
  top: 0;
  margin-top: 40px;
  margin-left: 2px;
}

h6-header-video {
  font-size: small;
  color: white;
}



/* Logo desktop: tampilkan di layar besar */
#logo a:not(.mobile-logo) {
    display: block;
}

/* Logo mobile: sembunyikan di layar besar */
.mobile-logo {
    display: none;
}




/*UNTUK HEADER*/
/* ===============================
   HEADER AWAL
================================ */
.header-ums {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0A48B7;
    padding: 34px 0 42px; /* tambah ruang bawah */
    transition: all 0.4s ease;
    z-index: 9999;
}


/* LOGO – POSISI NORMAL (GRID CONTAINER) */
.header-ums #logo {
    position: relative;
    transform: translate(45px, 18px); /* kanan & bawah */
    z-index: 6;
}
/* PATCH BIRU DI BELAKANG LOGO */
.header-ums #logo::before {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    top: 45%;
    height: 14px;
    background: #0A48B7; /* WARNA HEADER */
    z-index: -1;
}

.header-ums #logo img {
    width: 650px;
    transition: all 0.4s ease;
}


/* MENU & DAFTAR */
.header-ums nav {
    position: relative;
    transform: translateY(-14px);
    z-index: 7; /* di atas garis */
}

/* ===============================
   STATE AWAL (BELUM STICKY)
   TOMBOL DAFTAR
================================ */
.header-ums:not(.is-sticky) #top_menu {
    position: relative;
    right: auto !important;
    left: auto;
    transform: translate(-60px, -32px); /* ⬅️ X & Y disamakan dengan nav */
    z-index: 8;
}

.line-separator-custom {
    position: absolute;
    left: 0;
    bottom: 42%;
    width: 100%;
    height: 6px;
    background-color: #FDD100;
    z-index: 3;
    transition: all 0.4s ease;
}



.header-ums.is-sticky {
    padding: 14px 0 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.header-ums.is-sticky #logo::before {
    display: none;
}

.header-ums.is-sticky #logo {
    transform: translate(10px, 8px); /* sebelumnya 70px,18px */
}

.header-ums.is-sticky #logo img {
    width: 420px;
}

.header-ums.is-sticky nav {
    transform: translate(60px, -6px);

}

.header-ums.is-sticky #top_menu {
     position: relative;
    transform: translate(10px, -20px); /* kecil & aman */
}

.header-ums.is-sticky .line-separator-custom {
    bottom: 0;
    height: 4px;
}



@media (min-width: 1600px) {
    .header-ums.is-sticky nav,
    .header-ums.is-sticky #top_menu {
        transform: translate(60px, -6px);
    }
}

@media (max-width: 992px) {
    
     .btn_mobile,
        .hamburger,
        .menu-toggle {
            margin-left: 14px;   /* atur: 10–18px sesuai selera */
        }


    /* HEADER MOBILE/TABLET */
    .header-ums {
        padding: 6px 0 30px !important;
        min-height: 60px;
    }

    /* LOGO BENAR-BENAR DI TENGAH */
    .header-ums #logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    /* LOGO UKURAN AMAN */
    .header-ums #logo img {
        max-width: 150px;
        height: auto;
        display: block;
    }

    /* NAV & TOP MENU AMAN */
    nav,
    #top_menu {
        transform: none !important;
    }

    .line-separator-custom {
        display: none !important;
    }
}

/* MOBILE KECIL */
@media (max-width: 768px) {
    .header-ums #logo img {
        max-width: 150px;
    }
}


	/* Class khusus untuk menggunakan Lato */
    .font-lato {
        font-family: 'Lato', sans-serif !important;
        font-weight: 400; /* Normal */
    }
    
    /* Class untuk Lato BOLD */
    .lato-bold {
        font-family: 'Lato', sans-serif !important;
        font-weight: 700; /* 700 adalah kode untuk Bold */
    }
    
    /* Opsi tambahan: Lato SANGAT TEBAL */
    .lato-extra-bold {
        font-family: 'Lato', sans-serif !important;
        font-weight: 900; 
    }

    .period-title {
        font-weight: 700;
        color: #0d6efd;
    }
    
    /* ===== CARD PERIODE (NO ACTIVE) ===== */
.periode-card {
    display: block;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 22px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}

.periode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

/* BADGE */
.badge-periode {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: #2d3691;
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
}

/* TEXT */
.periode-card h5 {
    margin-bottom: 6px;
}

.periode-card p {
    margin-bottom: 0;
    font-size: 14px;
    color: #555;
}

/* MOBILE */
@media (max-width: 576px) {
    .periode-card {
        padding: 24px 18px;
    }
}

    
        /* Jalur Seleksi */
    
    .jalur-section {
        padding: 40px 0;
        margin-bottom: 80px; /* JARAK KE SECTION BAWAH */
    }

    
    .jalur-box {
        background: #0b46e3;
        color: #fff;
        border-radius: 14px;
        padding: 18px 10px;
        height: 120px;
    
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    
        text-align: center;
        cursor: pointer;
        transition: background .25s ease, color .25s ease, transform .2s ease;
    }
    
    .jalur-box i {
        font-size: 30px;
        margin-bottom: 6px;
        color: #fff;
    }
    
    .jalur-box span {
        font-size: 12px;
    }
    
    .jalur-box strong {
        font-size: 13px;
        font-weight: 700;
        color: #fff;
    }
    
    /* HOVER → KUNING */
    .jalur-box:hover {
        background: #FDD100;
        color: #000;
    }
    
    /* ACTIVE → KUNING */
    .jalur-box.active {
        background: #FDD100;
        color: #000;
    }
    
    /* Ikon & strong ikut berubah */
    .jalur-box:hover i,
    .jalur-box:hover strong,
    .jalur-box.active i,
    .jalur-box.active strong {
        color: #000;
    }

    
    .jalur-link {
        text-decoration: none;
        display: block;
    }
    
    .jalur-link:hover {
        text-decoration: none;
    }
    
    /* ===============================
   MOBILE REVISION - JALUR
================================ */
    @media (max-width: 576px) {
    
        /* jarak antar row lebih lega */
        .jalur-section .row {
            row-gap: 14px;
        }
    
        /* kolom kasih padding tambahan */
        .jalur-section [class*="col-"] {
            padding-left: 10px;
            padding-right: 10px;
        }
    
        /* card lebih tinggi & lega */
        .jalur-box {
            height: 140px;          /* lebih tinggi */
            padding: 22px 12px;     /* lebih nyaman */
            border-radius: 16px;
        }
    
        .jalur-box i {
            font-size: 34px;
            margin-bottom: 8px;
        }
    
        .jalur-box span {
            font-size: 13px;
        }
    
        .jalur-box strong {
            font-size: 14px;
            line-height: 1.3;
        }
    }

     /* ===============================
       MOBILE REVISION - JALUR
    ================================ */

    .toga-icon {
        font-size: 42px;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    /* JUDUL INFO PENTING */
    .info-title {
        font-weight: 700;
        color: #fff;
    }
    
    /* DESKRIPSI PUTIH */
    .info-desc {
        color: #fff;
        max-width: 720px;
        font-size: 15px;
        line-height: 1.7;
    }
    
    .info-penting {
        background: linear-gradient(135deg, #2f5bff, #2d6bff);
        padding: 70px 0 90px;
        color: #fff;
    }
    
    .info-penting .row {
        row-gap: 20px;
    }

    .info-box {
        background: #fff;
        border-radius: 12px;
    
        /* KONFIGURASI UKURAN */
        max-width: 230px;       /* batasi agar tidak terlalu lebar */
        width: 100%;
        min-height: 120px;      /* jadi persegi panjang */
    
        margin-left: auto;
        margin-right: auto;
    
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    
        text-align: center;
        text-decoration: none;
        font-weight: 600;
        color: #000;
    
        transition: .25s;
        box-sizing: border-box;
    }

    
    .info-img {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
        object-fit: contain;
    }

    @media (max-width: 576px) {
        .info-box {
            max-width: 200px;
            min-height: 95px;
        }
    
        .info-img {
            width: 28px;
            height: 28px;
        }
    
        .info-box span {
            font-size: 11px;
        }
    }

    
    .info-box i {
        font-size: 26px;
        margin-bottom: 6px;
        color: #fff;
    }
    
    .info-box span {
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* HOVER */
    .info-box:hover {
        background: #FDD100;
    }
    .info-box:hover .info-icon {
        fill: #000;
    }
    .info-box:hover i {
        color: #000;
    }
    
    .why-box {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }
    .why-box i {
        font-size: 36px;
        flex-shrink: 0;
    }
    
    .why-ummetro {
        background: #1f4de3;
        padding: 60px 0;
    }
    
    /*Untuk jenjang*/
    .jenjang-card {
            background: #FDD100;
            padding: 24px 20px 30px;
            border-radius: 14px;
            display: flex;
            position: relative;
            color: #000;
            text-decoration: none;
            transition: all 0.3s ease;
        }
    /* MODE VERTICAL */
    .jenjang-vertical {
        flex-direction: column;
        text-align: left;
        align-items: left;
    }
    
    .info-img-jenjang {
        width: 55px;
        height: auto;
        margin-bottom: 12px;
    }
  
    .jenjang-text small {
        font-size: 13px;
        opacity: 0.7;
        letter-spacing: 0.5px;
    }
    .jenjang-text strong {
        display: block;
        font-size: 13px;
        line-height: 1.4;
    }

    .jenjang-card.jenjang-vertical {
        display: flex;
        height: 90%;
        padding: 24px 22px 48px;
        position: relative;
    }


    /* ARROW */
    .arrow {
        position: absolute;
        bottom: 14px;
        right: 18px;
        font-size: 26px;
        font-weight: bold;
        opacity: 0.8;
    }
    
    @media (max-width: 576px) {
        .arrow {
            font-size: 22px;
            bottom: 10px;
            right: 14px;
        }
    }


    .profil-header {
        display: flex;
        justify-content: center;
        margin-top: -35px; /* naik ke area biru */
        margin-bottom: 50px;
    }
    
    .profil-pill {
        background: #FDD100;
        padding: 14px 36px;
        border-radius: 40px;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
    }
    
    .profil-pill h4 {
        margin: 0;
        font-weight: 700;
        color: #000;
    }
    
    .profil-pill span {
        display: block;
        font-size: 13px;
        color: #000;
    }
    @media (max-width: 576px) {
        .profil-pill {
            padding: 12px 20px;
        }
    
        .profil-pill h4 {
            font-size: 16px;
        }
    
        .profil-pill span {
            font-size: 12px;
        }
    }
    
    /*Untuk Section Follow*/
    /* Background & Section General */
    .follow-um {
        background: linear-gradient(90deg, #3057ff, #3049ff);
        padding: 50px 0;
        color: #ffffff;
        
    }
    
    .follow-title {
        font-weight: 800;
        font-size: 25px !important;
        margin-bottom: 5px;
        color:white;
    }
    
    .follow-subtitle {
        font-size: 15px;
        opacity: 0.9;
        font-weight: 400;
    }
    
    /* Links Container */
    .follow-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px; /* Jarak antar item */
        padding: 0;
        margin: 0;
        list-style: none;
        flex-wrap: wrap;
    }
    
    .follow-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #ffffff;
        font-weight: 600;
        font-size: 18px;
        text-decoration: none;
        transition: opacity 0.3s;
    }
    
    /* Styling Ikon */
    .follow-item i {
        font-size: 24px;
    }
    
    .follow-item:hover {
        color: #ffffff;
        opacity: 0.8;
        text-decoration: none;
    }
    
    /* Penyesuaian Mobile (Responsive) */
    @media (max-width: 768px) {
        .follow-title {
            font-size: 18px;
            padding: 0 15px;
        }
        .follow-links {
            gap: 20px;
            flex-direction: column; /* Berubah jadi vertikal di HP kecil jika layar tidak muat */
        }
        .follow-item {
            font-size: 16px;
        }
    }
    
    
    
    /*Untuk Berita*/
    /* CARD */
    .news-modern-card {
        background: #f1f1f1;              /* abu-abu elegan */
        
        overflow: hidden;
        height: 100%;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        transition: transform .35s ease, box-shadow .35s ease;
        animation: newsFadeUp .7s ease both;
    }
    
    .news-modern-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 60px rgba(0,0,0,0.18);
    }
    
    /* IMAGE WRAPPER */
    .news-image-safe {
        aspect-ratio: 4 / 5;      /* RASIO INSTAGRAM */
        width: 100%;
        background: linear-gradient(135deg, #e5e5e5, #f7f7f7);
        overflow: hidden;
    }
    
    .news-image-safe img {
        width: 100%;
        height: 100%;
        object-fit: cover;        /* POTONG AMAN */
        transition: transform .6s ease;
    }
    @media (max-width: 768px) {
        .news-image-safe {
            aspect-ratio: 1 / 1;   /* mobile jadi kotak seperti IG grid */
        }
    }


    /* IMAGE ZOOM (AMAN) */
    .news-modern-card:hover .news-image-safe img {
        transform: scale(1.05);
    }
    
    /* DATE BADGE */
    .news-date {
        position: absolute;
        bottom: -14px; /* geser ke bawah (masuk ke body) */
        left: 16px;
        background: #2d3691;
        color: #fff;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        z-index: 3;
    }
    .news-modern-image {
        position: relative;
    }

    /* BODY */

    .news-modern-body {
        position: relative;
        margin-top: -10px;
        padding: 26px 22px 22px;
        background: #f1f1f1;
        z-index: 2;
    }
    
    /* TITLE */
    .news-modern-body h5 {
        margin-bottom: 12px;
    }
    
    .news-modern-body a {
        color: #222;
        text-decoration: none;
        transition: color .3s ease;
    }
    
    .news-modern-card:hover .news-modern-body a {
        color: #f0ad4e;
    }
    
    /* DESC */
    .news-modern-body p {
        font-size: 14px;
        color: #555;
        line-height: 1.6;
    }
    
    /* ENTRY ANIMATION */
    @keyframes newsFadeUp {
        from {
            opacity: 0;
            transform: translateY(35px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }



    /*Untuk footer*/
    
    .main-footer {
        background-color: #0b1118; /* Warna biru gelap sesuai gambar */
        color: #ffffff;
        padding: 60px 0;
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* Container Logo */
    .footer-logos {
        display: flex;
        align-items: center;
        /*gap: 30px;*/
        flex-wrap: wrap;
    }
    
    .footer-logos img {
        height: 35px; /* Sesuaikan ukuran logo */
        object-fit: contain;
    }
    
    /* Tipografi */
    .main-footer h6 {
        color: #ffffff;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .footer-info-group {
        margin-bottom: 20px;
        font-family: 'Lato', sans-serif;
    }
    
    .footer-info-group p {
        margin-bottom: 5px;
        font-family: 'Lato', sans-serif;
    }
    
    /* Styling Kampus (Kanan) */
    .campus-icon {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        object-fit: contain;
    }
    
    .campus-text h6 {
        margin-bottom: 2px;
        font-family: 'Lato', sans-serif;
    }
    
    .campus-text p {
        margin-bottom: 0;
        color: #e0e0e0;
        font-family: 'Lato', sans-serif;
    }
    
    /* Styling Ikon Lokasi */
    .location-icon-wrapper {
        background-color: rgba(255, 255, 255, 0.1); /* Background transparan tipis */
        width: 45px;
        height: 45px;
        min-width: 45px; /* Menjaga ukuran tetap bulat */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-right: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .location-icon-wrapper i {
        font-size: 20px;
        color: #ffffff;
    }
    
    /* Penyelarasan Teks */
    .campus-text h6 {
        margin-bottom: 2px;
        font-weight: 700;
        color: #ffffff;
        font-family: 'Lato', sans-serif;
    }
    
    .campus-text p {
        font-size: 13px;
        line-height: 1.4;
        color: #cbd5e0; /* Warna abu-abu terang agar teks alamat tidak terlalu kontras */
        font-family: 'Lato', sans-serif;
    }
    
    /* Efek Hover (Opsional) */
    .campus-item:hover .location-icon-wrapper {
        background-color: #3057ff; /* Berubah jadi biru saat di-hover */
        border-color: #3057ff;
        transition: 0.3s;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .footer-logos {
            justify-content: center;
            margin-bottom: 40px;
        }
        .main-footer {
            text-align: center;
        }
        .campus-item {
            flex-direction: column;
            align-items: center;
            text-align: center;
            
        }
        .campus-icon {
            margin-right: 0;
            margin-bottom: 10px;
        }
    }
    
    /* ===============================
   HEADER SPACER FIX (FINAL)
================================ */

#header-spacer {
    width: 100%;
    height: 148px; /* sebelumnya 165px */
    transition: height .35s ease;
}

/* Saat header sticky */
.header-ums.is-sticky + #header-spacer {
    height: 110px; /* sebelumnya 110px */
}

/* MOBILE */
@media (max-width: 992px) {
    #header-spacer {
        height: 100px;
    }

    .header-ums.is-sticky + #header-spacer {
        height: 80px;
    }
}


/* AREA KLIK */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;          /* default cuma ±5% */
    opacity: 1;
}

/* ICON */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.7));
    background-color: rgba(0,0,0,.45);
    border-radius: 50%;
    padding: 12px;
    background-size: 40% 40%;
}
@media (max-width: 768px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.2rem;
        height: 2.2rem;
    }
}
