/* ================================
   GLOBAL FONT
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Fix Bootstrap Icons display */
.bi,
[class*=" bi-"] {
  display: inline-block;
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU Acceleration for Animations */
[data-aos] {
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

[data-aos].aos-animate {
  will-change: auto;
}

body {
  background: #ffffff;
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  /* text-align: justify; */
}

/* Mobile-First Form and Button Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c00000;
  box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
}

/* Accessibility — keyboard focus indication (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Inputs already use a box-shadow ring; suppress the duplicate outline on them */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: none;
}

button,
input[type="button"],
input[type="submit"],
.btn {
  min-height: 48px;
  min-width: 120px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* ================================
   RESPONSIVE TEXT ALIGNMENT
   ================================ */

/* Headings - Center on mobile, Left on desktop
h1, h2, h3, h4, h5, h6, 
.listings-title, 
.job-header-title, 
.job-title-section h4,
.referral-benefits-title,
.referral-card h3 {
  text-align: center;
}

@media (min-width: 769px) {
  h2, h3, h4, h5, h6, 
  .job-header-title, 
  .job-title-section h4,
  .referral-benefits-title,
  .referral-card h3 {
    text-align: left;
  }
  
  h1, .listings-title {
    text-align: center;
  }
} */

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #172033;
  background:
    radial-gradient(circle at 50% 45%, rgba(198, 40, 40, 0.12), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #f1f5f9 100%);
}

@media (min-width: 993px) {
  .hero-section {
    min-height: 340px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .hero-section {
    margin-top: var(--header-offset-mobile);
    min-height: 320px;
    padding: 40px 20px;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 86%);
  z-index: 2;
  pointer-events: none;
}

@keyframes bgShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-section::after {
  content: none;
}

.career-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  animation: heroBgFade 900ms ease forwards;
}

.hero-mesh,
.hero-dot-grid,
.hero-blob,
.hero-ring,
.hero-glass,
.hero-curve {
  position: absolute;
  display: block;
  pointer-events: none;
}

.hero-mesh {
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(198, 40, 40, 0.13), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(37, 99, 235, 0.11), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(14, 165, 233, 0.1), transparent 32%);
}

.hero-dot-grid {
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 62%);
  opacity: 0.32;
}

.hero-blob {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.34;
  animation: heroFloat 10s ease-in-out infinite;
}

.hero-blob-one {
  top: 18%;
  left: 8%;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.36), rgba(255, 255, 255, 0));
}

.hero-blob-two {
  right: 10%;
  bottom: 16%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(255, 255, 255, 0));
  animation-duration: 12s;
  animation-delay: -3s;
}

.hero-ring {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(198, 40, 40, 0.24);
  border-radius: 32px;
  transform: rotate(18deg);
  animation: heroFloat 11s ease-in-out infinite;
}

.hero-ring-one {
  left: 14%;
  bottom: 18%;
  --hero-rotate: 18deg;
}

.hero-ring-two {
  top: 15%;
  right: 16%;
  width: 150px;
  height: 150px;
  border-color: rgba(37, 99, 235, 0.22);
  animation-duration: 9s;
  animation-delay: -2s;
  --hero-rotate: 18deg;
}

.hero-glass {
  width: 150px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: heroFloat 10s ease-in-out infinite;
}

.hero-glass-one {
  top: 26%;
  right: 24%;
}

.hero-glass-two {
  left: 20%;
  bottom: 24%;
  width: 110px;
  height: 54px;
  animation-duration: 12s;
  animation-delay: -4s;
}

.hero-curve {
  width: 360px;
  height: 160px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 23, 42, 0.14) transparent transparent transparent;
  border-radius: 50%;
  animation: heroFloat 12s ease-in-out infinite;
}

.hero-curve-one {
  top: 18%;
  left: 28%;
  transform: rotate(-8deg);
  --hero-rotate: -8deg;
}

.hero-curve-two {
  right: 20%;
  bottom: 20%;
  transform: rotate(172deg);
  opacity: 0.9;
  animation-delay: -5s;
  --hero-rotate: 172deg;
}

@keyframes heroBgFade {
  to {
    opacity: 1;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--hero-rotate, 0deg));
  }

  50% {
    transform: translate3d(0, -16px, 0) rotate(var(--hero-rotate, 0deg));
  }
}

@media (max-width: 992px) {
  .hero-curve-two,
  .hero-glass-two,
  .hero-ring-one {
    display: none;
  }

  .hero-blob-one {
    left: -90px;
  }

  .hero-blob-two {
    right: -100px;
  }
}

.hero-main {
  position: relative;
  z-index: 3;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-main h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 32px;
  text-shadow: 0 12px 30px rgba(198, 40, 40, 0.12);
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #172033 0%, #c62828 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-main h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-2);
  animation: expandWidth 3s ease infinite;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.18);
}

