/* ============================================================
   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;
  }
}
