body,
ul,
li,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft JhengHei';
    font-size: 16px;
}
.grey {
    color: #828282;
}

body {
    position: relative;
}

header {
    background-color: #143159 !important;
    position: absolute;
    top: 0;
    z-index: 100;
}

.banner-box {
    position: relative;
}

.banner-box > h2 {
    font-size: 48px;
    color: #ffffff;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateY(-50%);
    transform: translateX(-50%);
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .recruitment-container {
        width: 100%;
        margin: 70px 0 0 0;
    }

    .icon {
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        z-index: 5;
    }
    .icon > a > img {
        max-width: 60px;
    }

    .area1 {
        width: 100%;
    }
    .area1 > .content {
        width: 100%;
    }
    .area1 > .content > .banner-box {
        width: 100%;
        height: 400px;
        background-image: url('/images/m-welfare-banner.png');
        background-size: cover; /* 讓圖片覆蓋整個區域 */
        background-position: center; /* 讓圖片居中 */
        background-repeat: no-repeat; /* 防止圖片重複 */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .area1 > .content > .banner-box img {
        width: 100%;
    }
    /* ----- */
    /* ----- */

    .area2 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        margin: 0 0 100px 0;
    }

    .area2 > .green-line {
        display: none;
    }

    .area2 > .background-image {
        width: 100%;
        height: 400px;
        background-image: url('/images/m-recruitment1.png');
        background-size: cover; /* 讓圖片覆蓋整個區域 */
        background-position: center; /* 讓圖片居中 */
        background-repeat: no-repeat; /* 防止圖片重複 */
    }

    .area2 > .content {
        width: calc(100% - 60px);
        font-weight: 700;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 40px;
    }

    .area2 > .content > .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }
    .area2 > .content > .container > span {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 0 20px 0;
        color: #ffffff;
    }

    .area2 > .content > .container > p {
        color: #ffffff;
        font-size: 18px;
        width: 400px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        line-height: 2em;
        letter-spacing: 0.1em;
    }

    .area2 > .content > .container > .item-box {
        width: 700px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 60px;
    }
    .area2 > .content > .container > .item-box > .item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
    }
    .area2 > .info-box {
        background-color: #14295e;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 80px;
        gap: 20px;
        position: absolute;
        z-index: 10;
        bottom: -120px;
    }

    .area2 > .info-box > p {
        font-size: 18px;
        color: #ffffff;
    }

    .area2 > .info-box > .icon-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        position: absolute;
        bottom: -25px;
        left: 280px;
        border-radius: 50px;
        background-color: #d9d9d9;
        transition: width 0.5s, background-color 0.5s; /* Add background-color transition */
        transform-origin: left; /* Ensure animation starts from the left side */
    }

    .area2 > .info-box > .icon-link > p {
        color: #ffffff;
        display: none;
        white-space: nowrap;
        margin-left: 10px;
    }

    .area2 > .info-box > .icon-link > img {
        width: 25px;
        height: 25px;
        position: absolute;
        left: 12.5px;
    }

    .area2 > .info-box > p > img {
        margin: 0 10px 0 0;
    }
}

@media screen and (min-width: 768px) {
    .recruitment-container {
        width: 100%;
        position: relative;
        z-index: 1;
        top: 100px;
    }

    .icon {
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        z-index: 5;
    }
    .icon > a > img {
        max-width: 60px;
    }

    .area1 {
        width: 100%;
        height: 500px;
        background-image: url('/images/welfare-banner.png');
        background-size: cover; /* 讓圖片覆蓋整個區域 */
        background-position: center; /* 讓圖片居中 */
        background-repeat: no-repeat; /* 防止圖片重複 */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .area1 > .content {
        width: 100%;
    }
    .area1 > .content > .banner-box {
        width: 100%;
    }
    .area1 > .content > .banner-box img {
        width: 100%;
    }
    /* ----- */
    /* ----- */

    .area2 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        margin: 0 0 100px 0;
    }

    .area2 > .green-line {
        background-color: #5db430;
        width: 50%;
        height: 10px;
        position: absolute;
        z-index: 10;
        top: 0;
        left: 0;
    }

    .area2 > .background-image {
        width: 100%;
        height: 500px;
        background-image: url('/images/recruitment1.png');
        background-size: cover; /* 讓圖片覆蓋整個區域 */
        background-position: center; /* 讓圖片居中 */
        background-repeat: no-repeat; /* 防止圖片重複 */
    }

    .area2 > .content {
        max-width: 1280px;
        width: calc(100% - 400px);
        font-weight: 700;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 80px;
    }

    .area2 > .content > .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }
    .area2 > .content > .container > span {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 0 30px 0;
        color: #ffffff;
    }

    .area2 > .content > .container > p {
        color: #ffffff;
        font-size: 18px;
        width: 400px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .area2 > .content > .container > .item-box {
        width: 700px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 60px;
    }
    .area2 > .content > .container > .item-box > .item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
    }
    .area2 > .info-box {
        background-color: #14295e;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 80px;
        gap: 20px;
        position: absolute;
        z-index: 10;
        bottom: -60px;
        right: 10%;
    }

    .area2 > .info-box > p {
        font-size: 18px;
        color: #ffffff;
    }

    .area2 > .info-box > .icon-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        position: absolute;
        bottom: -25px;
        left: 280px;
        border-radius: 50px;
        background-color: #d9d9d9;
        transition: width 0.5s, background-color 0.5s; /* Add background-color transition */
        transform-origin: left; /* Ensure animation starts from the left side */
    }

    .area2 > .info-box > .icon-link > p {
        color: #ffffff;
        display: none;
        white-space: nowrap;
        margin-left: 10px;
    }

    .area2 > .info-box > .icon-link > img {
        width: 25px;
        height: 25px;
        position: absolute;
        left: 12.5px;
    }

    .area2 > .info-box > p > img {
        margin: 0 10px 0 0;
    }
}
