/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #007bff;
}

.login-btn a {
    background: #007bff;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.login-btn a:hover {
    background: #0056b3;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Bar */
.search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto auto auto;
    gap: 0.5rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.search-bar input,
.search-bar select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: #007bff;
}

.btn-search {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-search:hover {
    background: #0056b3;
}

.btn-reset {
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-reset:hover {
    background: #545b62;
}

/* Jobs Section */
.jobs {
    padding: 5rem 5%;
    background: white;
}

.jobs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.jobs > p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.job-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.job-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.job-card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.view-more {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.view-more:hover {
    background: #0056b3;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.no-results {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
    padding: 3rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 5%;
    background: #f8f9fa;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step .icon {
    width: 60px;
    height: 60px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

.btn-get-started {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-get-started:hover {
    background: #218838;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-bar {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .btn-search,
    .btn-reset {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-bar {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .job-list {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 4rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .jobs,
    .how-it-works {
        padding: 3rem 1rem;
    }
    
    .job-card {
        padding: 1rem;
    }
}



/* Apply Page Specific Styles */
.apply-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.apply-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-bottom: 2rem;
}

.apply-card h1 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.apply-card p {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.apply-card p strong {
    color: #333;
    font-weight: 600;
}

.apply-card hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2rem 0;
}

.job-description {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.job-description h2,
.job-description h3,
.job-description h4 {
    color: #333;
    margin: 1.5rem 0 1rem 0;
}

.job-description ul,
.job-description ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.job-description li {
    margin-bottom: 0.5rem;
}

.job-description p {
    margin-bottom: 1rem;
}

/* Apply Form Styles */
.apply-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.apply-form h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.apply-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.apply-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.apply-form input,
.apply-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.apply-form input:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.apply-form textarea {
    resize: vertical;
    min-height: 120px;
}

.apply-form .btn-search {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.apply-form .btn-search:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* External Apply Styles */
.external-apply {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    margin-top: 2rem;
}

.external-apply p {
    font-size: 1.2rem;
    color: #856404;
    margin-bottom: 1.5rem;
}

.external-apply .btn-search {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.external-apply .btn-search:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Success and Error Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 1rem 0;
    font-weight: 500;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
    font-weight: 500;
}

/* Responsive Design for Apply Page */
@media (max-width: 768px) {
    .apply-container {
        margin: 80px auto 30px;
        padding: 0 15px;
    }

    .apply-card {
        padding: 2rem 1.5rem;
    }

    .apply-card h1 {
        font-size: 1.8rem;
    }

    .apply-form {
        padding: 2rem 1.5rem;
    }

    .apply-form h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .apply-container {
        margin: 70px auto 20px;
    }

    .apply-card {
        padding: 1.5rem 1rem;
    }

    .apply-card h1 {
        font-size: 1.5rem;
    }

    .apply-form {
        padding: 1.5rem 1rem;
    }

    .apply-form input,
    .apply-form textarea {
        padding: 0.8rem;
    }

    .external-apply {
        padding: 1.5rem 1rem;
    }
}

/* Animation for form elements */
.apply-form input:focus,
.apply-form textarea:focus {
    transform: translateY(-1px);
}

/* Print Styles for Apply Page */
@media print {
    .header,
    .footer,
    .apply-form,
    .external-apply {
        display: none;
    }

    .apply-container {
        margin: 0;
        padding: 0;
    }

    .apply-card {
        box-shadow: none;
        padding: 0;
    }
}