/*==GOOGLE FONTS==*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&display=swap');

/*==VARIABLES CSS==*/

/* Atur agar tidak ada space kosong di sebelah kanan */
html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

:root {
    --header-height: 3.5rem;
    /*==COLORS==*/
    --first-color: #FFFFFF;
    --first-color-alt: #E5E5E5; 
    --second-color: #539165;
    --white-color: #FFFFFF;
    --title-color: #333333; 
    --text-color: #444444; 
    --text-color-light: #666666; 
    --body-color: #F8F8F8; 
    --body-color-alt: #EFEFEF; 
    --container-color: #A4CE95; 
    --header-color: #58B368;
    --blue-color: #2F3E75;
    --shadow-small-img: rgba(7, 6, 6, 0.1); 
    --shadow-big-img: rgba(0, 0, 0, 0.2); 

    /*==FONT==*/
    /*==5rem = 8px | 1 rem = 16px==*/
    --body-font: "Montserrat", sans-serif;
    --biggest-font-size: 3rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;

    /*==Z INDEX==*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Hamburger and Close button hidden on desktop */
.nav__toggle,
.nav__close {
    display: none;
}

/*==RESPONSIVE TYPOGRAPHY==*/
@media screen and (min-width: 1150px) {
    :root {
        --biggest-font-size: 4.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
    .nav__toggle,
    .nav__close {
        display: none;
    }
}

/*==RESPONSIVE TYPOGRAPHY==*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-family: var(--body-font);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/*==CSS CLASS==*/
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px; /* Add padding to maintain spacing from the edges */
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 5rem 1rem;
}

.section__title {
    text-align: center;
    font-size: var(--h1-font-size);
    margin-bottom: 2rem;
}

.main {
    overflow: hidden;
}

/*==HEADER & NAV==*/
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--header-color);
    z-index: var(--z-fixed);
    transition: box-shadow .4s;
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Adjust padding as needed */
}

.nav__menu {
    display: flex; /* Flex layout for horizontal alignment */
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Take up available space */
}

.nav__list {
    display: flex; /* Horizontal layout */
    gap: 1.5rem; /* Space between items */
    list-style: none; /* Remove default bullet points */
    margin: 0;
    padding: 0;
}

.nav__logo {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-family: var(--body-font);
    color: var(--title-color);
}

.nav__logo img {
    width: 20px;
}

.nav__link {
    padding: 10px 15px;
    font-family: var(--body-font);
    color: var(--title-color);
    white-space: nowrap; /* Prevent text wrapping */
    position: relative;
}

.nav__logo div {
    background-color: var(--first-color);
    padding: 6px;
    border-radius: .5rem;
}

.nav__toggle,
.nav__close {
    display: flex;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

/*==MOBILE DEVICE==*/
@media screen and (max-width: 1150px) {
    .nav__menu {
        position: absolute;
        top: 100%; /* Positioning right below the navbar */
        left: 0;
        background-color: var(--body-color);
        width: 100%;
        padding-block: 4.5rem 3.5rem;
        box-shadow: 0 4px 16px hsla(22, 100%, 8%, .2);
        transition: top .4s;
        flex-direction: column;
        align-items: center;
        display: none; /* Hidden by default, shown on toggle */
    }
    .nav__toggle {
        display: block; /* Show toggle menu on smaller screens */
    }
    .nav__list {
        text-align: center;
        display: flex;
        flex-direction: column;
        row-gap: 2rem;
    }
    .show-menu {
        display: flex;
        flex-direction: column;
    }

    /* Show Close Button when menu is open */
    .nav__close {
        display: block;
        font-size: 1.5rem;
        color: var(--title-color);
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        cursor: pointer;
    }
}

@media screen and (max-width: 1149px) {
    .nav__toggle,
    .nav__close {
        display: flex;
    }
}

@media screen and (min-width: 1150px) {
    /* Hide Toggle and Close button on desktop */
    .nav__toggle,
    .nav__close {
        display: none;
    }

    .nav__menu {
        display: flex;
    }
}

.nav__link {
    position: relative;
    color: var(--title-color);
    font-family: var(--body-font);
}

.nav__link::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: var(--second-color);
    position: absolute;
    left: 50%;
    bottom: -.5rem;
    transform: translateX(-50%);
    transition: width .3s;
}

.nav__link:hover::after,
.nav__link:focus::after,
.nav__link.active::after {
    width: 60%;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/*==SHOW MENU==*/
.show-menu {
    top: 0;
}

/*==SHADOW HEADER==*/
.shadow-header {
    box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.1);
}

/*==ACTIVE LINK==*/
.active-link::after {
    width: 60%;
}

