/* ===== CAREERS PAGE STYLES ===== */

/* Hero Section */
.careers-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.careers-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.9);
}

.careers-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.careers-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.careers-hero__text h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.02em;
}

.careers-hero__text p {
  font-size: clamp(17px, 2vw, 20px);
  color: #f5f5f5;
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.careers-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-self: flex-end;
}

.hero-stat {
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stat__number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.hero-stat__label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
}

/* Large button */
.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(211, 20, 42, 0.3);
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(211, 20, 42, 0.4);
}

.btn-large svg {
  transition: transform 0.3s ease;
}

.btn-large:hover svg {
  transform: translateX(4px);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 12px;
}

.section-header p {
  max-width: 720px;
  margin: 0 auto;
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

/* Intro Section */
.careers-intro {
  position: relative;
  padding: 72px 0 80px;
  background: #fff;
}

.intro-bg {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
}

.intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: flex-start;
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 12px;
}

.section-lead {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin: 0 0 28px;
  max-width: 640px;
}

.intro-points {
  display: grid;
  gap: 20px;
}

.intro-point h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.intro-point p {
  margin: 0;
  color: #666;
}

.intro-aside {
  align-self: stretch;
}

.intro-card {
  border-radius: 18px;
  padding: 24px 24px 26px;
  border: 1px solid #eee;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.intro-card h3 {
  font-size: 18px;
  margin: 0 0 16px;
}

.intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.intro-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #444;
}

.intro-list strong {
  font-weight: 600;
}

/* Benefits Section */
.benefits {
  padding: 80px 0 72px;
  background: #fafafa;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.benefit-card {
  position: relative;
  padding: 24px 22px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(211, 20, 42, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
  background: #f8f8f8;
}

.benefit-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #111;
}

.benefit-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Our Values Section */
.our-values {
  padding: 80px 0 76px;
  background: #fff;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.value-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
  padding: 48px 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.value-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(211, 20, 42, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.value-card:hover::before {
  opacity: 1;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.value-number {
  font-size: 56px;
  font-weight: 800;
  color: rgba(211, 20, 42, 0.16);
  position: absolute;
  inset-inline: 0;
  top: 18px;
  text-align: center;
  pointer-events: none;
}

.value-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.value-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-tab {
  padding: 12px 28px;
  border: 2px solid #e8e8e8;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: #444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: #ccc;
}

.filter-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}


.filter-search {
  max-width: 280px;
  margin: 0 auto;
}

.filter-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* Jobs List */
.open-positions {
  padding: 80px 0;
  background: #fafafa;
}

.jobs-list {
  display: grid;
  gap: 18px;
}

.job-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #eee;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 14px 20px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.job-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-meta svg {
  width: 14px;
  height: 14px;
}

.job-dept {
  background: rgba(211, 20, 42, 0.1);
  color: var(--brand-red);
}

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.job-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f5;
}

.job-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.job-toggle {
  width: 48px;
  height: 48px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.job-toggle svg {
  transition: transform 0.2s ease;
}

.job-card.expanded {
  transform: translateY(-2px);
}

.job-card.expanded .job-toggle svg {
  transform: rotate(180deg);
  stroke: var(--brand-red);
}

.job-card.expanded .job-toggle {
  border-color: var(--brand-red);
}

.job-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  grid-column: 1 / -1;
  border-top: 1px solid #f0f0f0;
  margin-top: 12px;
  padding-top: 0;
}

