/* Menu Bar Transition Effects */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    background: transparent;
}

.header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header a {
    color: #ffffff;
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.header.scrolled a {
    color: #1c5aa6;
}

/* Fade Animation */
.header.fade-in {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}




/* *************************************************************** */




/* Header and Banner Section */
.main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
                      url('../img/banner/career-banner.png') !important;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 75vh;
    padding: 6rem 2rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: -150px; /* Adjust based on your header height */
}

.main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0));
    pointer-events: none;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-top: 35rem;

    /* ******************************** */

    margin-bottom: 5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 0.8s ease-out;
}

.main p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}


/* *************************************************************** */



/* Job Search Form Section */
.job-search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    margin: -2.5rem auto 3rem;
    position: relative;
    z-index: 10;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    width: min(90%, 1200px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Search Field Groups - Three Column Layout */
.search-group {
    position: relative;
}

.search-group.keywords {
    flex: 2 1 300px; /* Larger flex-basis for search field */
}

.search-group.category {
    flex: 1.5 1 250px; /* Medium flex-basis for category dropdown */
}

.search-group.location {
    flex: 1.5 1 250px; /* Medium flex-basis for location field */
}





.search-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
}



/* *************************************************************** */



.job-search-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.btn-search {
    flex: 0 0 auto;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



/* ************************** */





/* Job Listings Section - Optimized Spacing */
.job-listings {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    padding: 2rem; /* Reduced from 3rem */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.listings-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.job-cards-container {
    width: min(95%, 1200px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
}

/* Job Card Styling - Optimized */
.job-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.25rem; /* Reduced from 1.5rem */
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 1rem; /* Reduced from 1.25rem */
    padding-bottom: 0.75rem; /* Reduced from 1rem */
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.job-info {
    flex: 1;
    padding-right: 0.75rem; /* Reduced from 1rem */
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #3B82F6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}


.job-header img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.job-info {
    flex: 1;
    padding-right: 1rem;
}

.job-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}




.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.job-body {
    padding: 1rem 0;
    margin-bottom: 1rem;
}


/* *************************************************************** */





/* *************** Header Styles **************** */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Container for Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Section */
.header {
    color: #fff;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}








/* *************************************************************** */



/* Banner Section - Optimized Spacing */
.banner {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    min-height: 180px; /* Reduced from 200px */
    width: 100%;
    padding: 2rem; /* Reduced from 2.5rem */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    line-height: 1.2;
}


/* *************************************************************** */



/* Pre-footer Banner - Optimized */
.pre-footer-banner {
    --banner-bg-color: #F3F4F6;
    --banner-text-color: #1F2937;
    --button-bg-color: #2563EB;
    --button-text-color: #ffffff;
    --button-hover-bg-color: #1D4ED8;
    
    background: var(--banner-bg-color);
    padding: 1rem 2rem; /* Reduced padding for consistent spacing */
    position: relative;
    margin-top: 0; /* Removed extra spacing above */    
    position: relative;
}






/* *************************************************************** */
/* *************************************************************** */





/* *************************************************************** */
/* *************************************************************** */



.pre-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.pre-footer-text {
    flex: 1;
    max-width: 600px;
}

.pre-footer-banner h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--banner-text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pre-footer-banner button {
    padding: 0.875rem 2rem;
    background: var(--button-bg-color);
    color: var(--button-text-color);
    border-radius: 8px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* *************************************************************** */



/* Footer */
footer {
    background: #1F2937;
    color: #F9FAFB;
    padding: 3rem 2rem 2rem;
    margin-top: 0;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9CA3AF;
}


/* *************************************************************** */



/* Media Queries - Optimized Responsive Design */
@media screen and (max-width: 1200px) {
    .pre-footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .pre-footer-text {
        max-width: 100%;
    }
    
    .job-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}




/* ************************************ */



@media screen and (max-width: 768px) {
    .main {
        margin-top: -60px; /* Adjusted for mobile */
        padding: 3rem 1.25rem; /* Reduced padding */
    }

    .job-search-form {
        margin-top: -1rem; /* Reduced from -2rem */
        padding: 1rem;
    }

    .search-group {
        flex: 1 1 100%;
    }

    .job-card {
        padding: 1rem;
    }

    .banner, .pre-footer-banner {
        padding: 1.5rem;
    }
}


@media screen and (max-width: 480px) {
    .main h1 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }

    .btn-search {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }
}


/* ************************************ */



/* Animations and Effects - Enhanced Visual Feedback */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slide {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

/* Interactive Elements */
.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
}

.pre-footer-banner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 6px;
    border: 2px solid #F3F4F6;
}


/* ************************************ */



/* Dark Mode Support - Maintaining Original Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --banner-bg-color: #838383;
        --banner-text-color: #F9FAFB;
        --button-bg-color: #2563EB;
        --button-hover-bg-color: #1D4ED8;
    }
    
    .job-card {
        background: #2a4a7842;
        border-color: #374151;
    }
    
    .job-info h4 {
        color: #F9FAFB;
    }
    
    .job-meta-item {
        color: #D1D5DB;
    }
    


/* ************************************ */


    .job-search-form {
        background: #69686816;
        border: 1px solid #374151;
    }
    

/* **********/



    .job-search-form .form-control {
        background: #374151;
        border-color: #4B5563;
        color: #F9FAFB;
    }

    
/* ************************************ */



    .job-tag {
        background: #2563EB;
        color: #F9FAFB;
    }

    .pre-footer-banner {
        background: #111827;
        color: #F9FAFB;
    }

    .btn-search {
        background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
        color: #ffffff;
    }

    .btn-search:hover {
        background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    }
}
