/* ==========================================================================
   NESI Single Career Post Page  ·  body.single-ambr_careers
   ========================================================================== */


/* ==========================================================================
   0. CSS VARIABLES
   ========================================================================== */

body.single-ambr_careers {
  --c-blue:  #0877b4;
  --c-dark:  #10203a;
  --c-text:  #4f5863;
  --c-light: #f4f7fb;
}


/* ==========================================================================
   1. TYPOGRAPHY
   ========================================================================== */

/* ── Main job title (entry header h1) ──────────────────────────────────── */
body.single-ambr_careers .entry-header.entry-header__single {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}

body.single-ambr_careers .entry-header .h1,
body.single-ambr_careers .entry-header h1 {
  font-size: clamp(1.9rem, 2.2vw, 2.8rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px !important;
  color: var(--c-dark);
  max-width: 100%;
}

/* ── Content H1 headings (About Us, Why Join Us, etc.) ─────────────────── */
body.single-ambr_careers .single-post__entry-content h1.wp-block-heading {
  font-size: clamp(1.8rem, 2.4vw, 2.5rem) !important;
  line-height: 1.15 !important;
  color: var(--c-dark) !important;
  margin-top: 72px !important;
  margin-bottom: 24px !important;
}

/* ── Content H2 subheadings (Project Execution & Delivery, etc.) ────────── */
body.single-ambr_careers .single-post__entry-content h2.wp-block-heading {
  font-size: clamp(1.35rem, 1.7vw, 1.75rem) !important;
  line-height: 1.3 !important;
  color: var(--c-dark) !important;
  margin-top: 28px !important;
  margin-bottom: 10px !important;
}

/* Reduce space when H2 follows a list */
body.single-ambr_careers .single-post__entry-content ul.wp-block-list + h2.wp-block-heading {
  margin-top: 14px !important;
}

/* ── Content H3 sub-section headings ───────────────────────────────────── */
body.single-ambr_careers .single-post__entry-content h3.wp-block-heading {
  font-size: clamp(1rem, 1.1vw, 1.15rem) !important;
  line-height: 1.35 !important;
  color: var(--c-dark) !important;
  margin-top: 22px !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Reduce space when H3 follows a paragraph */
body.single-ambr_careers .single-post__entry-content p + h3.wp-block-heading {
  margin-top: 18px !important;
}

/* Reduce space when H3 follows a list */
body.single-ambr_careers .single-post__entry-content ul.wp-block-list + h3.wp-block-heading {
  margin-top: 14px !important;
}

/* ── Body text (paragraphs & list items) ────────────────────────────────── */
body.single-ambr_careers .single-post__entry-content p,
body.single-ambr_careers .single-post__entry-content li {
  font-size: 1.05rem !important;
  line-height: 1.58 !important;
  color: var(--c-text) !important;
}

body.single-ambr_careers .single-post__entry-content p {
  margin-bottom: 0.75rem !important;
}

/* Job info rows: bold label + value pairs */
body.single-ambr_careers .single-post__entry-content > p strong {
  display: inline-block;
  min-width: 150px;
  color: var(--c-dark);
}

/* ── Unordered lists ────────────────────────────────────────────────────── */
body.single-ambr_careers .single-post__entry-content ul.wp-block-list {
  padding-left: 1.35rem !important;
  margin-top: 0.35rem !important;
  margin-bottom: 1rem !important;
}

body.single-ambr_careers .single-post__entry-content ul.wp-block-list > li {
  margin-bottom: 0.45rem !important;
  line-height: 1.58 !important;
  color: var(--c-text) !important;
}

/* ── Nested sub-lists ───────────────────────────────────────────────────── */
body.single-ambr_careers .single-post__entry-content ul.wp-block-list ul {
  margin-top: 0.45rem !important;
  margin-bottom: 0.45rem !important;
  padding-left: 1.2rem !important;
}

body.single-ambr_careers .single-post__entry-content ul.wp-block-list ul li {
  margin-bottom: 0.2rem !important;
  line-height: 1.45 !important;
}

body.single-ambr_careers .single-post__entry-content ul.wp-block-list ul li:last-child {
  margin-bottom: 0 !important;
}


/* ==========================================================================
   2. CAROUSEL & CARDS
   ========================================================================== */

/* ── Section background ─────────────────────────────────────────────────
   The element carries class "bg--white" (background:#fff in theme CSS).
   All selector combinations listed to guarantee #f4f7fb wins.          */
body.single-ambr_careers .excerpt-carousel,
body.single-ambr_careers .excerpt-carousel.bg--white,
body.single-ambr_careers .excerpt-carousel.content-block,
body.single-ambr_careers .excerpt-carousel.single-post-nav,
body.single-ambr_careers .excerpt-carousel.bg--white.content-block,
body.single-ambr_careers .excerpt-carousel.bg--white.single-post-nav,
body.single-ambr_careers .excerpt-carousel.bg--white.content-block.single-post-nav {
  background: #f4f7fb !important;
}

/* ── Section heading ────────────────────────────────────────────────────── */
body.single-ambr_careers .excerpt-carousel__intro {
  padding-top: 36px;
  padding-bottom: 12px;
}

body.single-ambr_careers .excerpt-carousel .header.h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
  font-weight: 700 !important;
  color: var(--c-dark) !important;
  margin: 0 !important;
}

/* ── Carousel nav arrows ────────────────────────────────────────────────── */
body.single-ambr_careers .customNavigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

body.single-ambr_careers .customNavigation a {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(16, 32, 58, 0.15);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.single-ambr_careers .customNavigation a:hover {
  border-color: var(--c-blue);
  background: #e8f2fb;
}

/* ── Equal-height cards: stretch owl-stage rows ─────────────────────────── */
body.single-ambr_careers .excerpt-carousel .owl-stage {
  display: flex !important;
  align-items: stretch !important;
}

body.single-ambr_careers .excerpt-carousel .owl-item {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  align-self: stretch !important;
}

body.single-ambr_careers .excerpt-carousel .owl-item > .item,
body.single-ambr_careers .excerpt-carousel .owl-item .card-outer-careers,
body.single-ambr_careers .excerpt-carousel .owl-item .careers-excerpt {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
}

/* ── Card outer wrappers ────────────────────────────────────────────────── */
body.single-ambr_careers .card-outer-careers,
body.single-ambr_careers .careers-excerpt {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* ── Card shell ─────────────────────────────────────────────────────────
   All selector combinations needed to beat theme specificity.
   style-theme.min.css:7158 sets .card-outer-careers .card { background: #f3f3f3 } */
body.single-ambr_careers .card-outer-careers .card,
body.single-ambr_careers .careers-excerpt .card,
body.single-ambr_careers .excerpt-carousel .card-outer-careers .card,
body.single-ambr_careers .excerpt-carousel .careers-excerpt .card,
body.single-ambr_careers .owl-carousel .card-outer-careers .card,
body.single-ambr_careers .owl-item .card-outer-careers .card,
body.single-ambr_careers .owl-item .careers-excerpt .card,
body.single-ambr_careers .excerpt-carousel .owl-item .card {
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 320px !important;
  background: #ffffff !important;
  border: 1px solid rgba(16, 32, 58, 0.09) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 48px rgba(9, 32, 76, 0.08) !important;
  padding: 32px 32px 40px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.single-ambr_careers .card-outer-careers .card:hover,
body.single-ambr_careers .owl-item .card-outer-careers .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(10, 60, 110, 0.14) !important;
}

/* Highlight the current post's card in the carousel */
body.single-ambr_careers .item.current-post .card-outer-careers .card {
  border-color: var(--c-blue) !important;
  box-shadow: 0 0 0 2px rgba(8, 119, 180, 0.2),
              0 8px 28px rgba(9, 32, 76, 0.09) !important;
}

/* ── Card body ──────────────────────────────────────────────────────────── */
body.single-ambr_careers .card-outer-careers .card-body,
body.single-ambr_careers .careers-excerpt .card-body,
body.single-ambr_careers .excerpt-carousel .card-body,
body.single-ambr_careers .owl-item .card-body {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  gap: 0 !important;
  overflow: visible !important;
}

/* ── Date / eyebrow label ───────────────────────────────────────────────── */
body.single-ambr_careers .card__date_category {
  color: var(--c-blue) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
}

body.single-ambr_careers .card__date_category time {
  display: inline !important;
}

/* ── Card title wrapper ─────────────────────────────────────────────────── */
body.single-ambr_careers .card-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

/* ── Card title ─────────────────────────────────────────────────────────── */
body.single-ambr_careers .card-title,
body.single-ambr_careers .card-title.h3 {
  font-size: clamp(1.2rem, 1.45vw, 1.5rem) !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
  color: #00263e !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.01em !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* ── Excerpt text ───────────────────────────────────────────────────────── */
body.single-ambr_careers .careers__job_details {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #405262 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
}

/* ── Button wrapper ─────────────────────────────────────────────────────── */
body.single-ambr_careers .btn-wrapper {
  list-style: none !important;
  margin-top: auto !important;
  padding-top: 28px !important;
  flex-shrink: 0;
}

body.single-ambr_careers .btn-wrapper li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── "Learn More" button ────────────────────────────────────────────────── */
body.single-ambr_careers .btn-wrapper .btn.btn--plain,
body.single-ambr_careers .owl-item .btn.btn--plain {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 28px !important;
  background: transparent !important;
  border: 2px solid var(--c-blue) !important;
  color: var(--c-blue) !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: background 0.22s ease, color 0.22s ease !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

body.single-ambr_careers .btn-wrapper .btn.btn--plain:hover,
body.single-ambr_careers .owl-item .btn.btn--plain:hover {
  background: var(--c-blue) !important;
  color: #fff !important;
}


/* ==========================================================================
   3. APPLY / CONTACT FORM
   ========================================================================== */

body.single-ambr_careers .apply {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(16, 32, 58, 0.1);
}

body.single-ambr_careers .apply .divider {
  display: none;
}

body.single-ambr_careers .apply__heeader .header.h2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem) !important;
  font-weight: 700 !important;
  color: var(--c-dark) !important;
  margin-bottom: 24px !important;
}

/* ── Contact info column ────────────────────────────────────────────────── */
body.single-ambr_careers .apply__details .col-md-4 {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-text);
}

body.single-ambr_careers .apply__details .col-md-4 a {
  color: var(--c-blue);
  text-decoration: none;
}

body.single-ambr_careers .apply__details .col-md-4 a:hover {
  text-decoration: underline;
}

body.single-ambr_careers .apply__details .footer__address {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--c-text);
}

/* ── Form labels ────────────────────────────────────────────────────────── */
body.single-ambr_careers .apply__contact-form label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 4px;
  display: block;
}

/* ── Form inputs ────────────────────────────────────────────────────────── */
body.single-ambr_careers .apply__contact-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(16, 32, 58, 0.2);
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--c-dark);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

body.single-ambr_careers .apply__contact-form .form-control:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(8, 119, 180, 0.12);
}

body.single-ambr_careers .apply__contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ── Submit button ──────────────────────────────────────────────────────── */
body.single-ambr_careers .apply__contact-form .btn.btn--primary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 12px 32px !important;
  background: var(--c-blue) !important;
  color: #fff !important;
  border: 2px solid var(--c-blue) !important;
  border-radius: 999px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.22s ease !important;
}

body.single-ambr_careers .apply__contact-form .btn.btn--primary:hover {
  background: #0660a0 !important;
  border-color: #0660a0 !important;
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

body.single-ambr_careers .content-block .col-lg-10 {
  max-width: 980px !important;
  flex: 0 0 980px !important;
}


/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */

/* ── Tablet (≤ 991px) ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
  body.single-ambr_careers .content-block .col-lg-10 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  body.single-ambr_careers .entry-header .h1,
  body.single-ambr_careers .entry-header h1 {
    max-width: 100%;
    margin-bottom: 36px !important;
  }
}

/* ── Mobile (≤ 767px) ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
  body.single-ambr_careers .apply__details .col-md-4 {
    margin-bottom: 24px;
  }
}