/*==HOME==*/
.home__container {
    padding-top: 2rem;
    row-gap: 2.5rem;
    /* padding-block: 3rem 2rem;
    justify-content: center;
    row-gap: 3.5rem; */
}

.home__data {
    text-align: center;
}

.home__title {
    font-size: var(--biggest-font-size);
    margin-bottom: 1rem;
}

.home__description {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.home__swiper {
    width: 100%;
    height: 100%;
    /* margin: initial; */
}

.home__images {
    display: grid;
}

.home__article,
.home__img {
    width: 100%;
    height: auto;
    transition: scale .4s;
}

.home__article {
    scale: .8;
}

/*==SWIPER CLASS==*/
.swiper-slide-active,
.swiper-slide-duplicate-active {
    scale: 1;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*==TENTANG KAMI==*/
.about__container {
    display: grid;
    gap: 1rem;
}

.about__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
    text-align: center;
}

.about__description {
    margin-bottom: 2rem;
    color: var(--text-color-light);
    text-align: center;
}

.about__card {
    background-color: var(--header-color);
    box-shadow: 0px 4px 10px var(--shadow-small-img);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

/* Menyusun gambar sejajar ke empat */
.about__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media screen and (max-width: 768px) {
    .about__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .about__container {
        grid-template-columns: 1fr;
    }
}

/* Memusatkan tombol */
.button__container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__button {
    border: 1px solid var(--header-color);
    background: none;
    padding: 10px 20px;
    font-family: var(--body-font);
    font-weight: var(--font-semi-bold);
    cursor: pointer;
    margin: 10px;
    transition: 0.8s;
    position: relative;
    overflow: hidden;
}

.btn {
    color: var(--text-color);
}

.btn:hover {
    color: #FFF;
}

.about__button::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-color);
    z-index: -1;
    transition: 0.8s;
}

.btn::before {
    bottom: 0;
    border-radius: 50% 50% 0 0;
}

.btn:hover::before {
    height: 180%;
}

/*==MAPS==*/
.maps__container {
    width: 100%;
    max-width: 1000px; /* Menyesuaikan lebar container peta */
    height: 400px; /* Menyesuaikan tinggi container peta */
    margin: 2rem auto; /* Menempatkan container peta di tengah secara horizontal */
    position: relative;
    justify-content: center;
    align-items: center;
}


/*==PDF==*/
.pdf__container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;
}

/*==PAKET==*/
.paket__card {
    position: relative;
    text-align: center;
    background-color: var(--container-color);
    padding: 2rem;
    overflow: hidden;
    border: 2px solid var(--title-color);
    transition: border .4s, background-color .4s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.paket__img {
    width: 150px;
    margin: 0 auto .75rem;
    border-radius: 20px;
}

.paket__title {
    font-size: var(--h2-font-size);
    margin-bottom: .5rem;
}

.paket__prices {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: .75rem;
    margin-bottom: 1.25rem;
}

.paket__discount {
    color: var(--title-color);
}

.paket__price {
    font-size: var(--small-font-size);
    text-decoration: line-through;
}

.paket__button {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    background-color: var(--header-color);
    color: var(--title-color);
    padding: 0.5rem 1rem;
    font-family: var(--body-font);
    font-size: 0.875rem; /* Mengurangi ukuran font */
    font-weight: var(--font-semi-bold);
    border-radius: 2rem; /* Mengurangi border-radius */
    transition: box-shadow .4s;
}

.paket__button:hover {
    box-shadow: 0 8px 24px hsla(22, 100%, 8%, .2);
}

.paket__button:active {
    background-color: var(--white-color);
    color: var(--text-color);
}

/*==SWIPER CLASS==*/
.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
}

.swiper-button-prev,
.swiper-button-next {
    width: initial;
    height: initial;
    background-color: var(--body-color);
    border: 2px solid var(--container-color);
    padding: .5rem;
    font-size: 1.5rem;
    color: var(--header-color);
    transition: border .4s background-color .4s;
}

/*==FAQ==*/
.faq__header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10% 3% 20% 3%; /* Tambah padding atas untuk memperpanjang gambar ke atas */
    border-radius: 30px;
    color: var(--body-color);
    overflow: hidden;
}

.faq__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Letakkan gambar di belakang */
    filter: brightness(70%); /* Beri efek gelap agar teks lebih terlihat */
}

.faq__title {
    font-size: 60px;
    letter-spacing: 1.5px;
    color: var(--body-color);
    z-index: 1;
    text-align: center; /* Pusatkan teks */
}

