/* =========================
   RESET
========================= */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:#333;
    background:#fff;
    overflow-x:hidden;
    padding-top:90px;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* =========================
CONTAINER
========================= */

.container{
    width:min(92%,1400px);
    margin:auto;
}


/* =========================
HEADER
========================= */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#8585f2;
    box-shadow:0 4px 20px rgba(0,0,0,.12);
    z-index:9999;
}


/* =========================
NAVBAR
========================= */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:75px;
    position:relative;
   
}

/* =========================
LOGO
========================= */

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    flex-shrink:0;
    transition:.3s;
}
.logo img{
    width:90px;
    height:auto;
    object-fit:contain;
}

.logo h2{
    color:#fff;
    font-size:24px;
    font-weight:700;
    margin:0;
    line-height:1.1;
}

.logo span{
    display:block;
    color:#ff4040;
    font-size:14px;
    margin-top:2px;
}

/* =========================
MENU
========================= */

.nav-menu{

    display:flex;

    gap:28px;

}

.nav-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.nav-menu a{
    color:#010107;
    font-weight:500;
    transition:.3s;
    position:relative;
}

.nav-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#FFD369;
    transition:.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after{
    width:100%;
}

.nav-menu a:hover{
    color:#FFD369;
}

/* =========================
LOGIN
========================= */

