
/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

/* BODY */
body{

    margin:0;
    padding:0;

    background:url("../images/masjid.jpg") no-repeat center center fixed;

    background-size:cover;

    min-height:100vh;

    overflow-x:hidden;

    padding-top:80px;

    font-family:Arial, Helvetica, sans-serif;

    animation:fadeIn 0.5s forwards;

}


/* ===== NAVBAR ===== */
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:10px 30px;

    position:fixed;
    top:0;
    left:0;
    width:100%;

    background:transparent; /* HAPUS TRANSPARAN */
    box-shadow:0 2px 10px rgba(0,0,0,0.1);

    z-index:9999;
}

/* LOGO */
.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img{
    width:50px;
}

.logo h1{
    font-size:20px;
    color:white;
    margin:0;
    white-space:nowrap;
}

/* MENU */
.menu{
    list-style:none;
    display:flex;
    align-items:center;
    gap:20px;
    margin:0;
    padding:0;
}

.menu li{
    position:relative;
}

/* LINK MENU */
.menu li a{
    color:white;
    text-decoration:none;
    padding:10px 12px;
    display:block;
    font-weight:bold;
    transition:0.3s;
}

.menu li a:hover{
    color:#00ffcc;
}

/* ===== DROPDOWN ===== */
.dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;

    background:white;
    min-width:200px;

    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    border-radius:6px;

    z-index:99999;
}

/* ITEM DROPDOWN */
.dropdown-menu li{
    list-style:none;
}

.dropdown-menu li a{
    color:black;
    padding:10px;
    font-weight:normal;
}

.dropdown-menu li a:hover{
    background:#f1f1f1;
}

/* SHOW DROPDOWN */
.dropdown:hover .dropdown-menu{
    display:block;
}

/* ===== SECTION ===== */


.home-section h2{
    text-align:center;
    color:black;
     width:90%;
    margin:60px auto; /* INI YANG MEMBUAT JARAK ANTAR BAGIAN */
}

table{
    margin-top:10px; /* opsional tambahan */
}
/* ===== TABLE ===== */
table{
    width:100%;
    border-collapse:collapse;
    background:white;
}

table th, table td{
    border:1px solid #ddd;
    padding:10px;
    text-align:center;
}

table th{
    background:#198754;
    color:white;
}

/* ===== HERO ===== */
.welcome{
    height:90vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:black;
}

/* ===== FOOTER ===== */
footer{
    text-align:center;
    padding:20px;
    background:#198754;
    color:white;
    margin-top:50px;
}

/* BUTTON BACA SELENGKAPNYA MODEL BOX */
.btn-baca{
    display:inline-block;

    padding:12px 25px;

    background:rgba(255,255,255,0.15); /* transparan */
    border:1px solid rgba(255,255,255,0.4);

    color:rgb(4, 132, 12);
    text-decoration:none;
    font-weight:bold;

    border-radius:10px;

    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);

    box-shadow:0 5px 15px rgba(0,0,0,0.3);

    transition:0.3s ease;
}


/* BUTTON HOVER */
.btn-baca:hover{
    background:rgba(255,255,255,0.25);
    transform:translateY(-3px);
}

/* SECTION TENTANG MASJID (MODERN ISLAMIC STYLE) */
.section-box{
   .section-box{

    width:90%;

    margin:5px auto;

    padding:12px;

}

    /* GRADIENT HALUS */
    background:linear-gradient(
        135deg,
        rgba(255,255,255,0.95),
        rgba(232,245,233,0.95)
    );

    border-radius:15px;

    /* BORDER ISLAMI */
    border-left:6px solid #198754;

    box-shadow:0 10px 25px rgba(0,0,0,0.15);

    transition:0.3s ease;
}

/* HOVER CARD */
.section-box:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 30px rgba(0,0,0,0.2);
}

/* JUDUL */
.section-box h2{
    color:black;
    margin-bottom:20px;
    text-align:center;

    font-size:26px;
    position:relative;
}

/* GARIS DI BAWAH JUDUL */
.section-box h2::after{
    content:"";
    width:70px;
    height:5px;
    background:#198754;

    display:block;
    margin:10px auto 0;
    border-radius:5px;
}

/* TEKS */
.section-box p{
    line-height:1.9;
    color:#333;
    margin-bottom:15px;
    text-align:justify;

    font-size:15px;
}

/* =========================
   QUICK MENU NORMAL
========================= */

.quick-container{

    width:90%;

    margin:30px auto;

    display:flex;

    flex-direction:column;

    gap:15px;
}

