/* =========================================
   GLOBAL
========================================= */

html,
body{
    margin:0;
    padding:0;
    width:100%;
    overflow-x:hidden;
    font-family:'Poppins', sans-serif;
    background:#f8fafc;
    color:#4b5563;
}

body{
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

main{
    flex:1;
}

a{
    text-decoration:none;
    transition:0.3s;
}

/* =========================================
   TOPBAR
========================================= */

#topbar{
    background:#2563eb;
    color:#fff;
    font-size:14px;
    padding:10px 0;
}

#topbar a{
    color:#dbeafe;
}

#topbar a:hover{
    color:#fff;
}

/* =========================================
   NAVBAR
========================================= */

.navbar-custom{
    background:#fff;
    padding:15px 0;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
    position:sticky;
    top:0;
    z-index:9999;
}

.navbar-brand{
    font-size:26px;
    font-weight:700;
    color:#1e3a8a !important;
}

.navbar-brand span{
    color:#3b82f6;
}

.nav-link{
    color:#475569 !important;
    font-weight:500;
    margin:0 10px;
}

.nav-link:hover{
    color:#2563eb !important;
}

.btn-login-nav{
    background:#eff6ff;
    color:#2563eb !important;
    border-radius:30px;
    padding:8px 25px !important;
    border:1px solid #bfdbfe;
}

.btn-login-nav:hover{
    background:#2563eb;
    color:#fff !important;
}

/* =========================================
   HERO
========================================= */

#hero{
    background:
    linear-gradient(
        rgba(30,58,138,0.45),
        rgba(37,99,235,0.45)
    ),
    url('/frontend/assets/img/bg-tegal.png');
    background-size:cover;
    background-position:center;
    padding:140px 0 160px;
    color:#fff;
}

#hero h1{
    font-size:52px;
    font-weight:700;
}

#hero h2{
    font-size:20px;
    font-weight:400;
    margin-top:20px;
    line-height:1.8;
}

/* =========================================
   BUTTON
========================================= */

.btn-gov-primary{
    background:#3b82f6;
    color:#fff;
    padding:12px 35px;
    border-radius:10px;
    font-weight:600;
    border:none;
}

.btn-gov-primary:hover{
    background:#2563eb;
    color:#fff;
}

.btn-gov-outline{
    border:2px solid #fff;
    color:#fff;
    padding:10px 35px;
    border-radius:10px;
    font-weight:600;
}

.btn-gov-outline:hover{
    background:#fff;
    color:#2563eb;
}

/* =========================================
   STATISTIK
========================================= */

.stat-wrapper{
    margin-top:-80px;
    position:relative;
    z-index:10;
}

.stat-card{
    background:#fff;
    border-radius:15px;
    padding:35px 20px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
    border-bottom:4px solid #3b82f6;
}

.stat-card h3{
    font-size:36px;
    font-weight:700;
    color:#2563eb;
}

.stat-card p{
    margin-top:10px;
    color:#64748b;
}

/* =========================================
   PROCEDURE
========================================= */

.proc-box{
    background:#fff;
    border-radius:15px;
    padding:40px 25px;
    transition:0.3s;
    border:1px solid #e2e8f0;
}

.proc-box:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.proc-box i{
    font-size:50px;
    color:#2563eb;
}

/* =========================================
   FEATURE
========================================= */

.feature-section{
    background:#fff;
    border-top:1px solid #e2e8f0;
}

.feature-heading{
    font-size:34px;
    font-weight:700;
    color:#1e293b;
}

.feature-icon{
    width:60px;
    height:60px;
    min-width:60px;
    background:#eff6ff;
    color:#2563eb;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
}

/* =========================================
   LOCATION SECTION
========================================= */

.location-section{
    background:#f8fafc;
    padding-top:70px;
    padding-bottom:70px;
    border-top:1px solid #e2e8f0;
}

.location-section .section-title h2{
    font-size:34px;
    font-weight:700;
    color:#1e293b;
}

.location-section .section-title p{
    color:#64748b;
    font-size:15px;
}

/* MAP */
.location-map-box{
    width:100%;
    height:430px;
    border-radius:14px;
    overflow:hidden;
    background:#ffffff;
    box-shadow:0 10px 25px rgba(0,0,0,0.10);
}

.location-map-box iframe{
    width:100%;
    height:100%;
    border:0;
    display:block;
}

/* INFO LOKASI */
.location-info-card{
    background:#ffffff;
    border-radius:14px;
    padding:20px;
    display:flex;
    align-items:flex-start;
    box-shadow:0 8px 25px rgba(0,0,0,0.06);
}

.location-icon{
    width:55px;
    height:55px;
    min-width:55px;
    background:#eff6ff;
    color:#2563eb;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:26px;
    margin-right:18px;
}

.location-info-card h5{
    font-size:17px;
    font-weight:700;
    color:#1e293b;
    margin-bottom:6px;
}

.location-info-card p{
    font-size:14px;
    color:#64748b;
    line-height:1.7;
    margin:0;
}

/* =========================================
   FOOTER MODERN
========================================= */

.custom-footer{
    background-color:#0f172a;
    color:#94a3b8;
    padding:70px 0 0 0;
    position:relative;
    overflow:hidden;
    font-family:'Poppins', sans-serif;
}

