﻿:root {
    --primary-color: #eb4120;
    --primary-color-alt: #ff0000;
    --text-dark: #000000;
    --text-light: #ffffff;
    --text-secondary: #374b5c;
    --bg-light-gray: #f1f3f5;
    --bg-white: #ffffff;
    --border-color: #dcdcdc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button, .btn {
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-family: inherit;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

    .section-title h2 {
        font-weight: 600;
        font-size: 36px;
        line-height: 54px;
        color: var(--text-dark);
    }

.title-underline {
    height: 3px;
    width: 280px;
    background-color: rgba(255, 0, 0, 0.3);
    margin: 8px auto 0;
}



/* CSS for section section:hero */
.hero-section {
    text-align: center;
    padding: 100px 0;
}

.hero-title {
    font-weight: 600;
    font-size: 52px;
    line-height: 78px;
    color: var(--primary-color-alt);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--text-dark) !important; 
    color: var(--text-light) !important; 
    padding: 14px 40px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    transition: none !important;
}

    .btn-cta:hover {
        background-color: var(--text-dark) !important; 
        color: var(--text-light) !important;
        border: none !important; 
    }


@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* positions section*/
.positions-section {
    padding: 100px 0;
}

.section-subtitle {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    margin: 20px 0 40px;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0 70px;
    gap: 24px;
}

.job-card {
    background-color: var(--bg-light-gray);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.job-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: var(--text-dark);
}

.job-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-apply {
    display: inline-block;
    padding: 12px 25px;
    background-color: #eb4120;
    border: 1.5px solid transparent;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

    .btn-apply:hover {
        background-color: transparent;
        border-color: #eb4120;
        color: #eb4120;
    }


@media (max-width: 992px) {
    .positions-grid {
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .positions-section {
        padding: 60px 0;
    }

    .job-card {
        flex-direction: column;
        height: auto;
        gap: 20px;
        padding: 20px;
    }

    .btn-apply {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* benefits section*/
.benefits-section {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;
    margin-top: 80px;
}

.benefit-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .benefit-item:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 2;
        justify-self: end;
        transform: translateX(40%);
    }

    .benefit-item:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 2;
        justify-self: start;
        transform: translateX(-40%);
    }

.benefit-icon {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

    .benefit-icon img {
        max-width: 100%;
        max-height: 100%;
    }

.merged-icon img:last-child {
    position: absolute;
    width: 14px;
    height: 14px;
    top: 22px;
    left: 25px;
}

.benefit-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 36px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.benefit-description {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-dark);
    max-width: 330px;
}

/* Tablet (≤992px) */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-item:nth-child(3) {
        grid-column: 1 / 3;
        justify-self: center;
    }

    .benefit-item:nth-child(4),
    .benefit-item:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
        justify-self: center;
        transform: none;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .benefits-section {
        padding: 60px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .benefit-item:nth-child(3) {
        grid-column: auto;
    }

    .benefit-item:nth-child(4),
    .benefit-item:nth-child(5) {
        transform: none;
        justify-self: center;
    }
}



.application-form-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--bg-white);
    box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    border-radius: 20px;
}


.application-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-title {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    line-height: 36px;
    color: #162d3d;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #162d3d;
    margin-bottom: 20px;
    text-align: center;
}

.form-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #32536a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--text-dark);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
}

.form-group input {
    height: 42px;
}

.form-group textarea {
    min-height: 139px;
    resize: vertical;
}

/* ===== File Upload Section ===== */
.file-drop-area {
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.48);
    min-height: 139px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .file-drop-area:hover {
        background-color: rgba(245, 245, 245, 0.9);
        border-color: #0078ff;
    }

    .file-drop-area span {
        font-family: 'Arial', sans-serif;
        font-size: 16px;
        color: var(--text-dark);
    }

    .file-drop-area img {
        width: 23px;
        height: 23px;
    }

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

input[type="file"] {
    padding: 7px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}


.btn-submit {
    font-family: 'Encode Sans', sans-serif;
    font-size: 16px;
    line-height: 42px;
    color: var(--text-dark);
    border: 1.5px solid var(--primary-color);
    border-radius: 12px;
    padding: 5px 25px;
    margin-top: 25px;
    transition: background-color 0.3s, color 0.3s;
}

    .btn-submit:hover {
        background-color: var(--primary-color);
        color: var(--text-light);
    }

@media (max-width: 768px) {
    .application-form-container {
        padding: 40px 20px;
        box-shadow: none;
    }

    .form-title {
        font-size: 24px;
    }

    .form-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .form-group,
    .form-group-full {
        grid-column: 1 / -1;
    }

    input[type="file"] {
        font-size: 14px;
        max-width: 100%;
    }
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px;
}

    .modal.active {
        display: flex;
    }

.modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 40px 0;
    padding: 20px;
    border-radius: 8px;
    background: transparent;
}

#application-modal .modal-content {
    border: none; 
}


/* Close button */
.modal-close {
    position: absolute;
    top: 30px;
    right: 60px;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .modal-close:hover {
        color: #ff0000;
        transform: scale(1.2);
    }

/* drop your cv section */
/* ===================== Hiring Section ===================== */
.section-box {
    padding: 40px 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 30px auto;
}

.box-we-hiring .text-1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.text-we-are {
    color: #162d3d;
}

.text-hiring {
    color: #eb4120;
}

.box-we-hiring .text-2 {
    font-size: 16px;
    color: #202224;
    margin-bottom: 20px;
}

.color-brand-1 {
    color: #eb4120;
    font-weight: bold;
}

.btn-drop-cv {
    display: inline-block;
    padding: 12px 25px;
    background-color: #eb4120;
    border: 1.5px solid transparent;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

    .btn-drop-cv:hover {
        background-color: transparent;
        border-color: #eb4120;
        color: #eb4120;
    }

@media (max-width: 576px) {
    .modal-dialog {
        margin: 50px 15px;
    }

    .section-box {
        padding: 30px 15px;
    }

    .box-we-hiring .text-1 {
        font-size: 26px;
    }
}
