/* =========================
   NAVBAR UTAMA
========================= */
.navbar-custom{
    background: linear-gradient(135deg, #1e3c72, #2a5298, #38ef7d);
    position: relative;
    overflow: visible !important;
    z-index: 999;
}

/* Efek gelombang */
.navbar-custom::after{
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('https://svgshare.com/i/12uF.svg') no-repeat center;
    background-size: cover;
    pointer-events: none;
}

/* Border bawah navbar */
.navbar{
    border-bottom: 2px solid rgba(0,0,0,0.15);
}

/* =========================
   BRAND
========================= */
.navbar-brand span{
    font-size: 14px;
    line-height: 1.2;
    color: white;
    font-weight: 600;
}

/* =========================
   TOGGLER
========================= */
.navbar-toggler{
    border: none;
    box-shadow: none !important;
}

.navbar-toggler:focus{
    box-shadow: none !important;
}

.navbar-toggler-icon{
    filter: invert(1);
}

/* =========================
   NAV MENU
========================= */
.navbar-nav{
    gap: 5px;
    margin-right: 40px;
}

.navbar-custom .nav-link{
    position: relative;
    color: white !important;
    padding: 10px 18px !important;
    margin: 0 2px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

/* Hover menu */
.navbar-custom .nav-link:hover{
    background: rgba(255,255,255,0.18);
    color: #ffd166 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Menu aktif */
.navbar-custom .nav-link.active{
    background: rgba(255,255,255,0.2);
    color: #ffd166 !important;
}

/* Garis animasi bawah */
.navbar-custom .nav-link::after{
    content: "";
    position: absolute;
    left: 18px;
    bottom: 6px;
    width: 0%;
    height: 2px;
    background: #ffd166;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after{
    width: 50%;
}

/* =========================
   DROPDOWN
========================= */
.nav-item.dropdown{
    position: relative;
}

/* Dropdown muncul saat hover */
.nav-item.dropdown:hover .dropdown-menu{
    display: block;
    margin-top: 0;
    animation: dropdownFade 0.25s ease;
}

/* Box dropdown */
.navbar-nav .dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    padding: 10px;
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    z-index: 9999;
}

/* Item dropdown */
.navbar-custom .dropdown-item{
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

/* Hover dropdown */
.navbar-custom .dropdown-item:hover{
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    transform: translateX(4px);
}

/* Animasi dropdown */
@keyframes dropdownFade{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px){

    .navbar-nav{
        margin-top: 15px;
    }

    .navbar-custom .nav-link{
        border-radius: 10px;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .navbar-nav .dropdown-menu{
        position: static;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
        border-radius: 12px;
    }

    .navbar-brand span{
        font-size: 12px;
    }
}

/* Row jadi flex */
.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* penting: semua kolom sama tinggi */
}

/* Semua kolom tinggi sama & rata tengah */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Khusus map biar center */
.footer-col iframe {
    margin: 0 auto;
    display: block;
}

/* Logo biar center */
.footer-col img {
    margin: 0 auto;
    display: block;
}

/* Judul rata tengah */
.footer-col h5 {
    margin-bottom: 15px;
    height: 40px; /* paksa semua judul sama tinggi */
    display: flex;
    align-items: center;
}

.footer-col > *{
    flex-shrink: 0;
}
.footer-col .content{
    flex-grow: 1;
}


.footer {
    background: url('../img/footer.png') no-repeat top center;
    background-size: cover;
    color: #fff;
    padding-top: 120px; /* penting biar isi turun dari wave */
    padding-bottom: 40px;
    position: relative;
}

/* Konten */
.footer-content {
    padding: 40px 0;
}

/* Logo */
.logo {
    font-family: cursive;
    color: orange;
}

/* List */
.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.footer ul li a:hover {
    color: #fff;
}

/* Social */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 8px;
    color: white;
}

.social-icons a:hover {
    background: orange;
}

/* Scroll top */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: orange;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
}

.map-footer iframe {
    border-radius: 10px;
}

.sejarah-box {
    background-color: #f8f9fa; /* putih agak gelap */
    padding: 30px;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.sejarah-box h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.sejarah-box p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* CARD */
.berita-modern-card{
    border-radius: 24px;
    overflow: hidden;
    transition: 0.4s ease;
    position: relative;
    background: #fff;
}

.berita-modern-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.12);
}

/* IMAGE */
.berita-image-wrapper{
    position: relative;
    overflow: hidden;
}

.berita-image{
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: 0.5s ease;
}

.berita-modern-card:hover .berita-image{
    transform: scale(1.08);
}

/* OVERLAY */
.berita-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s ease;
}

.berita-modern-card:hover .berita-overlay{
    opacity: 1;
}

