.workinJapan_hero {
    background-image: url("../images/hero_section/workinjapan.jpg"), linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.workinJapan_hero-title {
    margin-top: 80px;
    font-size: 40px;
    font-weight: bold;
    color: #FFFFFF;
    border-bottom: 3px solid #FF0000;
    border-radius: 5px;
}

/* work in japan */
.jobPost {
    margin: 0 50px;
    margin-top: 100px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
}

.jobPost-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    text-align: left;
}

.jobPost-container h2 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.job-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.detail {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: #555;
}

.detail i {
    color: #FF0000;
    margin-right: 0.5rem;
}

.skills,
.description {
    margin-top: 1.5rem;
}

.skills h4,
.description h4 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.skills p,
.description p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.5;
}

.description p {
    text-align: justify;
}

/* Job Link Button */
.job-link {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.job-link-btn {
    padding: 1.5rem 4rem;
    background-color: #FF0000;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.job-link-btn:hover {
    background-color: #FF0000;
}

/* For small devices */
@media (min-width: 320px) and (max-width: 667px) {
    .workinJapan_hero {
        background-image: url("../images/hero_section/workJapanPhone.jpg");
    }

    .jobPost {
        margin: 0 10px;
        grid-template-columns: 1fr;
        /* Switch to one column */
    }
}

@media (min-width: 668px) and (max-width: 1024px) {
    .workinJapan_hero {
        background-image: url("../images/hero_section/tabletBG6.jpg"), linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
        background-size: cover;
        background-position: center;
    }

    .jobPost-container {
        margin: 50px 10px;
    }

    .jobPost {
        margin: 0 10px;
        grid-template-columns: 1fr;
        /* Switch to one column */
    }
}