* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.site-header {
    background: white;
    width: 100%;
}

/* Logo Section */
.logo-container {
    text-align: center;
    padding: 20px 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container img {
    height: 120px; /* Larger centered logo */
    width: auto;
}

.login-link {
    position: absolute;
    right: 40px;
    top: 40px;
    color: #8da3cf;
    font-size: 14px;
    cursor: pointer;
}

.login-link:hover {
    color: #6a7ba2; /* Or your brand blue */
}

/* Nav Bar */
.main-nav {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin-top: 10px;
}

.nav-links {
    display: flex;
    justify-content: center; /* Centers the Hire, Find Work, Services links */
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links > li {
    flex: 1; /* Makes all three columns equal width */
    text-align: center;
    position: relative;
    border-right: 1px solid #eee;
}

.nav-links > li:last-child {
    border-right: none;
}

.nav-links a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

/* Dropdown Logic */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #ffffff;
    min-width: 100%;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border: 1px solid #eee;
}

.dropdown-content a {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown:hover .dropdown-content {
    display: block; /* Shows on hover */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Services Section Layout */
.services-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Service Card Styling */
.service-card {
    background: #fff;
    padding: 40px;
    border: 1px solid #f0f0f0;
    border-radius: 4px; /* Squares off the edges like Wix */
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.service-card h3 {
    color: #000; /* Black titles usually look cleaner */
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

/* Hero Section - The Cinematic Strip */
.hero-container {
    position: relative;
    width: 100%;
    height: 450px; /* Reduced height to stop it from feeling massive */
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video fills the strip without distorting */
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Flexbox magic to center the text */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2); /* Subtle dark tint to make white text pop */
}

.hero-overlay h1 {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem; /* Large and bold */
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Adds depth for readability */
    margin: 0;
}
/* The Headline Section - Now below the video */
.hero-headline-bar {
    background: #ffffff;
    padding: 40px 0;
    text-align: left; /* Align left to match your screenshot */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
}

.hero-headline-bar h1 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0;
}


/* About Section */
.about-modern {
    padding: 100px 0;
    background: #fff;
}

.modern-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0px #f0f4f8; /* Modern offset background effect */
}

.about-text {
    flex: 1;
}

.subtitle {
    color: #0044cc;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
    display: block;
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}


.modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 20px 80px 20px; /* Reduced the top padding from 80px to 40px */
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover; /* This keeps it sharp and perfectly cropped */
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: #0044cc; /* Your brand blue */
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 4px;
}

.experience-badge span {
    font-size: 32px;
    font-weight: 800;
    display: block;
}

.experience-badge p {
    font-size: 12px;
    text-transform: uppercase;
    margin: 0;
}

.label {
    color: #0044cc;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

/* Sectors Section */
.sectors-section {
    background: #002d72; /* Deep corporate blue from your logo */
    padding: 80px 0;
    color: white;
}

.sectors-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.sector-item h3 {
    margin-top: 20px;
    font-weight: 400;
    font-size: 18px;
}

.icon-wrapper {
    font-size: 40px; /* Use icons or modern SVG graphics here */
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover; /* This ensures the image stays sharp and fills the space */
    border-radius: 12px;
    filter: saturate(1.1) contrast(1.05); /* Gives it a slight professional pop */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}


.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px 0;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Gives the 'About' section more room */
    gap: 40px;
    padding: 0 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
}

/* The small blue underline under the footer headers */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: #0044cc;
}

.footer-brand {
    color: #0044cc !important; /* Brand Blue */
    font-weight: 700;
}

.footer-col p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 12px;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


.page-title-banner {
    background-color: #f8f9fa;
    padding: 60px 0 40px 0; /* Reduced from 80px; less space at the bottom */
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title-banner h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
}

.story-section {
    padding: 100px 0;
}

.sharp-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Values Grid */
.values-section {
    background-color: #002d72; /* Dark Blue from your logo */
    padding: 100px 0;
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.value-card p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}


