/* Global Styles */
body {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Josefin Sans", sans-serif;
}

input::placeholder,
.form-control::placeholder {
  color: var(--text-primary-color);
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.object-fit-cover {
  object-fit: cover;
}

.min-vh-100 {
  min-height: 100vh;
}

/* Utility Classes */
.appearance-none {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Button Styles */
.btn {
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #3e405b;
  border-color: #3e405b;
}

.btn-primary:hover {
  background-color: #333349;
  border-color: #333349;
}

/* Navbar Styles */
.navbar {
  box-shadow: none;
  position: absolute;
  width: 100%;
  z-index: 10;
  transition: all 0.3s ease;
}

.navbar .nav-link {
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover {
  color: #6fc6aa !important;
  transform: translateY(-2px);
}

.navbar .nav-link.active {
  color: #6fc6aa !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: white !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem;
  transition: all 0.3s;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(62, 64, 91, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-nav .nav-item {
    margin: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .ms-auto {
    margin: 1rem auto !important;
    display: flex;
    justify-content: center;
  }

  .navbar-dark .navbar-toggler {
    background-color: rgba(62, 64, 91, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar.show-bg {
    background-color: rgba(62, 64, 91, 0.95) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Make sure the mobile navbar has background if toggled */
.navbar.bg-visible {
  background-color: rgba(62, 64, 91, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for better spacing on mobile */
@media (max-width: 767px) {
  .hero-section {
    padding-top: 80px;
  }

  .search-container {
    margin-top: 1.5rem;
  }

  .form-control,
  .form-select,
  .btn-primary-dark {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .search-container .row {
    flex-direction: column;
  }

  .search-container .col-12 {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .search-container .col-12:last-child {
    border-bottom: none;
  }

  .hero-title {
    font-size: 2rem;
    margin-top: 2rem;
  }

  .navbar-brand img {
    height: 50px;
  }

  .btn-upload-resume {
    width: 100%;
  }
}

/* Form Controls */
.form-control {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: #6fc6aa;
  box-shadow: 0 0 0 0.2rem rgba(111, 198, 170, 0.25);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px; /* Add space for the navbar */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero-bg-container {
  z-index: 0;
}

.hero-bg-image {
  object-fit: cover;
}

.z-index-1 {
  z-index: 1;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
}

.text-accent {
  color: #6fc6aa;
}

.bg-accent {
  background-color: #6fc6aa;
}

.bg-primary-dark {
  background-color: #3e405b;
}

.btn-primary-dark {
  background-color: #3e405b;
  color: white;
  border: none;
}

.btn-primary-dark:hover {
  background-color: #333349;
}

.bg-white-transparent {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.border-white-20 {
  border-color: rgba(255, 255, 255, 0.2);
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.8);
}

.max-width-xl {
  max-width: 1140px;
}

/* Form Styles */
.form-control::placeholder,
.form-select {
  color: rgba(255, 255, 255, 0.8);
}

.hero-section .form-control:focus,
.hero-section .form-select:focus {
  box-shadow: none;
  background-color: transparent;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-section .form-control,
.hero-section .form-select {
  color: white !important;
}

.hero-section .form-control:hover,
.hero-section .form-select:hover {
  color: white !important;
}

.hero-section .form-control::placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hero-section .form-select option {
  background-color: #3e405b;  /* Match the primary dark color */
  color: white;
}

/* Ensure the select element itself maintains its styling */
.hero-section .form-select {
  color: white;
  background-color: transparent;
}

/* Category Styles */
.categories-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.min-width-200 {
  min-width: 200px;
}

@media (min-width: 576px) {
  .min-width-200 {
    min-width: 250px;
  }
}

.bg-gradient-accent {
  background: linear-gradient(to right, #6fc6aa, transparent);
  opacity: 0.7;
}

/* Navigation Button Styles */
.category-nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.category-nav-btn:hover {
  background-color: #f5f5f5;
}

/* Upload Resume Button */
.navbar .btn-upload-resume,
.navbar-dark .btn-upload-resume,
label.btn-upload-resume,
.nav-link.btn-upload-resume {
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 1.2rem 3rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  background-color: #333349 !important;
  border: none !important;
  color: white !important;
  margin-bottom: 0 !important;
}

.navbar .btn-upload-resume:hover,
.navbar-dark .btn-upload-resume:hover,
label.btn-upload-resume:hover,
.nav-link.btn-upload-resume:hover {
  background-color: #333349 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Make sure the job categories are visible */
.job-categories-container {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* Ensure content is properly spaced */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

/* Search Form Styles */
.search-container .form-control,
.search-container .form-select {
  padding: 1.25rem 1.5rem;
  height: 100%;
  font-size: 1rem;
}

.search-container .btn-primary-dark {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  height: 100%;
}

.search-container .row {
  min-height: 66px;
}

/* Stats Section Styles */
.stats-section {
  padding: 4rem 0;
  position: relative;
}

.stats-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: #ccc;
  animation: expandLine 1.5s ease-out forwards;
}

@keyframes expandLine {
  0% {
    width: 0;
  }
  100% {
    width: 80%;
  }
}

.stats-container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3e405b;
  margin: 10px 0;
  font-family: "Josefin Sans", sans-serif;
}

.stat-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Responsive Adjustments for Stats Section */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* How it Works Section */
.section-how-it-works {
  padding: 80px 0px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-how-it-works-bg {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/how-it-works-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 3;
  pointer-events: none;
  opacity: 0.3;
}

.section-how-it-works::before {
  display: none;
}

.section-how-it-works-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #3e405b;
  position: relative;
  z-index: 1;
}

.section-how-it-works-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  z-index: 1;
}

.section-how-it-works-step {
  background-color: #f2f2f2;
  border-radius: 20px;
  padding: 40px;
  width: 22%;
  min-width: 250px;
  position: relative;
  margin-bottom: 30px;
  height: 300px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.section-how-it-works-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Common content styling for all steps */
.section-how-it-works-content {
  display: flex;
  gap: 15px;
}

/* Upload Resume - Center aligned */
.section-how-it-works-step.upload {
  justify-content: center;
  align-items: center;
}

/* Update Profile - Bottom right aligned (like Apply for Job) */
.section-how-it-works-step.update {
  justify-content: flex-end;
  align-items: flex-end;
}

/* Search Job - Top aligned with horizontal flex */
.section-how-it-works-step.search {
  justify-content: flex-start;
  align-items: flex-start;
}

/* Apply for Job - Bottom right aligned */
.section-how-it-works-step.apply {
  justify-content: flex-end;
  align-items: flex-end;
}

.section-how-it-works-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-how-it-works-text {
  display: flex;
  flex-direction: column;
}

.section-how-it-works-step-title {
  font-size: 28px;
  font-weight: 600;
  color: #3e405b;
  line-height: 1.2;
}

.section-how-it-works-step-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: #3e405b;
  line-height: 1.2;
}

/* Responsive adjustments for How it Works section */
@media (max-width: 1200px) {
  .section-how-it-works {
    padding: 60px 20px;
    max-width: 95%;
  }

  .section-how-it-works-step {
    width: 45%;
    margin-bottom: 40px;
  }
}

@media (max-width: 991px) {
  .section-how-it-works-title {
    font-size: 38px;
    margin-bottom: 50px;
  }

  .section-how-it-works-step {
    padding: 30px;
    height: 280px;
  }

  .section-how-it-works-step-title,
  .section-how-it-works-step-subtitle {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .section-how-it-works {
    padding: 50px 15px;
  }

  .section-how-it-works-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .section-how-it-works-step {
    width: 100%;
    margin-bottom: 30px;
    min-height: 200px;
    height: auto;
  }

  .section-how-it-works-bg {
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .section-how-it-works {
    padding: 40px 10px;
  }

  .section-how-it-works-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .section-how-it-works-step {
    padding: 25px;
    min-height: 180px;
  }

  .section-how-it-works-step-title,
  .section-how-it-works-step-subtitle {
    font-size: 22px;
  }

  .section-how-it-works-icon {
    width: 45px;
    height: 45px;
  }

  .section-how-it-works-icon img {
    width: 45px;
    height: 45px;
  }
}

/* Career Banner Section */
.section-career-banner {
  background-color: #3e405b;
  position: relative;
  overflow: visible;
  width: 100%;
  height: auto;
  padding: 80px 0;
}

.section-career-banner-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  position: relative;
}

.section-career-banner-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
  position: relative;
  z-index: 2;
}

.section-career-banner-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  white-space: nowrap;
  color: #ffffff;
}

.section-career-banner-title br {
  display: inline-block;
}

.section-career-banner-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #6fc6aa;
  color: white;
  padding: 25px 50px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: fit-content;
}

.section-career-banner-button:hover {
  background-color: #5db399;
}

.section-career-banner-image {
  position: absolute;
  width: 40%;
  right: 0;
  top: -80px;
  bottom: -80px;
  height: calc(100% + 160px);
  overflow: visible;
}

.section-career-banner-image img {
  height: 100%;
  width: auto;
  max-width: none;
  position: absolute;
  right: 0;
  bottom: 0;
}

/* Responsive adjustments for Career Banner */
@media (max-width: 1200px) {
  .section-career-banner-content {
    width: 55%;
  }

  .section-career-banner-image {
    width: 45%;
  }
}

@media (max-width: 992px) {
  .section-career-banner-title {
    font-size: 36px;
  }

  .section-career-banner-image {
    top: -60px;
    bottom: -60px;
    height: calc(100% + 120px);
  }
}

@media (max-width: 768px) {
  .section-career-banner {
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .section-career-banner-container {
    flex-direction: column-reverse;
    padding: 0;
  }

  .section-career-banner-content {
    width: 100%;
    text-align: center;
    padding: 50px 20px;
    margin: 0;
    background-color: #3e405b;
  }

  .section-career-banner-button {
    margin: 0 auto;
  }

  .section-career-banner-title {
    font-size: 32px;
    white-space: normal;
  }

  .section-career-banner-image {
    width: 100%;
    height: auto;
    position: static;
    margin: 0;
    background-color: #3e405b;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .section-career-banner-image img {
    position: static;
    transform: none;
    max-height: 350px;
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
  }
}

@media (max-width: 576px) {
  .section-career-banner-content {
    padding: 40px 20px;
  }

  .section-career-banner-title {
    font-size: 28px;
  }

  .section-career-banner-button {
    padding: 12px 20px;
    font-size: 16px;
  }

  .section-career-banner-image img {
    max-height: 280px;
  }
}

/* Recruitment Process Section */
.recruitment-process {
  overflow: hidden;
}

.recruitment-heading {
  font-size: 42px;
  font-weight: 700;
}

.process-step-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  border-radius: 8px;
  border: 1px solid #17977e;
  height: 100%;
}

.font-size-24 {
  font-size: 24px;
}

.primary-light-color {
  color: #135776;
}

.secondary-light-color {
  color: #3e405b;
}

.text-primary-color {
  color: #666;
}

.inter-regular {
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .process-step-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .process-step-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .recruitment-heading {
    font-size: 32px;
  }
}

/* Featured Jobs Section */
.featured-section {
  padding: 4rem 0;
}

.featured-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.featured-title {
  color: #3e405b;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.featured-subtitle {
  color: #708090;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  width: 100%;
}

.nav-button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #3e405b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.job-card {
  background: white;
  border-radius: 30px;
  padding: 3rem;
  border: 1px solid #3e405b;
  box-shadow: 0 0 10px rgba(0.3, 0.3, 0.3, 0.3);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.job-time {
  color: #708090;
  font-size: 0.875rem;
}

.job-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: #708090;
  font-size: 0.875rem;
}

.job-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: fit-content;
}

.job-detail svg {
  width: 16px;
  height: 16px;
  color: #708090;
  flex-shrink: 0;
}

.job-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
}

.job-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f4f4f4;
  border-radius: 100px;
  font-size: 0.875rem;
  color: #708090;
  margin: 0;
}

.job-actions {
  display: flex;
  align-items: center;
  position: relative;
}

.job-actions::after {
  content: "";
  height: 20px;
  width: 1px;
  background-color: #ddd;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.btn-apply,
.btn-save {
  color: #3e405b;
  background: none;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.btn-apply {
  color: #17977e;
  margin-right: 1.5rem;
}

.btn-save {
  color: #708090;
  margin-left: 1.5rem;
}

@media (max-width: 768px) {
  .featured-container {
    padding: 0 1rem;
  }

  .featured-title {
    font-size: 2rem;
  }

  .featured-subtitle {
    font-size: 1rem;
  }

  .navigation-buttons {
    right: 1rem;
  }

  .job-details {
    gap: 1rem;
  }

  .job-detail {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .job-details {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Featured Provinces Section */
.section-featured-provinces {
  padding: 60px 0;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* Prevent overflow */
  background-color: #3e405b;
  color: #ffffff;
}

.section-featured-provinces-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
  padding: 0 20px; /* Add padding for small screens */
}

.content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.province-container {
  position: relative;
  width: 80%; /* Reduced width to leave space for navigation */
  max-width: 1000px;
  height: 400px;
}

.swiper {
  width: 100%;
  height: 100%;
}

.province-card {
  width: 100%;
  height: 100%;
  background: #2d2e43; /* Same background for the entire card */
  border-radius: 30px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.province-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
  background: #2d2e43; /* Ensure same background */
  z-index: 1;
}

.province-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.province-jobs {
  font-size: 16px;
  color: #6fc6aa;
}

.province-image {
  width: 50%;
  height: 100%;
  position: relative;
  background: #2d2e43; /* Ensure same background */
}

.province-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navigation {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  z-index: 10;
  width: 50px; /* Fixed width for the navigation */
}

.nav-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.nav-button:hover {
  transform: scale(1.05);
}

.prev-button {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.next-button {
  background-color: transparent;
  border: 2px solid #6fc6aa;
}

.next-button svg path {
  stroke: #6fc6aa;
}

.pagination {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
}

.pagination-line {
  width: 2px;
  background-color: #6fc6aa;
}

.pagination-line-top {
  height: 60px;
  margin-bottom: 15px;
}

.pagination-line-bottom {
  height: 60px;
  margin-top: 15px;
}

.pagination-number {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 2px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

/* Hide default Swiper pagination */
.swiper-pagination {
  display: none;
}

/* Comprehensive responsive breakpoints */
@media (max-width: 1400px) {
  .province-container {
    width: 75%;
  }
}

@media (max-width: 1200px) {
  .province-container {
    width: 70%;
  }
}

@media (max-width: 992px) {
  .section-featured-provinces-title {
    font-size: 42px;
  }

  .province-container {
    width: 75%;
    height: 350px;
  }

  .province-name {
    font-size: 48px;
  }

  .province-content {
    padding-left: 50px;
  }
}

@media (max-width: 768px) {
  .section-featured-provinces {
    padding: 40px 0 100px; /* Add bottom padding for navigation */
  }

  .section-featured-provinces-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .province-container {
    width: 90%;
    height: auto;
    margin-bottom: 60px; /* Add space for navigation below */
  }

  .swiper {
    height: auto;
  }

  .province-card {
    flex-direction: column;
    height: auto;
  }

  .province-content,
  .province-image {
    width: 100%;
  }

  .province-content {
    padding: 30px;
    text-align: center;
    order: 2;
  }

  .province-name {
    font-size: 36px;
  }

  .province-image {
    height: 200px;
    order: 1;
  }

  /* Position navigation horizontally below the card on mobile */
  .navigation {
    position: absolute;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: -50px;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .pagination {
    flex-direction: row;
    height: auto;
    width: 120px;
    margin: 0 15px;
  }

  .pagination-line {
    height: 2px;
    width: auto;
  }

  .pagination-line-top {
    width: 40px;
    height: 2px;
    margin-bottom: 0;
    margin-right: 10px;
  }

  .pagination-line-bottom {
    width: 40px;
    height: 2px;
    margin-top: 0;
    margin-left: 10px;
  }

  .pagination-number {
    writing-mode: horizontal-tb;
    letter-spacing: 0;
  }
}

@media (max-width: 576px) {
  .section-featured-provinces-title {
    font-size: 32px;
  }

  .province-container {
    width: 85%;
    margin-bottom: 50px;
  }

  .province-content {
    padding: 25px 20px;
  }

  .province-name {
    font-size: 32px;
  }

  .province-jobs {
    font-size: 20px;
  }

  .province-image {
    height: 180px;
  }

  .navigation {
    bottom: -40px;
    width: 180px;
  }

  .pagination {
    width: 80px;
    margin: 0 10px;
  }

  .pagination-line-top,
  .pagination-line-bottom {
    width: 30px;
  }

  .nav-button {
    width: 36px;
    height: 36px;
  }

  .nav-button svg {
    width: 18px;
    height: 18px;
  }
}

/* Consultation Section Styles */
.section-consultation {
  position: relative;
  width: 100%;
  height: 700px;
  display: flex;
  align-items: center;
  background-image: url("../img/consultations.svg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.consultation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(78, 84, 107, 0.1),
    rgba(78, 84, 107, 0.7)
  );
  z-index: 1;
}

.consultation-content {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
  padding: 0 60px;
}

.consultation-image-container {
  width: 60%;
  height: 500px;
  overflow: hidden;
}

.consultation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consultation-text {
  width: 40%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.consultation-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
  text-align: center;
}

.consultation-subtitle {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 32px;
  line-height: 1.5;
  text-align: center;
}

.consultation-button {
  background-color: #3e405b;
  color: white;
  border: none;
  padding: 25px 100px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.consultation-button:hover {
  background-color: #333349;
  transform: translateY(-2px);
}

/* Responsive styles for consultation section */
@media (max-width: 992px) {
  .consultation-content {
    padding: 0 40px;
  }

  .consultation-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .section-consultation {
    height: auto;
    min-height: 400px;
  }

  .consultation-content {
    justify-content: center;
    padding: 40px;
  }

  .consultation-text {
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .consultation-title {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .section-consultation {
    min-height: 350px;
  }

  .consultation-content {
    padding: 20px;
  }

  .consultation-text {
    padding: 10px;
  }

  .consultation-title {
    font-size: 24px;
  }

  .consultation-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .consultation-button {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Footer Styles */
.footer {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-left {
  width: 20%;
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 30px;
  max-width: 100%;
  height: auto;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon img {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  width: 65%;
  justify-content: space-between;
  gap: 15px;
}

.footer-column {
  width: 30%;
  padding-right: 0;
}

.footer-column h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #3e405b;
  padding: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 15px;
  padding: 0;
}

.footer-column ul li a {
  color: #3e405b;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  padding: 0;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: #6fc6aa;
}

@media (max-width: 992px) {
  .footer {
    justify-content: flex-start;
    gap: 30px;
  }

  .footer-left {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-links {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-column {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .footer-column {
    width: 100%;
  }
}

/* Base styles for select elements in hero section */
.hero-section .form-select {
  color: white;
  background-color: #3e405b !important;  /* Solid dark background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Styles for select options - cross-browser */
.hero-section .form-select option,
.hero-section .form-select::-ms-value {
  background-color: #3e405b !important;
  color: white !important;
  padding: 10px !important;
}

/* Firefox specific styles */
@-moz-document url-prefix() {
  .hero-section .form-select {
    background-color: #3e405b !important;
    color: white !important;
  }
  
  .hero-section .form-select option {
    background-color: #3e405b !important;
    color: white !important;
  }
}

/* Edge and Chrome specific styles */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .hero-section .form-select {
    background-color: #3e405b !important;
    color: white !important;
  }
  
  .hero-section .form-select option {
    background-color: #3e405b !important;
    color: white !important;
  }
}

/* Webkit (Chrome, Safari, newer versions of Edge) specific styles */
.hero-section .form-select::-webkit-select-placeholder,
.hero-section .form-select::-webkit-inner-spin-button {
  background-color: #3e405b !important;
  color: white !important;
}

/* Focus and hover states */
.hero-section .form-select:focus,
.hero-section .form-select:hover,
.hero-section .form-select:active {
  background-color: #3e405b !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 0.25rem rgba(111, 198, 170, 0.25);
}

/* Remove default arrow in IE */
.hero-section .form-select::-ms-expand {
  display: none;
}

/* Remove focus ring in Firefox */
.hero-section .form-select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 white;
}

/* Ensure text remains visible during selection */
.hero-section .form-select::selection {
  background-color: rgba(111, 198, 170, 0.25);
  color: white;
}

/* Style for disabled options */
.hero-section .form-select option:disabled {
  background-color: #2d2f43 !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Additional Windows-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  .hero-section .form-select {
    background-color: #3e405b !important;
  }
  
  .hero-section .form-select option {
    background-color: #3e405b !important;
    color: white !important;
  }
}

/* Override the bg-transparent class for form-select */
.form-select.bg-transparent {
    background-color: #3e405b !important;  /* Solid dark background */
    color: white !important;
}

/* Style the options */
.form-select.bg-transparent option {
    background-color: #3e405b !important;
    color: white !important;
    padding: 8px !important;
}

/* Focus state */
.form-select.bg-transparent:focus {
    background-color: #3e405b !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hover state */
.form-select.bg-transparent:hover {
    background-color: #3e405b !important;
    color: white !important;
}

/* Style the select dropdown background and options */
select.form-select.bg-transparent {
    background-color: transparent;  /* Keep the select itself transparent */
}

select.form-select.bg-transparent option {
    background-color: #3e405b !important;  /* Dark background for options */
    color: white !important;
}

/* Style for the dropdown list itself */
select.form-select.bg-transparent:focus option {
    background-color: #3e405b !important;
    color: white !important;
}

/* Additional Windows/Chrome specific fix */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select.form-select.bg-transparent option {
        background-color: #3e405b !important;
        color: white !important;
    }
}

/* Firefox specific styles */
@-moz-document url-prefix() {
    select.form-select.bg-transparent option {
        background-color: #3e405b !important;
        color: white !important;
    }
}

/* Edge specific styles */
@supports (-ms-ime-align: auto) {
    select.form-select.bg-transparent option {
        background-color: #3e405b !important;
        color: white !important;
    }
}

/* SVG Fixes for iOS */
.navbar-brand img,
.footer-logo img,
.logo-img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Ensure SVG maintains aspect ratio */
.navbar-brand img,
.logo-img {
  height: 60px;
  width: auto;
}

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