.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    /*Fix for safari gap*/
    min-height: 100px;
    max-height: 150px;
}

/* Animation */
.parallax {
    z-index: 1;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/*Shrinking for mobile*/
@media (max-width: 768px) {
    .waves {
        height: 120px;
        min-height: 120px;
    }

    h1 {
        font-size: 24px;
    }
}

.hero-section {
    position: relative;
    z-index: 1;
}

.hero-section svg {
    position: relative;
    z-index: 0;
    pointer-events: none;
}

body [data-aos] {
    z-index: 0;
}

@media (max-width: 990px) {
    #img-hero {
        display: none;
    }

    #hero {
        padding-top: 5rem !important;
        height: 100dvh;
    }

    .hero-section {
        margin-top: 8rem;
    }
}

.custom-btn1 {
    padding: 13px 35px;
    background-color: var(--accent-color);
    color: var(--accent2-color);
    transition: background-color 300ms ease-out, color 300ms ease-out;
    font-size: 17px;
    border-radius: 5px;
    position: relative;
    border: 0;
    font-weight: 700;
    max-width: 20rem;
}

.custom-btn1:hover {
    background-color: var(--primary-color);
}

.custom-btn1 span {
    display: inline-block;
    transition: transform 300ms ease-out;
}

.custom-btn1:hover span {
    transform: scale(1.1);
}

.custom-profile {
    position: relative;
    /* width: 50%; */
    padding: 10rem 0;
    float: left;
    margin-bottom: 20px;
}

.custom-profile .custom-img {
    display: block;
    margin: 0 auto;
}

.custom-profile[data-aos="zoom-out-down"] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.custom-profile[data-aos="zoom-out-down"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

.custom-profile .custom-img:first-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    z-index: 2;
}

.custom-profile .custom-img:last-child {
    width: 100%;
    z-index: 1;
    transform: rotate(28deg) translate(-20px, -80px);
    opacity: 0.5;
}

.custom-profile .custom-img:last-child {
    position: relative;
}

@media (max-width: 990px) {
    #profile {
        padding-top: 5rem !important;
    }

    .custom-profile {
        padding: 5rem 0;
    }

    .custom-profile .custom-img:first-child {
        position: absolute;
        top: 50%;
        left: 45%;
        transform: translate(-50%, -50%);
        width: 80dvw;
        z-index: 2;
    }

    .custom-profile .custom-img:last-child {
        width: 100dvw;
        z-index: 1;
        transform: rotate(28deg) translate(-70px, -80px);
        opacity: 0.5;
    }
}

/* Data */

.custom-title {
    margin-top: 4rem;
    margin-bottom: 4rem;
    line-height: 0.5;
    text-align: center;
}

.custom-title span {
    display: inline-block;
    position: relative;
    color: var(--accent2-color);
    line-height: 35px;
    font-size: 35px;
    font-weight: 700;
}

.custom-title span:before,
.custom-title span:after {
    content: "";
    position: absolute;
    height: 7px;
    border-bottom: 2px solid var(--accent2-color);
    border-top: 2px solid var(--accent2-color);
    top: 12px;
    width: 600px;
}

.custom-title span:before {
    right: 100%;
    margin-right: 15px;
}

.custom-title span:after {
    left: 100%;
    margin-left: 15px;
}

#data .data-card {
    width: 13rem;
    height: 13rem;
    margin-bottom: 3rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: all 400ms ease-out;
}

#data .data-card h2 {
    font-weight: 600;
}

#data .data-card span {
    font-size: 40px;
    font-weight: 700;
}

#data .data-card:hover {
    background-color: var(--primary-color);
    color: var(--accent2-color);
    border: 2px solid var(--accent2-color);
}

/* Skema */

.custom-title-b {
    margin-top: 4rem;
    margin-bottom: 4rem;
    line-height: 0.5;
    text-align: center;
}

.custom-title-b span {
    display: inline-block;
    position: relative;
    color: var(--primary-color);
    line-height: 35px;
    font-size: 35px;
    font-weight: 700;
}

.custom-title-b span:before,
.custom-title-b span:after {
    content: "";
    position: absolute;
    height: 7px;
    border-bottom: 2px solid var(--primary-color);
    border-top: 2px solid var(--primary-color);
    top: 12px;
    width: 600px;
}

.custom-title-b span:before {
    right: 100%;
    margin-right: 15px;
}

.custom-title-b span:after {
    left: 100%;
    margin-left: 15px;
}

#skema .skema-card {
    position: relative;
    padding-top: 10px;
    width: 20rem;
    height: 27rem;
    margin-bottom: 3rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    box-shadow: 0 4px 12px 0px rgba(0, 0, 0, 0.1);
    transition: all 400ms ease-out;
    overflow: hidden;
}

#skema .skema-card:hidden {
    display: none;
}

#skema .skema-card:hover {
    background-image: linear-gradient(to bottom, transparent 0%, #FFFFFF 70%);
}