@keyframes expandWidth {
  0%,
  100% {
    width: 100px;
    opacity: 0.6;
  }
  50% {
    width: 200px;
    opacity: 1;
  }
}

.hero-main p {
  font-size: 1.4rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
  text-shadow: none;
  letter-spacing: 0;
  color: #475569;
  text-align: center;
}

.glow-text {
  position: relative;
  color: #475569;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .hero-section {
    margin-top: var(--header-offset-mobile);
    min-height: 280px;
    padding: 32px 20px;
  }

  .hero-dot-grid {
    opacity: 0.2;
    background-size: 24px 24px;
  }

  .hero-glass,
  .hero-ring-two,
  .hero-curve-one {
    display: none;
  }

  .hero-blob {
    width: 190px;
    height: 190px;
    opacity: 0.24;
  }

  .hero-main p {
    font-size: 1.1rem;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .career-hero-bg,
  .hero-blob,
  .hero-ring,
  .hero-glass,
  .hero-curve {
    animation: none;
  }
}

/* ================================
   JOBS & REFERRAL SECTIONS
   ================================ */
.jobs-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 90px 20px;
  position: relative;
}

.jobs-section .container {
  max-width: 1180px;
}

.referral-section {
  background: var(--color-white);
  /* padding: 40px 20px; */
  /* margin: 30px 0; */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   JOB OPENINGS TAB - ACCORDION/LIST VIEW
   ================================ */
.listings-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin: 8px 0 0;
  text-align: left;
  letter-spacing: 0;
  line-height: 1.12;
}

.jobs-section-header {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e5e7eb;
}

.section-eyebrow {
  color: var(--color-primary);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listings-title::after {
  display: none;
}

#jobListingsContainer {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 16px;
}

/* Job Accordion Item */
.job-accordion-item {
  width: 100%;
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.job-accordion-item:hover {
  border-color: rgba(192, 0, 0, 0.32);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.job-accordion-item.active {
  border-color: rgba(192, 0, 0, 0.42);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
}

/* Job Header (Clickable) */
.job-accordion-header {
  padding: 26px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--color-white);
  transition: background-color 0.25s ease;
  position: relative;
}

.job-accordion-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.job-accordion-item.active .job-accordion-header::before {
  transform: scaleY(1);
}

.job-accordion-header:hover {
  background: #fafafa;
}

.job-header-content {
  flex: 1;
  min-width: 0;
}

.job-header-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}

.job-header-title i {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(192, 0, 0, 0.08);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: 0 0 auto;
}

.job-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: #4b5563;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  background: #f9fafb;
  border: 1px solid #edf0f3;
  border-radius: 999px;
}

.job-meta-item i {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Accordion Icon */
.job-accordion-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  color: var(--color-primary);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.job-accordion-item:hover .job-accordion-icon,
.job-accordion-item.active .job-accordion-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.job-accordion-item.active .job-accordion-icon {
  transform: rotate(180deg);
}

/* Job Content (Collapsible) */
.job-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-accordion-item.active .job-accordion-content {
  max-height: 5000px;
}

.job-details-wrapper {
  padding: 30px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

/* Job Title Section */
.job-title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.job-title-section h4 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.job-title-section h4 i {
  color: var(--color-primary);
}

.job-title-section span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(192, 0, 0, 0.1) 0%, rgba(255, 68, 68, 0.1) 100%);
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid rgba(192, 0, 0, 0.2);
}

/* Meta Grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.meta-item,
.meta-card {
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  min-height: 112px;
}

.meta-item:hover,
.meta-card:hover {
  border-color: rgba(192, 0, 0, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.meta-item i {
  font-size: 1.8rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.meta-content {
  flex: 1;
}

.meta-label {
  display: block;
  font-size: 0.76rem;
  color: #6b7280;
  margin-bottom: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  font-size: 0.98rem;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
}

/* Job Sections */
.job-section {
  margin-bottom: 16px;
  padding: 24px;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.job-section-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.job-section-label i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.job-section-content {
  text-align: left;
  font-size: 0.94rem;
  color: var(--color-text-primary);
  line-height: 1.75;
}

.job-section-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-section-content li {
  padding: 10px 0 10px 28px;
  position: relative;
}

.job-section-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Apply Button */
.apply-btn-wrapper {
  text-align: right;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  justify-content: flex-end;
}

.apply-btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(192, 0, 0, 0.24);
  background: var(--color-primary-dark);
}

.apply-btn:active {
  transform: translateY(-1px);
}

.apply-btn i {
  font-size: 1.2rem;
}

/* ================================
   EMPLOYEE REFERRAL PROGRAM
   ================================ */
.referral-content {
  padding: 36px 20px 80px;
  /* background: linear-gradient(135deg, #fef5f5 0%, #ffffff 100%); */
}

