/* =====================================================================
   Community Baptist Church — colors, fonts & custom CSS (css/theme.css)
   This file is loaded at the END of each page (in footer.php) on purpose:
   it must come after the page content so it wins over the styles inside
   your custom HTML sections, exactly as it did on TheChurchCo.
   Edit your colors (--primary-color-bg etc.) and custom CSS here.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

/* ------------------------------------------------------------------
   3. COLORS, FONTS & CBC CUSTOM CSS
   ------------------------------------------------------------------ */

:root {
  --body-font-family: "DM Sans", sans-serif;
  --body-font-weight: regular;
  --body-font-style: regular;
  --heading-font-family: "Playfair Display", serif;
  --heading-font-weight: 700;
  --heading-line-height: 1.2;
  --heading-font-style: regular;
  --base-color-bg-dark: #cccccc;
  --base-color-bg: #ffffff;
  --base-color-bg-light: #ffffff;
  --base-color-text: #060d1f;
  --alt-color-bg-dark: #c3c4c7;
  --alt-color-bg: #F3F5F8;
  --alt-color-bg-light: #f6f7fa;
  --alt-color-text: #060d1f;
  --primary-color-bg-dark: #0d233f;
  --primary-color-bg: #102B4E;
  --primary-color-bg-light: #405672;
  --primary-color-text: #ffffff;
  --secondary-color-bg-dark: #284a6d;
  --secondary-color-bg: #315C88;
  --secondary-color-bg-light: #5b7da0;
  --secondary-color-text: #ffffff;
  --tertiary-color-bg-dark: #08172a;
  --tertiary-color-bg: #091C34;
  --tertiary-color-bg-light: #3b4a5d;
  --tertiary-color-text: #ffffff;
  --currentcolor-color-bg-dark: currentColor;
  --currentcolor-color-bg: currentColor;
  --currentcolor-color-bg-light: currentColor;
  --currentcolor-color-text: currentColor;
  --transparent-color-bg-dark: transparent;
  --transparent-color-bg: transparent;
  --transparent-color-bg-light: transparent;
  --transparent-color-text: transparent;
  --theme-element-padding-vertical: 0.625rem;
  --theme-element-padding-horizontal: 0.875rem;
  --theme-container-width: 1145px;
  --theme-small-container-width: 800px;
  --theme-gutter: 1em;
  --theme-heading-one-font-size: 3.5rem;
  --theme-heading-two-font-size: 3rem;
  --theme-heading-three-font-size: 2.5rem;
  --theme-heading-four-font-size: 2rem;
  --theme-heading-five-font-size: 1.5rem;
  --theme-heading-six-font-size: 1rem;
  --theme-spacer: 2rem;
  --theme-hero-padding-top: 25%;
  --theme-hero-padding-left: 2em;
  --theme-hero-padding-right: 2em;
  --theme-hero-padding-bottom: 5%;
  --theme-hero-padding-top-mobile: 50%;
  --theme-hero-padding-left-mobile: 0.5em;
  --theme-hero-padding-right-mobile: 0.5em;
  --theme-hero-padding-bottom-mobile: 10%;
  --theme-hero-text-align: left;
  --theme-hero-align: 0;
  --theme-hero-justify: flex-start;
  --theme-row-padding-top: 4em;
  --theme-row-padding-left: 0em;
  --theme-row-padding-right: 0em;
  --theme-row-padding-bottom: 4em;
  --theme-row-padding-top-mobile: 4em;
  --theme-row-padding-left-mobile: 0em;
  --theme-row-padding-right-mobile: 0em;
  --theme-row-padding-bottom-mobile: 4em;
  --theme-row-width: 96%;
  --theme-row-margin-horizontal: 2%;
  --theme-row-margin-vertical: 2%;
  --theme-row-text-align: center;
  --theme-row-align: 0.5;
  --theme-row-justify: center;
  --theme-border-radius: 10px;
  --theme-border-radius-md: 5px;
  --theme-border-radius-sm: 2.5px;
  --theme-row-border-radius: 10px;
  --theme-row-border-radius-md: 5px;
  --theme-row-border-radius-sm: 2.5px;
  --theme-shadow: 0px 4px 8px 0px rgba(0,0,0,0.17);
  --theme-shadow-lg: 0px 4px 8px 0px rgba(0,0,0,0.17);
  --theme-shadow-md: 0px 4px 8px 0px rgba(0,0,0,0.17);
  --theme-shadow-sm: 0px 4px 8px 0px rgba(0,0,0,0.17);
  --theme-button-padding-top: 1rem;
  --theme-button-padding-bottom: 1rem;
  --theme-button-padding-left: 1.75rem;
  --theme-button-padding-right: 1.75rem;
  --theme-button-radius: 10px;
  --theme-input-border-radius: 10px;
  --theme-input-shadow: 0px 2px 4px 0px rgba(0,0,0,0.17);
  --theme-input-border: 1px solid rgba(0,0,0,0.15);
}
[data-website] .tcc-block.-color-match {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
[data-website] .tcc-block.-color-match + .tcc-block,
[data-website] .tcc-block.-color-match + .dragger .tcc-block {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  margin-top: 0px;
}
[data-website] .tcc-block:has(.horizontal-scroll-wrapper) {
  min-width: 0px;
}
[data-website] .tcc-block:has(.horizontal-scroll-wrapper) .row-inner {
  padding-right: 0px;
}
[data-website] .tcc-block:has(.horizontal-scroll-wrapper) .container {
  max-width: 100%;
  padding-right: 0px;
}
[data-website] .tcc-block.color-base:has(.horizontal-scroll-wrapper),
[data-website] .tcc-block:not(.bg-color):not(.bg-image):has(.horizontal-scroll-wrapper) {
  margin-right: 0px;
}
[data-website] .topbar.transparent.scrolling,
[data-website] .topbar.transparent:not(.fixed) {
  margin-top: 2.5vw;
  padding-left: calc(var(--theme-row-margin-horizontal)*2);
  padding-right: calc(var(--theme-row-margin-horizontal)*2);
}
@container (max-width: 768px) {
  [data-website] .topbar.transparent.scrolling,
  [data-website] .topbar.transparent:not(.fixed) {
    padding-left: calc(var(--theme-row-margin-horizontal)*3);
    padding-right: calc(var(--theme-row-margin-horizontal)*3);
  }
}
body [data-website] {
  font-family: "DM Sans", sans-serif;
  --text-preset-h1: 5rem;
  --text-preset-h2: 17px;
  --text-preset-h3: 3rem;
  background-color: rgb(255, 255, 255);
  color: rgb(6, 13, 31);
  container: tcc-website / inline-size;
  height: 100%;
  position: relative;
}
@container tcc-website (width < 768px) {
  [data-website] .tcc-hide-mobile {
    display: none !important;
  }
}
@container tcc-website (width <= 1024px) {
  [data-website] .tcc-hide-tablet {
    display: none !important;
  }
}
@container tcc-website (width > 1024px) {
  [data-website] .tcc-hide-desktop {
    display: none !important;
  }
}
[data-website] h1, [data-website] .h1 {
  font-size: 5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}
[data-website] h2, [data-website] .h2 {
  font-size: 17px;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 5px;
  text-transform: uppercase;
}
[data-website] h3, [data-website] .h3 {
  font-size: 3rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}
[data-website] h5, [data-website] .h5 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}
[data-website] ul {
  font-family: "DM Sans", sans-serif;
  list-style-type: disc;
}
@container (max-width: 1024px) {
  [data-website] h1, [data-website] .h1 {
    font-size: 3.25rem;
  }
  [data-website] h2, [data-website] .h2 {
    font-size: 11.05px;
  }
  [data-website] h3, [data-website] .h3 {
    font-size: 1.95rem;
  }
  [data-website] h5, [data-website] .h5 {
  }
}
[data-website] .rich-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@container (max-width: 768px) {
  [data-website] .dragger.tcc-w-full,
  [data-website] .dragger.tcc-w-half,
  [data-website] .dragger.tcc-w-third,
  [data-website] .dragger.tcc-w-fill {
    width: 100% !important;
  }
}
html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0px !important;
  padding: 0px !important;
}
a {
  text-decoration: none !important;
}
.topbar, .topbar.transparent, .site-header, header.site-header, .header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  left: 0px;
  right: 0px;
  background-color: rgb(16, 36, 63) !important;
  position: sticky !important;
  top: 0px !important;
  z-index: 9999 !important;
  margin: 0px !important;
  padding-top: 0px !important;
}
@container (min-width: 769px) {
  .layout-leftright .container {
    max-width: 1200px !important;
  }
}
.topbar.shrink, .site-header.shrink {
  padding: 0.6rem 0px !important;
  background-color: rgb(16, 36, 63) !important;
}
@media (min-width: 769px) {
  .topbar nav > ul, .site-header nav > ul, header.site-header nav > ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: flex-end !important;
  }
  .topbar nav > ul > li,
  .site-header nav > ul > li,
  header.site-header nav > ul > li {
    margin: 0px !important;
  }
  .topbar nav, .site-header nav, header.site-header nav {
    margin-left: auto;
  }
}
a.menu-link-item {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 13px !important;
}
.topbar a.menu-link-item,
.site-header nav > ul > li > a,
header.site-header nav > ul > li > a {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  color: rgb(255, 255, 255) !important;
  font-size: 13px !important;
}
.topbar a.menu-link-item:hover,
.topbar a.menu-link-item:focus,
.topbar .menu-link-item.is-active,
.site-header nav > ul > li:hover > a,
.site-header nav .active > a,
header.site-header nav .active > a {
  background-color: rgb(54, 95, 135) !important;
  color: rgb(255, 255, 255) !important;
}
.topbar a.menu-link-item {
  position: relative;
  overflow: visible;
}
.topbar a.menu-link-item::before {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -6px;
  width: 0px;
  height: 3px;
  border-radius: 999px;
  transition: width 0.25s;
  content: "" !important;
  display: block !important;
  background-color: rgb(255, 255, 255) !important;
}
.topbar a.menu-link-item::after {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 0px;
  height: 3px;
  border-radius: 999px;
  transition: width 0.25s;
  content: "" !important;
  display: block !important;
  background-color: rgb(255, 255, 255) !important;
}
.topbar a.menu-link-item:hover::before,
.topbar a.menu-link-item:focus::before,
.topbar .menu-link-item.is-active::before {
  width: 60%;
}
.topbar a.menu-link-item:hover::after,
.topbar a.menu-link-item:focus::after,
.topbar .menu-link-item.is-active::after {
  width: 100%;
}
@media (min-width: 769px) {
  .topbar nav > ul > li:last-child > a.menu-link-item,
  .site-header nav > ul > li:last-child > a,
  header.site-header nav > ul > li:last-child > a {
    letter-spacing: 0.04em;
    margin-left: 0.55rem;
    display: inline-block;
    background-color: rgb(255, 255, 255) !important;
    color: rgb(16, 36, 63) !important;
    border: 1px solid rgb(255, 255, 255) !important;
    border-radius: 6px !important;
    padding: 0.75rem 1.15rem !important;
    font-weight: 700 !important;
    transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s !important;
  }
  .topbar nav > ul > li:last-child > a.menu-link-item:hover,
  .topbar nav > ul > li:last-child > a.menu-link-item:focus,
  .site-header nav > ul > li:last-child > a:hover,
  .site-header nav > ul > li:last-child > a:focus,
  header.site-header nav > ul > li:last-child > a:hover,
  header.site-header nav > ul > li:last-child > a:focus {
    background-color: rgb(220, 232, 245) !important;
    color: rgb(16, 36, 63) !important;
    border-color: rgb(220, 232, 245) !important;
    box-shadow: rgba(0, 0, 0, 0.28) 0px 6px 18px !important;
    transform: translateY(-3px) !important;
  }
  .topbar nav > ul > li:last-child > a.menu-link-item::before,
  .topbar nav > ul > li:last-child > a.menu-link-item::after {
    display: none !important;
  }
  .topbar ul.submenu,
  .topbar .submenu,
  .site-header nav ul ul,
  header.site-header nav ul ul {
    box-shadow: rgba(0, 0, 0, 0.22) 0px 10px 22px;
    width: max-content;
    max-width: 280px;
    background-color: rgb(16, 43, 77) !important;
    border-radius: 8px !important;
    padding: 6px 0px !important;
    margin: 0px !important;
    min-width: 190px !important;
    height: auto !important;
    min-height: 0px !important;
    gap: 0px !important;
    align-content: start !important;
  }
  .topbar .submenu > li,
  .topbar .submenu > li.menu-link,
  .site-header nav ul ul > li,
  header.site-header nav ul ul > li {
    position: relative;
    display: block !important;
    margin: 0px !important;
    padding: 0px !important;
    height: auto !important;
    min-height: 0px !important;
    max-height: none !important;
    flex: 0 0 auto !important;
  }
  .topbar .submenu a.menu-link-item,
  .topbar .submenu a,
  .topbar .submenu span,
  .site-header nav ul ul a,
  .site-header nav ul ul span,
  header.site-header nav ul ul a,
  header.site-header nav ul ul span {
    box-sizing: border-box;
    position: relative;
    transform: none;
    display: block !important;
    color: rgb(255, 255, 255) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    padding: 10px 16px !important;
    margin: 0px !important;
    height: auto !important;
    min-height: 0px !important;
    max-height: none !important;
    white-space: nowrap !important;
    text-align: left !important;
    border-radius: 0px !important;
  }
  .topbar .submenu a span, .topbar .submenu li span, .site-header nav ul ul a span {
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0px !important;
    padding: 0px !important;
    height: auto !important;
    min-height: 0px !important;
  }
  .topbar .submenu a:hover,
  .topbar .submenu a:focus,
  .site-header nav ul ul a:hover,
  .site-header nav ul ul a:focus,
  header.site-header nav ul ul a:hover,
  header.site-header nav ul ul a:focus {
    background-color: rgb(49, 92, 136) !important;
    color: rgb(255, 255, 255) !important;
  }
  .topbar .submenu a.menu-link-item::before {
    position: absolute;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    width: 0px;
    height: 2px;
    border-radius: 999px;
    transition: width 0.25s;
    pointer-events: none;
    content: "" !important;
    display: block !important;
    background-color: rgb(255, 255, 255) !important;
  }
  .topbar .submenu a.menu-link-item::after {
    position: absolute;
    left: 16px;
    bottom: 2px;
    width: 0px;
    height: 2px;
    border-radius: 999px;
    transition: width 0.25s;
    pointer-events: none;
    content: "" !important;
    display: block !important;
    background-color: rgb(255, 255, 255) !important;
  }
  .topbar .submenu a.menu-link-item:hover::before,
  .topbar .submenu a.menu-link-item:focus::before {
    width: 60%;
  }
  .topbar .submenu a.menu-link-item:hover::after,
  .topbar .submenu a.menu-link-item:focus::after {
    width: calc(100% - 32px);
  }
}
.submenu, .site-header nav ul ul, header.site-header nav ul ul {
  background-color: rgb(16, 43, 77) !important;
}
.submenu li {
  margin: 0px !important;
}
@media (max-width: 768px) {
  .topbar, .topbar.transparent, .site-header, header.site-header, .header {
    position: sticky !important;
    top: 0px !important;
    z-index: 9999 !important;
  }
}
@supports (-webkit-touch-callout: none) {
  .topbar, .site-header, header.site-header {
    position: sticky !important;
    top: 0px !important;
    margin-top: 0px !important;
  }
}
footer a {
  font-size: 13px;
  opacity: 0.6;
}
.block-form .row-content {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
.-open .accordion-body {
  padding: 10px 20px;
}
.header-defaults-wrap .rich-wrap h1 {
  font-size: 42px !important;
}
@media (max-width: 768px) {
  .header-defaults-wrap .rich-wrap h1, .header-defaults-wrap .rich-wrap h1 span {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
}
@container (min-width: 769px) {
  .topbar.transparent {
    padding: 25px 60px !important;
  }
}
[data-website] .rich-wrap img,
[data-website] .rich-wrap iframe,
[data-website] iframe,
[data-website] [xdata-audio-player],
[data-website] [data-slideshow] img,
[data-website] .feature-image,
[data-website] .feature youtube-video,
[data-website] .feature vimeo-video {
  box-shadow: var(--theme-shadow-md);
  border-radius: var(--theme-border-radius);
}
[data-website] h4, [data-website] .h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}
@container (max-width: 1024px) {
  [data-website] h4, [data-website] .h4 {
  }
}
[data-website] ol {
  font-family: "DM Sans", sans-serif;
  list-style-type: decimal;
}
[data-website] h6, [data-website] .h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}
@container (max-width: 1024px) {
  [data-website] h6, [data-website] .h6 {
  }
}

/* ------------------------------------------------------------------
   4. STATIC SITE FIXES
   ------------------------------------------------------------------ */

/* TheChurchCo faded sections in with JavaScript. Show them right away. */
.not-in-view .row-inner,
.not-in-view {
  opacity: 1 !important;
  transform: none !important;
}

/* Desktop dropdown menus open on hover / keyboard focus. */
@media (min-width: 769px) {
  .menu > li:hover > .submenu,
  .menu > li:focus-within > .submenu {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    visibility: visible !important;
  }
}

/* No slide/fade-in animation when a page first loads. */
.tcc-block,
.tcc-block .row-inner {
  transition: none !important;
}

img[loading="lazy"] {
  opacity: 1 !important;
}
