@font-face {
    font-family: 'PingFang SC';
    src: url('./font/PingFang-SC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', Arial, sans-serif;
    line-height: 1.6;
    color: #FFFFFF;
    background-color: #33597f;
    /* background-image: linear-gradient(0deg, #29537d 0%, #33597f 100%); */
    position: relative;
}

.lang {
    position: absolute;
    top: 0;
    right: 0;
    width: 9.4rem;
    height: 2.6rem;
    background-color: #ffffff;
    border-radius: 1.3rem 0rem 0rem 1.3rem;
    top: 1.3rem;
}

.header {
    background: url('../imgs/bg_target.jpg') no-repeat center center/cover;
    /* Single background image */
    /* background-blend-mode: overlay;
    background-color: #1B3C5C; */
    height: 68rem;
    padding: 4rem 1rem;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
}

.dm-logo {
    color: #FFD700;
    font-size: 2.5rem;
    width: 42%;
    margin-top: 11rem;
    animation: slideUp 0.5s ease-out forwards;
}

.target-content {
    color: #BDC9DF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.target-content h2 {
    font-size: 2.5rem;
    color: #FFF;
    margin-bottom: 3.1rem;
    margin-top: 6.3rem;
}

.target-content p {
    color: #ffffff;
    font-size: 1.3rem;
    width: 68.5%;
    text-align: left;
    margin-top: 2rem;
    max-width: 1150px;
    text-indent: 2rem;
}

.recruitment-section,
.cooperate-section {
    /* padding: 2rem 1rem; */
    text-align: center;
    /* background: #0B1C3D; */
}

.recruitment-section {
    background-image: linear-gradient(0deg, #33597f 0%, #1B3C5C 100%);
    /* background-image: linear-gradient(0deg, #1b3c5c 0%, #2a587a 100%); */
}

.cooperate-section {
    /* background-image: linear-gradient(0deg, #274e76 0%, #33597f 100%); */
    /* background-color: red; */
}

.recruitment-section h2,
.cooperate-section h2 {
    font-size: 2.5rem;
    color: #FFF;
    margin-bottom: 1rem;
}

.recruitment-section p {
    font-size: 1.3rem;
    width: 68.5%;
    margin-top: 2rem;
    text-align: left;
    margin: auto;
    color: #FFF;
    max-width: 1150px;
    text-indent: 2rem;
}

.recruitment-section .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    /* background-color: #1C3757; */
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 320px;
    flex: 1;
    text-align: center;
}

li {
    list-style-type: none;
    margin-top: 1rem;
}

.card.card1 {
    background-image: linear-gradient(0deg, #3a5fc0 0%, #177bff 100%);
}

.card.card2 {
    background-image: linear-gradient(0deg, #087386 0%, #1dd5d2 100%);
}

.card.card3 {
    background-image: linear-gradient(0deg, #72533b 0%, #b38c4a 100%);
}

.card .card-icon {
    /* width: 50px;  */
    /* Adjust size as needed */
    width: 54%;
    height: auto;
    margin: 0 auto 10px;
    /* Center the icon and add space below */
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
    /* Add animation if desired */
}


/* Adjusting the card content to accommodate the icon */

.card h3 {
    margin-top: 10px;
    /* Add space between the icon and the title */
    font-size: 1.4rem;
    color: #fff;
    padding: 0;
    width: 100%;
    text-align: center;
    border-bottom: solid 0.0125rem #c2c2c2;
    padding-bottom: 1rem;
    white-space: nowrap;
}

.card ul {
    margin-top: 15px;
}

.cards .card:nth-child(1) .card-icon {
    animation-delay: 0.3s;
}

.cards .card:nth-child(2) .card-icon {
    animation-delay: 0.5s;
}

.cards .card:nth-child(3) .card-icon {
    animation-delay: 0.7s;
}


/* .card h3 {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card ul {
    color: #BDC9DF;
    list-style-type: none;
} */


/* .cooperate-list {
    list-style: none;
    max-width: 600px;
    margin: auto;
    padding: 0;
}

.cooperate-list li {
    background: #1C3757;
    color: #BDC9DF;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    padding-left: 3rem;
}

.cooperate-list li span {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background: #FFD700;
    color: #0B1C3D;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    border-radius: 50%;
} */

.cooperate {
    text-align: center;
    /* padding: 2em 0; */
    /* background-color: #0e4e6c; Change as needed */
    background: url('../imgs/bg_cooperate.png') no-repeat bottom center;
    background-size: 100% auto;
    padding-bottom: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cooperate .p {
    text-align: left;
    font-size: 1.3rem;
    width: 68.5%;
    max-width: 1150px;
    text-indent: 2rem;
}

.cooperate h2 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 1em;
}

.cooperate-list {
    position: relative;
    max-width: 989px;
    margin: 0 auto;
    width: 80%;
}

.step {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 50px;
    /* Space for the number */
    margin-bottom: 6rem;
}

.step:last-child {
    margin-bottom: 0;
}

.number {
    position: absolute;
    left: 0;
    top: 0;
    width: 4.4rem;
    height: 4.4rem;
    color: white;
    font-weight: bold;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
}

.number.n1 {
    background-image: linear-gradient(0deg, #4094fe 0%, #3a9cf6 100%);
}

.number.n2 {
    background-image: linear-gradient(0deg, #2eade5 0%, #28b4dc 100%);
}

.number.n3 {
    background-image: linear-gradient(0deg, #1cc5cb 0%, #31c5b7 100%);
}

.number.n4 {
    background-image: linear-gradient(0deg, #74bb82 0%, #8ab872 64%, #97b769 100%);
}

.number.n5 {
    background-image: linear-gradient(0deg, #dcad33 0%, #fea91a 100%);
}

.step p {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
    text-align: left;
    padding-left: 4rem;
}

.step::before {
    content: '';
    position: absolute;
    left: 2.2rem;
    /* Centered with the circle */
    top: 4.4rem;
    /* Start below the circle */
    bottom: -100px;
    /* Extend to the next circle */
    width: 2px;
    /* background-image: linear-gradient(0deg, 
    #3a9cf6 0%, 
    #1ac8c8 49%, 
    #ddad33 100%); */
    z-index: 0;
}

.step.step1::before {
    background-image: linear-gradient(0deg, #4094fe 0%, #3a9cf6 100%);
}

.step.step2::before {
    background-image: linear-gradient(0deg, #2eade5 0%, #28b4dc 100%);
}

.step.step3::before {
    background-image: linear-gradient(0deg, #1cc5cb 0%, #31c5b7 100%);
}

.step.step4::before {
    background-image: linear-gradient(0deg, #74bb82 0%, #8ab872 64%, #97b769 100%);
}

.step.step5::before {
    background-image: linear-gradient(0deg, #dcad33 0%, #fea91a 100%);
}


/* Hide the line after the last step */

.step:last-child::before {
    display: none;
}

.footer {
    display: flex;
    flex-direction: column;
    background-color: #1c2f42;
    padding: 2rem 1rem;
    text-align: center;
    align-items: center;
}

.footer p {
    font-size: 1.3rem;
    color: #ffffff;
}

.footer img {
    width: 8.2rem;
    height: 1.9rem;
    margin-top: 1.6rem;
    transform: scale(1.3);
}

.footer .h_z {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 1.3rem;
    width: 17rem;
}

.footer .h_z .mail {
    width: 1.4rem;
    height: 1.1rem;
    transform: scale(1.3);
}

.footer .h_z .phone {
    width: 1.2rem;
    height: 1.1rem;
    transform: scale(1.3);
}

.footer .h_z span {
    color: #87bbda;
    font-size: 1.3rem;
    margin-left: 1.3rem;
}

.footer .copy-right {
    color: #87bbda !important;
    font-size: 1rem;
    margin-top: 1.3rem;
}

.footer h1 {
    font-size: 1.5rem;
    color: #FFD700;
    margin-top: 1rem;
}

.footer span {
    color: inherit;
    text-decoration: none;
    -webkit-touch-callout: none;
}


/* Prevent numbers from appearing as links with blue underline on iOS Safari */

input[type="number"],
input[type="tel"],
input[type="text"],
span {
    -webkit-text-decoration: none;
    -webkit-user-modify: inherit;
    -webkit-touch-callout: none;
    color: inherit;
    text-decoration: none;
}


/* Animation Keyframes */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
        /* Start from below the viewport */
        opacity: 0;
        /* Optional: Start fully transparent */
    }
    100% {
        transform: translateY(0);
        /* End in the original position */
        opacity: 1;
        /* Optional: End fully visible */
    }
}


/* Header Animations */

.header-content {
    animation: fadeIn 1s ease-out;
}

.target-content {
    animation: slideInUp 1s ease-out 0.5s;
    animation-fill-mode: both;
}


/* Cards Animation */

.card {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 0.5s ease-out forwards;
}

.cards .card:nth-child(1) {
    animation-delay: 0.3s;
}

.cards .card:nth-child(2) {
    animation-delay: 0.5s;
}

.cards .card:nth-child(3) {
    animation-delay: 0.7s;
}


/* Cooperate Section Animation */

.cooperate-section {
    animation: fadeIn 1s ease-out 1.5s;
    animation-fill-mode: both;
}


/* Cooperate List Animation */

.cooperate-list li {
    opacity: 0;
    animation: slideInUp 0.5s ease-out forwards;
}

.cooperate-list li:nth-child(1) {
    animation-delay: 0.3s;
}

.cooperate-list li:nth-child(2) {
    animation-delay: 0.5s;
}

.cooperate-list li:nth-child(3) {
    animation-delay: 0.7s;
}

.cooperate-list li:nth-child(4) {
    animation-delay: 0.9s;
}

.cooperate-list li:nth-child(5) {
    animation-delay: 1.1s;
}


/* Footer Animation */

.footer {
    animation: fadeIn 1s ease-out 2s;
    animation-fill-mode: both;
}


/* Language Options */

.dropdown {
    position: absolute;
    top: 1.3rem;
    right: 0;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 5px 1px 1px;
    width: 9.4rem;
    height: 2.77rem;
    border-radius: 1.3rem 0rem 0rem 1.3rem;
    /* border: 1px solid #ccc; */
    /* border-radius: 5px; */
    cursor: pointer;
    /* background-color: #fff; */
    font-size: 1rem;
}

.flag-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    margin-right: 1px;
}

.arrow {
    margin-left: auto;
    width: 0.6rem;
    height: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.3);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 100;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #3a3a3a;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    margin-right: 10px;
}

@media (max-width: 767px) and (orientation: portrait) {
    .header {
        background: url('../imgs/bg_target_mobile.png') no-repeat center center/cover;
        /* Single background image */
        padding: 4rem 1rem;
        text-align: center;
        color: #FFFFFF;
        height: auto;
        /* background: black; */
    }
    .target-content h2 {
        margin-bottom: 1.2rem !important;
    }
    .target-content p {
        margin-top: 0rem;
    }
    .cooperate .part-p {
        padding-left: 0rem !important;
        text-indent: 0rem;
    }
    .cooperate {
        background: url('../imgs/bg_footer_mobile.png') no-repeat bottom center;
    }
    .cooperate-section {
        background-image: linear-gradient(0deg, #2a587a 0%, #2a587a 100%);
    }
    .dm-logo {
        width: 22rem;
        height: 5rem;
    }
}