/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/




/* Saby Hero Banner layout fix - Desktop */
.home .nectar_section.top-level .row-bg-img {
  object-position: 85% center !important;
}
.home .nectar_section.top-level .hero-subline-1 {
  display: block !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  opacity: 0.95 !important;
  margin-top: 14px !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
  letter-spacing: -0.01em !important;
}
.home .nectar_section.top-level .hero-subline-2 {
  display: block !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  color: #BBE0EF !important;
  opacity: 0.95 !important;
  line-height: 1.4 !important;
}
@media (min-width: 1000px) {
  .home .nectar_section.top-level .row_col_wrap_12 > .vc_col-sm-6:first-child,
  .home .nectar_section.top-level .row_col_wrap_12 > .vc_col-sm-5:first-child {
    max-width: 540px !important;
  }
  /* Keep "Founder of Method- IM (the public speaking accademy)" on one line */
  .home .nectar_section.top-level .hero-subline-1 {
    white-space: nowrap !important;
  }
}

/* Saby mobile layout fixes (hero, section rhythm, About order) */
@media (max-width: 999px) {
  .home .nectar_section.top-level {
    min-height: 88svh !important;
    justify-content: flex-start !important;
    padding-top: 85px !important;
  }
  .home .nectar_section.top-level .row-bg-img {
    content: url("https://sabyasachisengupta.com/wp-content/uploads/2026/10/Sabyasachi-Sengupta-World-Champion-Public-Speaking-Stage-Mobile.webp") !important;
    object-position: center bottom !important;
    object-fit: cover !important;
  }
  .home .nectar_section.top-level .row-bg-overlay {
    opacity: 0 !important;
  }
  .home .nectar_section.top-level .vc_col-sm-5 {
    max-width: 320px !important;
    padding-left: 20px !important;
    padding-right: 10px !important;
  }
  .home .nectar_section.top-level h1 {
    font-size: 26px !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    word-break: normal !important;
    margin-bottom: 8px !important;
  }
  .home .nectar_section.top-level .split-line-heading span {
    white-space: normal !important;
  }
  .home .nectar_section.top-level .hero-subline-1 {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    margin-top: 8px !important;
    margin-bottom: 6px !important;
    display: block !important;
  }
  .home .nectar_section.top-level .hero-subline-2 {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
    display: block !important;
    margin-bottom: 14px !important;
  }
  .home .nectar_section.top-level .wpb_column:has(.nectar-cta) .wpb_wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .home .nectar_section.top-level .nectar-cta {
    display: inline-block !important;
    margin: 0 !important;
  }
  .home .nectar_section.top-level .nectar-cta .link_text {
    font-size: 14px !important;
    white-space: nowrap !important;
  }
  .home .nectar_section.top-level h1,
  .home .nectar_section.top-level h2,
  .home .nectar_section.top-level h3,
  .home .nectar_section.top-level p {
    text-shadow: 0 1px 12px rgba(0,0,0,.45) !important;
  }

  /* Even vertical rhythm between homepage sections */
  .home .wpb_row:has(.ticker-rotate) { padding-top: 22px !important; padding-bottom: 22px !important; }
  .home .wpb_row:has(.sbp) { padding-top: 36px !important; padding-bottom: 28px !important; }
  .home .wpb_row:has(+ #services) { padding-top: 40px !important; }
  .home #services { padding-bottom: 24px !important; margin-bottom: 0 !important; }
  .home #about { padding-top: 40px !important; }

  /* About: photo between the heading and the story, not after the button */
  .home #about .inner_row > .row_col_wrap_12_inner {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
  .home #about .inner_row > .row_col_wrap_12_inner > .wpb_column { margin-bottom: 24px !important; }
  .home #about .inner_row > .row_col_wrap_12_inner > .wpb_column:first-child { margin-bottom: 0 !important; }
}

/* About page: keep the champion card beside the story while reading */
@media (min-width: 1000px) {
  .page-id-1638 .wpb_row .vc_col-sm-5 > .vc_column-inner {
    position: sticky;
    top: 120px;
  }
}

/* How I help: service cards in the theme's flat colour blocks */
#services > .row_col_wrap_12 > .wpb_column > .vc_column-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 34px !important;
  border-radius: 22px;
  overflow: hidden;
}
#services > .row_col_wrap_12 > .wpb_column > .vc_column-inner > .column-bg-overlay-wrap {
  display: none !important;
}
#services > .row_col_wrap_12 > .wpb_column:nth-child(1) > .vc_column-inner { background: #161E54; color: #fff; }
#services > .row_col_wrap_12 > .wpb_column:nth-child(2) > .vc_column-inner { background: #F16D34; color: #000; }
#services > .row_col_wrap_12 > .wpb_column:nth-child(3) > .vc_column-inner { background: #BBE0EF; color: #000; }
#services > .row_col_wrap_12 > .wpb_column { box-shadow: none !important; }

