/* ==========================================================================
   CAREERS PAGE STYLING (Careers.css)
   ========================================================================== */

/* Careers Hero Section */
.careers-hero-section {
  padding: 1.5rem 0;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
}

.careers-hero-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 1440 / 527;
  background: url('../image/career-image/career-hero.png') no-repeat center;
  background-size: cover;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0, 46, 132, 0.05);
  border: 1px solid rgba(0, 46, 132, 0.08);
}

/* Left Content Column */
.careers-hero-content {
  position: absolute;
  left: 5.5%;
  top: 22%;
  width: 38%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Breadcrumbs */
.careers-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.careers-breadcrumb-link {
  color: #2563eb;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.careers-breadcrumb-link svg {
  width: 18px;
  height: 18px;
}

.careers-breadcrumb-link:hover {
  opacity: 0.8;
}

.careers-breadcrumb-sep {
  font-size: 0.9rem;
  color: #2563eb;
  font-weight: 500;
  font-family: var(--font-secondary), sans-serif;
}

.careers-breadcrumb-current {
  font-family: var(--font-secondary), sans-serif;
  font-size: 0.9rem;
  color: #2563eb;
  font-weight: 600;
}

/* Title & Subheading */
.careers-hero-title {
  font-family: var(--font-primary), sans-serif;
  font-size: 2.8vw;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.careers-hero-title .title-accent {
  color: #2563eb;
}

.careers-hero-desc {
  font-family: var(--font-secondary), sans-serif;
  font-size: 1.1vw;
  font-weight: 400;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

/* Overlay Text Labels (Pixel-perfect alignment on pre-rendered cards) */
.career-overlay-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-primary), sans-serif;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
  box-sizing: border-box;
  pointer-events: none; /* Let clicks pass through if needed */
  transition: transform 0.3s var(--transition-spring);
}

.career-overlay-card .card-text {
  font-size: 0.82vw;
  padding-left: 36%;
  color: #0f172a;
  font-weight: 600;
  display: block;
  width: 100%;
}

/* Specific Card Positions from PNG analysis */
.card-culture {
  left: 47.01%;
  top: 1.33%;
  width: 14.44%;
  height: 15.37%;
}

.card-opportunities {
  left: 46.04%;
  top: 21.25%;
  width: 15.14%;
  height: 14.99%;
}

.card-impact {
  left: 82.92%;
  top: 2.85%;
  width: 14.51%;
  height: 14.99%;
}

.card-balance {
  left: 83.89%;
  top: 21.82%;
  width: 13.96%;
  height: 14.80%;
}

/* Mobile-only structures (Hidden on desktop) */
.careers-mobile-header {
  display: none;
}
.careers-mobile-cards {
  display: none;
}

/* Page Section - Values / Benefits */
.careers-values-section {
  padding: 5rem 0;
  background-color: #f8fafc;
  color: #0f172a;
  text-align: center;
}

.section-tag {
  color: #2563eb;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-primary), sans-serif;
  font-size: 2.25rem;
  color: #0f172a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-desc {
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: #ffffff;
  padding: 2.5rem 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 46, 132, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 46, 132, 0.08);
}

.value-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 1.5rem;
}

.value-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-weight: 700;
}

.value-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Page Section - Job Openings */
.open-positions-section {
  padding: 1.5rem 0;
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
}

/* Background Decors */
.decor-plus-bottom-left {
  position: absolute;
  bottom: 20px;
  left: 25px;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 1;
}

.decor-circle-right {
  position: absolute;
  bottom: 25px;
  right: 30px;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 1;
}

/* 2-Column Grid Layout */
.careers-2col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 5;
}

.careers-left-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Right Sidebar: Why Join Aleph INDIA? Card */
.why-join-sidebar-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 46, 132, 0.06);
  padding: 2rem 1.6rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.025);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
}

.why-join-title {
  font-family: var(--font-primary), sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #001f54;
  margin: 0 0 0.5rem 0;
}

