/* Career List Section */
.career-list-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header */
.header-career-section {
    margin-top: 5rem;
    max-width: 1100px;
}

.content-career-section {
    max-width: 100%;    
}

.career-header-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}

.career-header-container h1 {
    font-size: 36px;
    color: #d05d19;
    margin-bottom: 20px;
}

.career-header-container p {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center !important;
}

/* Search */
.career-search {
    display: flex;
    max-width: 600px;
    margin: 20px auto 0;
    gap: 10px;
}

.search-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    z-index: 1;
    pointer-events: none;
}

.career-search input {
    padding: 10px 20px 10px 45px;
    width: 100%;
    font-size: 14px;
    border-radius: 5px;
    background-color: #F8F6F6;
    border: none !important;
    outline: none;
}

.career-search input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px #d05d19;
}

.career-search input:focus + .search-icon path {
    stroke: #d05d19;
}

.career-search button {
    padding: 10px 20px;
    background-color: #d05d19;
    border: none;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.career-search button:hover {
    background-color: #b34f15;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    display: none;
}

/* Cards */
.career-cards-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.career-row {
    width: 100%;
}

.career-row .career-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    padding: 0;
    width: 100%;
}

.career-card {
    width: 300px;
    border: 1px solid #eee;
    padding: 24px;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.career-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.career-card hr {
    border: none;
    border-top: 1px solid #E3E1E1;
    margin: 20px 0;
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-header img {
    width: 158px;
    height: auto;
}

.job-title {
    font-size: 25px;
    color: #d05d19;
    margin-top: 20px;
    text-align: center !important;
    font-weight: bold;
}

.job-company {
    font-size: 16px;
    line-height: 1.6;
    color: #777;
    margin-bottom: 15px;
    text-align: center !important;
}

.job-info {
    font-size: 14px;
    color: #444;
    display: flex;
    justify-content: space-between;
    margin: 30px 50px 20px 50px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

.apply-button {
    background-color: transparent;
    border: 1px solid #d05d19;
    color: #d05d19;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold !important;
}

/* Pagination */
.career-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.career-pagination ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.career-pagination li {
    display: flex;
}

.career-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 5px;
    border: 1px solid #eee;
    background-color: white;
    color: black;
    font-weight: 700;
    text-decoration: none;
    font-size: 12.5px;
    transition: all 0.2s ease-in-out;
}

.career-pagination li.active a {
    background-color: #d05d19;
    color: white;
    border-color: #d05d19;
}

.career-pagination a:hover {
    background-color: #f3f3f3;
}

.career-pagination .dots {
    cursor: default;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
.job-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background-color: white;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal-footer {
    margin-top: 20px;
    text-align: left;
}

.apply-button-modal {
    background-color: #d05d19;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.apply-button-modal:hover {
    background-color: #b34f15;
}

/* Job Detail Content */
.job-detail-content .job-header {
    margin-bottom: 2rem;
}

.job-detail-content .job-header-desc h2 {
    font-size: 28px;
    font-weight: bold;
    color: black;
}

.job-detail-content .job-header-desc p {
    font-size: 18px;
    margin-bottom: 15px;
}

.job-detail-content .job-category {
    display: flex;
    gap: 2rem;
    color: black;
    font-size: 16px;
}

.job-detail-content .job-header img {
    width: 180px;
    height: auto;
}

.job-detail-content .job-section {
    margin-bottom: 20px;
}

.job-detail {
    overflow: auto;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.job-detail-content .job-section-content {
    color: black;
    line-height: 1.6;
    font-size: 15px;
}

.job-detail-content .job-section-content ul,
.job-detail-content .job-section-content ol {
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 20px;
    margin-bottom: 15px;
    color: #808285;
}

.job-detail-content .job-section-content li {
    margin-bottom: 8px;
}

.job-detail-content .job-section-content p {
    margin-bottom: 8px;
}

.job-detail-content .job-section-content p strong {
    font-size: 18px;
}

/* Career Detail Section */
.career-detail-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.career-detail-container {
    margin-top: 7rem;
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    gap: 32px;
}

.job-detail {
    flex: 0 0 calc(50% - 16px);
    order: 2;
}

.application-form {
    flex: 0 0 calc(50% - 16px);
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.job-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-header-desc h2 {
    font-size: 30px;
    font-weight: bold;
    color: black;
}

.job-header-desc p {
    font-size: 18px;
    margin-bottom: 15px;
}

.job-category {
    display: flex;
    gap: 2rem;
    color: black;
    font-size: 15px;
}

.job-category-item {
    display: flex;
    font-size: 14px;
    gap: 10px;
}

.job-category-item i {
    font-size: 18px;
}

.job-header img {
    width: 200px;
    height: auto;
}

.job-section {
    margin-bottom: 30px;
}

.job-section-content {
    color: black;
    line-height: 1.6;
}

.job-section-content ul,
.job-section-content ol {
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 20px;
    margin-bottom: 20px;
    color: #808285;
}

.job-section-content li {
    margin-bottom: 8px;
    font-size: 14px;
}

.job-section-content p {
    margin-bottom: 8px;
}

.job-section-content h1 strong {
    font-size: 20px;
}

.job-section-content p strong {
    font-size: 20px;
}

/* Form Styles */
.application-form .row1,
.application-form .row2,
.application-form .row3 {
    border: 1px solid #e8e5e5ff;
    padding: 15px 15px 0px 15px;
}

.application-form .row1 h3,
.application-form .row2 h3,
.application-form .row3 h3 {
    color: black;
    font-size: 22px;
    text-align: justify;
    margin-bottom: 15px;
}

.application-form .row3 p {
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1.5;
}

.career-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 5px;
}

.career-form-label {
    flex: 0 0 120px;
    margin: 0;
    color: black;
    font-size: 15px;
    font-family: inherit;
    margin-right: 10px;
    display: flex;
}

.career-form-input {
    flex: 1;
}

.career-form-input input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    padding: 5px 0;
    font-family: inherit;
    box-shadow: none; 
    appearance: none;
}

.career-form-input 
    input.ng-invalid,
    input.ng-valid,
    input.ng-dirty,
    input.ng-touched {
    box-shadow: none !important;
    border: 1px solid transparent !important;
    border-bottom: 1px solid #e8e5e5ff !important;
    font-size: 15px !important;
    padding: 5px 0 !important;
    background-color: transparent !important;
    opacity: 1 !important;
    margin-left: 0 !important;
}

.career-form-input input[style*="border-bottom: 1px solid red"],
.career-form-input input[style*="border-bottom:1px solid red"] {
    border-bottom: 1px solid red !important;
}

.file-input-text {
    font-size: 14px;
    color: #666;
    pointer-events: none;
    transition: color 0.3s ease;
}

.file-input-text[style*="color: red"],
.file-input-text[style*="color:red"] {
    color: red !important;
}

.file-input-group {
    flex-direction: column;
    align-items: center;
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.file-input-group .career-form-label {
    color: black;
    font-size: 15px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-button {
    cursor: pointer !important;
}

.file-input-display {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    width: 100%;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.file-input-display > div:first-child {
    pointer-events: auto; 
}

.file-input-button {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 40px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    white-space: nowrap;
    color: black;
    display: inline-block;
}

.file-input-button:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}

.file-input-text {
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

.radio-buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-buttons label {
    color: black;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.custom-radio {
    width: 13px;
    height: 13px;
    border: 1px solid #d05d19;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin-right: 12px; 
    margin-bottom: 2px;
}

.custom-radio::after {
    content: '✔';
    font-size: 7px;
    border-radius: 50%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .custom-radio {
    background-color: #d05d19;
    border-color: #d05d19;
}

input[type="radio"]:checked + .custom-radio::after {
    opacity: 1;
}

.application-form .row4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.application-form .row4 .btn-apply {
    background-color: #d05d19;
    border: none;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.required-star {
    color: red;
    margin-left: 2px;
}

.recaptcha-wrapper {
    width: 100%;
    display: flex;
    justify-content: start;
}

.g-recaptcha {
    transform: scale(0.80);
    transform-origin: 0 0;
    margin-top: 1rem;
}

/* Error Modal */
.error-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.error-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.error-modal-content h3 {
    color: black;
    font-size: 20px;
    margin-bottom: 15px;
}

.error-modal-content p {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center !important;
    white-space: pre-line;
}

.error-modal-content button {
    background-color: #FA5F60;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    width: 100%;
    transition: background-color 0.3s;
}

.success-modal-content button {
    background-color: #079455 !important;
}

.success-modal-content button:hover {
    background-color: #065a3d !important;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

@media (min-width: 1084px) and (max-width: 1295px) {
  .career-card {
    flex: 0 0 50%;
    max-width: 35%;
  }
}

/* Large Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .career-card {
        width: calc(50% - 10px);
        max-width: 340px;
    }
    
    .job-section {
        margin-bottom: 0;
    }
    
    .career-detail-container {
        gap: 10px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .header-career-section {
        margin-top: 2rem;
    }
    
    .career-header-container h1 {
        font-size: 25px;
    }
    
    .career-header-container p {
        font-size: 1em;
    }
    
    .career-search input {
        padding: 20px 20px 20px 45px;
        font-size: 12px;
    }
    
    .content-career-section {
        max-width: 90%;
        overflow: visible;
    }
    
    .career-cards-container {
        gap: 20px;
    }
    
    .career-row .career-cards {
        gap: 20px;
    }
    
    .career-card {
        width: 280px;
        padding: 25px 15px;
    }
    
    .modal-content {
        width: 90%;
        padding: 15px;
        max-height: 90vh;
    }
    
    .job-detail-content .job-header {
        display: flex;
        flex-direction: column-reverse;
        justify-content: start;
        align-items: start;
    }
    
    .job-detail-content .job-header img {
        width: 140px;
        margin-bottom: 16px;
    }
    
    .job-detail-content .job-section {
        margin-top: -20px;
    }
    
    .job-detail-content .job-header-desc h2 {
        font-size: 18px;
    }
    
    .job-detail-content .job-header-desc p {
        font-size: 14px;
        margin-top: 5px;
    }
    
    .job-detail-content .job-section-content p strong {
        font-size: 16px;
    }
    
    .job-detail-content .job-section-content {
        font-size: 13px;
    }
    
    .career-detail-container {
        margin-top: 4rem;
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        width: 90%;
    }
    
    .job-header {
        flex-direction: column-reverse;
        justify-content: start;
        align-items: start;
    }
    
    .job-header img {
        margin-bottom: 16px;
    }
    
    .application-form {
        gap: 15px;
    }
    
    .application-form .row4 {
        flex-direction: column;
        justify-content: start;
        align-items: start;
        margin-top: -20px;
    }
    
    .recaptcha-wrapper {
        max-width: max-content;
        margin: 0 0 15px 0;
        padding: 0;
    }
    
    .btn-apply {
        margin-top: -20px;
        margin-bottom: 20px;
    }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
    .career-row {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
    }
    
    .career-row::-webkit-scrollbar {
        display: none;
    }
    
    .career-row .career-cards {
        display: grid;
        grid-template-columns: repeat(4, 260px);
        grid-template-rows: auto;
        gap: 15px;
        padding: 0 20px;
        width: max-content;
    }
    
    .career-card {
        width: 260px;
        min-width: 260px;
        flex-shrink: 0;
        padding: 15px;
    }
    
    .career-card hr {
        margin: 15px 0;
    }
    
    .card-header img {
        width: 120px;
    }
    
    .job-title {
        font-size: 18px;
        margin-top: 15px;
    }
    
    .job-company {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .job-info {
        margin: 15px 30px 10px 30px;
    }
    
    .job-category-item {
        font-size: 16px;
    }
    
    .job-category-item i {
        font-size: 18px;
    }
    
    .job-header-desc h2 {
        font-size: 20px;
    }
    
    .job-header-desc p {
        font-size: 18px;
    }
    
    .job-header img {
        width: 180px;
    }
    
    .row1 h3,
    .row2 h3,
    .row3 h3 {
        font-size: 20px !important;
    }
    
    .row3 p {
        font-size: 14px !important;
    }

    .recaptcha-wrapper {
        max-width: max-content;
        margin-bottom: 15px;
    }
}