/* ==========================================================================
   Generic inner-page container
   index.php (the fallback template used for every page/post) has no width
   constraint of its own, so content rendered edge-to-edge with no spacing.
   This mirrors the contained/padded layout already used across the rest of
   the site (see .cn-morph-grid: max-width 1600px, padding 0 5vw).
   ========================================================================== */

#main-content {
  /*padding: 140px 5vw 80px;*/
  box-sizing: border-box;
}

#main-content > article {
  max-width: 1200px;
  margin: 0 auto;
}

#main-content .horizontal_txt,
#main-content .entry-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin: 0 0 30px;
  color: #fff;
}

#main-content .entry-thumbnail {
  margin-bottom: 30px;
}

#main-content .entry-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

#main-content .entry-content {
  color: #a0a0a0;
  font-size: 1rem;
  line-height: 1.7;
}

#main-content .entry-content p {
  margin-bottom: 20px;
}

#main-content .entry-content a {
  color: #f29120;
}

#main-content .entry-content h1,
#main-content .entry-content h2,
#main-content .entry-content h3,
#main-content .entry-content h4,
#main-content .entry-content h5,
#main-content .entry-content h6 {
  color: #fff;
  margin: 30px 0 15px;
}

@media (max-width: 768px) {
  #main-content {
    padding: 100px 20px 60px;
  }
}

/* ==========================================================================
   Legacy WPBakery / Visual Composer shortcode layout
   Old content was built with [vc_row][vc_column][vc_column_text] on Betheme,
   which shipped its own Bootstrap-style grid CSS. This theme has none, so
   the markup those shortcodes render is unstyled and stacks/distorts.
   This restores the same 12-column grid behaviour those shortcodes expect.
   ========================================================================== */

.vc_row,
.wpb_row,
.vc_column-inner,
.wpb_wrapper {
  box-sizing: border-box;
}

.vc_row::before,
.vc_row::after,
.wpb_row::before,
.wpb_row::after,
.vc_column-inner::before,
.vc_column-inner::after,
.wpb_wrapper::before,
.wpb_wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.vc_row,
.wpb_row {
  margin-left: -15px;
  margin-right: -15px;
}

.vc_row.vc_row-no-padding,
.wpb_row.vc_row-no-padding {
  margin-left: 0;
  margin-right: 0;
}

.vc_row.vc_row-no-padding > .wpb_column,
.wpb_row.vc_row-no-padding > .vc_column_container {
  padding-left: 0;
  padding-right: 0;
}

