/* === home.css === */

/*----------------------------------------*
 * Home Page Specific Styles
 * This file contains styles unique to the homepage.
 * Global styles are in base.css.
\*----------------------------------------*/

/*----------------------------------------*
 * Hero Section - FIXED VERSION
\*----------------------------------------*/
#hero-section {
    /* Base styles for desktop */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url('../img/hero-image-curved.png') center/cover no-repeat;
    padding: 130px;
    position: relative;
    text-align: left;
}

#hero-section h1 {
    /* Use your brand colors */
    color: var(--light-color);
    margin-top: 5rem;
    margin-bottom: 1rem;
    
    /* New styling for the immersive effect */
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Subtle glowing text */
    letter-spacing: 2px; /* Add some spacing for a modern look */
    
    /* Animation properties */
    animation: text-pulse 2s ease-in-out infinite;
}

@keyframes text-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}



#hero-section {
  position: relative;
  overflow: hidden;
}

#logo-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind content */
}

#hero-section .container {
  position: relative;
  z-index: 2; /* content above particles */
}


#constellation-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind content */
}
#hero-section {
  position: relative;
  overflow: hidden;
}


.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero-image {
    flex: 1;
    max-width: 50%;
    text-align: right; /* To align the image to the right on desktop */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

#hero-section h1 {
    color: var(--light-color);
    margin-top: 5rem;
    margin-bottom: 1rem;
}
#hero-section p {
    color: var(--light-color);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
  /* 1) hide the standalone blob figure on phones */
  #hero-section .col-sm-6.order-sm-2 {
    display: none;
  }

  /* 2) make the form a positioned container */
  #hero-section .job-search-form {
    position: relative;
    z-index: 1;
  }

  /* 3) inject the blob behind the form via ::before */
  #hero-section .job-search-form::before {
    content: "";
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 200%;
    background: url("/static/img/banner-blob-img.png") no-repeat center center/contain;
    opacity: 0.30;
    pointer-events: none;
    z-index: -1;
  }

  #hero-section h1 {
    margin-top: 7rem !important;
    font-size: 2.4rem !important;
  }

  #hero-section {
    padding-top: 0 !important;
  }

  .job-search-form {
    margin-top: 0 !important;
  }
  
}




/*----------------------------------------*
 * 2) Job Search Form
 * Optimized for modern layouts using Flexbox.
\*----------------------------------------*/
/* === Advanced Job Search Form === */
/* Note: The HTML remains the same as in the previous response. */

/* Base form styling */
.job-search-form.advanced {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding: 1.5rem;
  /* Using your light color for a clean, professional look */
  background: #1414a0;
  border: 1px solid var(--border-color-subtle);
  border-radius: 60px;
  /* Adapting the shadow for a more polished, less "futuristic" feel, but still modern */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.job-search-form.advanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Container for the two inputs */
.job-search-form.advanced .inputs {
  display: flex;
  flex: 1;
  gap: 1rem;
}

/* Each pill-shaped input group */
.job-search-form.advanced .input-group {
  position: relative;
  flex: 1;
  background: var(--light-color);
  border: 1px solid var(--border-color-subtle);
  border-radius: 40px;
  transition: all 0.3s ease;
}

/* Hover/Focus effect for the input group */
.job-search-form.advanced .input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color-light); /* Using your primary-color-light for a subtle glow */
}

/* Icon on the left of each input */
.job-search-form.advanced .input-group .icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  /* Using your icon color variable */
  color: var(--icon-color);
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 2;
  transition: color 0.3s ease;
}

/* The text input itself */
.job-search-form.advanced .form-control {
  width: 100%;
  padding: 1rem 1.5rem 1rem 4rem;
  border: none;
  background: transparent;
  /* Using your font color and family variables */
  color: var(--font-color);
  font-size: var(--font-size);
  font-family: var(--font-family);
  font-weight: var(--font-weight);
}

.job-search-form.advanced .form-control:focus {
  outline: none;
}

/* Placeholder styling */
.job-search-form.advanced .form-control::placeholder {
  color: #757575; /* A slightly darker gray for better readability on light backgrounds */
  transition: color 0.3s ease;
}

