
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f4ff;
    color: #333;
    line-height: 1.6;

    text-align: center;
    
}


header{
    background: #2d2545;
    padding: 12px 8%;

    position: sticky;
    top: 0;

    transition: all 0.3s ease;
    
    z-index: 1000;
}

header.kecil{
    padding: 4px 4%;

    backdrop-filter: blur(10px);

    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav{

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}
nav div{
    display: flex;
    align-items: center;
    gap: 15px;
}

nav img{
    width: 32px;
    height: 32px;
    object-fit: cover;
    transition: all 0.3s ease;
}

header.kecil nav img{
    width: 25px;
    height: 25px;
}

nav h2{
    color: white;
    font-size: 1rem;
}

nav ul{
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover{
    color: #ffd700;
}



#hero{

    background:
    linear-gradient(
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ),
    url("gambar/masjid1.jpeg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    color: white;

    text-align: center;

    padding: 150px 10%;

}

#hero a{
    display: inline-block;
    margin: 15px 10px;
    padding: 12px 25px;
    background: #ffd700;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

#hero a:hover{
    background: #f5c400;
}


section{
    padding: 80px 10%;
}

section h2{
    text-align: center;
    color: #4a2ea6;
    margin-bottom: 30px;
}



#ekskul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.ekskul-card{
    text-decoration: none;
    color: inherit;
}

#ekskul h2{
    width: 100%;
}

#ekskul div{
    width: 300px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
    cursor: pointer;
}

#ekskul div:hover{
    transform: translateY(-8px);
}

#ekskul img{
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

#ekskul h3{
    color: #4a2ea6;
    margin-bottom: 10px;
}


#kegiatan div{
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #ffd700;
    border-radius: 10px;
}

#kegiatan img{
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

#galeri{
    text-align: center;
}

#galeri img{
    width: 250px;
    height: 180px;
    object-fit: cover;
    margin: 10px;
    border-radius: 12px;
}



#faq h3{
    color: #4a2ea6;
    margin-top: 25px;
}



#kontak{
    text-align: center;
}

#kontak a{
    display: inline-block;
    padding: 12px 20px;
    margin: 10px;
    background: #4a2ea6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

#kontak a:hover{
    background: #5d3bd1;
}



footer{
    background: white;
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #ddd;
}

footer img{
    width: 80px;
    margin-bottom: 15px;
}

footer h3{
    color: #4a2ea6;
}

footer p{
    margin-top: 10px;
}



@media (max-width: 768px){

    nav{
        flex-direction: column;
        gap: 20px;
    }

    nav ul{
        flex-wrap: wrap;
        justify-content: center;
    }

    #hero h1{
        font-size: 2rem;
    }

    #ekskul div{
        width: 100%;
    }

    #galeri img{
        width: 100%;
        height: auto;
    }

    .stat-card{

    width: 100%;
}
    

}

.hidden{
    opacity: 0;

    transform: translateY(100px);

    transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.show{
    opacity: 1;

    transform: translateY(0);
}


.logo-area{
    display:flex;
    align-items:center;
    gap:15px;
}

#menu-btn{

    background:none;

    border:none;

    color:white;

    font-size:20px;

    cursor:pointer;

    align-items:flex-start;
}


/* Sidebar */

#sidebar{

    position: fixed;

    top: 45px;

    left: -220px;

    width: 200px;

    background: #2d2545;

    border-radius: 0 12px 12px 0;

    padding: 10px 0;

    transition: 0.3s;

    z-index: 2000;
}

#sidebar.active{

    left:0;
}

#sidebar a{

    display:block;

    padding:12px 20px;

    color:white;

    text-decoration:none;

    text-align:left;

    font-size:15px;

    transition:0.3s;
}

#sidebar a:hover{

    background:#4a2ea6;
}


/* Overlay */

#overlay{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,0.08);

    opacity:0;

    visibility:hidden;

    transition:0.3s;

    z-index:1500;
}

#overlay.active{

    opacity:1;

    visibility:visible;
}

/* =====================
   PENGURUS INTI
===================== */

#pengurus{

    background: #ffffff;
}

.pengurus-subtitle{

    margin-bottom: 40px;

    color: #666;
}

.pengurus-container{

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 30px;
}

.pengurus-card{

    background: white;

    width: 350px;

    padding: 25px;

    border-radius: 15px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    transition: 0.3s;
}

.pengurus-card:hover{

    transform: translateY(-8px);
}

.pengurus-card h3{

    color: #4a2ea6;

    margin-bottom: 20px;
}

.pengurus-pair{

    display: flex;

    justify-content: center;

    gap: 25px;
}

.anggota{

    text-align: center;
}

.anggota img{

    width: 100px;

    height: 100px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #ffd700;

    margin-bottom: 10px;
}

.anggota h4{

    font-size: 1rem;

    color: #333;

    margin-bottom: 5px;
}

.anggota p{

    color: #777;

    font-size: 0.9rem;
}

/* =====================
   DIVISI REMAS
===================== */

#divisi{

    background: #f7f4ff;
}

.divisi-subtitle{

    color: #666;

    margin-bottom: 40px;
}

.divisi-container{

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 30px;
}

.divisi-card{

    width: 320px;

    background: white;

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    transition: 0.3s;
}

.divisi-card:hover{

    transform: translateY(-8px);
}

.divisi-card img{

    width: 100%;

    height: auto;
}

.divisi-card h3{

    padding: 15px;

    color: #4a2ea6;
}

/* =====================
   REMAS DALAM ANGKA
===================== */

#statistik{

    background: white;
}

.statistik-container{

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 30px;

    margin-top: 30px;
}

.stat-card{

    width: 220px;

    background: white;

    padding: 30px 20px;

    border-radius: 15px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    transition: 0.3s;
}

.stat-card:hover{

    transform: translateY(-8px);
}

.stat-number{

    font-size: 3rem;

    font-weight: bold;

    color: #4a2ea6;

    line-height: 1;
}

.stat-label{

    margin-top: 15px;

    color: #666;

    font-size: 1rem;
}