.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.story-image img {
    width: 100%;
    height: 600px; /* Gives that skyscraper some room to breathe */
    object-fit: cover; /* This is the magic: it crops the vertical photo to fit our box */
    object-position: center bottom; /* Focuses on the building detail */
    display: block;
    transition: transform 0.5s ease;
}

/* Subtle hover effect for that high-end feel */
.story-image:hover img {
    transform: scale(1.05);
}

.story-image::after {
    content: "Republic Center, Dallas";
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #002d72;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Contact Page Specifics */
.contact-container {
    padding: 60px 0 100px 0;
}

.contact-info .info-item {
    margin-top: 30px;
}

.contact-info .info-item strong {
    display: block;
    color: #002d72;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Form Styling */
.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.modern-form .form-group {
    margin-bottom: 25px;
}

.modern-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.modern-form input, 
.modern-form select, 
.modern-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.modern-form input:focus {
    outline: none;
    border-color: #0044cc;
}

/* Global Primary Button - Reusable Utility */
.btn-primary {
    display: block !important;
    width: 100% !important;
    background-color: #6a7ba2 !important; /* Slate Blue */
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(106, 123, 162, 0.2) !important;
    margin-top: 20px !important;
    
    /* Responsive & Text Wrapping Fixes */
    height: auto !important;
    line-height: 1.4 !important;
    padding: 16px 20px !important; 
    white-space: normal !important; 
}

.btn-primary:hover {
    background-color: #536285 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 123, 162, 0.4) !important;
}

.btn-primary:active {
    transform: translateY(0);
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modern-grid {
        grid-template-columns: 1fr !important; /* Stack columns vertically */
        gap: 40px; /* Add space between the info and the form */
    }

    .contact-container {
        padding: 40px 15px; /* Add a little breathing room on the sides */
    }

    .contact-info h2 {
        font-size: 28px; /* Slightly smaller header for mobile */
    }
}

/* Job Post Layout */
.narrow-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    padding: 60px 20px 100px 20px;
    background-color: #fcfcfc;
}

/* Two-column row for Location/Type */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Custom File Upload Styling */
.file-upload-zone {
    text-align: center;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    background: #fff;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.custom-file-upload:hover {
    background: #eee;
}

input[type="file"] {
    display: none; /* Hide the ugly default browser input */
}

.file-hint {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.terms-area {
    text-align: center;
    font-size: 13px;
    margin-bottom: 20px;
    color: #666;
}

.terms-area a {
    color: #0044cc;
    text-decoration: none;
    font-weight: 600;
}


/* Responsiveness for Opportunity Posting Page */
@media (max-width: 768px) {
    /* Stacks the Location/Type and Industry/Budget rows */
    .job-post-page .form-row {
        grid-template-columns: 1fr !important; 
        gap: 0; /* Let standard form-group margins handle spacing */
    }

    /* Increases general padding so elements don't touch screen edges */
    .job-post-page .form-section {
        padding: 30px 15px;
    }

    /* Centers the header text for a better mobile look */
    .job-post-page .page-title-banner {
        text-align: center;
        padding: 40px 20px;
    }

    /* Adjusts the file upload zone for smaller screens */
    .file-upload-zone {
        padding: 20px 10px;
    }

    /* Ensures the submit button doesn't feel squashed */
    .job-post-page .btn-primary {
        padding: 18px 0 !important;
        font-size: 17px !important;
    }
}

.form-group {
    margin-bottom: 20px; /* Provides the necessary vertical gap on mobile */
}

/* Prevents gray/yellow background during browser autocomplete */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}


/* Force the input to stay interactive and white */
input[name="location"] {
    background-color: #ffffff !important;
    color: #333333 !important;
    cursor: text !important;
    pointer-events: auto !important;
}

/* Override the gray lock-out state */
input[name="location"]:disabled, 
input[name="location"][readonly] {
    background-color: #ffffff !important;
    cursor: text !important;
}

/* Contract Jobs Page Specifics */
.jobs-list-section {
    padding: 60px 0;
    background: #fcfcfc;
}

.job-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-main-info h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.job-location {
    color: #888;
    font-size: 14px;
}

.job-badge {
    background: #eef2f7;
    color: #0044cc;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.job-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.job-preview-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.posted-date {
    font-size: 13px;
    color: #999;
}

/* Button sizing override for the card */
.view-job-btn {
    width: auto !important;
    padding: 10px 25px !important;
    margin-top: 0 !important;
    font-size: 14px !important;
}

.job-preview-image {
    width: 100%;
    height: 250px; /* Set a fixed height for consistency */
    background-color: #f0f0f0; /* Placeholder color while loading */
    margin-top: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.job-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents stretching */
}

/* Make the entire card link behave like a container */
.job-card-link {
    text-decoration: none !important;
    display: block;
    color: inherit; /* Keeps your text colors from style.css */
    margin-bottom: 30px;
}

.job-card-link:hover .job-card {
    border-color: #6a7ba2; /* Subtle brand blue highlight on hover */
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.view-job-link {
    color: #0044cc;
    font-weight: 600;
    font-size: 14px;
}

/* Ensure the job title doesn't turn blue unless hovered */
.job-card-link:hover h3 {
    color: #0044cc;
}

/* Job Details Specifics */
.job-details-page .back-link {
    color: #6a7ba2;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
}



.card-style {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.content-group {
    margin-bottom: 40px;
}

.content-group h2 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 22px;
    color: #002d72;
}

.description-text {
    line-height: 1.8;
    white-space: pre-line; /* Preserves the line breaks from your database */
    color: #444;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.apply-box {
    background: #f8f9fb;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #6a7ba2;
}

.apply-box h3 { margin-bottom: 10px; }
.apply-box p { margin-bottom: 20px; color: #666; }

.job-meta-header {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: #3d3b3b; /* Light text for the dark banner */
}

.job-meta-header {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    align-items: center; /* Keeps icon and text perfectly leveled */
    font-size: 16px;
    color: #3d3b3b; 
}

/* Add this to style the individual words */
.job-meta-header .badge {
    background: #eef2f7;
    color: #6a7ba2;
    padding: 4px 12px;
    border-radius: 4px; /* Matches your service-card radius */
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d1d9e6;
}

.job-details-page .narrow-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px; /* Prevents text touching edges on mobile */
}

/* The Modal (background) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); 
    cursor: zoom-out;
}

/* Modal Content (The Image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

    /* The Modal (background) - Hidden by default */
    .image-modal {
        display: none; 
        position: fixed; 
        z-index: 9999; 
        padding-top: 100px; 
        left: 0;
        top: 0;
        width: 100%; 
        height: 100%; 
        overflow: auto; 
        background-color: rgba(0,0,0,0.9); 
        cursor: zoom-out;
    }

    /* Modal Content (The Actual Image) */
    .modal-content {
        margin: auto;
        display: block;
        max-width: 90%;
        max-height: 80vh;
        border-radius: 4px;
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

    /* Animation */
    .modal-content {  
        animation-name: zoom;
        animation-duration: 0.3s;
    }

    @keyframes zoom {
        from {transform:scale(0.8); opacity: 0;} 
        to {transform:scale(1); opacity: 1;}
    }

    /* Close Button */
    .close-modal {
        position: absolute;
        top: 30px;
        right: 50px;
        color: #fff;
        font-size: 50px;
        font-weight: bold;
        cursor: pointer;
    }

    /* Gallery image hover effect */
    .gallery-item img:hover {
        opacity: 0.8;
        transform: scale(1.02);
    }


    /* Switch Toggle Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #002d72; /* Dark blue when it's a bid */
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}