.job-search-form.advanced .form-control:focus::placeholder {
  color: transparent;
}

/* Voice button inside the second input */
.job-search-form.advanced .voice-btn {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.job-search-form.advanced .voice-btn:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* The search button */
.job-search-form.advanced .search-btn {
  margin-left: 1.5rem;
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.job-search-form.advanced .search-btn:hover {
  background: var(--primary-color); /* Keep the same primary color */
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
/* Responsive adjustments */
@media (max-width: 767px) {
  .job-search-form.advanced {
    flex-direction: column;
    padding: 1rem;
    border-radius: 30px;
  }

  .job-search-form.advanced .inputs {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .job-search-form.advanced .search-btn {
    margin: 1rem auto 0;
    width: 60px;
    height: 60px;
  }

  .job-search-form.advanced .input-group .icon {
    left: 1rem;
    font-size: 1.2rem;
  }

  .job-search-form.advanced .form-control {
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
    font-size: 1rem;
  }
}


/*----------------------------------------*
 * 3) Popular Categories - Revised for structured container and left alignment
\*----------------------------------------*/
/*----------------------------------------*
 * 3) Popular Categories - Revised for structured container and left alignment
\*----------------------------------------*/
.popular-categories-container {
  /* This is the new structured rectangular area */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 800px;
}

.popular-categories {
    /* The list itself is now a flex container for left alignment */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Aligns items to the left */
    gap: 0.5rem;
    padding: 0;
    list-style: none;
    margin: 0;
}

.popular-categories li {
    padding: 0;
    margin: 0;
}

.popular-categories li a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.popular-categories li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Remove the old separator styling */
.popular-categories li:after,
.popular-categories li:last-child:after {
    content: none;
}
/*----------------------------------------*
 * 4) Employers Section
\*----------------------------------------*/
#employers-section {
    background-color: var(--primary-color-light);
}
.employers-row figure {
    min-height: 120px;
    margin-bottom: 0; /* `!important` is often a code smell, let's avoid it here */
}

/*----------------------------------------*
 * 5a) Categories
\*----------------------------------------*/


.job-categories .card {
    /* Base styles for the cards */
    background-color: var(--light-color);
    border: 1px solid var(--border-color-subtle);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* This is crucial for the pseudo-element */
    overflow: hidden; /* Ensures the accent bar stays within the rounded corners */
}

.job-categories .card::after {
    /* The new accent bar on the right */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px; /* Width of the accent bar */
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(100%); /* Initially hide the bar to the right */
    transition: transform 0.3s ease; /* Animate the bar into view */
}

.job-categories .card:hover {
    /* Hover effects to grab attention */
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.job-categories .card:hover::after {
    transform: translateX(0); /* The accent bar slides in from the right on hover */
}

/* Card content styling */
.job-categories .card h5 {
    color: var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.job-categories .card p {
    color: #757575;
    margin: 0;
}

/* Icon styling */
.job-categories .card i {
    font-size: 40px;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}
.job-categories .card:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/*----------------------------------------*
 * 5b) Industries
\*----------------------------------------*/

#industries-section {
    background-color: var(--light-color);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card.bg-blue {
    /* Base styles for the industries card */
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card.bg-blue:hover {
    border-color: var(--primary-color);
}

.card.bg-blue .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card.bg-blue .card-title {
    margin: 0;
    font-weight: 700;
}

.card.bg-blue .job-count {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.card.bg-blue .card-body {
    padding: 0;
}

.card.bg-blue .card-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.card.bg-blue .card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.card-link:hover .card-footer {
    transform: translateX(5px);
}

.card-link .card-footer i {
    font-size: 1.25rem;
    color: var(--light-color);
    transition: transform 0.3s ease;
}

.card-link:hover .card-footer i {
    transform: translateX(5px);
}

/*----------------------------------------*
 * 6) Featured Jobs
\*----------------------------------------*/
#featured-section {
    /* Remove background-image declaration */
    background-color: var(--primary-color);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 200px 5%;
}

#featured-section[data-bg-loaded="true"] {
    background-image: var(--section-bg-url);
}


.featured-job-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.featured-job-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.featured-job-card {
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

/* Card Header */
.featured-job-card .card-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1.5rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
    overflow: hidden;
}

.featured-job-card .card-header .industry {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.5rem;
}

.featured-job-card .card-header .industry i {
    color: var(--light-color);
    margin-right: 8px;
}

.featured-job-card .card-header h5 {
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 0.25rem;
}

.featured-job-card .card-header .company {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

/* Card Body */
.featured-job-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.featured-job-card .job-meta {
    padding: 0;
    list-style: none;
    margin: 0;
}

.featured-job-card .job-meta li {
    font-size: 14px;
    color: var(--font-color);
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.featured-job-card .job-meta li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1rem;
}

/* Card Footer */
.featured-job-card .card-footer {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color-subtle);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.featured-job-card .btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.featured-job-card .btn-primary:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .featured-job-card .card-header h5 {
        font-size: 1.25rem;
    }
    .featured-job-card .card-header {
        padding: 1rem;
    }
    .featured-job-card .card-body {
        padding: 1rem;
    }
    .featured-job-card .card-footer {
        padding: 1rem;
    }
}


.section-divider {
    width: 100%;
    height: 15px; /* adjust thickness */
    background-color: #010080; /* your navy brand color */
    margin: 60px 0; /* spacing between sections */
}


/*----------------------------------------*
 * 7) Process Section
\*----------------------------------------*/
#process-section {
    background-color: transparent;
    background-image: var(--section-bg-url);
    background-repeat: no-repeat;
    background-size: 100% auto; /* ✅ keeps both curves fully visible horizontally */
    background-position: center -60px; /* ✅ pulls the top curve DOWN into view */
    padding: 160px 5% 140px; /* give generous breathing space for top + bottom curves */
    position: relative;
    overflow: visible;
    z-index: 1;
}




/* Mobile optimization - smaller background on mobile */
@media (max-width: 767px) {
    #hero-section,
    #featured-section,
    #process-section {
        background-size: auto 100%;
        background-position: center top;
    }
    
    #process-section {
        background-size: 325% auto;
        background-position: top center;
    }
}

.process-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.process-list li {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    /* New Flexbox properties */
    display: flex; /* Makes the li a flex container */
    align-items: center; /* Vertically centers the items within the li */
}
.process-list li i {
    font-size: 24px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    margin-right: 10px;
    display: inline-block;
    text-align: center;
}


#process-section model-viewer {
  width: 100%;
  height: 100%;
  transform: scale(1.3); /* ✅ Zoom in on desktop */
  transform-origin: center;
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  #process-section model-viewer {
    transform: scale(1.9);        /* visually zoom in */
    transform-origin: center center; /* zoom from center, not top or bottom */
    position: relative;           /* keeps it in the same place */
    z-index: 2;                   /* prevents clipping */
  }
}