.wpb_column,
.vc_column_container {
  box-sizing: border-box;
  float: left;
  width: 100%;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

.wpb_wrapper > *:last-child {
  margin-bottom: 0;
}

.wpb_content_element,
.wpb_text_column {
  margin-bottom: 20px;
}

.wpb_wrapper img {
  max-width: 100%;
  height: auto;
}

.vc_align_left {
  text-align: left;
}

.vc_align_center {
  text-align: center;
}

.vc_align_right {
  text-align: right;
}

.vc_empty_space {
  display: block;
  clear: both;
}

/* ---- Grid widths: xs (default, < 768px) ---- */
.vc_col-xs-1  { width: 8.33333%; }
.vc_col-xs-2  { width: 16.66667%; }
.vc_col-xs-3  { width: 25%; }
.vc_col-xs-4  { width: 33.33333%; }
.vc_col-xs-5  { width: 41.66667%; }
.vc_col-xs-6  { width: 50%; }
.vc_col-xs-7  { width: 58.33333%; }
.vc_col-xs-8  { width: 66.66667%; }
.vc_col-xs-9  { width: 75%; }
.vc_col-xs-10 { width: 83.33333%; }
.vc_col-xs-11 { width: 91.66667%; }
.vc_col-xs-12 { width: 100%; }

.vc_col-xs-offset-1  { margin-left: 8.33333%; }
.vc_col-xs-offset-2  { margin-left: 16.66667%; }
.vc_col-xs-offset-3  { margin-left: 25%; }
.vc_col-xs-offset-4  { margin-left: 33.33333%; }
.vc_col-xs-offset-5  { margin-left: 41.66667%; }
.vc_col-xs-offset-6  { margin-left: 50%; }
.vc_col-xs-offset-7  { margin-left: 58.33333%; }
.vc_col-xs-offset-8  { margin-left: 66.66667%; }
.vc_col-xs-offset-9  { margin-left: 75%; }
.vc_col-xs-offset-10 { margin-left: 83.33333%; }
.vc_col-xs-offset-11 { margin-left: 91.66667%; }

/* ---- Grid widths: sm (>= 768px) ---- */
@media (min-width: 768px) {
  .vc_col-sm-1  { width: 8.33333%; }
  .vc_col-sm-2  { width: 16.66667%; }
  .vc_col-sm-3  { width: 25%; }
  .vc_col-sm-4  { width: 33.33333%; }
  .vc_col-sm-5  { width: 41.66667%; }
  .vc_col-sm-6  { width: 50%; }
  .vc_col-sm-7  { width: 58.33333%; }
  .vc_col-sm-8  { width: 66.66667%; }
  .vc_col-sm-9  { width: 75%; }
  .vc_col-sm-10 { width: 83.33333%; }
  .vc_col-sm-11 { width: 91.66667%; }
  .vc_col-sm-12 { width: 100%; }

  .vc_col-sm-offset-1  { margin-left: 8.33333%; }
  .vc_col-sm-offset-2  { margin-left: 16.66667%; }
  .vc_col-sm-offset-3  { margin-left: 25%; }
  .vc_col-sm-offset-4  { margin-left: 33.33333%; }
  .vc_col-sm-offset-5  { margin-left: 41.66667%; }
  .vc_col-sm-offset-6  { margin-left: 50%; }
  .vc_col-sm-offset-7  { margin-left: 58.33333%; }
  .vc_col-sm-offset-8  { margin-left: 66.66667%; }
  .vc_col-sm-offset-9  { margin-left: 75%; }
  .vc_col-sm-offset-10 { margin-left: 83.33333%; }
  .vc_col-sm-offset-11 { margin-left: 91.66667%; }
}

/* ---- Grid widths: md (>= 992px) ---- */
@media (min-width: 992px) {
  .vc_col-md-1  { width: 8.33333%; }
  .vc_col-md-2  { width: 16.66667%; }
  .vc_col-md-3  { width: 25%; }
  .vc_col-md-4  { width: 33.33333%; }
  .vc_col-md-5  { width: 41.66667%; }
  .vc_col-md-6  { width: 50%; }
  .vc_col-md-7  { width: 58.33333%; }
  .vc_col-md-8  { width: 66.66667%; }
  .vc_col-md-9  { width: 75%; }
  .vc_col-md-10 { width: 83.33333%; }
  .vc_col-md-11 { width: 91.66667%; }
  .vc_col-md-12 { width: 100%; }

  .vc_col-md-offset-1  { margin-left: 8.33333%; }
  .vc_col-md-offset-2  { margin-left: 16.66667%; }
  .vc_col-md-offset-3  { margin-left: 25%; }
  .vc_col-md-offset-4  { margin-left: 33.33333%; }
  .vc_col-md-offset-5  { margin-left: 41.66667%; }
  .vc_col-md-offset-6  { margin-left: 50%; }
  .vc_col-md-offset-7  { margin-left: 58.33333%; }
  .vc_col-md-offset-8  { margin-left: 66.66667%; }
  .vc_col-md-offset-9  { margin-left: 75%; }
  .vc_col-md-offset-10 { margin-left: 83.33333%; }
  .vc_col-md-offset-11 { margin-left: 91.66667%; }
}

/* ---- Grid widths: lg (>= 1200px) ---- */
@media (min-width: 1200px) {
  .vc_col-lg-1  { width: 8.33333%; }
  .vc_col-lg-2  { width: 16.66667%; }
  .vc_col-lg-3  { width: 25%; }
  .vc_col-lg-4  { width: 33.33333%; }
  .vc_col-lg-5  { width: 41.66667%; }
  .vc_col-lg-6  { width: 50%; }
  .vc_col-lg-7  { width: 58.33333%; }
  .vc_col-lg-8  { width: 66.66667%; }
  .vc_col-lg-9  { width: 75%; }
  .vc_col-lg-10 { width: 83.33333%; }
  .vc_col-lg-11 { width: 91.66667%; }
  .vc_col-lg-12 { width: 100%; }

  .vc_col-lg-offset-1  { margin-left: 8.33333%; }
  .vc_col-lg-offset-2  { margin-left: 16.66667%; }
  .vc_col-lg-offset-3  { margin-left: 25%; }
  .vc_col-lg-offset-4  { margin-left: 33.33333%; }
  .vc_col-lg-offset-5  { margin-left: 41.66667%; }
  .vc_col-lg-offset-6  { margin-left: 50%; }
  .vc_col-lg-offset-7  { margin-left: 58.33333%; }
  .vc_col-lg-offset-8  { margin-left: 66.66667%; }
  .vc_col-lg-offset-9  { margin-left: 75%; }
  .vc_col-lg-offset-10 { margin-left: 83.33333%; }
  .vc_col-lg-offset-11 { margin-left: 91.66667%; }
}

/* ==========================================================================
   Legacy Betheme [our_team] / [fancy_heading] shortcodes
   The plugin re-emits Betheme's markup (.team_horizontal, .hr_color,
   .icon_bar) but that theme's CSS is gone, so the cards stacked, the accent
   rule disappeared and the social links fell back to plain orange text.
   These rules restore the original layout on this theme's dark background.
   ========================================================================== */

.fancy_heading {
  text-align: center;
  margin-bottom: 40px;
}

.fancy_heading .title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

.fancy_heading_icon .icon_top {
  display: block;
  font-size: 50px;
  line-height: 50px;
  margin-bottom: 15px;
  overflow: hidden;
}

.fancy_heading_line {
  padding-bottom: 15px;
}

.fancy_heading_line .slogan {
  display: block;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.fancy_heading .inside {
  color: #a8a8a8;
}

/* ---- team card ---- */

.team {
  margin-bottom: 30px;
}

.team .image_frame {
  display: block;
  overflow: hidden;
  line-height: 0;
  max-width: 100%;
  margin: 0 0 15px;
  box-sizing: border-box;
}

.team .image_frame img {
  width: 100%;
  height: auto;
}

.team .desc_wrapper h4 {
  margin: 0 0 3px;
  font-size: 24px;
  line-height: 34px;
  font-weight: 500;
  color: #fff;
}

.team .desc_wrapper .subtitle,
.team .desc_wrapper .phone {
  margin: 0 0 5px;
  font-weight: 400;
  color: #a8a8a8;
}

/* .hr_color is Betheme's accent divider: short, left aligned, brand orange. */
.team .desc_wrapper hr {
  display: block;
  border: 0;
  height: 1px;
  width: 40%;
  margin: 0 0 15px;
  background: #ff9027;
  color: #ff9027;
}

.team .desc_wrapper .desc {
  margin-bottom: 15px;
  font-weight: 400;
  line-height: 28px;
  color: #fff;
}

.team .desc_wrapper .links {
  line-height: 0;
}

.team .desc_wrapper blockquote {
  margin-top: 20px;
}

/* ---- style="horizontal": photo left, details right ---- */

.team.team_horizontal {
  display: flex;
  align-items: flex-start;
}

.team.team_horizontal .image_frame {
  flex: 0 0 48%;
  width: 48%;
  margin: 0 4% 0 0;
}

.team.team_horizontal .desc_wrapper {
  flex: 0 0 48%;
  width: 48%;
}

/* ---- style="circle" ---- */

.team.team_circle {
  text-align: center;
}

.team.team_circle .image_frame.photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  border-radius: 100%;
}

.team.team_circle .desc_wrapper hr {
  margin-left: auto;
  margin-right: auto;
}

/* ---- social icons (.icon_bar) ---- */

a.icon_bar {
  display: inline-block;
  vertical-align: top;
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 0 2px 2px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #fff;
  box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.08);
  color: #444;
  text-decoration: none;
}

