/* career-style.css */
.career-body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

.career-header {
    background-color: #000638;
    color: white;
    padding: 1rem;
    text-align: center;
}

.career-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.career-nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

.career-main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.career-content-container {
    flex: 1;
    min-width: 65%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.career-sidebar {
    flex: 0 0 30%;
    min-width: 250px;
}

.career-heading {
    color: #000638;
    margin-bottom: 1.5rem;
}

.career-subheading {
    color: #000638;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.career-subtitle {
    color: #000638;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.career-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.career-list,
.career-sidebar-list {
    list-style-type: none;
    padding-left: 0;
}

.career-list li,
.career-sidebar-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.career-list li::before,
.career-sidebar-list li::before {
    content: "•";
    color: #000638;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.career-extraordinaire-section,
.career-job-section,
.career-sidebar-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.career-sidebar-heading {
    color: #000638;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.career-cta {
    background-color: #e8edf5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.career-motto {
    text-align: center;
    font-style: italic;
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #e8edf5;
    width: 100%;
}

.job-count {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.career-search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.career-search-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-button {
    border-radius: 0 4px 4px 0;
}

.career-job-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.career-job-item {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.career-job-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background-color: #e8edf5; 
}

.career-job-title-link {
    text-decoration: none;
    color: #00084c;
    display: block; 
}

.career-job-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* styling for filter and location  */

.career-search-filters {
    margin-bottom: 2rem;
}

.search-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.career-filter-select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 150px;
    background-color: white;
    cursor: pointer;
}

.career-filter-select:hover {
    border-color: #000638;
}

.career-reset-button {
    padding: 0.8rem 1.2rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.career-reset-button:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.active-filter {
    background-color: #e8edf5;
    color: #000638;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-filter {
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000638;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Job details page */
.job-details-section {
    line-height: 1.6;
}

.job-details-section h2 {
    color: #000638;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.job-details-section p {
    margin-bottom: 1rem;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.career-submit-button,
.career-apply-button,
.career-back-button,
.search-button {
    background-color: #000638;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.career-submit-button:hover,
.career-apply-button:hover,
.career-back-button:hover,
.search-button:hover {
    background-color: #001166;
    color: #e8f5e9;
}

/* Application form page */
.apply-main {
    background-color: #f0f8ff;
    padding: 2rem;
}

.apply-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.apply-image-section {
    flex: 1;
    padding: 2rem;
    background-color: #f0f8ff;
}

.apply-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.apply-heading {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.apply-description {
    color: #666;
    line-height: 1.6;
}

.apply-form-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.apply-required-fields {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.apply-form-group {
    margin-bottom: 1.5rem;
}

.apply-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.apply-input,
.career-input,
.career-textarea,
.career-file-input {
    width: 75%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.career-textarea {
    height: 100px;
}
.apply-textarea{
    width: 100%;
    height: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    resize: none; /* Prevents user resizing */
    overflow-y: auto; /* Adds vertical scrollbar when content exceeds height */
}

.apply-resume-instruction {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.apply-upload-button {
    background-color: white;
    border: 1px solid #0000ff;
    color: #0000ff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apply-submit-button {
    background-color: #0000ff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.success-message {
    text-align: center;
    font-size: 1.2rem;
    color: #2e7d32;
    padding: 2rem;
    background-color: #e8f5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* Add these styles to your CSS */
.apply-submit-button {
    position: relative;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.apply-submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading spinner styles */
.loading-spinner {
    display: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top: 3px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Add loading state class */
.apply-submit-button.loading {
    padding-right: 3rem; /* Make room for spinner */
}

.apply-submit-button.loading .loading-spinner {
    display: block;
}

/* Success animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-message {
    animation: successPulse 0.5s ease;
}

/* Error messages */
.apply-input.error {
    border-color: #c62828;
}

.error-message {
    color: #c62828;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    display: none;
}

.general-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.general-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.general-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

/* job details styling */
/* Add these styles to your existing CSS file */

.job-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.career-location-experience {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.career-location-experience i {
    color: #000638;
    margin-right: 0.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background-color: #e8edf5;
    color: #000638;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.job-section {
    margin-bottom: 2.5rem;
}

.career-list-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.career-list-item::before {
    content: "•";
    color: #000638;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

.error-message-job-details {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

.error-message-job-details h2 {
    color: #000638;
    margin-bottom: 1rem;
}

.error-message-job-details p {
    color: #666;
    margin-bottom: 2rem;
}

.career-back-button i,
.career-apply-button i {
    margin-right: 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .career-main {
        flex-direction: column;
        padding: 1rem;
    }

    .career-content-container,
    .career-extraordinaire-section,
    .career-job-section,
    .career-sidebar-section {
        padding: 1rem;
    }

    .career-sidebar {
        order: -1;
    }

    .career-search-input {
        width: 100%;
    }

    .career-job-list {
        grid-template-columns: 1fr;
    }

    .button-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-filter-container {
        flex-direction: column;
    }
    
    .career-filter-select {
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
    }

    .career-back-button,
    .career-apply-button {
        width: 100%;
        text-align: center;
    }

    .apply-container {
        flex-direction: column;
    }

    .apply-image-section,
    .apply-form-section {
        padding: 1rem;
    }

    .career-subheading {
        font-size: 1.5rem;
    }

    .career-intro,
    .career-list li {
        font-size: 1rem;
    }

    .career-subtitle {
        font-size: 1.2rem;
    }
    .apply-textarea {
        height: 150px; /* Slightly smaller height for mobile devices */
    }
}