@media (max-width: 767px) {
    #phoneModel {
        pointer-events: none;
    }
}


/*----------------------------------------*
 * 8) Get Started Blocks
\*----------------------------------------*/
.get-started-block {
    padding: 5%;
    text-align: center;
    color: #ffffff;
}

.register-block {
    background: linear-gradient(to right, #010080, #010080, #1A2E9B 95%);
}
.job-post-block {
    background: linear-gradient(to left, #010080, #010080, #1A2E9B 95%);
}

/* Force text white on both sides */
.register-block h2,
.register-block p,
.job-post-block h2,
.job-post-block p {
    color: #ffffff !important;
}

/* Icons */
.register-block i,
.job-post-block i {
    color: #ffffff;
    font-size: 100px;
}

/* Small icons inside links */
.get-started-block a i {
    font-size: 16px;
}



/*----------------------------------------*
 * 9) Testimonials
\*----------------------------------------*/
#testimonials-section {}
.testimonial {
    background-color: var(--primary-color);
    margin-right: 15px;
    padding: 1rem;
}
.testimonial p,
.testimonial h4 {
    color: var(--light-color);
}
.testimonial .bi {
    font-size: 24px;
    color: var(--light-color);
}
.slick-next::before, .slick-prev::before {
    color: var(--primary-color);
}
.slick-prev, .slick-next {
    position: absolute;
    bottom: 50px;
}
.slick-prev {
    left: -40px;
}
.slick-next {
    right: -20px;
}
.slick-arrow:before {
    font-size: 30px;
}

@media (max-width: 576px) {
  /* Override Slick’s hide-on-disabled behavior */
  .slick-prev.slick-disabled,
  .slick-next.slick-disabled {
    display: block !important;
    visibility: visible !important;
    opacity: 0.6 !important;    /* you can tweak the faded look */
    pointer-events: none;       /* prevent clicks when “disabled” */
  }

  /* Rest of your arrow styling */
  .slick-prev,
  .slick-next {
    display: block !important;
  }
  .slick-prev {
    left: 8px !important;
    right: auto !important;
  }
  .slick-next {
    right: 8px !important;
    left: auto !important;
  }
  .slick-arrow:before {
    font-size: 1.5rem !important;
    color: rgba(1, 0, 128, 0.95) !important;
  }

  /* Tighter top padding so it pulls up under the heading */
  #testimonials-section {
    padding-top: 1rem !important;
    padding-bottom: 1rem;
  }
  .job-categories .card i{
    display: block;
  }
}

/*----------------------------------------*
 * 10) FAQs - Enhanced
\*----------------------------------------*/
/*----------------------------------------*
 * 10) FAQs - Enhanced
\*----------------------------------------*/
#faqs-section {
    padding: 70px 0;
}
#jobNavAccordion {
    border: none;
}
#jobNavAccordion .accordion-item {
    background-color: var(--secondary-color-light);
    border: 1px solid var(--border-color-subtle);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
