.background-join-us {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../images/main/header/main-header-002.svg') center center no-repeat;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    min-height: 100vh;
}

.main-container-join-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.header-join-us {
    background-color: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-join-us-content {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 150px 20px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/join-us/New Background Photo.jpg');
    text-align: center;
}

.header-join-us h2 {
    color: white;
    font-size: 50px;
    font-weight: 900;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
    padding-bottom: 20px;
}

.header-join-us p {
    font-size: 20px;
    padding-bottom: 30px;
    max-width: 800px;
}

.btn-red {
    background-color: #C70000;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-red:hover {
    background-color: #a30000;
    color: white;
}


.join-us-landing-body {
    width: 100%;
    max-width: 1400px; 
}

.description-join-us {
    text-align: center;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.description-join-us h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.description-join-us p {
    font-size: 16px;
    line-height: 1.6;
    color: #414042;
    margin-bottom: 20px;
}

.icons-join-us-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    gap: 30px;
}

.icons-join-us {
    width: 40px;
    transition: transform 0.2s;
}

.icons-join-us:hover {
    transform: scale(1.1);
}


.images-join-us-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    padding: 20px 50px;
    margin-bottom: 50px;
}

.image-join-us-wrapper {
    text-align: center;
}

.image-join-us {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

#image-join-us-sports { object-position: center 40%; }
#image-join-us-trip { object-position: center 70%; }


.full-time-container, 
.internship-container,
.join-us-page {
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

h2 a {
    text-decoration: none;
}

.full-time-container h2, 
.internship-container h2,
.join-us-page h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 40px;
    font-weight: 700;
    color: #000;
}


.join-us-horizontal {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 50px auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px 60px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    box-sizing: border-box;
}

.join-us-horizontal h5 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #000;
    font-weight: bold;
}

.join-us-horizontal p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.join-us-horizontal img.join-us-illustration {
    width: 180px;
    height: auto;
}


.join-us-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.join-us-grid-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Prevent Job Detail cards from stretching */
.join-us-page .join-us-grid-item {
    height: auto; 
    align-self: start; 
}

.join-us-grid-item h5 {
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.join-us-grid-item p {
    color: #555;
    line-height: 1.6;
}

/* Styles for Team Card Parts */
.card-top-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
}

.card-top-content h5,
.card-top-content p {
    text-align: center;
    width: 100%;
}

.card-related-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left; 
    margin-top: 20px;
}

.card-related-content h5 {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Desktop default: Button Left Aligned */
.join-us-grid-item .card-related-content .btn-red {
    margin-top: auto;
    align-self: flex-start; 
    width: auto;
    min-width: 140px;
}

.join-us-grid-item ul {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 20px;
}

.join-us-grid-item .btn-red {
    margin-top: auto;
    align-self: center;
    width: auto;
    min-width: 140px;
}


.join-us-testimonial-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0; 
    margin: 40px auto; 
    max-width: 1200px; 
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none; 
}

.card {
    flex: 0 0 380px; 
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav.left { left: -60px; }
.nav.right { right: -60px; }

.join-us-hello-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 50px 60px;
    background-color: #000;
    border-radius: 12px;
    color: white;
}

.join-us-hello-content {
    flex: 1;
}

.join-us-hello-content h3 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}

.join-us-hello-content p {
    font-size: 18px;
    opacity: 0.9;
}

.join-us-hello-content:last-child {
    flex: 0;
    margin-left: 30px;
}


.join-us-hidden {
    display: none;
}

.centered-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.centered-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
}

.centered-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: black;
    font-weight: bold;
    font-size: 25px;
    line-height: 1.8;
}


/* Adapt to mobile (Responsive Mobile)
    Works When  Phone Small then 768px 
*/
@media (max-width: 768px) {
    
    .header-join-us-content {
        padding: 80px 20px; 
    }
    
    .header-join-us h2 {
        font-size: 36px;
    }

    .images-join-us-container {
        grid-template-columns: 1fr; 
        padding: 20px;
    }

    .join-us-horizontal {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .join-us-horizontal h5 {
        font-size: 20px; 
    }

    .join-us-horizontal img.join-us-illustration {
        margin-top: 20px;
        max-width: 150px;
    }

    .join-us-grid-container {
        grid-template-columns: 1fr;
        padding: 0 20px; 
    }

    /* Fixed Typo here (.full-time-container) */
    .full-time-container h2, 
    .internship-container h2,
    .join-us-page h2 {
        font-size: 30px;
        margin-bottom: 30px;
    }
    
    .join-us-grid-item .card-related-content .btn-red {
        align-self: center;
    }

    .join-us-hello-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        margin: 40px 20px;
        width: auto;
    }

    .join-us-hello-content:last-child {
        margin-left: 0;
        margin-top: 20px;
    }

    .join-us-testimonial-wrapper .nav {
        display: none !important;
    }
}

/* Extra Small Mobile Devices (iPhone SE, iPhone 4 - 320px) */
@media (max-width: 480px) {
    .header-join-us h2 {
        font-size: 28px;
    }

    .header-join-us p {
        font-size: 16px;
    }

    .join-us-grid-container {
        padding: 0 10px; /* Reduce container margin squeezing */
    }

    .join-us-grid-item {
        padding: 25px 15px; /* Free up space by reducing internal card padding */
    }

    .join-us-grid-item h5 {
        font-size: 1rem;
    }

    .full-time-container h2, 
    .internship-container h2,
    .join-us-page h2 {
        font-size: 24px;
    }

    .card {
        flex: 0 0 250px; /* Force the carousel card to fit entirely on tiny screens */
        padding: 20px;
    }

    .join-us-hello-container {
        padding: 30px 15px;
        margin: 30px 10px;
    }

    .join-us-hello-content h3 {
        font-size: 26px;
    }
}