/* Career Hero Section */
#careers-section{
  width: 100%; /* Full width for background */
  margin: 0;
  background: var(--color-text-inverse); /* White background extends full width */
  padding-top: 30px;
}
#careers-section .menu-inline-content .text-newsletter,
#careers-section .menu-inline-content .text-newsletter-accent,
#careers-section .menu-inline-content p,
#careers-section .menu-inline-content h1,
#careers-section .menu-inline-content h2,
#careers-section .menu-inline-content h3,
#careers-section .menu-inline-content h4,
#careers-section .menu-inline-content strong {
  color: var(--color-text-primary);
}
#careers-section .menu-inline-content .job-card,
#careers-section .menu-inline-content .job-card *,
#careers-section .menu-inline-content .job-card h3,
#careers-section .menu-inline-content .job-card p,
#careers-section .menu-inline-content .job-header h3,
#careers-section .menu-inline-content .job-location,
#careers-section .menu-inline-content .jobs-grid .job-card,
#careers-section .menu-inline-content .jobs-grid .job-card *,
#careers-section .menu-inline-content .jobs-grid .job-card h3,
#careers-section .menu-inline-content .jobs-grid .job-card p {
  color: var(--text-primary);
}
#careers-section .menu-inline-content .job-card p,
#careers-section .menu-inline-content .job-location,
#careers-section .menu-inline-content .jobs-grid .job-card p {
  color: var(--text-secondary);
}
body #careers-section .menu-inline-content {
  text-align: left;
  border: none;
  box-shadow: none;
}
#careers-section .careers-content p:first-child {
  margin-bottom: var(--spacing-md);
  text-align: left;
}
#careers-section .careers-content p:first-child .text-newsletter-accent {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--spacing-sm);
}
#careers-section .careers-content p:nth-child(2) {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin: 0 0 var(--spacing-lg) 0;
  text-align: left;
  max-width: var(--content-max-width);
}
#careers-section .menu-content-area .careers-content.content-container {
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}
body #careers-section .career-hero {
  background: transparent; /* Let section background show through */
  padding: var(--spacing-xl) var(--spacing-md);
  margin: 0 auto;
  width: 80%; /* Content at 80% width */
  max-width: 1200px;
  color: var(--color-text-dark);
  box-sizing: border-box;
  position: relative;
  border: none;
  box-shadow: none !important;
  overflow: hidden;
}
body #careers-section .career-hero-content {
  display: flex;
  gap: var(--spacing-2xl);
  align-items: flex-start;
  max-width: none;
  margin: 0 auto;
  width: 90%;
  min-height: 0;
}
body #careers-section .career-hero-text {
  flex: 1 1 60%;
  min-width: 0;
  text-align: left;
  max-width: 60%;
}
body #careers-section .career-hero-jobs {
  flex: 1 1 40%;
  min-width: 240px;
  display: flex;
  justify-content: stretch;
  max-width: 40%;
  overflow: visible;
}
#careers-section .career-hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #000 ;
  margin-bottom: var(--spacing-md);
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
#careers-section .career-hero-text p {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text-dark) ;
  margin: 0;
  text-align: left;
  max-width: min(45ch, 100%);
  width: 100%;
}
body .jobs-grid {
  display: grid;
  /* grid-template-columns: repeat(2, 1fr); */
  grid-template-columns: 1fr !important; /* force single column per row */
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
body .job-card {
  position: relative;
  background: url('../../images/gallery/Career_card_bg_img.webp') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-md);
  gap: var(--spacing-sm);
  color: var(--color-text-inverse);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: normal;
  overflow-wrap: normal;
}
/* Ensure job card fills available column width */
#careers-section .career-hero-jobs .job-card {
  width: 100%;
  align-self: stretch;
}
body .job-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Black overlay, 40% opacity */
  border-radius: var(--border-radius-sm);
  z-index: 1;
}
body .job-card > * {
  position: relative;
  z-index: 2;
}
body .job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}
.job-header h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  color: var(--color-text-inverse);
}
body .job-type {
  font-size: 0.85rem;
  /* background: rgba(255, 255, 255, 0.2); */
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-inverse);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-xs);
  white-space: nowrap;
  font-weight: 500;
}
.job-card p {
  flex: 1;
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
body .job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: auto;
  padding-top: var(--spacing-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
body .job-location {
  font-size: 0.85rem;
  opacity: 0.8;
  flex: 1;
  color: rgba(255, 255, 255, 0.8);
}
body .job-apply-btn {
  background: #d02c39;
  color: var(--color-text-inverse);
  border: 1px solid #d02c39;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-xs);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  border-radius: 5px;
}
.job-apply-btn:hover {
  background: #f53949;
  /*border-color: rgba(255, 255, 255, 0.5);*/
  border-color: #d02c39;
  transform: translateY(-1px);
}
body .menu-content-area .careers-content {
  max-width: 800px;
  width: 100%;
  text-align: left;
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}
.menu-content-area .careers-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}
.menu-content-area .careers-content p:first-child {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem;
}
.menu-content-area .careers-content p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: center;
  font-weight: 600;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
}
.menu-content-area .careers-content strong {
  color: var(--color-text-inverse);
  font-weight: 600;
}



body #careers-section .career-application {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-md);
  margin: var(--spacing-sm) auto var(--spacing-lg) auto;
  max-width: var(--narrow-max-width);
  text-align: center;
}
body #careers-section .career-application .career-application-info {
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}
body #careers-section .career-application .career-email-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}
#careers-section .career-application .career-email-link:hover {
  color: var(--color-text-dark);
  text-decoration: underline;
}
body #careers-section .menu-content-area {
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Responsive Design - Media Queries */
@media (max-width: 768px) {
  /* Critical: Force career hero to stack vertically */
  body #careers-section .career-hero-content {
    flex-direction: column !important;
    gap: var(--spacing-lg) !important;
  }
  
  /* Force all hero children to full width */
  body #careers-section .career-hero-text,
  body #careers-section .career-hero-jobs {
    flex: none !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  
  /* Force jobs grid to single column */
  body .jobs-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-sm) !important;
    max-width: 100% !important;
    margin: var(--spacing-md) 0 !important;
  }
  
  /* Typography adjustments */
  #careers-section .career-hero-text h1 {
    font-size: 2.5rem;
  }
  #careers-section .career-hero-text p {
    font-size: 1.125rem;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Job cards responsive */
  body .job-card {
    padding: var(--spacing-sm);
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  /* Extra small screens - even more aggressive stacking */
  body #careers-section .career-hero {
    padding: var(--spacing-md) var(--spacing-sm) !important;
  }
  
  #careers-section .career-hero-text h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  #careers-section .career-hero-text p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
  
  /* Ensure job cards don't break layout */
  body .job-card {
    padding: var(--spacing-xs) !important;
    margin-bottom: var(--spacing-xs) !important;
  }
  
  .job-header h3 {
    font-size: var(--font-size-sm) !important;
    word-break: break-word !important;
  }
}

@media (max-width: 1200px) {
  body #careers-section .career-hero-content {
    gap: var(--spacing-lg);
  }
  body .jobs-grid {
    gap: var(--spacing-sm);
  }
}

@media (max-width: 992px) {
  /* Tablet breakpoint - start stacking */
  body #careers-section .career-hero-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  #careers-section .career-hero-text,
  body #careers-section .career-hero-jobs {
    flex: none;
    max-width: 100%;
  }
  body .jobs-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: var(--spacing-lg) auto;
  }
}