#jobNavAccordion .accordion-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
#jobNavAccordion .accordion-button {
    font-weight: 600;
    color: var(--secondary-color);
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
}
#jobNavAccordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}
#jobNavAccordion .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
#jobNavAccordion .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
    content: "";
}
#jobNavAccordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}
#jobNavAccordion .accordion-body {
    padding: 1.5rem;
    color: var(--secondary-color);
    background-color: var(--primary-color); /* Added dark background for active state */
}

/* This new rule ensures text is white inside the active accordion body */
#jobNavAccordion .accordion-body p {
    color: var(--light-color); 
}


/*----------------------------------------*
 * 11) Responsive Media Queries (Homepage only)
\*----------------------------------------*/

@media(max-width: 1500px){
    #site-header .container-fluid{
        width: 98%;
        padding: 0;
        margin: 0 auto;
    }
    body.homepage #hero-section{
        padding: 130px 35px;
    }
    body.homepage #hero-section .container{
        max-width: 100%;
        width: 100%;
        flex: 0 0 100%;
    }
}
@media (max-width: 1199px) {
    #industries-section .card p,
    .features-list li,
    .process-list li { font-size: 14px; }
    .featured-job-card h5 { font-size: 18px; }
}
@media (max-width: 991px) {
    #hero-section h1 { font-size: 40px; }
    .row.featured-jobs .col-md-3,
    .job-cards-row .col {
        max-width: 50%;
        flex: 0 0 50%;
    }
}
@media (max-width: 767px) {
    #hero-section {
        padding: 100px 5% 50px;
        text-align: center;
    }
    #hero-section h1 { font-size: 2.5rem; }
    #hero-section p { font-size: 1rem; }
    .job-search-form { max-width: 100%; }
    .job-search-form ul.search-bar { flex-direction: column; } /* Changed to column for better mobile stacking */
    .job-search-form ul.search-bar li + li { border-left: none; border-top: 1px solid var(--primary-color-light); } /* Correct border for column layout */

    .row.featured-jobs .col-md-3,
    #industries-section .col-md-4,
    #process-section .col-sm-6 {
        max-width: 100%;
        flex: 0 0 100%;
    }

}

/* Make all category-grid icons use the primary color */
.job-categories .card i,
.job-categories .card .bi {
    color: var(--primary-color);
}

/*----------------------------------------*
 * Optimized Scrolling Logos
 * This is an infinite horizontal scrolling effect.
\*----------------------------------------*/

