body {
  font-family: 'Poppins', sans-serif;
  background: #f9fafc;
  margin: 0;
  padding: 0;
}
/* ===================== Header Starts ===================== */
header {
    position: sticky;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    top: 0;
    max-width: 100vw; /* prevent horizontal overflow */
    width: 100%; /* full width */
    padding: 1rem 3%; /* relative padding instead of fixed 50px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fffeff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    box-sizing: border-box; /* include padding in width */
}


header.scrolled {
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

.logo img {
    max-height: 50px; /* responsive max height */
    width: auto;
    display: block;
}


/* ===================== Navigation ===================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;          /* increase from 100% to leave small margins */
    max-width: 1400px;   /* optional, prevent it from being too wide on large screens */
    margin: 0 auto;      /* center the nav bar */
    position: relative;
    padding: 1rem 3%;
}

/* Hamburger Menu (hidden on desktop) */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #0419dc;
}

/* Desktop nav links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.nav-links li a {
    white-space: nowrap; /* prevent breaking */
    text-decoration: none;
    color: #0419dc;
    padding: 10px 15px;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: #0419dc;
    color: #fff;
}

/* Contact Button */
.nav-links li a.btn-contact {
    background-color: #012fa3;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.nav-links li a.btn-contact:hover {
    background-color: #012fa3;
}

/* Dropdown menu */
.nav-links li.dropdown {
    position: relative; /* for absolute positioning of dropdown */
}

.nav-links li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.nav-links li .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #012fa3;
    transition: 0.3s;
}

.nav-links li .dropdown-menu li a:hover,
.nav-links li .dropdown-menu li a.active {
    background: #012fa3;
    color: #fff;
    border-radius: 8px;
}

/* Desktop hover behavior ONLY */
@media (min-width: 1025px) {
    .nav-links li.dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* ===================== Mobile Styles ===================== */
@media (max-width: 1024px) {
    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Hide nav links by default */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 12px 12px;
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    /* Dropdowns on mobile */
    .nav-links li.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding: 0;
        background: #f8f9fb;
    }

    .nav-links li.dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-links li.dropdown .dropdown-menu li a {
        padding: 10px 0;
        text-align: center;
        color: #012fa3;
    }

    /* Make contact button full width */
    .nav-links li a.btn-contact {
        width: 90%;
        margin: 10px auto;
        text-align: center;
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    /* Adjust dropdown text alignment */
    .nav-links li.dropdown .dropdown-menu li a {
        padding: 10px 0;
        text-align: center;
    }
}


/* ---------------- Body & Base ---------------- */

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0419dc;
  margin-bottom: 15px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ---------------- CTA Sections ---------------- */
.section-light, .section-highlight {
  padding: 60px 20px;
  text-align: center;
}

.section-light {
  background-color: #f7f7f7;
  color: #333;
}

.section-highlight {
  background-color: #0b3954;
  color: #fff;
}

.section-light h2, .section-highlight h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.lead-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background-color: #0073e6;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #005bb5;
}

/* ---------------- Job Page Layout ---------------- */
.job-container {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 20px;
}

/* ---------------- Sidebar Filters ---------------- */
.job-filters {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1 1 180px; /* flexible width but consistent */
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0419dc;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #0419dc;
    box-shadow: 0 0 0 2px rgba(4,25,220,0.15);
    outline: none;
}

.filters-form .apply-btn {
    background: #0419dc;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    align-self: flex-end;
    transition: background 0.3s ease;
}

.filters-form .apply-btn:hover {
    background: #012fa3;
}

/* Responsive Filters */
@media(max-width: 900px){
    .filters-form {
        flex-direction: column;
    }
    .filter-group {
        flex: 1 1 100%;
    }
    .filters-form .apply-btn {
        width: 100%;
    }
}


/* ---------------- Jobs Section ---------------- */
.jobs-section {
  flex: 1;
}

.job-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.job-controls .switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch input {
  display: none;
}

