/* ============================================================
   CAREERS-DETAIL-PAGE.CSS
   Styles for careers-detail.html
   Banner · Two-column content (sidebar + article) · Apply button
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   PAGE-LEVEL HEADER OVERRIDE
   Sticky + corner-radius behaviour identical to Careers / Blogs
   ───────────────────────────────────────────────────────────── */
body.page--careers .site-header.is-scrolled {
  position: sticky;
  top: 0;
  animation: none;
  border-radius: var(--radius-md);
}

body.page--careers .site-header.is-scrolled.is-stuck {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}


/* ─────────────────────────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────────────────────────── */
.careers-detail-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 0 0;
}


/* ─────────────────────────────────────────────────────────────
   BANNER
   Same as Careers / Blogs banner — all styles duplicated here
   since careers-detail.html does not load careers-page.css
   ───────────────────────────────────────────────────────────── */
.blogs-banner {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 100px 60px 100px 100px;
}

.blogs-banner__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.blogs-banner__bg img {
  position: absolute;
  width: 134.83%;
  height: 140.83%;
  left: -17.41%;
  top: 0;
  max-width: none;
  object-fit: cover;
}

.blogs-banner__heading {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 60px;
  line-height: 70px;
  letter-spacing: -1.6px;
  color: #ffffff;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   MAIN BODY WRAPPER
   Figma: gap 40px between banner and content
   ───────────────────────────────────────────────────────────── */
.cd-body {
  padding: 40px 0 40px;
}

.cd-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}


/* ─────────────────────────────────────────────────────────────
   LEFT SIDEBAR
   Figma node 3564-21178
   White card, 345px wide, pt:30 pb:48 px:24
   Meta rows (dl) + Apply button
   ───────────────────────────────────────────────────────────── */
.cd-sidebar {
  flex: 0 0 345px;
  width: 345px;
  background: #ffffff;
  border-radius: 25px;
  padding: 30px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* prevent children (button) from stretching full-width */
  gap: 30px;
  position: sticky;
  top: 100px; /* below sticky header */
}

/* Definition list — meta rows */
.cd-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  width: 100%; /* fill sidebar width so label+value rows span correctly */
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: -0.48px;
}

.cd-meta__row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.cd-meta__label {
  flex: 0 0 90px;
  width: 90px;
  font-weight: var(--fw-bold);
  color: #111111;
  line-height: 30px;
  margin: 0;
}

.cd-meta__value {
  flex: 1 0 0;
  min-width: 0;
  font-weight: var(--fw-semibold);
  color: #9b9b9b;
  line-height: 24px;
  margin: 0;
  padding-top: 3px; /* optical align with label */
}


/* ─────────────────────────────────────────────────────────────
   APPLY FOR JOB BUTTON
   Same gradient fill technique as .btn-view-more on careers.html
   Figma: pt:11px pb:12px pl:44px pr:25px, 9999px radius
   Gradient: linear-gradient(262.02deg, #ff4664 14.51%, #386bb7 95.96%)
   ───────────────────────────────────────────────────────────── */
.btn-apply {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 11px 25px 12px 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 27px;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  transition: opacity var(--ease-default);
}

/* Gradient fill */
.btn-apply::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  background: linear-gradient(262.02deg, #ff4664 14.51%, #386bb7 95.96%);
  z-index: 0;
  pointer-events: none;
}

.btn-apply:hover {
  opacity: 0.88;
}

/* Text layer */
.btn-apply__text {
  position: relative;
  z-index: 1;
}

/* Arrow — absolute at left:22.88px, vcenter */
.btn-apply__arrow {
  position: absolute;
  left: 22.88px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  color: #ffffff;
  flex-shrink: 0;
}

.btn-apply__arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* ─────────────────────────────────────────────────────────────
   RIGHT ARTICLE
   Figma node 3564-21195
   Flex: 1, gap 10px between heading and content
   ───────────────────────────────────────────────────────────── */
.cd-article {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ─────────────────────────────────────────────────────────────
   CONTENT SECTIONS  (Job Description / Responsibilities / etc.)
   ───────────────────────────────────────────────────────────── */
.cd-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sections after the first get an 85px top gap (Figma: pt-[85px]) */
.cd-section--gap {
  padding-top: 85px;
}

/* Section heading — Sora Regular 40px / -2px tracking */
.cd-section__heading {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -2px;
  color: #111111;
  margin: 0;
}

/* Body paragraphs — Manrope Medium 16px / 30px lh */
.cd-section__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cd-section__body p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  color: #333333;
  margin: 0;
}