.referral-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left Text Section */
.referral-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.referral-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-primary);
  margin: 0;
}

.referral-text strong {
  color: var(--color-primary);
  font-weight: 500;
}

.referral-benefits-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.referral-benefits-title::before {
  content: "⭐";
  font-size: 2rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefits-list li {
  display: flex;
  /* align-items: center; */
  gap: 12px;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  padding: 18px;
  background: var(--color-white);
  border-radius: 10px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: left;
}

.benefits-list li:hover {
  border-color: var(--primary-light);
  transform: translateX(8px);
  box-shadow: 0 4px 12px var(--shadow-light);
}
.benefits-list li span {
  text-align: left;
}
.benefits-list i {
  color: var(--color-primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Right Form Card */
.referral-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border-color);
  position: sticky;
  top: 100px;
}

.referral-card h2,
.referral-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-align: center;
}

.referral-card p {
  text-align: center;
  color: var(--color-text-primary);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.card-icon {
  font-size: 4rem;
  text-align: center;
  display: block;
  margin-bottom: 24px;
}

.referral-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  padding: 18px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px var(--shadow-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.referral-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(192, 0, 0, 0.4);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.referral-btn:active {
  transform: translateY(-1px);
}

.referral-btn i {
  font-size: 1.2rem;
}

/* ================================
   MODAL STYLING
   ================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-white);
  border-radius: 20px;
  padding: 45px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.modal-close::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: transparent;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.modal-close:hover {
  color: var(--color-primary);
  transform: rotate(90deg) scale(1.1);
}

.modal-close:hover::before {
  opacity: 1;
  inset: -12px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-right: 0;
  margin-right: 60px;
}

.modal-subtitle {
  color: var(--color-text-primary);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Form Styling */
.form-fieldset {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(192, 0, 0, 0.01) 0%, rgba(255, 68, 68, 0.01) 100%);
}

.fieldset-legend {
  font-weight: 500;
  color: var(--color-primary);
  padding: 0 12px;
  font-size: 1rem;
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fieldset-legend i {
  color: var(--color-primary);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.required {
  color: #ef4444;
  font-weight: 500;
}

.form-input,
.form-textarea,
select.form-input {
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s ease;
  background: var(--color-white);
  color: var(--color-primary);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
select.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(192, 0, 0, 0.1);
  background: var(--color-white);
}

.form-input:hover,
.form-textarea:hover,
select.form-input:hover {
  border-color: var(--primary-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

/* Modern File Upload Box */
.file-upload {
  border: 2px dashed var(--primary-color);
  border-radius: 16px;
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(192, 0, 0, 0.02) 0%, rgba(255, 68, 68, 0.02) 100%);
  position: relative;
  overflow: hidden;
}

.file-upload::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(192, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.file-upload-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: block;
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.file-upload-content {
  position: relative;
  z-index: 1;
}

.file-upload-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.file-upload-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.file-upload-formats {
  font-size: 0.85rem;
  color: var(--color-text-primary);
  font-style: italic;
}

.file-upload:hover {
  background: linear-gradient(135deg, rgba(192, 0, 0, 0.05) 0%, rgba(255, 68, 68, 0.05) 100%);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-light);
}

.file-upload.dragover {
  background: linear-gradient(135deg, rgba(192, 0, 0, 0.1) 0%, rgba(255, 68, 68, 0.1) 100%);
  border-color: var(--color-primary);
  border-style: solid;
  transform: scale(1.02);
}

.file-upload.has-file {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border-color: var(--success);
  border-style: solid;
}

.file-upload.has-file .file-upload-icon {
  color: var(--success);
}

.file-upload.has-file .file-upload-title {
  color: var(--success);
}

.file-input {
  display: none;
}

.file-label {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  transition: all 0.3s ease;
}

.file-upload.has-file .file-label {
  color: var(--success);
  font-weight: 500;
}

.submit-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 16px 36px;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(192, 0, 0, 0.3);
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(192, 0, 0, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ================================
   SELECT DROPDOWN FIX
   ================================ */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c00000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 40px;
}

/* Remove default arrow in IE */
select.form-input::-ms-expand {
  display: none;
}

/* Style for selected option */
select.form-input option {
  padding: 10px;
  background: var(--color-white);
  color: var(--color-primary);
}

select.form-input option:checked {
  background: linear-gradient(135deg, rgba(192, 0, 0, 0.1) 0%, rgba(255, 68, 68, 0.1) 100%);
  color: var(--color-primary);
  font-weight: 500;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
  .jobs-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .referral-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .referral-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-main p {
    font-size: 1.1rem;
  }

  .referral-header h2 {
    font-size: 2rem;
  }

  .referral-subtitle {
    font-size: 1rem;
  }

  .referral-wrapper {
    gap: 30px;
  }

  .referral-card {
    padding: 40px;
  }

  .referral-card h2,
  .referral-card h3 {
    font-size: 1.6rem;
  }

  .modal-content {
    padding: 35px 25px;
    max-height: 90vh;
  }

  .modal-title {
    font-size: 1.7rem;
  }

  .meta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jobs-section {
    padding: 70px 15px 28px;
    width: 100%;
  }

  .referral-section {
    padding: 0 15px 60px;
    width: 100%;
  }

  .listings-title {
    font-size: 2rem;
  }

  .jobs-section-header {
    margin-bottom: 26px;
    padding-bottom: 22px;
  }

  .job-accordion-header {
    padding: 20px;
  }

  .job-header-title {
    font-size: 1.05rem;
    align-items: flex-start;
  }

  .job-header-meta {
    flex-direction: row;
    gap: 10px;
  }

  .job-meta-item {
    border-radius: 8px;
  }

  .job-details-wrapper {
    padding: 24px 20px;
  }
  .job-title-section {
    text-align: center;
  }

  .job-title-section h4 {
    font-size: 1rem;
    text-align: left;
  }
  .job-title-section span {
    font-size: 0.8rem;
    text-align: left;
  }

  #jobListingsContainer {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 25px 20px;
    width: 95%;
  }

  .file-upload {
    padding: 40px 20px;
  }

  .file-upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .file-upload-title {
    font-size: 1.1rem;
  }

  .referral-card {
    padding: 30px;
  }

  .referral-card h2,
  .referral-card h3 {
    font-size: 1.5rem;
  }

  .referral-text {
    gap: 18px;
  }

  .referral-text p {
    font-size: 0.95rem;
  }

  .form-fieldset {
    padding: 20px;
  }

  .fieldset-legend {
    font-size: 0.9rem;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.75rem;
    gap: 6px;
  }

  .tab-btn i {
    font-size: 1rem;
  }

  .hero-main p {
    font-size: 0.95rem;
  }

  .apply-btn,
  .referral-btn {
    padding: 14px 22px;
    font-size: 0.9rem;
  }

  .job-section {
    padding: 20px;
  }
  .job-section-label {
    font-size: 0.9rem;
    text-align: left;
  }

  .benefits-list li {
    font-size: 0.95rem;
    padding: 14px;
    text-align: left;
  }

  .card-icon {
    font-size: 3rem;
  }

  .listings-title {
    font-size: 1.8rem;
  }

  .job-accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .job-header-title i {
    width: 34px;
    height: 34px;
  }

  .job-header-meta {
    width: 100%;
  }

  .job-meta-item {
    width: 100%;
  }

  .job-accordion-icon {
    align-self: flex-end;
  }

  .job-section {
    padding: 18px;
  }

  .apply-btn-wrapper {
    justify-content: stretch;
  }

  .apply-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ================================
   CUSTOM SCROLLBAR FOR MODAL
   ================================ */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--light-bg);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}
.modal-subtitle {
  font-size: 1.1rem;
}

/* ================================
   ACCESSIBILITY
   ================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
  .tabs-section,
  .apply-btn,
  .referral-btn,
  .modal-overlay,
  .hero-section,
  .job-accordion-icon {
    display: none !important;
  }

  .job-accordion-content {
    max-height: none !important;
  }

  .job-details-wrapper {
    box-shadow: none;
    border: 1px solid #000;
  }
}
/* ================================
   APPLY BUTTON FIX - VISIBILITY
   ================================ */
.apply-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 100 !important;
  position: relative !important;
  pointer-events: all !important;
}

.apply-btn-wrapper {
  z-index: 100 !important;
  position: relative !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure job accordion content doesn't hide button */
.job-accordion-content {
  position: relative;
  z-index: 1;
}

.job-details-wrapper {
  position: relative;
  z-index: 1;
}

/* Make sure button shows when accordion is active */
.job-accordion-item.active .apply-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.job-accordion-item.active .apply-btn-wrapper {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #c00000 0%, #800000 100%);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(192, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.scroll-to-top-btn:hover {
  width: 55px;
  height: 55px;
  box-shadow: 0 15px 40px rgba(192, 0, 0, 0.4);
  transform: translateY(-5px);
}

.scroll-to-top-btn:active {
  transform: translateY(-2px);
}

.scroll-to-top-btn.show {
  display: flex;
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .scroll-to-top-btn:hover {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top-btn {
    bottom: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .scroll-to-top-btn:hover {
    width: 48px;
    height: 48px;
  }
}

/* =========================================
   HIDE DECORATIVE SHAPES ON MOBILE
   Prevents off-canvas overflow and content overlap on small viewports.
   ========================================= */
@media (max-width: 768px) {
  .accent-bar,
  .accent-bar-top,
  .accent-bar-mid,
  .accent-bar-bottom {
    display: none !important;
  }
}
