html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
span,
li,
button,
a,
div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow: auto;
    color: #333;
    overflow: auto;
    background-color: #f2f2f2;
}

body::-webkit-scrollbar {
    display: none;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

ul {
    padding: 0;
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    max-width: 70vw; /* Maksimum 70% dari lebar layar */
    max-height: 70vh; /* Maksimum 70% dari tinggi layar */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Mencegah overflow */
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Gambar akan menyesuaikan ukuran tanpa terdistorsi */
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    z-index: 10;
}


nav {
    background-color: #FCFAEE;
    position: fixed;
    z-index: 2;
    width: 100%;
}

.navbar {
    position: fixed;
    z-index: 2;

}

.nav li a {
    text-decoration: none;
    font-size: 0.813rem;
    color: #798645;
    font-weight: bold;
}

nav ul li a:hover {
    color: #565F36;
    color: rgb(86, 95, 54);
    
}

.nav-link:hover {
    color: rgb(86, 95, 54);
}

/*###################################### Hero Section ########################################################*/
.gnb {
    position: relative;
    filter: brightness(100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.gnb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.gnb img {
    width: 100%;
}

.gnb-content {
    position: absolute;
    top: 27%;
    margin-left: 99px;
    z-index: 2;
}

.gnb-content h1 {
    font-size: 40px;
    font-family: "Poppins", serif;
    font-weight: 200;
    font-style: normal;
}

.gnb-content h2 {
    font-size: 50px;
    font-family: "Poppins", serif;
    font-weight: 700;
    font-style: normal;
}

.gnb-content p {
    font-size: 20px;
    margin-bottom: 30px;
    font-family: "Poppins", serif;
    font-weight: 200;
    font-style: normal;
}


.gnb-content ul li {
    font-family: "Poppins", serif;
    font-weight: 200;
    font-style: normal;
    padding: 2px 0px;
}



.cards-body {
    background-color: #798645;
    color: #f0f0f0;
    padding: 13px;
    border-top-left-radius: 40px;
    width: 310px;
    margin-left: 218px;
    position: relative;
    margin-top: -48px;
    z-index: 1;
    text-align: center;
    font-weight: bold;
}

.cards-text {
    background-color: #798645;
    color: white;
    font-size: 24px;
    padding: 30px;
    margin: 20px auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    text-align: justify;

}

@media (max-width:768px) {
    .cards-text {
        font-size: 15px;
    }
}



.galeri-head {
    position: relative;
    width: 100%;
    height: 300px;
    filter: brightness(100%);
    background-image: url('foto/koridor_2.avif');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 20px;
    box-sizing: border-box;
}


.galeri-head::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Gelap: 0.3, lebih terang: 0.1 */
    z-index: -1;
}

.galeri-content h2 {
    padding: 0px 90px;
    max-width: 1000px;
    filter: brightness(100%);
    font-size: 50px;
    color: white;
    text-align: center;
    font-weight: 600;
    z-index: 5;
}



.section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.section h2 {
    color: #525252;
    margin-bottom: 35px;
}

/* Grid container for cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Fix to 4 columns */
    gap: 10px;
}





/* Styling for each card */
.card {
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    /* Allows text overlay */
    aspect-ratio: 4 / 3;
    /* Maintains consistent aspect ratio */
}

/* Ensure the image fills the card while maintaining aspect ratio */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the card area without distortion */
    display: block;
    filter: brightness(70%);
    transition: all 0.3s ease;
    /* Transisi halus */

}

.card img:hover {
    transform: scale(1.05);
    /* Slightly enlarge the card on hover */
    filter: brightness(100%);
}

/* Text overlay on the image */
.card-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

@media(max-width:376px) {
    .card-text {
        font-size: 12px;
        padding: 2px 3px;
    }
}


footer {
    background-color: #798645;
}

.footer-kontainer {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    margin: 3rem auto;
}

.footer-image {
    justify-content: center;
    margin: auto 0;
}

.footer-image img {
    max-width: 242px;
    margin: auto 0;
}

.footer-content {
    margin: 6rem 4rem;
}

.footer-head {
    display: flex;
}

.footer-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: white;
}

.footer-content ul {
    list-style: none;
    text-decoration: none;
    color: white;
}

.footer-content ul li {
    padding: 0.2rem 0;
}

.footer-content ul a {
    position: relative;
    display: inline-block;
    list-style: none;
    text-decoration: none;
    color: white;
    display: block;
    transition: all 0.3s ease;
}