.overlay-content{
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* DATE */
.berita-date{
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

/* TEXT */
.berita-text{
    line-height: 1.7;
    font-size: 14px;
}

/* BUTTON */
.btn-primary{
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: none;
}

.btn-primary:hover{
    transform: translateY(-2px);
}

.btn-outline-primary{
    border-width: 2px;
}

/* MOBILE */
@media (max-width:768px){

    .berita-image{
        height: 220px;
    }

    h2{
        font-size: 26px;
    }

}

/* Responsive tweak */
@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 12px;
    }
    
    #jam {
        margin-top: 10px;
    }

    
    .footer {
        text-align: center;
        padding-top: 80px;
    }
    .footer-row {
        text-align: center;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-col ul {
        padding-left: 0;
        margin: 0 auto;
        text-align: center;
    }

    .footer-col ul {
        padding-left: 0;
        margin: 0 auto;
        text-align: center;
    }

    .footer-col ul li {
        text-align: center;
    }

    /* Link di dalam list */
    .footer-col ul li a {
        display: inline;
    }

    .footer-col h5 {
        justify-content: center; /* ini kunci utamanya */
        text-align: center;
        width: 100%;
    }

    /* Map biar ke tengah */
    .map-footer iframe {
        margin: 0 auto;
        display: block;
    }
}

.table tbody tr {
    transition: 0.3s ease;
}



.table tbody tr:hover {
    transform: scale(1.01);
    background: #f8fbff;
}

.card {
    backdrop-filter: blur(10px);
}

.table td,
.table th {
    vertical-align: middle;
}

@media (max-width: 768px) {

    .table {
        min-width: 700px;
    }

    h2 {
        font-size: 24px;
    }
}

/* Hilangkan scrollbar horizontal */
.custom-table {
    overflow-x: hidden !important;
}

/* Supaya tabel tetap penuh */
.custom-table table {
    width: 100%;
}

/* Hilangkan scrollbar browser */
.custom-table::-webkit-scrollbar {
    display: none;
}

/* DESKTOP */
@media (min-width: 992px) {

    .custom-table {
        overflow-x: hidden !important;
    }

    .custom-table::-webkit-scrollbar {
        display: none;
    }

    .custom-table table {
        width: 100%;
        table-layout: fixed;
    }
}

/* MOBILE */
@media (max-width: 991px) {

    .custom-table {
        overflow-x: auto !important;
    }

    .custom-table table {
        min-width: 700px;
    }
}

/* CARD */
.galeri-card{
    border-radius: 24px;
    overflow: hidden;
    transition: 0.4s ease;
    position: relative;
}

.galeri-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.12);
}

/* IMAGE */
.galeri-image-wrapper{
    position: relative;
    overflow: hidden;
}

.galeri-image{
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.5s ease;
    cursor: pointer;
}

.galeri-card:hover .galeri-image{
    transform: scale(1.08);
}

/* OVERLAY */
.galeri-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s ease;
    cursor: pointer;
}

.galeri-card:hover .galeri-overlay{
    opacity: 1;
}

.overlay-content{
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* BADGE */
.tanggal-badge{
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

/* MODAL */
.modal-main-image{
    max-height: 350px;
    object-fit: cover;
}

.modal-thumb{
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
    border: 3px solid transparent;
}

.modal-thumb:hover{
    transform: scale(1.08);
    border-color: #0d6efd;
}

/* BUTTON */
.btn-primary{
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: none;
}

.btn-primary:hover{
    transform: translateY(-2px);
}

/* MOBILE */
@media (max-width:768px){

    .galeri-image{
        height: 220px;
    }

    .modal-main-image{
        max-height: 300px;
    }

    h2{
        font-size: 26px;
    }

}
.modal-thumb{
    width: 85px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
    border: 3px solid transparent;
}

.modal-thumb:hover{
    transform: scale(1.08);
    border-color: #0d6efd;
}

/* STRUKTUR */
.map-container{
    overflow: hidden;
    border-radius: 20px;
    margin-top: 20px;
}

.map-container img{
    width: 100%;
    transition: transform .5s ease;
    border-radius: 20px;
}

.map-container:hover img{
    transform: scale(1.04);
}

/* CARD MAP + TABEL */
.card-custom{
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: .4s;
}

.card-custom:hover{
    transform: translateY(-5px);
}

.info-box{
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    color: white;
    padding: 18px 25px;
    border-radius: 18px;
    font-size: 15px;
    box-shadow: 0 10px 25px rgba(37,99,235,0.25);
}

/* TABLE */
.table-t{
    border-radius: 20px;
    overflow: hidden;
}

.table-header{
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
}

.table-t th{
    padding: 18px !important;
    font-size: 15px;
}

.table-t td{
    padding: 16px !important;
    vertical-align: middle;
    font-size: 15px;
}

.table-t tbody tr{
    transition: .3s;
}

.table-t tbody tr:hover{
    background: #eff6ff;
}