/* =============================================
   JOB DETAIL PAGE STYLES
   ============================================= */

/* Job Detail Hero Section */
.job-detail-hero {
    padding: 0px 40px;
}

.job-detail-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.job-detail-left {
    padding: 20px;
}

.contact-pill {
    display: inline-block;
    background-color: #D5EDFF;
    color: #0065B3;
    font-size: 15px;
    /* font-weight: 600; */
    padding: 8px 36px;
    border-radius: 25px;
    /* margin-bottom: 20px; */
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.contact-pill:hover {
    background-color: #0090FF;
    color: white;
    border-color: #0065B3;
}

.job-title {
    font-size: 43px;
    font-weight: bold;
    margin: 16px 0;
    line-height: 1.2;
    color: black;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: #000;
    margin: 2px 0 24px 0;
}

.job-location i {
    color: black;
    font-size: 18px;
}

.job-description {
    font-size: 20px;
    line-height: 1.31;
    color: black;
    margin-bottom: 32px;
    max-width: 500px;
}

.job-apply-btn {
    background-color: #D4AF37;
    color: white;
    border: none;
    padding: 10px 90px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.job-apply-btn:hover {
    background-color: #b89428;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.job-apply-btn:active {
    transform: scale(0.98);
    background-color: #967820;
}

/* Job Meta Info */
.job-meta-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 40px;
    margin: 48px auto 30px;
    padding: 32px 34px;
    max-width: 916px;
    background-color: #F3F9FF;
    border-radius: 40px;
}

.meta-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: default;
}

.meta-item:hover {
    background-color: #ffffff;
    border-color: #0090FF;
    box-shadow: 0 10px 25px rgba(0, 144, 255, 0.15);
    transform: translateY(-5px);
}

.meta-value {
    font-size: 25px;
    font-weight: bold;
    color: #0090FF;
    line-height: 1.12;
    margin: 0;
}

.meta-label {
    font-size: 19px;
    font-weight: bold;
    color: #000;
    margin: 8px 0 0 0;
    line-height: 1.12;
}

/* Job Detail Right - Image */
.job-detail-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.job-hero-image {
    /* max-width: 521px;
    height: 460px; */
    width: 100%;
    max-width: 521px;
    min-height: 420px;
    max-height: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Job Detail Sections */
.job-detail-section {
    padding: 60px 40px;
    background-color: #ffffff;
}

.job-detail-section:nth-child(even) {
    background-color: #f9f9f9;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.job-detail-section h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: black;
}

/* Responsibilities Section */
.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.responsibility-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.responsibility-item:hover {
    transform: translateX(5px);
}

.responsibility-icon {
    width: 25px;
    height: 25px;
    margin-top: 5px;
}


.responsibility-item p {
    font-size: 24px;
    line-height: 1.31;
    color: black;
    margin: 0;
}

/* Requirements Section */
.requirements-section {
    background-color: #f9f9f9;
    max-width: 916px;
    margin: 38px auto 88px;
    background-color: #F3F9FF;
    border-radius: 40px;
    padding: 30px;
}

.requirements-section h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: black;
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.requirement-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.requirement-item:hover {
    transform: translateX(5px);
}

.requirement-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: #e8f5ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0090ff;
    font-size: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.requirement-item p {
    font-size: 16px;
    line-height: 1.5;
    color: black;
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    background-color: #F3F9FF;
    padding: 30px 20px;
}

.benefits-section h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: black;
    text-align: center;
}