/* The outer container to hide overflow and create a mask */
.scrolling-logos-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Optional: Add a subtle gradient mask at the edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* The track that will be animated */
.scrolling-logos-track {
    display: flex;
    gap: 2rem; /* Spacing between the logos */
    animation: scroll 30s linear infinite; /* Customize speed here */
    width: max-content;
}

/* The inner logo containers */
.scrolling-logos-inner {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
}

/* The animation keyframes */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        /* This is the magic! It translates the logos to the left by 50% */
        transform: translateX(-50%);
    }
}

/* Pause the animation on hover for better user experience */
.scrolling-logos-container:hover .scrolling-logos-track {
    animation-play-state: paused;
}

/* Responsive adjustments for smaller screens */
/* General style for category icons - applied outside media queries */
.job-categories .card i,
.job-categories .card .bi {
    color: var(--primary-color);
}

@media (max-width: 1199px) {
    #industries-section .card p,
    .features-list li,
    .process-list li {
        font-size: 14px;
    }
    .featured-job-card h5 {
        font-size: 18px;
    }
    .job-search-form.advanced{
        padding: 0.85rem;
    }
}

@media (max-width: 991px) {
    #hero-section h1 {
        font-size: 40px;
    }
    .row.featured-jobs .col-md-3,
    .job-cards-row .col {
        max-width: 50%;
        flex: 0 0 50%;
    }
}