.why-join-underline {
  width: 36px;
  height: 3.5px;
  background-color: #2563eb;
  border-radius: 4px;
  margin-bottom: 1.8rem;
}

.why-join-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.why-join-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.why-join-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #002e84 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.why-join-icon-badge i,
.why-join-icon-badge svg {
  font-size: 1.15rem;
  width: 19px;
  height: 19px;
  stroke: #ffffff;
  color: #ffffff;
  stroke-width: 2.2;
  fill: none;
}

.why-join-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.why-join-info h4 {
  font-family: var(--font-primary), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.why-join-info p {
  font-family: var(--font-secondary), sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}

/* Background Decorations */
.decor-wave-top-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
  height: 280px;
  pointer-events: none;
}

.decor-wave-bottom-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 280px;
  height: 280px;
  pointer-events: none;
}

.decor-dots-top-center {
  position: absolute;
  right: 28%;
  top: 4%;
  width: 100px;
  height: 60px;
  background-image: radial-gradient(#2563eb 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  opacity: 0.12;
  pointer-events: none;
}

.open-positions-header {
  text-align: left;
  max-width: 800px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 5;
}

.careers-tag-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.careers-tag-indicator .indicator-arrow {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.95rem;
}

.careers-tag-indicator .indicator-text {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: var(--font-secondary), sans-serif;
}

.open-positions-title {
  font-family: var(--font-primary), sans-serif;
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.open-positions-title .title-accent {
  color: #2563eb;
}

.open-positions-desc {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
  font-family: var(--font-secondary), sans-serif;
  margin: 0;
}

/* Job list and cards */
.jobs-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.no-jobs-message {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-size: 1rem;
}

.job-card-v2 {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 46, 132, 0.06);
  position: relative;
  padding: 1rem 1.6rem;
  gap: 1.25rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.job-card-v2::after {
  content: '';
  position: absolute;
  right: 175px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none'%3E%3Cpolygon points='30,3 54,16 54,44 30,57 6,44 6,16' stroke='%2394a3b8' stroke-width='1.2' stroke-opacity='0.35' fill='none'/%3E%3Cpolygon points='30,7 50,18 50,42 30,53 10,42 10,18' stroke='%2394a3b8' stroke-width='0.8' stroke-opacity='0.25' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

.job-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 46, 132, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
}

.job-card-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #2563eb;
}

.job-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(37, 99, 235, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.03);
}

.job-card-icon-box svg {
  width: 22px;
  height: 22px;
}

.job-card-details {
  flex: 1;
}

.job-card-details h3 {
  font-family: var(--font-primary), sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.job-card-details p {
  font-family: var(--font-secondary), sans-serif;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

.job-card-meta-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 1px solid #e2e8f0;
  padding-left: 1.25rem;
  min-width: 140px;
  flex-shrink: 0;
}

.meta-v2-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-secondary), sans-serif;
  font-size: 0.82rem;
  color: #475569;
}

.meta-v2-item svg {
  width: 16px;
  height: 16px;
  color: #2563eb;
}

.job-card-action {
  border-left: 1px solid #e2e8f0;
  padding-left: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.view-job-btn-v2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  font-weight: 500;
  font-size: 0.84rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.25s ease;
  font-family: var(--font-primary), sans-serif;
}

.view-job-btn-v2:hover {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.view-job-btn-v2 .arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.view-job-btn-v2:hover .arrow-icon {
  transform: translateX(3px);
}

/* View All openings bottom button */
.view-all-positions-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  position: relative;
  z-index: 5;
}

.btn-view-all-positions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #2563eb;
  color: #ffffff;
  padding: 0.7rem 1.8rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  font-family: var(--font-primary), sans-serif;
}

.btn-view-all-positions:hover {
  background-color: #002e84;
  box-shadow: 0 6px 18px rgba(0, 46, 132, 0.25);
  transform: translateY(-1px);
}