.benefits-grid {
    max-width: 900px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.benefit-card {
    background-color: #ffffff;
    box-shadow: 0px 0px 18px 0px #0000001A;
    border-radius: 36px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 24px rgba(0, 144, 255, 0.15);
    border-color: #0090FF;
}

.benefit-card:hover .benefit-check {
    animation: wiggle 0.6s ease-in-out;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.benefit-check {
    width: 40px;
    height: 40px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .job-detail-left {
        padding: 0;
    }

    .job-title {
        font-size: 32px;
    }

    .job-meta-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .meta-value {
        font-size: 14px;
    }

    .job-detail-section h2 {
        font-size: 28px;
    }

    .responsibilities-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .benefit-card {
        padding: 24px 16px;
    }

    .benefit-check {
        font-size: 36px;
    }

    .benefit-card h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .job-detail-hero {
        padding: 0px 6px;
    }

    .contact-pill {
        padding: 7px 32px;
    }

    .job-detail-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .job-title {
        font-size: 24px;
        margin: 12px 0;
    }

    .job-description {
        font-size: 14px;
        margin-bottom: 23px;
    }

    .job-location {
        margin: 2px 0 11px 0;
    }

    .job-apply-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .job-meta-info {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px auto 17px;
        padding: 17px 34px;
    }

    .meta-label {
        font-size: 18px;
    }

    .job-detail-section {
        padding: 30px 20px;
    }

    .job-detail-section h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .responsibility-item,
    .requirement-item {
        gap: 12px;
    }

    .responsibility-icon {
        width: 22px;
        height: 22px;
        margin-top: -2px;
    }


    .requirements-section h2 {
        font-size: 22px;
    }

    .requirements-section {
        margin: 27px auto 54px;
    }

    .requirement-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 14px;
    }

    .responsibility-item p,
    .requirement-item p {
        font-size: 13px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .benefits-section h2 {
        font-size: 22px;
    }

    .benefit-card {
        padding: 16px 12px;
        gap: 10px;
        border-radius: 18px;
    }

    .benefit-check {
        width: 30px;
        height: 30px;
    }

    .benefit-card h3 {
        font-size: 13px;
    }
}

/* Modal Form Styles */
.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 60px 20px;
    z-index: 1000;
}

.job-modal.open {
    display: flex;
}

.job-modal .modal-content {
    background: #fff;
    border-radius: 40px;
    width: 100%;
    max-width: 700px;
    padding: 40px 30px 30px;
    opacity: 0;
    transform: scale(0.8);
    position: relative;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.job-modal.open .modal-content {
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.job-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.job-modal .modal-close:hover {
    transform: rotate(90deg);
    color: #0090FF;
}

.modal-content h2 {
    font-size: 32px;
    font-weight: bold;
    /* margin-bottom: 8px; */
    line-height: 1.02;
    text-align: center;
    color: black;
}

.modal-content p {
    text-align: center;
    margin-bottom: 32px;
    color: #000000;
    font-size: 18px;
}

.modal-form {

    font-family: "Poppins", sans-serif;
}

.modal-form .two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 14px;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;

    margin-top: 8px;
}

.modal-form label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1F2933;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form select,
.modal-form textarea {
    padding: 14px 18px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background: #F8F8F8;
    font-size: 16px;
    color: #9C9C9C;
    transition: all 0.3s ease;
    outline: none;
}

.modal-form input[type="text"]:hover,
.modal-form input[type="email"]:hover,
.modal-form input[type="tel"]:hover,
.modal-form select:hover,
.modal-form textarea:hover {
    background: #EAF6FF;
    border-color: #0090FF;
}

.modal-form input[type="text"]:focus,
.modal-form input[type="email"]:focus,
.modal-form input[type="tel"]:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    background: #ffffff;
    border-color: #0090FF;
    box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.15);
    color: #000;
}

.modal-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: "Poppins", sans-serif;
}

.file-drop {
    border: 2px dashed #9C9C9C;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    position: relative;
    margin: 12px 40px;
    background: #F8F8F8;
    transition: all 0.3s ease;
}

.file-drop:hover {
    background: #EAF6FF;
    border-color: #0090FF;
}

.file-drop:hover i,
.file-drop:hover p,
.file-drop:hover small {
    color: #0090FF;
}

.file-drop i {
    font-size: 34px;
    color: #9C9C9C;
}

.file-drop input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-drop p {
    margin: 0;
    font-size: 16px;
    color: black;
    font-weight: 500;

}

.file-drop small {
    display: block;
    margin-top: 4px;
    color: black;
    font-size: 12px;
}

.modal-footer {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-top: 24px;
    /* flex-wrap: wrap; */
    gap: 10px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid #000;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 18px;
    font-family: "Jaldi", sans-serif;
    cursor: pointer;
    width: 50%;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-submit {
    background: #D4AF37;
    color: #fff;
    border: none;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 50%;
    justify-content: center;
    font-family: "Jaldi", sans-serif;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #b89428;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    gap: 12px;
}

@media (max-width:768px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-form .two-column {
        grid-template-columns: 1fr;
    }

    .file-drop {
        margin: 12px 10px;
        padding: 25px;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .job-modal {
        padding: 20px 15px;
    }

    .job-modal .modal-content {
        padding: 24px 16px 20px;
        border-radius: 17px;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .modal-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .job-modal .modal-close {
        top: 10px;
        right: 12px;
        font-size: 28px;
    }

    .modal-form label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .modal-form input[type="text"],
    .modal-form input[type="email"],
    .modal-form input[type="tel"],
    .modal-form select,
    .modal-form textarea {
        padding: 10px 14px;
        font-size: 13px;
    }

    .modal-form .two-column {
        gap: 10px;
        margin-bottom: 10px;
    }

    .modal-form .form-group {
        margin-top: 4px;
    }

    .file-drop {
        margin: 6px 0;
        padding: 16px;
        border-radius: 16px;
    }

    .file-drop i {
        font-size: 24px;
    }

    .file-drop p {
        font-size: 13px;
    }

    .file-drop small {
        font-size: 11px;
    }

    .btn-cancel,
    .btn-submit {
        font-size: 15px;
        padding: 8px 10px;
    }
}