#services > .row_col_wrap_12 > .wpb_column > .vc_column-inner > .wpb_wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
}
#services .wpb_wrapper > :not(.img-with-aniamtion-wrap) {
  margin-left: 22px !important;
  margin-right: 22px !important;
}

/* Photo inset in the block, like the illustration in the courses card */
#services .img-with-aniamtion-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 22px !important;
  border-radius: 12px;
  overflow: hidden;
}
#services .img-with-aniamtion-wrap .inner,
#services .img-with-aniamtion-wrap .hover-wrap,
#services .img-with-aniamtion-wrap .hover-wrap-inner {
  width: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
}
#services .img-with-aniamtion-wrap img {
  display: block;
  max-width: none !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px !important;
}
#services .nectar-responsive-text:has(h3) h3 { margin-top: 0 !important; padding-top: 0 !important; }
#services .wpb_column:nth-child(2) .nectar-cta .arrow-circle-animation-arrow { color: #000 !important; fill: #000 !important; }

/* Title, then the fact pill (theme tag style), then the promise line */
#services h3 { color: inherit !important; margin-bottom: 12px; }
#services .nectar-badge {
  order: 0;
  align-self: flex-start;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
#services .nectar-badge,
#services .nectar-badge__inner { border-radius: 100px !important; }
#services .nectar-badge__inner { font-size: 15px !important; padding: 5px 14px !important; line-height: 1.4 !important; }
#services .wpb_column:nth-child(1) .nectar-badge__inner { background: #F16D34 !important; color: #000 !important; }
#services .wpb_column:nth-child(2) .nectar-badge__inner { background: #BBE0EF !important; color: #000 !important; }
#services .wpb_column:nth-child(3) .nectar-badge__inner { background: #F16D34 !important; color: #000 !important; }

#services .wpb_wrapper > * { order: 3; }
#services .wpb_wrapper > .img-with-aniamtion-wrap { order: 0; }
#services .wpb_wrapper > .nectar-responsive-text:has(h3) { order: 1; }
#services .wpb_wrapper > .nectar-badge { order: 2; box-shadow: none !important; }

#services .nectar-responsive-text[style*="4A5568"] { color: inherit !important; opacity: .78; }
#services .nectar-responsive-text h5 { color: inherit !important; font-size: 18px; line-height: 1.45; }
#services .divider-wrap { display: none !important; }
#services .nectar-responsive-text:has(h5) { margin-bottom: 14px !important; }
#services .nectar-responsive-text { color: inherit; }

/* Full-width pill buttons, coloured like the theme's own */
#services .nectar-cta { margin-top: auto !important; padding-top: 22px; display: block !important; }
#services .nectar-cta .nectar-button-type,
#services .nectar-cta .link_wrap { display: flex !important; width: 100%; }
#services .nectar-cta .link_text { display: flex !important; width: 100%; justify-content: space-between; align-items: center; }
#services .wpb_column:nth-child(1) .nectar-cta .link_wrap { background: #BBE0EF !important; }
#services .wpb_column:nth-child(1) .nectar-cta .link_text,
#services .wpb_column:nth-child(1) .nectar-cta .text { color: #000 !important; }
#services .wpb_column:nth-child(2) .nectar-cta .link_wrap { background: #000 !important; }
#services .wpb_column:nth-child(2) .nectar-cta .link_text,
#services .wpb_column:nth-child(2) .nectar-cta .text { color: #fff !important; }
#services .wpb_column:nth-child(2) .nectar-cta .arrow-circle-animation-arrow-wrap { background: #fff !important; color: #000 !important; }
#services .wpb_column:nth-child(3) .nectar-cta .link_wrap { background: #161E54 !important; }
#services .wpb_column:nth-child(3) .nectar-cta .link_text,
#services .wpb_column:nth-child(3) .nectar-cta .text { color: #fff !important; }
#services .wpb_column:nth-child(3) .nectar-cta .arrow-circle-animation-arrow-wrap { background: #BBE0EF !important; color: #161E54 !important; }
#services .wpb_column:nth-child(3) .nectar-cta .arrow-circle-animation-arrow-wrap svg * { stroke: none !important; }

@media (max-width: 690px) {
  #services > .row_col_wrap_12 > .wpb_column > .vc_column-inner { padding: 10px 10px 26px !important; }
  #services .wpb_wrapper > :not(.img-with-aniamtion-wrap) { margin-left: 16px !important; margin-right: 16px !important; }
}

/* Speaking Passport - Australia & Finale layout fix */
.sbp .passport-layout--magazine:has(.editorial-page--finale) .editorial-feature,
.sbp .passport-spread-inner:has(.editorial-page--finale) .editorial-feature,
.sbp .passport-layout--magazine[data-count="1"]:has(.editorial-page--finale) .editorial-feature,
.sbp [data-chapter="07"] .editorial-feature {
  display: flex !important;
}