/* Second body block inside Job Description (pt-[20px] in Figma) */
.cd-section__body--spaced {
  padding-top: 20px;
}


/* ─────────────────────────────────────────────────────────────
   BULLET LIST
   Figma: position:relative wrapper, pl-[30px], arrow bullet
   absolutely placed at left:0 top:11.25px (w:6px h:9px)
   ───────────────────────────────────────────────────────────── */
.cd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cd-list__item {
  position: relative;
  padding-left: 30px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  color: #333333;
}

/* Arrow bullet — matches Figma's imgIcon2 chevron (right-pointing) */
.cd-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11.25px;
  width: 6px;
  height: 9px;
  background-color: #333333;
  clip-path: polygon(0 0, 55% 50%, 0 100%, 0 85%, 40% 50%, 0 15%);
}


/* ─────────────────────────────────────────────────────────────
   BOTTOM APPLY BUTTON WRAPPER
   Figma: div.vacancy-post-button — pt-[26px]
   ───────────────────────────────────────────────────────────── */
.cd-apply-wrap {
  padding-top: 26px;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cd-content {
    flex-direction: column;
  }

  .cd-sidebar {
    flex: none;
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }

  .cd-meta {
    flex: 1 1 300px;
  }
}

@media (max-width: 767px) {
  .careers-detail-page {
    padding: 20px 0 0;
  }

  .cd-body {
    padding: 28px 0 60px;
  }

  .cd-section__heading {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -1px;
  }

  .cd-section--gap {
    padding-top: 50px;
  }

  .blogs-banner__heading {
    font-size: 40px;
    line-height: 50px;
  }

  .blogs-banner {
    padding: 60px 32px;
    min-height: 240px;
  }
}


/* ─────────────────────────────────────────────────────────────
   JOB APPLICATION MODAL
   Contact page matching form design + validation states
   ───────────────────────────────────────────────────────────── */
.job-application-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.job-application-modal[aria-hidden="false"] {
  display: flex;
}

.job-application-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.job-application-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 25px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.job-application-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.job-application-modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -0.9px;
  color: #111111;
  margin: 0;
}

.job-application-modal__close {
  position: relative;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  color: #999999;
  transition: color 0.2s ease;
}

.job-application-modal__close:hover {
  color: #333333;
}

.job-application-modal__body {
  padding: 0 40px 40px;
  overflow-y: auto;
}

.job-application-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 10px 10px 0;
}

.job-application-form__field {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #adadad;
  padding-bottom: 10px;
  gap: 10px;
}

.job-application-form__field + .job-application-form__field {
  margin-top: 10px;
}

.job-application-form__field--message {
  min-height: 138px;
  align-items: flex-start;
  padding-top: 18px;
}

.job-application-form__field--file {
  min-height: auto;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}

.job-application-form__field input,
.job-application-form__field textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 27px;
  color: #111111;
  resize: none;
}

.job-application-form__field input::placeholder,
.job-application-form__field textarea::placeholder {
  color: #898989;
}

.job-application-form__field input[readonly] {
  color: #666666;
  cursor: default;
}

.job-application-form__field textarea {
  height: 100%;
  min-height: 100px;
}

.job-application-form__field input[type="file"] {
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.job-application-form__field.has-error {
  border-bottom-color: #eb5667;
}

.job-application-form__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: #333333;
}

.job-application-form__file-status {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: #666666;
  margin: 0;
}

.job-application-form__file-status.success {
  color: #16803c;
}

.job-application-form .form-error {
  position: absolute;
  left: 0;
  bottom: -18px;
  font-size: 11px;
  line-height: 14px;
  color: #eb5667;
}

.job-application-form__field--file .form-error {
  position: static;
  margin-top: -4px;
}

.job-application-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: 31px;
  padding: 11px 25px 12px 44px;
  background: #343434;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 27px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.job-application-form__submit:hover {
  opacity: 0.85;
}

.job-application-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.job-application-form__submit .footer__form-submit-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  display: block;
}

.job-application-form__message {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  display: none;
}

.job-application-form__message.success {
  color: #16803c;
  display: block;
}

.job-application-form__message.error {
  color: #eb5667;
  display: block;
}

@media (max-width: 767px) {
  .job-application-modal__header {
    padding: 24px 24px 16px;
  }

  .job-application-modal__body {
    padding: 0 24px 30px;
  }

  .job-application-modal__title {
    font-size: 24px;
    line-height: 32px;
  }
}
