/* Carousel sebagai Background */
.carousel-background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0; /* Berada di belakang header */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%; /* Pastikan lebar track sesuai dengan container */
}

.carousel-track img {
    width: 100%; /* Gambar mengisi lebar penuh */
    height: 100vh; /* Gambar mengisi tinggi penuh */
    object-fit: cover; /* Gambar akan di-crop agar sesuai dengan area */
    flex-shrink: 0; /* Gambar tidak akan menyusut */
}

.carousel-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    transition: 0.5s;
}

.carousel-text:hover {
    -webkit-text-stroke: 2px #fff;
    color: transparent;
}

.exploreButton {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    z-index: 1;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    text-decoration: none;
    display: inline-block;
    border: 2px solid #fff;
    padding: 14px 70px;
    border-radius: 50px;
    transition: 0.5s;
}

.exploreButton:hover {
    background-color: black;
    color: white;
}

/* Konten utama untuk memberi jarak dari header */
.content {
    padding: 30px;
    text-align: center;
}

/* Why You Should Join Us */
#application {
    margin: 5px 0;
    margin-bottom: 50px;
}

#application h2 {
    font-weight: bold;
    font-size: 24px;
    color: #333;
}

#application h1 {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}

.application-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.card {
    background-color: #f7f7f7;
    width: 250px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    margin-bottom: 15px; /* Jarak antara ikon dan teks */
    transition: color 0.3s ease; /* Efek transisi saat hover */
}

.card h4 {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
}

.card p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.content2 {
    padding: 30px;
    text-align: center;
    margin-top: 70px;
}

.content2Bg {
    background-image: linear-gradient(#b8d4f8, white);
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 20px;
}

.content2 h1 {
    color: black;
    font-weight: bold;
    font-size: 2em;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.modal-content h2 {
    margin: 0;
    font-size: 1.5em;
}

.modal-content p {
    margin-top: 10px;
    font-size: 1em;
    color: #555;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Application Work Cards */
.applicationwork-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cardwork {
    width: 350px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    background-color: transparent;
    border: none;
}

.cardwork:hover {
    transform: translateY(-5px);
}

.cardwork img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.cardwork h4 {
    font-weight: bold;
    font-size: 1.2em;
    margin: 10px 0;
}

.cardwork p {
    font-size: 0.9em;
    margin: 0;
}

.content-containerlistwork {
    display: flex;
    align-items: center;
    padding: 20px;
}

.content-containerlistwork img {
    max-width: 20%;
    height: auto;
    margin-right: 20px;
}

.descriptionlistwork {
    flex: 1;
}

.bgDiscover {
    background-image: linear-gradient(white, #b8d4f8, white);
    margin-bottom: 20px;
}

.applyButton {
    font-weight: bold;
    text-align: center;
    z-index: 1;
    color: black;
    text-decoration: none;
    display: inline-block;
    border: 2px solid black;
    padding: 6px 100px;
    border-radius: 50px;
    transition: 0.5s;
}

.applyButton:hover {
    color: white;
    background-color: black;
}

/* Together for Change Slider */
[type=radio] {
    display: none;
}

#slider {
    height: 35vw; /* Tinggi default untuk desktop */
    width: 100%;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

#slider label {
    margin: auto;
    width: 60%;
    height: 100%;
    border-radius: 4px;
    position: absolute;
    left: 0;
    right: 0;
    cursor: pointer;
    transition: transform 0.4s ease;
    background-size: cover; /* Gambar menutupi area tanpa crop */
    background-position: center; /* Gambar diatur ke tengah */
}

#s1:checked ~ #slide4, #s2:checked ~ #slide5,
#s3:checked ~ #slide1, #s4:checked ~ #slide2,
#s5:checked ~ #slide3 {
    box-shadow: 0 1px 4px 0 rgba(0,0,0,.37);
    transform: translate3d(-30%,0,-200px);
}

#s1:checked ~ #slide5, #s2:checked ~ #slide1,
#s3:checked ~ #slide2, #s4:checked ~ #slide3,
#s5:checked ~ #slide4 {
    box-shadow: 0 6px 10px 0 rgba(0,0,0,.3), 0 2px 2px 0 rgba(0,0,0,.2);
    transform: translate3d(-15%,0,-100px);
}

#s1:checked ~ #slide1, #s2:checked ~ #slide2,
#s3:checked ~ #slide3, #s4:checked ~ #slide4,
#s5:checked ~ #slide5 {
    box-shadow: 0 13px 25px 0 rgba(0,0,0,.3), 0 11px 7px 0 rgba(0,0,0,.19);
    transform: translate3d(0,0,0);
}

#s1:checked ~ #slide2, #s2:checked ~ #slide3,
#s3:checked ~ #slide4, #s4:checked ~ #slide5,
#s5:checked ~ #slide1 {
    box-shadow: 0 6px 10px 0 rgba(0,0,0,.3), 0 2px 2px 0 rgba(0,0,0,.2);
    transform: translate3d(15%,0,-100px);
}

#s1:checked ~ #slide3, #s2:checked ~ #slide4,
#s3:checked ~ #slide5, #s4:checked ~ #slide1,
#s5:checked ~ #slide2 {
    box-shadow: 0 1px 4px 0 rgba(0,0,0,.37);
    transform: translate3d(30%,0,-200px);
}

#slide1 { background-image: url(/assets/charity.jpg); }
#slide2 { background-image: url(/assets/charity2.jpg); }
#slide3 { background-image: url(/assets/charity3.jpg); }
#slide4 { background-image: url(/assets/charity4.jpg); }
#slide5 { background-image: url(/assets/charity5.jpg); }

/* Modal Karir */
.applyModal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.applyModal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    text-align: center;
}

.applyModal-close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

.applyModal-close:hover,
.applyModal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    /* Carousel Background */
    .carousel-background {
        height: 95vh; /* Tinggi carousel disesuaikan untuk mobile */
    }

    .carousel-track img {
        height: 95vh; /* Gambar mengisi tinggi carousel di mobile */
    }

    /* Teks di tengah carousel */
    .carousel-text {
        font-size: 35px; /* Ukuran teks lebih kecil untuk mobile */
        top: 40%; /* Posisi teks diatur lebih ke atas */
        width: 90%; /* Lebar teks disesuaikan agar tidak melebar */
        text-align: center; /* Teks rata tengah */
        line-height: 1.2; /* Jarak antar baris diperkecil */
    }

    /* Tombol Explore */
    .exploreButton {
        top: 50%; /* Posisi tombol diatur lebih ke bawah */
        font-size: 16px; /* Ukuran font lebih kecil */
        padding: 8px 30px; /* Padding diperkecil */
        white-space: nowrap; /* Teks tombol tidak terpotong */
    }

    /* Application Section */
    .application-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
        margin-bottom: 1px;
    }

    /* Ways of Working Section */
    .content2Bg {
        padding: 20px 0;
    }

    .applicationwork-cards {
        flex-direction: column;
        align-items: center;
    }

    .cardwork {
        width: 80%;
        margin-bottom: 1px;
    }

    /* Together for Change Section */
    #slider {
        height: 50vw; /* Sesuaikan tinggi slider */
    }

    /* Discover Your Path Section */
    .content-containerlistwork {
        flex-direction: column;
        text-align: center;
    }

    .content-containerlistwork img {
        max-width: 50%;
        margin-bottom: 20px;
    }

    .descriptionlistwork {
        text-align: left;
    }

    .applyButton {
        width: 100%;
        padding: 10px 0;
    }
}