.btn-view-all-positions .briefcase-icon {
  width: 16px;
  height: 16px;
}

.btn-view-all-positions .arrow-right-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn-view-all-positions:hover .arrow-right-icon {
  transform: translateX(3px);
}

/* Page Section - Values / Benefits */
.careers-values-section {
  padding: 3.5rem 0;
  background-color: #ffffff;
  color: #0f172a;
  text-align: center;
}

.section-tag {
  color: #2563eb;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  display: inline-block;
  font-family: var(--font-secondary), sans-serif;
}

.section-title {
  font-family: var(--font-primary), sans-serif;
  font-size: 1.95rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-desc {
  max-width: 620px;
  margin: 0 auto 2rem auto;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
  font-family: var(--font-secondary), sans-serif;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.value-card {
  background: #ffffff;
  padding: 1.6rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 46, 132, 0.05);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 46, 132, 0.06);
}

.value-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(37, 99, 235, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.value-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.value-card h3 {
  font-family: var(--font-primary), sans-serif;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
  font-weight: 700;
}

.value-card p {
  color: #475569;
  font-size: 0.83rem;
  line-height: 1.5;
  font-family: var(--font-secondary), sans-serif;
  margin: 0;
}

/* Page Section - Submit Your Details to Apply */
.careers-apply-section {
  padding: 2.8rem 0 4rem 0;
  background-color: #f8fafc;
  position: relative;
}

.apply-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.apply-section-title {
  font-family: var(--font-primary), sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}

.apply-section-title .title-blue {
  color: #2563eb;
}

.apply-form-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 46, 132, 0.08);
  padding: 2rem 2.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.apply-grid-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2.2rem;
}

.form-field-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.form-field-item.full-width-item {
  grid-column: span 2;
}

.field-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background-color: rgba(37, 99, 235, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.field-icon-box svg {
  width: 17px;
  height: 17px;
}

.field-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-content label {
  font-family: var(--font-primary), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
}

.required-star {
  color: #ef4444;
  font-weight: 700;
}

.sub-label-note {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Input elements styling with rounded borders */
.field-content input[type="text"],
.field-content input[type="email"],
.field-content input[type="tel"],
.field-content select,
.field-content textarea {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.85rem;
  font-size: 0.83rem;
  color: #0f172a;
  background-color: #ffffff;
  outline: none;
  font-family: var(--font-secondary), sans-serif;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.015);
}

.field-content input[type="text"]:focus,
.field-content input[type="email"]:focus,
.field-content input[type="tel"]:focus,
.field-content select:focus,
.field-content textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Custom select dropdown styling with rounded border & popup menu */
.select-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.custom-select-trigger {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.85rem;
  font-size: 0.83rem;
  color: #0f172a;
  background-color: #ffffff;
  outline: none;
  font-family: var(--font-secondary), sans-serif;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.015);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.custom-select-trigger:hover,
.custom-select-trigger.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-select-text {
  font-size: 0.83rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.2s ease;
}

.custom-select-arrow svg {
  width: 14px;
  height: 14px;
}

.custom-select-trigger.active .custom-select-arrow {
  transform: rotate(180deg);
  color: #2563eb;
}

/* Floating Options List Dropdown Menu with Fully Rounded Borders */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 25px rgba(0, 46, 132, 0.12);
  padding: 0.35rem 0;
  z-index: 1000;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-select-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 5px;
}
.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-select-option {
  padding: 0.5rem 0.85rem;
  font-size: 0.83rem;
  font-family: var(--font-secondary), sans-serif;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  border-radius: 6px;
  margin: 0 0.25rem;
}

.custom-select-option:hover {
  background-color: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-weight: 500;
}

.custom-select-option.selected {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

/* Custom File Upload */
.custom-file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 0.25rem 0.5rem;
  gap: 0.65rem;
  background: #ffffff;
  cursor: pointer;
  min-height: 35px;
}

.custom-file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  font-family: var(--font-primary), sans-serif;
  flex-shrink: 0;
}