.footer-content ul li:hover {
    transform: translateX(10px);
    /* Geser ke kiri 5px */
    color: black;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.footer-content i {
    margin-right: 16px;
    font-size: 1.1rem;
}

.sosial-link a i {
    font-size: 1.2rem;
    display: inline-block;
    margin: 10px 10px 0 0;
    color: white;
    background-color: rgba(255, 255, 255, 0.247);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 25px;
    text-align: center;
}

.sosial-link a i:hover {
    transition: all 0.3s ease;
    color: black;
    background-color: white;
}

.copyright {
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    max-width: 1170px;
    margin: auto;
    margin-top: 30px;
    justify-content: center;
    margin-left: 256px;
}

@media (max-width:980px) {

    .footer-image img {
        max-width: 270px;
    }

    .footer-content ul li {
        font-size: 1rem;
    }

    .footer-kontainer {
        max-width: 800px;
        justify-content: center;
        text-align: center;
    }

    .footer-head {
        display: grid;
    }

    .footer-content {
        margin: 2rem 0;
    }
}


@media (max-width:600px) {

    .footer-image img {
        max-width: 242px;
    }

    .footer-kontainer {
        justify-content: left;
        padding: 0 30px;
        text-align: left;
    }

    .footer-head {
        display: grid;
    }

    .footer-content {
        justify-content: left;
        margin: 2rem 0;
    }
}

.menu-icon {
    font-size: 30px;
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.237);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}


.sidebar li a {
    width: 100%;
    color: black;
}

@media only screen and (max-width : 1024px) {

    .navbar-show {
        display: none;
    }

    .menu-icon {
        display: flex;

    }
}

@media (max-width: 1024px) {
    .cards-body {
        margin-left: 60px;
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 kolom */
    }

    .row {
        margin-left: 67px;
    }

    .container,
    .container-md,
    .container-sm {
        max-width: 874px;
    }

    .navbar-brand img {
        width: 170px;
    }

    .gnb-content {
        top: 30%;
    }

    .gnb-content img {
        object-fit: cover;
        height: 750px;

    }

    .gnb-content h1 {
        font-size: 35px;
    }

    .gnb-content h2 {
        font-size: 40px;
    }

    .gnb-content p {
        font-size: 16px;
    }

    .gnb-content {
        margin-left: 83px;
    }
}

@media (max-width: 768px) {

    .gnb img {
        width: 100%;
        height: 739px;
        object-fit: cover;
    }

    .gnb-content {
        top: 26%;
        margin-left: 6%;
        z-index: 2;
    }

    .gnb-content h1 {
        font-size: 30px;
    }

    .gnb-content h2 {
        font-size: 35px;
    }
    .gnb-content p {
        font-size: 15px;
    }

    .cards-title {
        font-size: 18px;
    }

    .cards-body {
        margin-top: -27px;
    }
}

@media (max-width: 425px) {
    .galeri-content h2 {
        padding: 0 0;
    }

    .gnb img {
        height: 490px;
        object-fit: cover;
    }

    .cards-body {
        margin-left: 19px;
    }

    .footer-logo {
        margin-top: -69px;
        margin-left: 2px;
    }

    .row {
        margin-left: auto;
    }

    .galeri-head {
        height: 250px;
    }
    .gnb-content h1 {
        font-size: 25px;
    }
    .gnb-content h2 {
        font-size: 25px;
    }
    .gnb-content p {
        font-size: 12px;
    }

    .cards-title {
        font-size: 20px;
    }

    .cards-text {
        font-size: 17px;
    }
}

@media(max-width: 400px) {
    .sidebar {
        width: 100%;
    }

    .gnb img {
        height: 500px;
        width: 100%;
    }


    .gnb-content h1 {
        font-size: 30px;
    }

    .gnb-content h2 {
        font-size: 35px;
    }

    .gnb-content p {
        font-size: 15px;
    }

    .gnb-content ul {
        margin-top: -20px;
    }



    .cards-body {
        padding: 10px;
        width: 223px;
        margin-left: 20px;
        margin-top: -27px;
        border-top-left-radius: 31px;
    }

    .cards-title {
        font-size: 19px;
    }

    .cards-text {
        font-size: 15px;
        text-align: center;
        padding: 20px;
    }
}

.btn-floating {
    position: fixed;
    right: 25px;
    overflow: hidden;
    width: 55px;
    height: 55px;
    border-radius: 100px;
    border: 0;
    z-index: 9999;
    color: white;
    transition: .2s;

    bottom: 25px;
    background-color: #33af23;
    border: 2px solid #fff;
}

.btn-floating:hover {
    width: auto;
    padding: 0 20px;
    cursor: pointer;

}

.btn-floating span {
    font-size: 21px;
    margin-left: 5px;
    transition: 0.5s;
    line-height: 0px;
    display: none;
}

.btn-floating:hover span {
    display: inline-block;

}

.btn-floating:hover i {
    margin-bottom: -3px;
}

.btn-floating i {
    font-size: 25px;
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1266px;
    }
}
@media (max-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 714px;
    }
}