.switch span.slider {
  width: 40px;
  height: 20px;
  background-color: #ccc;
  display: inline-block;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.switch span.slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background-color: #0419dc;
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.job-controls select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* ---------------- Job Cards ---------------- */
.job-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.job-title {
  color: #0419dc;
  font-size: 1.2rem;
  font-weight: 600;
}

.job-status.open { 
  background: #27ae60; 
  color: #fff; 
  padding: 5px 14px; 
  border-radius: 20px; 
  font-size: 0.9rem;
}
.job-status.closed { 
  background: #e74c3c; 
  color: #fff; 
  padding: 5px 14px; 
  border-radius: 20px; 
  font-size: 0.9rem;
}

.job-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.job-description {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-readmore {
  background: #012444;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-readmore:hover { background: #021b80; }

/* ---------------- Responsive ---------------- */
@media(max-width: 1000px) {
  .job-container { flex-direction: column; }
  .filter-sidebar { width: 100%; position: relative; top: 0; margin-bottom: 30px; }
  .job-controls { flex-direction: column; align-items: flex-start; }
}

/* CTA Duo Section */
.cta-duo {
  padding: 60px 20px;
  background: #f9fafc; /* Light background */
}

.cta-container {
  display: flex;
  justify-content: space-between; /* Left and Right boxes */
  max-width: 1300px;
  margin: 0 auto;
  gap: 30px;
}

.cta-box {
  flex: 0 0 48%; /* Almost half width */
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.cta-box h2 {
  font-size: 1.8rem;
  color: #0419dc;
  margin-bottom: 15px;
}

.cta-box .lead-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta-box .btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  background: #0419dc;
  color: #fff;
  transition: background 0.3s ease;
}

.cta-box .btn:hover {
  background: #012fa3;
}

/* Responsive */
@media(max-width: 900px) {
  .cta-container {
    flex-direction: column;
  }
  .cta-box {
    flex: 1 1 100%;
  }
}

/* Job Listings Section */
.job-listings {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Individual Job Card */
.job-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #0419dc; /* accent border */
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Header */
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0419dc;
}

.job-status.open {
    background: #27ae60;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.job-status.closed {
    background: #e74c3c;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Meta Section */
.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.job-card-meta div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Description */
.job-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

/* Footer */
.job-card-footer {
    text-align: right;
}

.btn-readmore {
    background: #0419dc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.btn-readmore:hover {
    background: #012fa3;
}

/* Responsive */
@media(max-width: 900px) {
    .job-card-meta {
        flex-direction: column;
        gap: 8px;
    }
    .job-card-footer {
        text-align: center;
    }
}

.job-layout {
    display: flex;
    gap: 30px;
    max-width: 1500px;
    margin: 30px auto;
}

.job-sidebar {
    flex: 0 0 35%;
    background: #f4f6f8;
    border-radius: 12px;
    padding: 20px;
    max-height: 1100px;
    overflow-y: auto;
}

.job-brief {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-brief:hover {
    background: #e8f0fe;
    border-color: #0419dc;
}

.job-details {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.job-details .full-description {
    margin-top: 15px;
    line-height: 1.6;
}

.job-details .btn {
    margin-top: 20px;
}

/* Job controls container: center the items */
.job-controls {
    display: flex;
    justify-content: center; /* centers all children horizontally */
    align-items: center;
    gap: 40px; /* space between toggle and sort */
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    margin-bottom: 25px;
}

/* Job Status Box */
.job-status-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    width: fit-content;
}

/* Open / Closed colors */
.status-badge.open { background-color: #28a745; }    /* Green for Open */
.status-badge.closed { background-color: #dc3545; }  /* Red for Closed */

/* Closing soon */
.closing-soon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: #ffc107;  /* Yellow for urgency */
    font-weight: 500;
    font-size: 0.8rem;
    color: #212529;
}


/* Optional: adjust individual spacing inside control-item */
.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #0419dc;
}

/* Remove margin-left from switch */
.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: 0.4s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 2px; bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #0419dc;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

/* Sort dropdown styling */
.sort-container select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #0419dc;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.3s ease;
  position: relative;
}

.sort-container select:focus {
  outline: none;
  border-color: #0419dc;
  box-shadow: 0 0 0 3px rgba(4,25,220,0.15);
}

/* Add custom arrow for dropdown */
.sort-container select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230419dc' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");}

  .job-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Base Button Style */
.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* Apply Button */
.btn-apply {
    background-color: #0419dc;
    color: #fff;
}

.btn-apply:hover {
    background-color: #012fa3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(4,25,220,0.3);
}

/* Talk to Agency Button */
.btn-agency {
    background-color: #fff;
    color: #0419dc;
    border: 2px solid #0419dc;
}

.btn-agency:hover {
    background-color: #0419dc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(4,25,220,0.2);
}


/* ===================== FOOTER STARTS ===================== */
footer {
  background: #000006f1;
  color: white;
  padding: 50px 20px 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

/* Force 5 columns on desktops */
@media (min-width: 1400px) {
  .footer-container {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1600px;
  }
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #00aaff;
  font-family: 'Poppins', sans-serif;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.footer-column ul li a:hover {
  color: #fff;
}

/* Social icons */
.social-icons a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.social-icons a:hover {
  color: #00aaff;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.footer-bottom ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Poppins', sans-serif;
}

.footer-bottom ul li a {
  color: #bbb;
  font-size: 0.85rem;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.footer-bottom ul li a:hover {
  color: #fff;
}

/* Contact Us column tweaks */
.footer-column p {
  display: flex;
  align-items: center;
  margin: 8px 0;
  font-family: 'Poppins', sans-serif;
}

.footer-column p i {
  margin-right: 10px;
  font-size: 16px;
  color: #fbfafc; 
}

.footer-column p  {
  margin-right: 10px;
  font-size: 1.6;
  color: #fff; 
  font-family: 'Poppins' sans-serif;
}

/* Social icons inside Contact Us */
.footer-column .social-icons {
  margin-top: 15px;
  display: flex;
  gap: 12px;
}

.footer-column .social-icons a {
  width: 32px;
  height: 32px;
  background: #222;
  color: #fafafc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.footer-column .social-icons a:hover {
  background: #fbfbfd;
  color: #111;
}

/* ===================== FOOTER ENDS ===================== */