.file-name {
  font-size: 0.8rem;
  color: #64748b;
  font-family: var(--font-secondary), sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-content textarea {
  resize: vertical;
  min-height: 65px;
  border-radius: 9px;
}

.form-submit-row {
  grid-column: span 2;
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.btn-submit-apply {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  padding: 0.55rem 2.2rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary), sans-serif;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-submit-apply:hover {
  background-color: #002e84;
  box-shadow: 0 6px 16px rgba(0, 46, 132, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Careers.css)
   ========================================================================== */

/* Small desktop / large tablet */
@media (max-width: 1200px) {
  .careers-hero-content {
    top: 18%;
    left: 5%;
    width: 40%;
  }
  .careers-hero-title {
    font-size: 2.2rem;
  }
}

/* Tablet (Switch to native HTML elements for layout and hide wide background image) */
@media (max-width: 1023px) {
  .careers-hero-section {
    padding: 3rem 0;
    background-color: #f8fafc;
  }

  .careers-hero-container {
    aspect-ratio: auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  /* Content shifts to a normal vertical stack */
  .careers-hero-content {
    position: static;
    width: 100%;
    margin-bottom: 2.5rem;
  }

  .careers-hero-title,
  .open-positions-title,
  .section-title,
  .apply-section-title {
    font-size: 2.3rem;
  }

  .careers-hero-desc {
    font-size: 1.05rem;
    max-width: 600px;
  }

  /* Hide pre-rendered cards absolute texts overlay */
  .career-overlay-card {
    display: none;
  }

  /* Hide mobile header illustration */
  .careers-mobile-header {
    display: none !important;
  }

  /* Display 4 Grid Cards underneath (Compact horizontal layout) */
  .careers-mobile-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.25rem;
  }

  .mobile-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 46, 132, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-card .mobile-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .mobile-card .mobile-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .mobile-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
  }

  /* Job list mobile adjustments */
  .job-card-v2 {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .job-card-meta-v2 {
    border-left: none;
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    width: 100%;
    min-width: auto;
  }

  .job-card-action {
    border-left: none;
    padding-left: 0;
    width: 100%;
    margin-top: 0.25rem;
  }

  .view-job-btn-v2 {
    width: 100%;
    justify-content: center;
  }

  /* Grid Layouts collapse */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apply-form-container {
    padding: 2.2rem 2rem;
  }

  .careers-2col-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-join-sidebar-card {
    position: static;
  }
}

/* Mobile Devices */
@media (max-width: 767px) {
  .careers-hero-title,
  .open-positions-title,
  .section-title,
  .apply-section-title {
    font-size: 1.85rem;
  }

  .careers-hero-desc {
    font-size: 0.95rem;
  }

  .careers-mobile-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .mobile-card {
    padding: 0.65rem 0.85rem;
    gap: 0.6rem;
  }

  .mobile-card .mobile-card-icon {
    width: 32px;
    height: 32px;
  }

  .mobile-card .mobile-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .mobile-card h4 {
    font-size: 0.82rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .job-card-meta-v2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .careers-apply-section {
    padding: 1.75rem 0 2.5rem 0;
  }

  .apply-section-title {
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .apply-form-container {
    padding: 1.25rem 1rem;
    border-radius: 12px;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  .apply-grid-form {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .form-field-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    box-sizing: border-box;
  }

  .field-icon-box {
    display: none !important;
  }

  .field-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .field-content label {
    font-size: 0.8rem;
  }

  .field-content input[type="text"],
  .field-content input[type="email"],
  .field-content input[type="tel"],
  .field-content select,
  .field-content textarea,
  .custom-select-trigger,
  .custom-file-input-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-field-item.full-width-item {
    grid-column: span 1;
  }

  .form-submit-row {
    grid-column: span 1;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .btn-submit-apply {
    width: 100%;
  }
}


/* ==========================================================================
   JOB DETAIL MODAL
   ========================================================================== */

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Overlay backdrop */
.job-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 50, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;      /* upar se start hoga scroll */
  justify-content: center;
  padding: 2rem 1.5rem 3rem;    /* niche extra space */
  overflow-y: auto;             /* overlay scroll karega */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.job-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Modal box */
.job-modal-box {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 30, 100, 0.18);
  max-width: 720px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
  margin: auto 0;
}

.job-modal-overlay.is-active .job-modal-box {
  transform: translateY(0) scale(1);
}

/* Close button */
.job-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5ff;
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.job-modal-close:hover {
  background: #2563eb;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Modal header */
.job-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem 0.8rem 1.4rem;
  border-bottom: 1px solid #e8eef8;
}

.job-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #002e84 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.job-modal-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.job-modal-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 0.15rem 0;
  font-family: var(--font-secondary), sans-serif;
}

.job-modal-title {
  font-family: var(--font-primary), sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
  padding-right: 2rem;
}

/* Badges */
.job-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.jm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 16px;
  font-size: 0.73rem;
  font-weight: 600;
  font-family: var(--font-secondary), sans-serif;
}

.jm-badge svg {
  width: 12px;
  height: 12px;
}

.jm-badge-location {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.jm-badge-type {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.18);
}

/* Table wrapper */
.job-modal-table-wrap {
  padding: 0.8rem 1.4rem;
  overflow-x: auto;
}

/* Details table */
.job-detail-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-secondary), sans-serif;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.job-detail-table thead tr {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
}

.job-detail-table thead th {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  text-align: left;
  border: none;
}

.job-detail-table thead th:first-child { width: 55%; }
.job-detail-table thead th:nth-child(2) { width: 20%; }
.job-detail-table thead th:last-child { width: 25%; }

.job-detail-table tbody td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e8eef8;
  vertical-align: top;
  color: #374151;
  line-height: 1.4;
  background: #fafcff;
}

.job-detail-table tbody tr:last-child td {
  border-bottom: none;
}

/* Description bullet list */
.jm-desc-list {
  margin: 0;
  padding-left: 0.9rem;
  list-style: disc;
}

.jm-desc-list li {
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  color: #374151;
}

.jm-desc-list li:last-child { margin-bottom: 0; }

/* Experience & Qualification cells */
.jm-exp-cell {
  font-weight: 600;
  color: #1d4ed8;
  font-size: 0.82rem;
  text-align: center;
}

.jm-qual-cell {
  font-size: 0.78rem;
  color: #374151;
  font-weight: 500;
}

/* Modal footer */
.job-modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.4rem 1.1rem 1.4rem;
  gap: 0.35rem;
  border-top: 1px solid #e8eef8;
}

/* Apply Now button */
.job-modal-apply-btn {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  padding: 0.55rem 2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-primary), sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.job-modal-apply-btn:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.job-modal-apply-btn:active { transform: translateY(0); }

.job-modal-apply-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
  font-family: var(--font-secondary), sans-serif;
  text-align: center;
}

/* ---- Responsive Modal ---- */
@media (max-width: 600px) {
  .job-modal-overlay {
    padding: 1.2rem 1rem 2.5rem;
  }

  .job-modal-box {
    border-radius: 14px;
  }

  .job-modal-header {
    flex-direction: column;
    padding: 1.5rem 1.2rem 1rem 1.2rem;
    gap: 0.8rem;
  }

  .job-modal-title {
    font-size: 1.15rem;
    padding-right: 2rem;
  }

  .job-modal-table-wrap { padding: 1rem 1.2rem; }

  .job-detail-table thead th,
  .job-detail-table tbody td {
    padding: 0.7rem 0.8rem;
    font-size: 0.78rem;
  }

  .job-modal-footer { padding: 0.8rem 1.2rem 1.4rem 1.2rem; }

  .job-modal-apply-btn {
    width: 100%;
    text-align: center;
  }
}