#skema .skema-card .skema-desc {
    top: 19rem;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 2;
    transition: all 400ms ease-out;
}

#skema .skema-card:hover .skema-desc {
    height: 100%;
    top: 0;
    padding-top: 14rem;
    background-image: linear-gradient(to bottom, transparent 0%, #FFFFFF 70%);
}

#skema .skema-card .skema-desc h2 {
    margin-top: 1em;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    color: var(--accent-color);
}

#skema .skema-card .skema-desc .skema-btn {
    opacity: 0;
    margin-top: 1em;
    width: 10rem;
    height: 3em;
    border-radius: 8px;
    border: 0;
    color: var(--accent2-color);
    background-color: var(--accent-color);
    transition: all 300ms ease-out;
}

#skema .skema-card:hover .skema-desc .skema-btn {
    opacity: 1;
}

#skema .skema-card .skema-desc .skema-btn:hover {
    background-color: var(--primary-color);
}

#skema .skema-card .skema-desc .skema-btn span {
    transition: all 300ms ease-out;
    font-size: 15px;
    font-weight: 500;
}

#skema .skema-card .skema-desc .skema-btn:hover span {
    font-size: 16px;
}

#search-kjn {
    width: 100%;
    max-width: 40rem; /* Maksimal lebar input */
    padding: 10px 15px;
    margin: 2rem auto; /* Tengah dan beri jarak */
    display: block;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--primary-color);
    background-color: transparent;
    transition: all 300ms ease-out;
}

#search-kjn:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--accent2-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#search-kjn::placeholder {
    color: var(--primary-color);
    opacity: 0.7;
}

/* Detail Skema */

.header-bar {
    background-color: var(--primary-color);
    color: var(--accent2-color);
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    margin-bottom: 20px;
}
.section-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.table th, .table td {
    vertical-align: middle;
    padding: 8px;
}
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Dokumentasi */
#dokumentasi .custom-btn1:hover {
    border: 1px white solid;
}

#dokumentasi .image-gallery {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-bottom: 2rem;
}

#dokumentasi .image-gallery .dokumentasi-desc {
    bottom: 0px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 0%;
    overflow: hidden;
    z-index: 3;
    transition: all 400ms ease-out;
    padding-left: 5px;
    padding-right: 5px;
    background-image: linear-gradient(to bottom, transparent 0%, #FFFFFF 50%);
}

#dokumentasi .image-gallery .parent-img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
}

#dokumentasi .image-gallery h2 {
    /* position: absolute; */
    font-size: 15px;
    color: black;
}

#dokumentasi .image-gallery h2 span {
    font-weight: 400;
}

#dokumentasi .image-gallery .col-lg-3 {
    display: flex;
    position: relative;
    width: 20rem;
    height: 20rem;
    border: 4px var(--accent2-color) solid;
    margin-bottom: 2rem;
    z-index: 11;
    background: white; /* Tambahkan background untuk memastikan konten utama terlihat */
}

/* #dokumentasi .image-gallery .col-lg-3::before {
    content: "";
    position: absolute;
    background-color: var(--primary-color);
    width: 100%;
    height: 30%;
    z-index: -1;
    top: 0px;
    left: -100px;
} */

#dokumentasi .image-gallery .col-lg-3 .dokumentasi-desc .fa-external-link-alt {
    position: absolute;
    top: 5px;
    right: 5px;
    color: black;
    font-size: 13px;
    padding: 5px;
    border: 1px black solid;
    border-radius: 50px;
    background-color: var(--accent2-color);
    cursor: pointer;
}

#dokumentasi .image-gallery .col-lg-3:hover .dokumentasi-desc {
    height: 100%;
    padding-top: 10rem;
}

#dokumentasi .slider-dokumentasi {
    display: none;
    top: 0;
    left: 0;
    position: fixed;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 999999999 !important;
}

#dokumentasi .slider-dokumentasi img {
    height: 80%;
}

#dokumentasi .slider-dokumentasi i {
    color: var(--accent2-color);
    font-size: 20px;
    position: absolute;
    top: 10px;
    right: 30px;
    cursor: pointer;
}

#dokumentasi .slider-dokumentasi .slider-toggle {
    color: var(--accent2-color);
    font-size: 35px;
    position: absolute;
    top: 48%;
    cursor: pointer;
}

#dokumentasi .slider-dokumentasi .slider-toggle:nth-child(2) {
    left: 10px;
}

#dokumentasi .slider-dokumentasi .slider-pages {
    color: var(--third-color);
    font-size: 15px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

#dokumentasi .d-slider-img {
    display: none;
    opacity: 1;
}

@media only screen and (max-width: 990px) {
    #dokumentasi .slider-dokumentasi img {
        height: max-content;
        width: 80%;
    }

    #dokumentasi .slider-dokumentasi .slider-toggle:nth-child(3) {
        right: 10px;
    }

    #dokumentasi .slider-dokumentasi i {
        right: 10px;
    }
}