.footer-container{
    max-width:100%;
    margin:0 auto;
    padding:0 40px;
    position:relative;
    z-index:2;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.5fr;
    gap:40px;
    margin-bottom:50px;
}

.footer-brand{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.footer-logo-link{
    display:flex;
    align-items:center;
    gap:16px;
    text-decoration:none;
}

.footer-logo-img{
    width:52px;
    height:52px;
    border-radius:14px;
    background:white;
    padding:4px;
    object-fit:contain;
}

.footer-title-main{
    font-size:1.4rem;
    font-weight:900;
    color:white;
    line-height:1.1;
}

.footer-title-sub{
    font-size:0.75rem;
    font-weight:700;
    color:#3b82f6;
    text-transform:uppercase;
    letter-spacing:2px;
    margin-top:3px;
    display:block;
}

.footer-desc{
    line-height:1.7;
    font-size:0.95rem;
    max-width:420px;
    margin:0;
}

.footer-heading{
    color:white;
    font-size:1.05rem;
    font-weight:700;
    margin-bottom:22px;
    margin-top:0;
    text-transform:uppercase;
    letter-spacing:1px;
}

.footer-links,
.footer-contact-list{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.footer-link-item a{
    color:#94a3b8;
    text-decoration:none;
    transition:all 0.2s;
    display:flex;
    align-items:center;
    gap:8px;
    line-height:1.5;
}

.footer-link-item a:hover{
    color:#3b82f6;
    transform:translateX(5px);
}

.footer-contact-item{
    display:flex;
    gap:12px;
    align-items:flex-start;
    line-height:1.6;
}

.footer-contact-icon{
    color:#3b82f6;
    font-size:1.2rem;
    margin-top:3px;
}

.footer-contact-item a{
    color:#94a3b8;
    text-decoration:none;
}

.footer-contact-item a:hover{
    color:white;
}

.footer-schedule{
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:16px;
    padding:20px;
    margin-bottom:24px;
}

.footer-schedule-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    border-bottom:1px dashed rgba(255,255,255,0.1);
}

.footer-schedule-row:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.footer-schedule-day{
    color:#cbd5e1;
}

.footer-schedule-time{
    color:white;
    font-weight:600;
}

.footer-campus{
    margin-top:24px;
    padding-top:24px;
    border-top:1px solid rgba(255,255,255,0.1);
    border-bottom:1px solid rgba(255,255,255,0.1);
    padding-bottom:24px;
}

.footer-campus-box{
    display:flex;
    align-items:center;
    gap:16px;
}

.footer-campus-logo{
    width:56px;
    height:56px;
    border-radius:50%;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,0.2);
}

.footer-campus-logo img{
    width:40px;
    height:40px;
    object-fit:contain;
}

.footer-campus h3{
    color:white;
    margin:0;
    font-size:1.1rem;
    font-weight:800;
}

.footer-campus p{
    color:#3b82f6;
    margin:0;
    font-weight:700;
    font-size:0.85rem;
    letter-spacing:1px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.1);
    padding:24px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:relative;
    z-index:2;
}

.footer-bottom p{
    margin:0;
}

.footer-bottom span{
    color:#94a3b8;
    font-size:0.9rem;
}

/* =========================================
   WA FLOAT
========================================= */

.floating-wa{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#25d366;
    color:#fff !important;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    z-index:99999;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    transition:0.3s;
}

.floating-wa:hover{
    transform:scale(1.1);
    background:#128c7e;
}

/* =========================================
   FIX ADMIN SELECT FILTER
========================================= */

select.form-control{
    display:block !important;
    width:100% !important;
    height:45px !important;
    padding:10px 15px !important;
    border:1px solid #d1d3e2 !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#4b5563 !important;
    font-size:15px !important;
    appearance:auto !important;
    -webkit-appearance:auto !important;
    -moz-appearance:auto !important;
    overflow:visible !important;
    visibility:visible !important;
}

.card{
    overflow:visible !important;
}

.card-body{
    overflow:visible !important;
}

.row{
    overflow:visible !important;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1024px){
    .footer-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:991px){

    #hero{
        padding:100px 20px;
    }

    #hero h1{
        font-size:38px;
    }

    #hero h2{
        font-size:16px;
    }

    .stat-wrapper{
        margin-top:-50px;
    }

    .location-map-box{
        height:350px;
        margin-bottom:25px;
    }

    .location-info-card{
        margin-bottom:18px;
    }

    .custom-footer{
        padding-top:60px;
    }
}

@media(max-width:640px){
    .footer-container{
        padding:0 24px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

    .footer-bottom{
        flex-direction:column;
        gap:12px;
        text-align:center;
        padding:24px;
    }

    .footer-campus-box{
        justify-content:center;
    }
}

@media(max-width:576px){

    #hero h1{
        font-size:32px;
    }

    #hero h2{
        font-size:15px;
    }

    .btn-gov-primary,
    .btn-gov-outline{
        display:block;
        width:100%;
        margin-bottom:12px;
    }

    .location-map-box{
        height:280px;
    }

    .location-info-card{
        display:block;
        text-align:center;
    }

    .location-icon{
        margin:0 auto 14px auto;
    }
}