/* CARD */
.quick-card{

    width:100%;

    padding:18px 22px;

    background:white;

    border-left:5px solid #198754;

    border-radius:12px;

    text-decoration:none;

    color:#333;

    box-shadow:0 3px 10px rgba(0,0,0,0.1);

    transition:0.3s;
}

/* HOVER */
.quick-card:hover{

    transform:translateY(-3px);

    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

/* JUDUL */
.quick-card h3{

    color:#198754;

    font-size:22px;

    margin-bottom:8px;
}

/* TEKS */
.quick-card p{

    font-size:15px;

    line-height:1.6;

    margin-bottom:12px;
}

/* EFEK MASUK HALAMAN */
body{
    opacity:0;
    animation:fadeIn 0.5s forwards;
}

/* ANIMASI MASUK */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* EFEK KELUAR (opsional pakai JS nanti) */
body.fade-out{
    opacity:0;
    transition:0.3s ease;
}

/* HEADER HALAMAN (VISI, SEJARAH, STRUKTUR) */
.page-header{
    height:220px;
    background:url("../images/masjid.jpg") center/cover;
    display:flex;
    justify-content:center;
    align-items:center;

    color:white;
    font-size:32px;
    font-weight:bold;

    text-shadow:0 3px 10px rgba(0,0,0,0.5);
}

/* CONTAINER UTAMA */
.container{
    width:90%;
    margin:40px auto;
    padding:0;

    background:transparent;
    box-shadow:none;
    border-radius:0;
}

/* CARD ISI */
.card{

    background:white;

    width:100%;

    padding:18px 22px;

    margin-top:15px;

    border-left:5px solid #198754;

    border-radius:12px;

    line-height:1.7;

    box-shadow:0 3px 10px rgba(0,0,0,0.1);

    transition:0.3s;

}

/* HOVER */
.card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.container h2{
    color:#198754;
    margin-top:35px;
    margin-bottom:15px;

    font-size:35px;
}

/* HOVER EFEK CARD */
.card:hover{
    transform:translateY(-3px);
    transition:0.3s;
}
.home-section{
    width:90%;
    margin:50px auto;
}

.home-section h2{
    text-align:center;
    color:white;
    font-size:32px;
    margin-bottom:25px;
}

.card h3{
    font-size:24px;
}
/* =========================
   TOMBOL HOME KE ATAS
========================= */
#btnTop{

    position:fixed;

    bottom:30px;

    right:30px !important;

    width:75px;
    height:75px;

    background:#198754;
    color:white;

    border:none;
    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:38px;

    cursor:pointer;

    z-index:999999;

    box-shadow:0 5px 20px rgba(0,0,0,0.4);

    transition:0.3s;

}

/* HOVER */
#btnTop:hover{

    background:#146c43;

    transform:scale(1.1);

}
/* =================================
   RESPONSIVE MOBILE
================================= */
@media screen and (max-width:768px){

    /* NAVBAR */
    .navbar{

        flex-direction:column;

        padding:15px;
    }

    .menu{

        flex-wrap:wrap;

        justify-content:center;

        gap:10px;

        margin-top:10px;
    }

    .menu li a{

        font-size:14px;

        padding:8px 10px;
    }

    /* HERO */
    .welcome{

        height:auto;

        padding:120px 20px 80px;
    }

    .welcome h2{

        font-size:30px;
    }

    .welcome p{

        font-size:16px;
    }

    /* SECTION */
    .home-section{

        width:95%;
    }

    /* BOX */
    .section-box,
    .card{

        padding:20px;
    }

    /* JUDUL */
    .home-section h2{

        font-size:25px;
    }

    /* QUICK MENU */
    
    /* TABLE */
    table{

        display:block;

        overflow-x:auto;

        white-space:nowrap;
    }

    /* PAGE HEADER */
    .page-header{

        height:180px;

        font-size:26px;

        text-align:center;

        padding:20px;
    }

    /* FOOTER */
    footer{

        padding:20px 10px;

        font-size:14px;
    }

    /* TOMBOL KE ATAS */
    #btnTop{

        width:70px !important;
        height:70px !important;

        bottom:20px !important;
        right:20px !important;
    }

    #btnTop span{

        font-size:40px !important;
    }

}
/* PERBAIKI BOX AGAR TIDAK BESAR */
.home-section{

    width:90%;

    margin:25px auto;

}

.home-section .card{

    min-height:auto !important;

    height:auto !important;

}