@media (max-width: 767px) {
    /* Adjustments for the main search form */
    .job-search-form.advanced {
        flex-direction: column; /* Stacks inputs and button vertically */
        padding: 1.25rem; /* Slightly more padding for better touch interaction */
        border-radius: 40px; /* Slightly larger border-radius for a softer look */
        margin: 2rem auto; /* Adjust margin for better mobile spacing */
    }

    .job-search-form.advanced .inputs {
        flex-direction: column; /* Ensures inputs stack vertically */
        gap: 1rem; /* Consistent gap between stacked inputs */
        width: 100%; /* Occupy full width of the form */
    }

    .job-search-form.advanced .input-group {
        border-radius: 30px; /* Slightly smaller border-radius for individual inputs */
    }

    .job-search-form.advanced .input-group .icon {
        left: 1rem; /* Adjust icon position for smaller screens */
        font-size: 1.3rem; /* Slightly larger icon for better visibility */
    }

    .job-search-form.advanced .form-control {
        padding: 0.8rem 1.5rem 0.8rem 3.2rem; /* Adjusted padding to accommodate the icon and text */
        font-size: 1.05rem; /* Slightly larger font size for improved readability */
    }

    .job-search-form.advanced .voice-btn {
        right: 1rem; /* Adjust voice button position */
        font-size: 1.3rem; /* Slightly larger voice button for easier tapping */
    }

    .job-search-form.advanced .search-btn {
        margin: 1.5rem auto 0; /* More margin on top for clear separation from inputs */
        width: 65px; /* Slightly larger button for easier tapping */
        height: 65px; /* Slightly larger button for easier tapping */
        font-size: 1.6rem; /* Adjust icon size within the button */
    }

    /* General mobile adjustments for other sections */
    #hero-section {
        padding: 100px 5% 50px; /* Adjusted padding for hero section */
        text-align: center; /* Center align the hero section content */
    }
    h1 {
        font-size: 2.5rem; /* Adjust hero title font size for mobile */
    }

    #hero-section p {
        font-size: 1.1rem; /* Adjust hero paragraph font size (kept 1.1rem for readability) */
    }

    /* New rule for general .job-search-form (if applicable to other forms) */
    .job-search-form {
        max-width: 100%;
    }
    .job-search-form ul.search-bar {
        flex-direction: column; /* Changed to column for better mobile stacking */
    }
    .job-search-form ul.search-bar li + li {
        border-left: none;
        border-top: 1px solid var(--primary-color-light); /* Correct border for column layout */
    }

    .popular-categories {
        text-align: center; /* Center align the popular categories list */
    }

    .popular-categories li {
        display: inline-block; /* Make categories flow horizontally */
        margin: 0; /* Add some space between category items */
    }

    .popular-categories li a {
        padding: 0.5rem 0.8rem; /* Adjust padding for category links */
        font-size: 0.9rem; /* Slightly smaller font for category links */
        border-radius: 20px; /* Rounded corners for category tags */
        white-space: nowrap; /* Prevent text from wrapping within a tag */
    }
    .slick-list{
        max-width: 80%;
        margin:0 auto;
    }
    .slick-list .testimonial{
        margin:0;
    }
    .slick-prev, .slick-next{
        bottom: 70px;
        top:unset;
    }
    .slick-prev{
        left: 20px;
    }
    .slick-next{
        right: 20px;
    }
    .scrolling-logos-container {
        overflow: hidden; /* Ensures smooth horizontal scrolling for logos */
        /* Adjust the mask for smaller screens */
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
    .scrolling-logos-track {
        gap: 1rem; /* Added gap for spacing between logos */
        animation-duration: 20s; /* Make the animation faster on mobile */
        display: flex; /* Keeps logos in a single row for the scrolling effect */
    }
    .scrolling-logos-inner {
        gap: 1rem; /* Added gap for spacing between logos */
    }
    .scrolling-logos-inner .col {
        flex-shrink: 0; /* Prevents logos from shrinking on smaller screens */
        width: 120px; /* Fixed width for each logo on mobile */
    }

    #categories-section .card {
        padding: 1rem; /* Adjust category card padding */
    }

    /* Optimized styles for the Featured Jobs section on mobile */
    #featured-section {
        padding: 100px 1rem; /* Reduced vertical padding and added horizontal padding for mobile */
        background-size: auto 100%; /* Adjust background image to cover height, allow width to auto-scale */
        background-position: center top; /* Position background to top center */
    }

    .featured-job-card .card-header h5 {
        font-size: 1.3rem; /* Slightly larger font for job titles in cards */
    }
    .featured-job-card .card-header {
        padding: 1.2rem; /* Increased padding for better touch targets */
    }
    .featured-job-card .card-body {
        padding: 1.2rem; /* Increased padding for better content spacing */
    }
    .featured-job-card .job-meta li {
        font-size: 0.95rem; /* Slightly larger font for job meta info */
    }
    .featured-job-card .job-meta li i {
        font-size: 0.9rem; /* Adjust icon size in job meta */
    }
    .featured-job-card .card-footer {
        padding: 1.2rem; /* Increased padding for the footer button */
    }
    .featured-job-card .btn-primary {
        padding: 0.9rem 1rem; /* Larger padding for the "View Job" button */
        font-size: 1rem; /* Ensures button text is readable */
    }

    
    /* Column stacking for various sections on mobile */
    .row.featured-jobs .col-md-3,
    #industries-section .col-md-4,
    #process-section .col-sm-6 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    #testimonials-section .col-sm-5,
    #testimonials-section .col-sm-7 {
        width: 100%; /* Ensures testimonial columns stack vertically */
        text-align: center; /* Center align text in testimonial section */
    }

    #testimonials-section .testimonial-slider {
        margin-top: 2rem; /* Adds space between text and the testimonial slider */
    }


    /* Text column stacks full width under the image */

    @media (max-width: 767px) {
    #process-section h2 {
        margin-top: 1rem !important;
        padding-top: 0 !important;
    }
      #hero-section .job-search-form::before {
        content: "";
        position: absolute;
        top: -25%;
        left: 50%;
        transform: translateX(-50%);
        width: 150%;
        height: 200%;
        background: url("/static/img/banner-blob-img.png") no-repeat center center/contain;
        opacity: 0.30;
        pointer-events: none;
        z-index: -1;
      }
      #hero-section .col-sm-6.order-sm-2{
        display: none;
      }
      #hero-section .col-sm-6.order-sm-1{
        max-width: 100%;
        flex: 0 0 100%;
      }
}

    #process-section .col-sm-5,
    #process-section .offset-sm-1 {
        width: 100%;      
        margin-left: 0;   
        text-align: center; /* centers heading/paragraph/button */
        padding-top: 1rem !important;
    }

    /* 3D mobile mockup */
        #process-section .process-img {
        max-width: 80%;
        margin: 0 auto 0; /* no bottom gap */
    }



    /* List beneath the heading */
    #process-section .process-list {
        margin-top: 0.5rem;    /* tighten spacing from image/heading */
        text-align: left;      /* bullets left aligned */
        padding-left: 1rem;    /* small inset so icons/text don’t hit screen edge */
    }

    /* Register/job-post blocks */
    #register-section .get-started-block {
        padding: 2rem 1rem;
    }
}