a.icon_bar,
a.icon_bar span {
  width: 58px;
  height: 58px;
  line-height: 58px;
  font-size: 20px;
}

a.icon_bar_small,
a.icon_bar_small span {
  width: 43px;
  height: 43px;
  line-height: 43px;
  font-size: 15px;
}

a.icon_bar span {
  display: block;
  transition: transform 0.3s;
}

a.icon_bar span.t {
  position: relative;
}

/* The second copy waits one box-height below and slides up on hover. */
a.icon_bar span.b {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ff9027;
  color: #fff;
}

a.icon_bar:hover span {
  transform: translateY(-100%);
}

/* ---- overrides ----
   The generic `#main-content .entry-content` rules above win on specificity
   (id + class), so the heading margins, paragraph spacing and orange link
   colour have to be re-stated at the same weight to keep the card compact. */

#main-content .entry-content a.icon_bar {
  color: #444;
}

#main-content .entry-content .team .desc_wrapper h4 a,
#main-content .entry-content .team .desc_wrapper .phone a {
  color: #fff;
  text-decoration: none;
}

#main-content .entry-content .team .desc_wrapper h4 {
  margin: 0 0 3px;
}

#main-content .entry-content .team .desc_wrapper .subtitle,
#main-content .entry-content .team .desc_wrapper .phone {
  margin: 0 0 5px;
}

#main-content .entry-content .fancy_heading .title {
  margin: 0;
}

@media (max-width: 479px) {
  .team.team_horizontal {
    display: block;
  }

  .team.team_horizontal .image_frame,
  .team.team_horizontal .desc_wrapper {
    width: 100%;
  }

  .team.team_horizontal .image_frame {
    margin: 0 0 15px;
  }
}
