/* Career Page Styles */

:root {
    --primary: #044C4C;
    --primary-light: #056767;
    --secondary: #1c5c5b;
    --gray-light: #f8f8f8;
    --gray: #eaeaea;
    --dark: #333;
    --white: #fff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Career-specific styles */
/* Hero styling from contact.css */
.hero {
    min-height: 100vh !important;
    border-radius: 0 0 2rem 2rem !important;
    padding: calc(var(--navbar-height) + 2rem) 0 4rem !important;
}

/* Override overlay styling for better visibility */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 76, 76, 0.9), rgba(4, 76, 76, 0.9));
    z-index: 1;
}

.video-background {
    border-radius: 0 0 2rem 2rem !important;
    overflow: hidden !important;
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/grid-pattern.png');
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
}

/* Contact cards styling */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-cards .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md, 0.5rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-cards .card a,
.contact-cards .card div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-cards .card i {
    font-size: 1.25rem;
}

.contact-cards .card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Responsive styles for contact cards */
@media (max-width: 768px) {
    .contact-cards {
        padding: 0 0.5rem;
    }
    
    .contact-cards .card {
        padding: 0.75rem 1rem;
        max-width: 80%;
    }
    
    .contact-cards .card a, 
    .contact-cards .card div {
        font-size: 0.9rem;
    }
    
    .contact-cards .card i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-cards .card {
        padding: 0.6rem 0.8rem;
        max-width: 70%;
    }
    
    .contact-cards .card a, 
    .contact-cards .card div {
        font-size: 0.85rem;
    }
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 2; /* Higher z-index to ensure content is above background */
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    opacity: 1 !important; /* Force visibility */
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white !important; /* Force white color */
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9) !important; /* Force visible color */
}

.accent {
    color: #3c837b !important; /* Changed to lighter teal to match contact page accent */
}

/* Button styling */
.btn-apply {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #1c5c5b !important; /* Changed from yellow to darker teal */
    color: white !important; /* Changed to white text for contrast with darker background */
    border-radius: 4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1 !important; /* Force visibility */
}

.btn-apply:hover {
    background-color: #044C4C !important; /* Changed hover color to primary teal */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-dark));
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
}

/* Career Opportunities Section */
.opportunities-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    color: var(--secondary);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.contact-method {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.contact-method h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-method p {
    margin-bottom: 20px;
    color: #666;
}

/* Join Us Section */
.join-us {
    background: var(--gray-light);
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    background: var(--primary);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Career Inquiry Form */
.inquiry-form {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 60px;
}

.inquiry-form h3 {
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}


.btn-submit:hover {
    background: linear-gradient(135deg, #056767, #2a7a79);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(4, 76, 76, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(4, 76, 76, 0.2);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: #cccccc;
}

.btn-submit .spinner-border {
    margin-right: 8px;
    width: 1rem;
    height: 1rem;
}

.btn-submit i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.required:after {
    content: ' *';
    color: red;
}

/* Status Messages */
.status-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .benefit-card {
        padding: 20px;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom button for career page */
.btn-custom {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    background-color: #3c837b;
    color: white;
    border: 2px solid white;
}

.btn-custom:hover {
    transform: translateY(-2px);
    background-color: #1c5c5b;
}

/* Custom button style - just adding white border */
.white-border {
    border: 1px solid white !important;
}

/* Existing Job Listings Section CSS */
/* Job Listings Section */
.job-listings {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.job-listings-container {
    margin-top: 2rem;
    width: 100%;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--text-color);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Job Cards */
.job-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.job-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(4, 76, 76, 0.1);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.job-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(4, 76, 76, 0.02);
}

.job-icon {
    width: 50px;
    height: 50px;
    background: rgba(4, 76, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.job-title {
    flex-grow: 1;
}

.job-title h3 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
    color: var(--text-color);
}

.job-department {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    background: rgba(4, 76, 76, 0.05);
    border-radius: 20px;
    display: inline-block;
}

.job-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.job-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.job-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.job-info span i {
    color: var(--accent-color);
    font-size: 1rem;
}

.job-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.job-card-footer {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(4, 76, 76, 0.02);
}

.job-posted {
    font-size: 0.85rem;
    color: var(--text-light);
}

.apply-btn {
    padding: 0.75rem 1.5rem;
}

/* Error and No Jobs Messages */
.error-message,
.no-jobs-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    margin: 2rem auto;
    max-width: 600px;
}

.error-message i,
.no-jobs-message i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.error-message p,
.no-jobs-message p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Filter Buttons */
.service-filters-container {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-intro {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(4, 76, 76, 0.05);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media screen and (max-width: 992px) {
    .job-card-header,
    .job-details,
    .job-card-footer {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 768px) {
    .job-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .job-icon {
        width: 40px;
        height: 40px;
    }
    
    .job-title h3 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 576px) {
    .job-info {
        grid-template-columns: 1fr;
    }
    
    .job-card-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .apply-btn {
        width: 100%;
    }
    
    .job-posted {
        width: 100%;
        text-align: center;
    }
}

/* Form status message styles */
.status-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    background-color: rgba(4, 76, 76, 0.1);
    border: 1px solid rgba(4, 76, 76, 0.2);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Application modal styles */
.application-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(4, 76, 76, 0.9);
    color: white;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal {
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

.application-form {
    padding: 20px;
    overflow-y: auto;
}

.career-form button[type="submit"] {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.career-form button[type="submit"]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.career-form button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
}

.career-form button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.career-form button[type="submit"] .spinner {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
} 