@media (max-width: 767px) {
    #process-section {
        background-size: 325% auto;   /* makes the wave 2x larger */
        background-position: top center; 
    }
}



.scrolling-logos-track img {
    /* Set a maximum width for the images to scale them down */
    max-width: 120px; /* Adjust this value as needed */
    height: 60px; /* Set a consistent height for all logos */
    object-fit: contain; /* Prevents logos from being stretched or distorted */
    transition: transform 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.scrolling-logos-track img:hover {
    transform: scale(1.1); /* Subtle hover effect */
    filter: grayscale(0%);
    opacity: 1;
}

/* Optional: Constrain the columns if the gaps are too big */
.scrolling-logos-inner > .col {
    flex-basis: 150px;
    flex-grow: 0;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    /* Top block: gradient from top → center */
    .register-block {
        background: linear-gradient(to bottom, #010080, #010080, #2F55D4 90%);
    }

    /* Bottom block: gradient from bottom → center */
    .job-post-block {
        background: linear-gradient(to top, #010080, #010080, #2F55D4 90%);
    }

    /* Make sure text/icons stay white */
    .register-block h2,
    .register-block p,
    .job-post-block h2,
    .job-post-block p,
    .register-block i,
    .job-post-block i {
        color: #ffffff !important;
    }
}


/* Orbital Nodes */
.orbit-wrap{
  position: relative;
  width: clamp(220px, 55%, 420px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.orbit-canvas{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;            /* optional – remove if you want a circle */
  background: #f3f6f8;            /* matches your light hero bg */
  /* box-shadow looks nice under the hero image */
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* dark/gradient hero? uncomment to make the canvas transparent
.orbit-canvas{ background: transparent; box-shadow:none; }
*/


/* hero orbit layering */
.has-orbit { position: relative; }
.has-orbit > .orbit-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; background: transparent;
}
/* ensure text sits above */
.has-orbit > *:not(canvas) { position: relative; z-index: 1; }


.job-search-form.advanced .location-group {
  --icon-color: #800020;
}

/* =====================================================
   CRITICAL FIX: Dropdown z-index on homepage
   Canvas elements are covering the dropdown menu
   ===================================================== */

/* =====================================================
   DROPDOWN FIX: Ensure header stays above canvas
   ===================================================== */
body.homepage #site-header {
  position: fixed;
  z-index: 10000 !important;
}

body.homepage .navbar-nav .dropdown-menu {
  z-index: 10001 !important;
}

body.homepage #hero-section {
  position: relative;
  z-index: 1;
}

body.homepage #constellation-bg {
  position: absolute;
  z-index: 0 !important;
}

body.homepage #hero-section .container {
  position: relative;
  z-index: 2;
}




@media (max-width: 767px) {
    [data-aos] {
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
    }

    #navbarToggle ul li{
        width: 100%;
        text-align: center;
    }
    .navbar-collapse .nav-link{
        display: block !important;
        text-align: center !important;
    }
    .d-inline.logout-form,
    .navbar-collapse .logout-form .btn{
        display: inline-block !important;
        width: auto;
    }
}

/*====Added Media Queries====*/
@media(max-width: 480px){
    body.homepage #hero-section{
        padding: 130px 10px;
    }
    .popular-categories li a{
        padding: 3px 5px;
        font-size: 12px;
    }
    .process-list li i{
        display: block;
        margin: 0 auto;
    }
    .process-list li{
        text-align: center;
    }
    .card.bg-blue .job-count{
        padding: 5px;
        width: 80px;
        text-align: center;
    }
    .slick-prev, .slick-next{
        display: none !important;
    }
}