/* Enhanced Recruitment Page Styles - Complete Integration */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-btn {
    background: #ffd700;
    color: #1a3353;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn:hover {
    background: #ffcc00;
    color: #1a3353;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.quick-access-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.quick-link:hover {
    color: white;
    transform: translateY(-1px);
}

/* Search Section */
.search-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.search-form {
    max-width: 1200px;
    margin: 0 auto;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-group label {
    font-weight: 600;
    color: #1a3353;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-group input,
.search-group select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-group input:focus,
.search-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-btn {
    background: linear-gradient(90deg, #ffd700 0%, #ffd700 100%);
    color: #1a3353;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: linear-gradient(90deg, #ffd700 0%, #ffcc00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.clear-btn {
    background: transparent;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-btn:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

/* Featured Job Section */
.featured-job-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.featured-job-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 2px solid #ffd700;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffd700;
    color: #1a3353;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.featured-job-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-job-title a {
    color: #1a3353;
    text-decoration: none;
}

.featured-job-title a:hover {
    color: #ffd700;
}

.featured-company {
    margin-bottom: 1rem;
}

.featured-company a {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.1rem;
}

.featured-company a:hover {
    color: #ffd700;
}

.featured-job-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.featured-job-meta i {
    color: #ffd700;
}

.featured-job-excerpt {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-job-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Career Hub Section */
.career-hub-section {
    padding: 3rem 0;
    background: white;
}

.career-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.career-hub-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.career-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-color: #ffd700;
}

.career-hub-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #1a3353;
}

.career-hub-card h3 {
    color: #1a3353;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.career-hub-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.career-hub-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.career-hub-link:hover {
    color: #ffcc00;
    transform: translateX(4px);
}

/* Jobs Section */
.jobs-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

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

.jobs-count h2 {
    color: #1a3353;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.jobs-count p {
    color: #6c757d;
    margin: 0;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-color: #ffd700;
}

.job-header {
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-title a {
    color: #1a3353;
    text-decoration: none;
}

.job-title a:hover {
    color: #ffd700;
}

.job-company a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.job-company a:hover {
    color: #ffd700;
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.job-meta i {
    color: #ffd700;
}

.job-excerpt {
    color: #495057;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.job-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.job-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.job-date {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Sectors Section */
.sectors-section {
    padding: 3rem 0;
    background: white;
}

.section-title {
    text-align: center;
    color: #1a3353;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sector-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-color: #ffd700;
    color: inherit;
}

.sector-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #1a3353;
}

.sector-card h3 {
    color: #1a3353;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sector-card p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.cta-buttons .btn-primary {
    background: #ffd700;
    color: #1a3353;
    border: none;
}

.cta-buttons .btn-primary:hover {
    background: #ffcc00;
    color: #1a3353;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.cta-buttons .btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Alert Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-title {
    color: #1a3353;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .quick-access-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-btn,
    .clear-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .featured-job-card {
        padding: 1.5rem;
    }
    
    .featured-job-title {
        font-size: 1.4rem;
    }
    
    .featured-job-meta {
        gap: 1rem;
    }
    
    .featured-job-actions {
        flex-direction: column;
    }
    
    .career-hub-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .jobs-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .job-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Button States */
.btn-success {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

.btn-success:hover {
    background: #218838 !important;
    color: white !important;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus States for Accessibility */
.btn:focus,
.search-group input:focus,
.search-group select:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Animation for job cards */
.job-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }

/* AJAX Filter System Styles */
.loading-spinner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-spinner p {
    margin: 1rem 0 0 0;
    color: #6c757d;
    font-weight: 500;
}

.jobs-grid {
    transition: opacity 0.3s ease;
}

.jobs-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.no-results-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-results p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.no-results a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Filter Form Enhancements */
.search-form {
    transition: all 0.3s ease;
}

.search-group input:focus,
.search-group select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

/* Keyboard Shortcut Hints */
.search-group input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* ===== RECRUITMENT PAGE PROTECTION FROM HEADER CSS INTERFERENCE ===== */
/* Proper body class approach now used - minimal protection needed */

/* Global safety reset to prevent horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Override header CSS body padding that interferes with page layout */
body.recruitment-page {
    padding-bottom: 0 !important;
}

/* Target specific mobile elements that commonly cause overflow */
.mobile-nav-menu,
.mobile-submenu,
.mobile-header-inner,
.mobile-bottom-nav {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure content has proper spacing on mobile without header interference */
@media (max-width: 1023px) {
    body.recruitment-page {
        padding-bottom: 0 !important;
    }
    
    /* Add proper spacing to the last section instead of body padding */
    body.recruitment-page .jobs-section {
        margin-bottom: 100px; /* Space for mobile bottom navigation */
    }
    
    body.recruitment-page .cta-section {
        margin-bottom: 100px; /* Space for mobile bottom navigation */
    }
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    body.recruitment-page {
        padding-bottom: 0 !important;
    }
    
    /* Ensure last section has proper spacing */
    body.recruitment-page .jobs-section:last-of-type,
    body.recruitment-page .cta-section:last-of-type {
        margin-bottom: 120px; /* Extra space for mobile bottom nav */
    }
}

/* Responsive AJAX Enhancements */
@media (max-width: 768px) {
    .loading-spinner {
        padding: 1.5rem;
    }
    
    .no-results {
        padding: 2rem 1rem;
    }
    
    .no-results-icon {
        font-size: 3rem;
    }
} 