.job-details__inner {
  padding-top: 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.job-details__inner h4 {
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.job-details__inner ul {
  padding-left: 18px;
  margin: 0;
}

/* Loading / Empty States */
.jobs-loading {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ddd;
  border-top-color: #111;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.jobs-empty {
  text-align: center;
  padding: 40px 24px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed #ddd;
  max-width: 640px;
  margin: 0 auto;
}

.jobs-empty h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.jobs-empty p {
  margin: 0 0 18px;
  color: #666;
}

/* Application Process */
.application-process {
  padding: 80px 0 84px;
  background: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: #111;
  color: #fff;
  margin-bottom: 6px;
}

.process-content {
  flex: 1;
  border-radius: 16px;
  padding: 20px 18px 22px;
  background: #fafafa;
  border: 1px solid #eee;
  box-shadow: 0 10px 24px rgba(211, 20, 42, 0.08);
  transition: all 0.2s ease;
}

.process-content h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.process-content p {
  margin: 0;
  color: #666;
  font-size: 14px;
}



/* CTA Section */
.careers-cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.careers-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  animation: rotate 60s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.cta-content p {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* Application Modal */
.application-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.application-modal h2 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 0 0 32px;
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(10, 124, 72, 0.1);
}

.form-group input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.form-msg {
  font-size: 14px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .careers-hero {
    min-height: 500px;
  }

  .careers-hero__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 60px 0;
  }

  .careers-hero__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .job-actions {
    justify-content: flex-start;
  }

  .filter-bar {
    align-items: stretch;
  }

  .filter-search {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .careers-hero__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .value-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .careers-cta {
    padding: 80px 0;
  }
}


body[data-page="careers"] .btn-primary {
  background: var(--brand-red);
  color: #fff;
  border: 1px solid var(--brand-red);
  box-shadow: none;
}

body[data-page="careers"] .btn-primary:hover {
  background: #b40f22;
}

body[data-page="careers"] .btn-large {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

body[data-page="careers"] .btn-large:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

body[data-page="careers"] .open-positions .job-actions .btn-primary {
 border-radius: 999px;
  padding-inline: 24px; 
}

body[data-page="careers"] .open-positions .job-actions .btn-primary:focus,
body[data-page="careers"] .open-positions .job-actions .btn-primary:active {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

body[data-page="careers"] .careers-cta {
  background: url("../pictures/3.webp") center/cover no-repeat;
}

body[data-page="careers"] .careers-cta::before {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

body[data-page="careers"] .modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

body[data-page="careers"] .modal__card.application-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid #e0e0e0;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body[data-page="careers"] .btn,
body[data-page="careers"] .btn-primary,
body[data-page="careers"] .btn-outline,
body[data-page="careers"] .btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--brand-red);
  color: #fff;
  border: 1px solid var(--brand-red);
  box-shadow: none;
}

body[data-page="careers"] .btn-large:hover {
  background: #b40f22;
  border-color: #b40f22;
  transform: translateY(-2px);
  box-shadow: none;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.filter-bar label,
.filter-bar .search-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
  display: block;
}

.filter-search {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.filter-search input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

.filter-search input:focus {
  border-color: #444;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.job-dept {
  background: #f1f1f1;
  color: #222;
  font-weight: 500;
}

.job-badge {
  background: #f4f4f4;
  color: #444;
}

.open-positions .job-actions .btn-primary {
  background: #555 !important;
  border-color: #555 !important;
  color: #fff !important;
}

.open-positions .job-actions .btn-primary:hover {
  background: #333 !important;
  border-color: #333 !important;
}
.intro-facts-wrapper {
  grid-column: 1 / -1;
  margin-top: 32px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px 28px;
}

.intro-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  font-size: 15px;
  color: #444;
}

.intro-facts li {
  display: flex;
  gap: 8px;
  line-height: 1.6;
  flex-wrap: wrap;
}

.intro-facts strong {
  font-weight: 600;
  color: #111;
  min-width: 130px;
}
/* Red underline for section titles on Careers page */
body[data-page="careers"] .section-header h2 {
  position: relative;
  padding-bottom: 14px;
}

body[data-page="careers"] .section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand-red);
}
.char-counter {
  font-size: 0.85rem;
  color: #666;
  text-align: right;
  margin-top: 4px;
}
/* -------------------------------
   MOBILE IMPROVEMENTS FOR CAREERS PAGE
   ------------------------------- */
@media (max-width: 600px) {

  /* Smaller header height + padding */
  .header__row {
    padding: 6px 12px !important;
  }

  .header .logo img {
    max-width: 120px !important;
  }

  .mobmenu {
    transform: scale(0.85);
  }

  /* Fix hero text padding so it's not touching edges */
  .careers-hero__content {
    padding: 30px 16px !important;
  }

  .careers-hero__text h1 {
    font-size: 26px !important;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .careers-hero__text p {
    font-size: 15px !important;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-right: 4px;
  }

  /* Make the big CTA button smaller on phones */
  .btn-large {
    padding: 12px 20px !important;
    font-size: 14px !important;
    gap: 6px !important;
  }

  .btn-large svg {
    width: 16px;
    height: 16px;
  }

  /* Give the whole hero section better breathing room */
  .careers-hero {
    min-height: 420px !important;
  }

  /* GENERAL MOBILE CONTAINER SPACING */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* Ensure hero text never touches the edges on anything below 1100px */
@media (max-width: 1160px) {
  .careers-hero__content {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

/* Slightly tighter on 800px and below */
@media (max-width: 800px) {
  .careers-hero__content {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

/* Phone size — even more compact + fix text sizing */
@media (max-width: 600px) {
  .careers-hero__content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .careers-hero__text h1 {
    font-size: 26px !important;
    line-height: 1.2;
  }

  .careers-hero__text p {
    font-size: 15px !important;
    line-height: 1.6;
  }
}