.btn-login{

    background:#1FA463;

    color:white;

    padding:12px 28px;

    border-radius:30px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.btn-login:hover{

    background:#251bea;

}

/* Login Mobile */
.mobile-login{
    display:none;
}

.desktop-login{
    display:inline-block;
}


/* =========================
HAMBURGER
========================= */

.menu-toggle{
    width:30px;
    height:24px;
    display:none;
    flex-direction:column;
    justify-content:space-between;
    cursor:pointer;
    z-index:1001;
}

.menu-toggle span{
    width:100%;
    height:3px;
    background:#000;
    border-radius:10px;
    transition:.3s;
}

.menu-toggle.active span:nth-child(1){
    transform:translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform:translateY(-9px) rotate(-45deg);
}


/* ==========================================
   RESPONSIVE TABLET
========================================== */

@media (max-width:991px){


    .navbar{
        height:80px;
    }

    /* Tombol login desktop disembunyikan */
    .desktop-login{
        display:none;
    }

    /* Tombol login di menu HP ditampilkan */
    .mobile-login{
        display:block;
        width:100%;
        margin-top:20px;
    }

    .mobile-login .btn-login{
        display:block;
        text-align:center;
    }

  /* Tombol hamburger */
.menu-toggle{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
    width:32px;
    height:24px;
    cursor:pointer;
    z-index:1002;
}

    .menu-toggle span{
        width:28px;
        height:3px;
        background:#000;
        border-radius:10px;
    }

    /* Menu mobile */
    
    .nav-menu{
    position:fixed;
    top:90px;
    right:-100%;
    width:280px;
    height:calc(100vh - 90px);

    background:#f5f6f3;

    display:flex;
    flex-direction:column;
    align-items:flex-start;

    gap:10px;
    padding:30px;

    overflow-y:auto;

    transition:.4s;

    box-shadow:-5px 0 20px rgba(0,0,0,.15);

    z-index:1001;
}

    .nav-menu.active{
        right:0;
    }

}

/* ==========================================
   RESPONSIVE MOBILE
========================================== */
@media (max-width:768px){

.container{
    width:95%;
}

.menu-toggle{
    display:flex;
}

.logo{
    gap:8px;
}

.logo img{
    width:75px;
    height:auto;
}

.logo h2{
    font-size:18px;
}

.logo span{
    display:block;
    font-size:11px;
    margin-top:2px;
}

.header{
    padding:10px 0;
}

.hero{
    height:100vh;
    padding:120px 0 50px;
}

.hero-content{
    max-width:100%;
    text-align:center;
}

.hero h4{
    font-size:16px;
}

.hero h1{
    font-size:42px;
    line-height:1.2;
}

.hero p{
    font-size:18px;
    margin-bottom:25px;
}

.hero-button{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.btn-primary,
.btn-secondary{
    width:100%;
    text-align:center;
}

}

/* =========================
HERO
========================= */

.hero{
    position:relative;
    width:100%;
    display:flex;
    align-items:center;
}

/* Background tiap halaman */

.hero-home{
    background:url("../images/gedung.jpg") center center/cover no-repeat;
}

.hero-about{
    background:url("../images/gedung.jpg") center center/cover no-repeat;
}

.hero-transparansi{
    height:400px;
    background:url("../images/tes-gambar.jpg") center center/cover no-repeat;
}

.hero-layanan{
    background:url("../images/layanan.jpg") center center/cover no-repeat;
}

.hero-fasilitas{
    background:url("../images/fasilitas.jpg") center center/cover no-repeat;
}

.hero-berita{
    background:url("../images/berita.jpg") center center/cover no-repeat;
}

.hero-galeri{
    background:url("../images/galeri.jpg") center center/cover no-repeat;
}

.hero-faq{
    background:url("../images/faq.jpg") center center/cover no-repeat;
}

.hero-kontak{
    background:url("../images/kontak.jpg") center center/cover no-repeat;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.hero-content{
    position:relative;
    z-index:2;
    color:#fff;
    max-width:700px;
}

.hero h4{
    font-size:18px;
    letter-spacing:3px;
    color:#FFD369;
    margin-bottom:15px;
}

.hero h1{
    font-size:58px;
    line-height:1.2;
    margin-bottom:20px;
}

.hero p{
    font-size:20px;
    margin-bottom:35px;
}

.hero-button{
    display:flex;
    gap:20px;
}

.btn-primary{
    background:#1FA463;
    color:#fff;
    text-decoration:none;
    padding:15px 35px;
    border-radius:40px;
    font-weight:600;
}

.btn-secondary{
    border:2px solid #fff;
    color:#fff;
    text-decoration:none;
    padding:15px 35px;
    border-radius:40px;
    font-weight:600;
}

.btn-secondary:hover{
    background:#fff;
    color:#000;
}

/*=========================
LOGIN DROPDOWN
=========================*/

.login-dropdown{
    position:relative;
}

.login-box{
    position:absolute;
    top:60px;
    right:0;
    width:300px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
    padding:20px;
    display:none;
    z-index:9999;
}

.login-box.show{
    display:block;
    animation:fadeDown .3s ease;
}

.login-box h3{
    text-align:center;
    margin-bottom:15px;
}

.login-box input{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border:1px solid #ddd;
    border-radius:8px;
}

.login-box button{
    width:100%;
    padding:12px;
    background:#1FA463;
    color:#fff;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

.login-box button:hover{
    background:#188552;
}

@keyframes fadeDown{

    from{
        opacity:0;
        transform:translateY(-15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* Login Mobile */

.mobile-login-box{
    position:static;
    width:100%;
    margin-top:15px;
}

/* ======================================
HERO KONTAK
====================================== */

.hero-kontak{

    height:320px;

    background:url("../images/gedung.jpg") center center/cover no-repeat;

}

.hero-kontak .hero-content{

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

}

.hero-kontak h1{

    font-size:55px;

    color:white;

}

.hero-kontak p{

    color:white;

    font-size:22px;

    margin-top:15px;

}

/* ======================================
CONTACT
====================================== */

.contact-section{

    padding:80px 0;

    background:#f5f7fb;

}

.contact-section h2{

    text-align:center;

    font-size:40px;

    margin-bottom:10px;

}

.contact-subtitle{

    text-align:center;

    color:#777;

    margin-bottom:40px;

}

.map-box{

    width:100%;

    height:450px;

    overflow:hidden;

    border-radius:20px;

    box-shadow:0 15px 40px rgba(0,0,0,.15);

}

.map-box iframe{

    width:100%;

    height:100%;

    border:none;

}

.contact-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

    margin-top:50px;

}

.contact-card{

    background:white;

    border-radius:20px;

    padding:30px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.1);

    transition:.3s;

}

.contact-card:hover{

    transform:translateY(-10px);

}

.contact-card .icon{

    font-size:45px;

    margin-bottom:15px;

}

.contact-card h3{

    margin-bottom:15px;

}

.contact-card a{

    color:#1FA463;

    text-decoration:none;

    font-weight:600;

}

.contact-card a:hover{

    text-decoration:underline;

}