.faq__desc {
    font-size: 20px;
    letter-spacing: 1px;
    text-align: center;
    z-index: 1;
}

.faq__box {
    flex: 1;
    min-width: 320px;
    padding: 2% 0 4% 4%;
}

.faq__wrapper {
    width: 100%;
    padding: 1.5rem;
    border-bottom: 1px solid var(--header-color);
}

.faq__titl {
    display: block;
    position: relative;
    width: 100%;
    padding-right: 30px; /* Space for arrow */
    letter-spacing: 1.2px;
    font-size: 24px;
    font-weight: 600;
    color: var(--blue-color);
}

.faq__titl::after { /*==FOR ARROW==*/
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-width: 2px 2px 0 0;
    transform: rotate(135deg) translateY(-50%);
    transition: transform 0.4s ease-in-out;
}

.faq__detail {
    line-height: 1.5;
    letter-spacing: 1px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    font-size: 14px;
}

.faq__trigger {
    display: none;
}

.faq__trigger:checked + .faq__titl + .faq__detail {
    max-height: 300px;
}

.faq__trigger:checked + .faq__titl::after {
    transform: rotate(45deg) translateY(-50%);
    transition: transform 0.4s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .faq__titl {
        font-size: 20px;
    }

    .faq__titl::after {
        right: 10px;
    }

    .faq__title {
        font-size: 36px;
    }
}

/*==FOOTER==*/
.footer {
    padding-block: 4rem 6rem;
    background-color: var(--body-color); /* Optional: Add background color to the footer */
    width: 100vw; /* Ensure the footer spans the full viewport width */
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Ensure equal column distribution */
    gap: 2rem; /* Adjust gap between columns */
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Center the container horizontally */
    padding: 0 0px; /* Add padding to prevent content from touching screen edges */
}

.footer__logo-container {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    display: inline-flex;
    column-gap: .5rem;
    color: var(--blue-color);
    font-size: var(--h3-font-size);
    margin-bottom: 1.25rem;
}

.footer__description {
}

.footer__logo i{
    font-size: 1.25rem;
}

.footer__data {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 1rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1,25rem;
}

.footer__links {
    display: grid;
    row-gap: .5rem;
}

.footer__link {
    color: var(--text-color);
    transition: color .4s;
}

.footer__link:hover {
    color: var(--header-color);
}

.footer__info {
    font-style: normal;
}

.footer__social {
    display: flex;
    column-gap: 1.25rem;
}

.footer__social-link {
    font-size: 1.25rem;
    color: var(--blue-color);
}

.footer__copy {
    display: block;
    margin-top: 5rem;
    text-align: center;
    font-size: var(--small-font-size);
}

/*==BUTTON==*/
.button {
    display: inline-flex;
    background-color: var(--header-color);
    color: var(--title-color);
    padding: 1rem 1.5rem;
    font-family: var(--body-font);
    font-weight: var(--font-semi-bold);
    border-radius: 4rem;
    transition: box-shadow .4s;
}

.button:hover {
    box-shadow: 0 8px 24px hsla(22, 100%, 8%, .2);
}

.button:active {
    background-color: var(--white-color);
    color: var(--text-color);
}

/*==SCROLL BAR==*/
::-webkit-scrollbar {
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(230, 16%, 85%);
}

::-webkit-scrollbar-thumb {
    border-radius: .5rem;
    background-color: hsl(230, 16%, 65%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(230, 16%, 55%);
}

/*==SCROLL UP==*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--body-color);
    box-shadow: 0 4px 16px hsla(22, 100%, 8%, .2);
    color: var(--title-color);
    display: inline-flex;
    padding: 6px;
    font-size: 1.25rem;
    border-radius: .35rem;
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}

/*==SHOW SCROLL UP==*/
.show-scroll {
    bottom: 3rem;
}

/*==BREAKPOINTS==*/
/*==SMALL DEVICE==*/
@media screen and (max-width: 330px) {
    .container {
        margin-inline: 1rem;
    }

    .home__title {
        font-size: 2.5rem;
    }
    .home__images {
        width: 210px;
    }
    .home__img {
        width: 250px;
    }
    .home__data {
        width: 250px;
        bottom: -2rem;
    }
    .container {
        grid-template-columns: 160px;
        justify-content: center;
    }

    .footer__social {
        grid-column: 1;
        grid-column: span 2; /* Social media will take the full width */
        justify-content: center;
    }
    .footer__container {
        justify-items: center;
        grid-template-columns: 1fr 1fr; /* Adjust to two columns on smaller screens */
        gap: 1.5rem;
    }
}

/*==MEDIUM DEVICE==*/

/*==LARGE DEVICE==*/