/* Page Header Section */
.pg-header {
    background-image: url('images/Slider-Career.jpg');
}

/* Career Opportunities Section */
.career-opportunities {
    padding: 5rem 0;
    background-color: #f5f5f5;
}

.career-opportunities h2 {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 1rem;
    padding: 0 5rem;
    color: #ff4500;
    font-size: 2rem;
}

.subtitle {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 5rem;
}

.filter-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 5rem;
}

.country-filter {
    background-color: #19B5B8;
    padding: 2rem;
    border-radius: 8px;
}

.country-filter label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
}

.country-filter select {
    width: 200px;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.job-listings {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5rem;
}

.job-list-wrapper {
    background-color: white;
    border-radius: 8px;
    padding: 1rem 1rem 2rem;
}

.job-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    color: #ff4500;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.job-header .publish-date {
    margin-right: 7.5rem;
}

.job-list {
    height: 552px;
    overflow-y: scroll;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.job-info {
    display: flex;
    flex-direction: column;
}

.job-info .job-name {
    color: #333;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.department {
    color: #666;
    font-size: 0.9rem;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-wrap: nowrap;
}

.date {
    color: #666;
}

.apply-btn, .applyjob-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    background-color: #19B5B8;
    text-decoration: none;
}

.apply-btn:hover, .applyjob-btn:hover {
    background-color: #ff4500;
}

/* Job Details Page Styles */
.job-details-page {
    padding: 5rem 0;
    background-color: #f5f5f5;
}

.job-details-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5rem;
}

.job-list-wrapper {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.job-details-container .job-header {
    align-items: center;
}

.job-details-container .job-title {
    color: #ff4500;
    font-size: 2rem;
}

.job-details-container .job-header .publish-date {
    color: #ff4500;
    margin-right: 1rem;
}

.job-section {
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
}

.job-section h2 {
    color: white;
    background-color: #19B5B8;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.job-section p {
    padding: 0 0.5rem;
    white-space: pre-line;
    line-height: 1.6;
}

.job-section ul {
    list-style: none;
    padding: 0 0.5rem;
    white-space: pre-line;
    line-height: 1.6;
}

.job-section li {
    position: relative;
    padding-left: 1rem;
}

.job-section li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.copy-link-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-link-input {
    width: 400px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 0.9rem;
    cursor: default;
    outline: none;
}

.copy-link-input:focus {
    border-color: #19B5B8;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    margin: 2rem 0 0 1rem
}
.back-btn {
    background-color: #19B5B8;
    color: white;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.action-buttons .applyjob-btn {
    background-color: #19B5B8;
    padding: 0.5rem 2rem;
    text-decoration: none;
}

/* Responsive adjustments for job details */
@media (max-width: 768px) {
    .job-details-container {
        padding: 1rem;
    }

    .job-section {
        padding: 1rem;
    }
}

/* Add these new styles for the external link layout */
.external-link-item {
    display: flex !important;
    gap: 0.5rem;
}

.external-link-item span {
    white-space: nowrap;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Breakpoints */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1200px) {
    .career-opportunities h2,
    .subtitle,
    .filter-section,
    .job-listings,
    .job-details-container {
        padding: 0 3rem;
        max-width: 1140px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {
    .career-opportunities h2,
    .subtitle,
    .filter-section,
    .job-listings,
    .job-details-container {
        padding: 0 2rem;
        max-width: 960px;
    }

    .job-header .publish-date {
        margin-right: 6.5rem;
    }

    .job-meta {
        gap: 1rem;
    }

    .copy-link-container {
        flex-wrap: wrap;
    }

    #external {
        margin-right: -5px;
    }

    .copy-btn {
        margin-left: 5px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
    .career-opportunities {
        padding: 3rem 0;
    }

    .career-opportunities h2,
    .subtitle,
    .filter-section,
    .job-listings,
    .job-details-container {
        padding: 0 1.5rem;
    }

    .country-filter {
        padding: 1.5rem;
    }

    .country-filter select {
        width: 100%;
    }

    .job-header {
        gap: 1rem;
    }

    .job-header .publish-date {
        margin-right: 0;
    }

    .job-details-container .job-title {
        font-size: 1.5rem;
    }

    .job-item {
        align-items: flex-start;
        gap: 1rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .copy-link-container {
        flex-basis: 100%;
    }

    .copy-link-container #external {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 576px) {
    .career-opportunities h2 {
        font-size: 1.5rem;
    }

    .career-opportunities {
        padding: 2rem 0;
    }

    .job-section h2 {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .job-header {
        padding: 1rem 0rem 1rem 0.5rem;
    }

    .job-details-container .job-header {
        flex-direction: column;
        padding-left: 0;
    }
    
    .job-item {
        padding: 1rem 0.5rem;
    }

    .external-link-item {
        flex-direction: column;
    }

    .copy-link-container #external, .copy-btn {
        margin-left: 0;
    }

    .apply-btn,
    .applyjob-btn,
    .back-btn {
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    .action-buttons {
        margin: 1.5rem 0.75rem 0;
    }

    .job-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .date {
        font-size: 0.9rem;
    }

    .app_form .form-header h2 {
        font-size: 1.2rem;
    }
}