/*
Theme Name: NCC2027
Description: Child theme of Twenty Twenty-Five
Author: Matt Harris
Author URI: https://riotactstudios.com
Template: twentytwentyfive
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.2
*/

/*-------------------------------*/
/*- Variables -------------------*/
/*-------------------------------*/

:root {
  --bodyfont: Inter, sans-serif;
  --headingfont: Manrope, sans-serif;
  --brand-blue: #155B7C;
  --brand-charcoal: #424555;
  --brand-slate: #5C7D8A;
  --brand-burgundy: #753740;
  --brand-sage: #769B76;
  --brand-gray: #8B8B8B;
  --brand-purple: #925BA5;
  --brand-coral: #F47C6B;
  --brand-yellow: #F9BE40;
  --brand-orange: #ED6B00;
  --brand-teal: #7dbcc2;
  --color-white: #FFFFFF;
  --color-black: #000;
  --color-offwhite: #F7F9FA;
  --color-light-gray: #F1F4F6;
  --color-blue-gray: #E5EDF1;
  --color-dark-blue: #172e42;
  --color-dark: #20252C;
  --color-muted: #65717B;
  --color-border: #EAEAEA;
}

/*-------------------------------*/
/*- Base ------------------------*/
/*-------------------------------*/

body {
  margin: 0;
  background-color: var(--color-offwhite);
  color: var(--color-dark);
  font-family: var(--bodyfont);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

strong {
  font-weight: 700;
}

#wpadminbar {
  position: fixed;
}

html {
  scroll-padding-top: 100px;
}

:where(.wp-site-blocks *:focus),
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

/*-------------------------------*/
/*- Accessibility ---------------*/
/*-------------------------------*/

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
}

/*-------------------------------*/
/*- Responsive Utilities --------*/
/*-------------------------------*/

.mobile-hidden,
.is-layout-flex.mobile-hidden,
.header-menu,
.mobile-hidden-flex {
  display: none;
}

@media (min-width: 1000px) {
  .mobile-menu-open {
    display: none;
  }

  .header-menu,
  body .mobile-hidden-flex,
  .is-layout-flex.mobile-hidden {
    display: flex;
  }

  .mobile-hidden {
    display: block;
  }
}

/*-------------------------------*/
/*- Headings --------------------*/
/*-------------------------------*/

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

/*-------------------------------*/
/*- Highlight -------------------*/
/*-------------------------------*/

.ncc-highlight {
  color: var(--brand-coral);
}

.ncc-highlight--coral {
  color: var(--brand-coral);
}

.ncc-highlight--blue {
  color: var(--brand-blue);
}

.ncc-highlight--sage {
  color: var(--brand-sage);
}

.ncc-highlight--yellow {
  color: var(--brand-yellow);
}

.ncc-highlight--teal {
  color: var(--brand-teal);
}

.ncc-highlight--purple {
  color: var(--brand-purple);
}

.ncc-highlight--orange {
  color: var(--brand-orange);
}

/*-------------------------------*/
/*- Eyebrow ---------------------*/
/*-------------------------------*/

.ncc-eyebrow {
  --ncc-eyebrow-color: var(--brand-coral);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ncc-eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--ncc-eyebrow-color);
}

.ncc-eyebrow--coral {
  --ncc-eyebrow-color: var(--brand-coral);
}

.ncc-eyebrow--blue {
  --ncc-eyebrow-color: var(--brand-blue);
}

.ncc-eyebrow--sage {
  --ncc-eyebrow-color: var(--brand-sage);
}

.ncc-eyebrow--yellow {
  --ncc-eyebrow-color: var(--brand-yellow);
}

.ncc-eyebrow--teal {
  --ncc-eyebrow-color: var(--brand-teal);
}

.ncc-eyebrow--purple {
  --ncc-eyebrow-color: var(--brand-purple);
}

.ncc-eyebrow--orange {
  --ncc-eyebrow-color: var(--brand-orange);
}

/*-------------------------------*/
/*- Buttons ---------------------*/
/*-------------------------------*/

.wp-block-button > .wp-block-button__link.wp-element-button {
  padding: 16px 28px;
  border-radius: 0;
  font-family: var(--headingfont);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
  padding: 14px 26px;
}

.wp-block-button > .wp-block-button__link.wp-element-button:hover {
  opacity: 0.85;
}

.wp-block-button.ncc-text-link .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--ncc-dark-blue, #135675) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.wp-block-button.ncc-text-link .wp-block-button__link::before {
  content: "\f060";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.wp-block-button.ncc-text-link .wp-block-button__link:hover {
  color: var(--ncc-orange, #D14F42) !important;
}

.wp-block-button.ncc-text-link .wp-block-button__link:hover::before {
  transform: translateX(-4px);
}

/*-------------------------------*/
/*- Separators ------------------*/
/*-------------------------------*/

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  width: 80px;
  height: 4px;
  border: 0;
  border-radius: 0;
  opacity: 1;
  margin-left: auto;
  margin-right: auto;
  background-color: currentColor;
}

/*-------------------------------*/
/*- Icon Circle -----------------*/
/*-------------------------------*/

.ncc-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0 !important;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.ncc-icon-circle i {
  display: block;
  line-height: 1;
}

/* Tablet and Desktop */

@media (min-width: 768px) {
  .ncc-icon-circle {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
}

/*-------------------------------*/
/*- Media Bleed -----------------*/
/*-------------------------------*/

.ncc-media-bleed-left,
.ncc-media-bleed-right {
  --ncc-content-width: 1350px;
  --ncc-gutter: 24px;

  display: grid;
  grid-template-columns: 55% 45% !important;
  width: 100%;
}

/* Image */

.ncc-media-bleed-left .wp-block-media-text__media,
.ncc-media-bleed-right .wp-block-media-text__media {
  height: 100%;
  min-height: 450px;
}

.ncc-media-bleed-left .wp-block-media-text__media img,
.ncc-media-bleed-right .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */

.ncc-media-bleed-left .wp-block-media-text__content,
.ncc-media-bleed-right .wp-block-media-text__content {
  box-sizing: border-box;
  padding-block: 60px;
}

/*-------------------------------*/
/*- Bleed Left ------------------*/
/*-------------------------------*/

.ncc-media-bleed-left .wp-block-media-text__content {
  padding-inline-start: 60px;
  padding-inline-end: max(
    var(--ncc-gutter),
    calc((100vw - var(--ncc-content-width)) / 2)
  );
}

/*-------------------------------*/
/*- Bleed Right -----------------*/
/*-------------------------------*/

.ncc-media-bleed-right {
  grid-template-columns: 45% 55% !important;
}

.ncc-media-bleed-right .wp-block-media-text__content {
  padding-inline-start: max(
    var(--ncc-gutter),
    calc((100vw - var(--ncc-content-width)) / 2)
  );
  padding-inline-end: 60px;
}

/*-------------------------------*/
/*- Mobile ----------------------*/
/*-------------------------------*/

@media (max-width: 767px) {
  .ncc-media-bleed-left,
  .ncc-media-bleed-right {
    display: block;
  }

  .ncc-media-bleed-left .wp-block-media-text__media,
  .ncc-media-bleed-right .wp-block-media-text__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ncc-media-bleed-left .wp-block-media-text__content,
  .ncc-media-bleed-right .wp-block-media-text__content {
    padding: 40px 24px;
  }
}

/*-------------------------------*/
/*- Hero ------------------------*/
/*-------------------------------*/

.ncc-hero {
  position: relative;
  overflow: hidden;
}

.ncc-hero::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -30%;
  width: clamp(400px, 38vw, 700px);
  aspect-ratio: 0.75;
  background: url("assets/img/ncc-square-logo-white.svg") center / contain no-repeat;
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.ncc-hero > .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .ncc-hero::after {
    display: block;
  }
}

/* ==========================================================
   NCC SECTION LOGO BACKGROUNDS
========================================================== */

.ncc-logo-left,
.ncc-logo-right {
  background-image: url("assets/img/ncc-square-logo-gray.svg");
  background-repeat: no-repeat;
  background-size: clamp(350px, 45vw, 750px);
  background-attachment: scroll;
}

.ncc-logo-left {
  background-position: left -150px center;
}

.ncc-logo-right {
  background-position: right -150px center;
}

/* Desktop parallax */
@media (min-width: 1024px) {
  .ncc-logo-left,
  .ncc-logo-right {
    background-attachment: fixed;
    background-size: clamp(450px, 45vw, 850px);
  }

  .ncc-logo-left {
    background-position: left -100px center;
  }

  .ncc-logo-right {
    background-position: right -100px center;
  }
}

/*-------------------------------*/
/*- Header ----------------------*/
/*-------------------------------*/

.wp-block-template-part {
  position: relative;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  width: 100%;
  background-color: #000;
  transition: transform 0.3s ease,
            background-color 0.3s ease,
            box-shadow 0.3s ease;
}

body.admin-bar #header {
  top: 32px;
}

#header.is-stuck {
  position: fixed;
  z-index: 10;
  background-color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#header .header-logo {
  width: 350px;
  max-width: 75%;
}

#header .header-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: invert(1);
}

#header.is-stuck .header-menu > li > a {
  color: #fff;
}

#header .header-button .wp-block-button__link:hover {
  border-color: #fff !important;
  background-color: #fff !important;
  color: #000 !important;
}

#header.is-stuck .header-button .wp-block-button__link {
  border-color: #000;
  color: #000 !important;
}

#header.is-stuck .header-button .wp-block-button__link:hover {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

#header.is-stuck .mobile-menu-open {
  color: var(--color-dark);
}

/*-------------------------------*/
/*- Header Menu -----------------*/
/*-------------------------------*/

.header-menu-wrapper {
  position: relative;
}

.header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.header-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
  position: relative;
}

.header-menu li:before {
  content: none;
}

.header-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 20px;
  height: 60px;
  line-height: 60px;
  font-family: var(--bodyfont);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.header-menu > li:first-child > a {
  margin-left: 0;
}

.header-menu > li:last-child > a {
  margin-right: 0;
}

.header-menu > li:hover a {
  color: #fff;
}

.header-menu > li > a:before {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-coral);
  transition: all 0.3s ease;
}

.header-menu > li:hover > a:before,
            .header-menu > li.current-menu-item > a:before {
  width: 100%;
}

.header-menu > li.menu-item-has-children:hover > a:before,
            .header-menu > li.current-menu-item.menu-item-has-children > a:before {
  width: calc(100% - 17px);
}

.header-menu > li.menu-item-has-children > a:after {
  content: "\f107";
  font: var(--fa-font-sharp-solid);
  margin-left: 5px;
  font-size: 10px;
}

.header-menu > li > .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 999;
  min-width: 220px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  text-align: left;
  margin: 0;
  padding: 0;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.05);
}

.header-menu > li > .sub-menu:after {
  content: "";
  display: block;
  position: absolute;
  left: 20px;
  top: -8px;
  width: 15px;
  height: 15px;
  background-color: #fff;
  border: solid 1px var(--color-border);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform-origin: center center;
  transform: rotate(45deg);
}

.header-menu > li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

.header-menu > li > .sub-menu > li {
  display: block;
  margin: 0;
  padding: 0 13px;
  border-bottom: 1px solid var(--color-border);
}

.header-menu > li > .sub-menu > li:last-child {
  border-bottom: 0;
}

.header-menu > li > .sub-menu > li > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  padding: 10px;
  margin: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.header-menu > li > .sub-menu > li a:hover,
            .header-menu > li.current-menu-item > a {
  color: var(--brand-blue);
}

.header-menu > li.menu-slide {
  cursor: pointer;
}

/*-------------------------------*/
/*- Mobile Menu -----------------*/
/*-------------------------------*/

.mobile-menu-open {
  font-size: 20px;
  color: #fff;
}

#mobile-menu-container {
  height: 100%;
  width: 100vw;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: #232020;
  overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  box-sizing: border-box;
  max-width: 100vw;
}

#mobile-menu-container.open {
  transform: translateX(0);
  transition: transform 0.5s ease;
}

#mobile-menu-container .closebtn {
  position: absolute;
  top: 20px;
  right: 10px;
  font-size: 40px;
  color: #fff;
  z-index: 10000;
  padding: 0;
  margin: 0;
}

#mobile-menu-container * {
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-menu-content {
  position: relative;
  top: 50px;
  width: 100%;
  margin-top: 30px;
  transform: translateX(0);
  transition: transform 0.5s ease;
}

#mobile-menu-container:not(.open) .mobile-menu-content {
  transform: translateX(-100%);
}

.menu-mobile {
  padding: 0 0 30px 0;
}

.menu-mobile li {
  list-style: none;
  margin: 0;
}

.menu-mobile li:before {
  content: none;
}

.menu-mobile li a {
  position: relative;
  display: block;
  padding: 10px 20px;
  transition: all .3s ease;
  color: var(--brand-coral);
}

.menu-mobile li.menu-toggle > a:after {
  position: absolute;
  content: "";
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #aaa;
  border-right: 2px solid #aaa;
  transform: translateY(-50%) rotate(45deg);
}

.menu-mobile li.menu-toggle > a.active:after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-135deg);
}

.menu-mobile li a.active {
  color: #fff;
  background: var(--brand-coral);
}

.menu-mobile .sub-menu {
  display: none;
  margin: 0;
  padding: 0;
}

.menu-mobile .sub-menu li a {
  padding: 10px 20px 10px 40px;
}

.menu-mobile .sub-menu li .sub-menu li a {
  padding: 10px 20px 10px 60px;
}

.menu-mobile .current-menu-item a {
  color: #fff;
}

@media (min-width: 401px) {
  #mobile-menu-container .closebtn {
    right: 20px;
    font-size: 60px;
  }
}

/*-------------------------------*/
/*- Section Header --------------*/
/*-------------------------------*/

.ncc-section-header {
  display: grid !important;
  grid-template-columns: 1fr;
  align-items: center;
  column-gap: clamp(24px, 3vw, 60px);
  gap: 20px;
}

.ncc-section-header > .wp-block-group {
  min-width: 0;
  margin: 0;
}

.ncc-section-header > .wp-block-group:first-child {
  width: auto;
  max-width: 100%;
}

.ncc-section-header > .wp-block-group:first-child h2 {
  margin: 12px 0 0;
  line-height: 1.05;
}

.ncc-section-header > .wp-block-group:nth-child(2) p {
  margin: 0;
  line-height: 1.5;
}

.ncc-section-header > .wp-block-group:last-child {
  justify-self: start;
  grid-column: 1;
}

.ncc-section-header > .wp-block-group:last-child p {
  margin: 0;
}

@media (min-width: 768px) {
  .ncc-section-header {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 40px;
  }

  .ncc-section-header > .wp-block-group:last-child {
    grid-column: 2;
  }
}

@media (min-width: 1201px) {
  .ncc-section-header {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) max-content;
  }

  .ncc-section-header > .wp-block-group:first-child {
    width: max-content;
  }

  .ncc-section-header > .wp-block-group:last-child {
    justify-self: end;
  }
}

/*-------------------------------*/
/*- Footer ----------------------*/
/*-------------------------------*/

.wp-site-blocks {
  --footer-triangle-height: 18.75vw;
  --footer-bottom-spacing: 50px;
}

/*-------------------------------*/
/*- Bottom Section Spacing ------*/
/*-------------------------------*/

/* Regular pages: Remove padding from main and its wrappers */
.wp-site-blocks > main.wp-block-group:has(.wp-block-post-content),
.wp-site-blocks > main > .wp-block-group,
.wp-site-blocks > main .wp-block-post-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Regular pages: Extend the final content section */
.wp-site-blocks > main .wp-block-post-content > :last-child:is(.wp-block-group, .wp-block-cover) {
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  padding-bottom: calc(var(--footer-triangle-height) + var(--footer-bottom-spacing)) !important;
}

/* Archives: Extend the final section before the footer */
.wp-site-blocks > .wp-block-group:not(main):has(+ footer.wp-block-template-part) {
  padding-bottom: calc(var(--footer-triangle-height) + var(--footer-bottom-spacing)) !important;
}

/* Remove additional block gap on regular pages */
.wp-site-blocks:has(> main .wp-block-post-content) {
  row-gap: 0 !important;
}

/*-------------------------------*/
/*- Footer Overlap --------------*/
/*-------------------------------*/

.wp-site-blocks > footer.wp-block-template-part {
  position: relative;
  z-index: 2;
  margin-block-start: calc(-1 * var(--footer-triangle-height)) !important;
  margin-bottom: 0 !important;
  transform: none !important;
  background: transparent;
}

/*-------------------------------*/
/*- Footer Container ------------*/
/*-------------------------------*/

.ncc-footer {
  --footer-bg: var(--color-dark-blue);

  position: relative;
  isolation: isolate;
  margin-top: 0 !important;
  padding-top: calc(var(--footer-triangle-height) + 50px) !important;
  background: transparent !important;
}

/*-------------------------------*/
/*- Triangle Background ---------*/
/*-------------------------------*/

.ncc-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--footer-bg);

  -webkit-mask:
    url("assets/img/footer-triangle.svg")
      top center / 100% var(--footer-triangle-height) no-repeat,
    linear-gradient(#000 0 0)
      bottom center / 100% calc(100% - var(--footer-triangle-height)) no-repeat;

  mask:
    url("assets/img/footer-triangle.svg")
      top center / 100% var(--footer-triangle-height) no-repeat,
    linear-gradient(#000 0 0)
      bottom center / 100% calc(100% - var(--footer-triangle-height)) no-repeat;
}

/*-------------------------------*/
/*- Centered Footer Logo --------*/
/*-------------------------------*/

.ncc-footer::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--footer-triangle-height) * 0.55);
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(60px, 10vw, 160px);
  aspect-ratio: 1;
  background: url("assets/img/ncc-square-logo-white.svg")
    center / contain no-repeat;
  pointer-events: none;
}

/*-------------------------------*/
/*- Footer Menu -----------------*/
/*-------------------------------*/

.ncc-footer .footer-menu,
            .ncc-footer .footer-menu .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.ncc-footer .footer-menu .wp-block-navigation-item {
  margin: 0;
  padding: 0;
}

.ncc-footer .footer-menu .wp-block-navigation-item__content {
  display: inline-block;
  padding: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ncc-footer .footer-menu .wp-block-navigation-item__content:hover,
            .ncc-footer .footer-menu .wp-block-navigation-item__content:focus-visible {
  color: var(--brand-coral);
  text-decoration: none !important;
  transform: translateX(4px);
}

.ncc-footer .footer-menu .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
            .ncc-footer .footer-menu .wp-block-navigation-item__content:focus-visible .wp-block-navigation-item__label {
  text-decoration: none !important;
}

/*-------------------------------*/
/*- Value Icons -----------------*/
/*-------------------------------*/

.ncc-value {
  position: relative;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  background-color: var(--color-dark);
  line-height: 1;
}

.ncc-value i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  color: var(--brand-blue);
}

/*-------------------------------*/
/*- Upcoming Events -------------*/
/*-------------------------------*/

.ncc-upcoming-events .wp-block-post-template {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.ncc-upcoming-events .wp-block-post {
  margin: 0;
}

.ncc-event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.ncc-upcoming-events .wp-block-post:last-child .ncc-event-card {
  border-bottom: 0;
}

.ncc-event-card .ncc-event-date {
  box-sizing: border-box;
  flex: 0 0 72px;
  width: 58px;
  min-height: 64px;
  border: 2px solid #e0e0e0;
  flex-basis: 58px;
}

.ncc-event-card .ncc-event-date__start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  line-height: 1;
  text-align: center;
}

.ncc-event-card .ncc-event-date__month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ncc-event-card .ncc-event-date__day {
  margin-top: 5px;
  font-size: 25px;
  font-weight: 800;
}

.ncc-event-card .ncc-event-date__range {
  display: none;
}

.ncc-event-card .ncc-event-card__content {
  flex: 1;
  min-width: 0;
}

.ncc-event-card .wp-block-post-title {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.ncc-event-card .ncc-event-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 12px;
  line-height: 1.4;
}

.ncc-event-card .ncc-event-card__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 17px;
}

.ncc-event-card .wp-block-post-title a,
            .ncc-sermons .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ncc-event-card .wp-block-post-title a:hover,
            .ncc-sermons .wp-block-post-title a:hover {
  color: #f15b54;
  text-decoration: none;
}

@media (min-width: 601px) {
  .ncc-event-card {
    gap: 20px;
    padding: 12px 0;
  }

  .ncc-event-card .ncc-event-date {
    width: 72px;
    min-height: 76px;
  }

  .ncc-event-card .ncc-event-date__start {
    min-height: 72px;
  }

  .ncc-event-card .ncc-event-date__month {
    font-size: 13px;
  }

  .ncc-event-card .ncc-event-date__day {
    font-size: 30px;
  }

  .ncc-event-card .wp-block-post-title {
    font-size: 19px;
  }

  .ncc-event-card .ncc-event-details {
    font-size: 14px;
  }

  .ncc-event-card .ncc-event-card__arrow {
    font-size: 21px;
  }
}

/*-------------------------------*/
/*- Calendar --------------------*/
/*-------------------------------*/

.fc .fc-scrollgrid,
            .fc .fc-scrollgrid td,
            .fc .fc-scrollgrid th {
  border-color: #e8e5e2;
}

.fc .fc-daygrid-day-frame {
  min-height: 70px;
}

.fc .fc-daygrid-day-top {
  flex-direction: row;
  padding: 5px;
}

.fc .fc-daygrid-day-number {
  padding: 0;
  color: #252a30;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.fc .fc-day-other .fc-daygrid-day-number {
  color: #aaa;
}

.fc .fc-day-today {
  background: rgba(241, 91, 84, .045) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
  color: #f15b54;
  font-weight: 800;
}

.fc .fc-daygrid-day-events {
  margin: 4px 5px 8px;
}

.fc .fc-daygrid-event-harness {
  margin-top: 3px;
}

.fc .fc-daygrid-event {
  padding: 3px 4px;
  border: 0;
  border-radius: 3px;
  background: #f3f0ed;
  color: #252a30;
  transition: background .3s ease, color .3s ease;
}

.fc .fc-daygrid-event:hover {
  background: #f15b54;
  color: #fff;
}

.fc .fc-daygrid-event .fc-event-main {
  color: inherit;
}

.fc .fc-daygrid-event .fc-event-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
}

.fc .fc-daygrid-event .fc-event-time {
  font-size: 11px;
  font-weight: 500;
  opacity: .7;
  margin-right: 5px;
}

.fc .fc-daygrid-event-dot {
  display: none;
}

.fc .fc-daygrid-more-link {
  color: #f15b54;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 768px) {
  .fc .fc-daygrid-day-frame {
    min-height: 110px;
  }

  .fc .fc-daygrid-day-top {
    padding: 8px 10px 4px;
  }

  .fc .fc-daygrid-day-number {
    font-size: 15px;
  }

  .fc .fc-daygrid-event {
    padding: 5px 7px;
  }

  .fc .fc-daygrid-event .fc-event-title {
    font-size: 12px;
  }
}

/*-------------------------------*/
/*- Sermon Author ---------------*/
/*-------------------------------*/

.wp-block-acf-sermon-author {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  border-radius: 10px;
  gap: 20px;
}

.wp-block-acf-sermon-author img {
  display: block;
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.sermon-author-profile {
  width: calc(100% - 170px);
}

.sermon-author-profile h4 {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.sermon-author-profile h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  z-index: -1;
  width: 100%;
  height: 5px;
  background-color: var(--brand-coral);
}

/*-------------------------------*/
/*- Content Navigation ---------*/
/*-------------------------------*/

.ncc-content-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

.ncc-content-navigation__link {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 86px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #eef3f6;
  color: #172e42;
  text-decoration: none;
  transition:
    background-color .3s ease,
    border-color .3s ease,
    color .3s ease;
}

.ncc-content-navigation__link:hover {
  border-color: #d7e3e9;
  background: #e5edf1;
  color: #172e42;
}

/*-------------------------------*/
/*- Navigation Icons -----------*/
/*-------------------------------*/

.ncc-content-navigation__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #54718a;
  font-size: 22px;
  transition:
    color .3s ease,
    transform .3s ease;
}

.ncc-content-navigation__link:hover .ncc-content-navigation__icon {
  color: #d14f42;
}

.ncc-content-navigation__link--previous:hover .ncc-content-navigation__icon {
  transform: translateX(-4px);
}

.ncc-content-navigation__link--next:hover .ncc-content-navigation__icon {
  transform: translateX(4px);
}

/*-------------------------------*/
/*- Navigation Text ------------*/
/*-------------------------------*/

.ncc-content-navigation__content {
  flex: 1;
  min-width: 0;
}

.ncc-content-navigation__label {
  margin-bottom: 6px;
  color: #93a9b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ncc-content-navigation__title {
  color: #304c67;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: color .3s ease;
}

.ncc-content-navigation__link:hover .ncc-content-navigation__title {
  color: #d14f42;
}

.ncc-content-navigation__link {
  box-sizing: border-box;
}

.ncc-content-navigation__link:focus-visible {
  outline: 2px solid #d14f42;
  outline-offset: 3px;
}

/*-------------------------------*/
/*- Previous / Next ------------*/
/*-------------------------------*/

.ncc-content-navigation__link--previous {
  justify-content: flex-start;
  text-align: left;
}

.ncc-content-navigation__link--next {
  justify-content: flex-end;
  text-align: right;
}

/*-------------------------------*/
/*- Tablet / Desktop -----------*/
/*-------------------------------*/

@media (min-width: 650px) {
  .ncc-content-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/*-------------------------------*/
/*- Sermon Taxonomy -------------*/
/*-------------------------------*/

.series-image img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/*-------------------------------*/
/*- Sermon Thumbnail ------------*/
/*-------------------------------*/

.ncc-sermon-thumbnail {
  overflow: hidden;
  border-radius: 10px;
}

.ncc-sermon-thumbnail__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: all 0.3s ease;
}

.ncc-sermon-thumbnail__image:hover {
  scale: 1.05;
}

/*-------------------------------*/
/*- Gravity Forms ---------------*/
/*-------------------------------*/

.gform_heading {
  display: none !important;
}

/*-------------------------------*/
/*- Maps ------------------------*/
/*-------------------------------*/

.large-map {
  height: 342px;
  border-radius: 8px;
}



/* ==========================================================
   SINGLE POSTS — CONTENT TYPOGRAPHY
========================================================== */

.single .wp-block-post-content {
  color: var(--color-dark, #20252c);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* HEADINGS */

.single .wp-block-post-content :is(h2, h3, h4, h5, h6) {
  margin: 26px 0 10px;
  color: var(--color-dark-blue, #172e42);
  font-weight: 700;
  line-height: 1.3;
}

.single .wp-block-post-content h2 {
  font-size: 26px;
}

.single .wp-block-post-content h3 {
  font-size: 22px;
}

.single .wp-block-post-content h4 {
  font-size: 18px;
}

.single .wp-block-post-content > :first-child {
  margin-top: 0;
}

/* PARAGRAPHS */

.single .wp-block-post-content p {
  margin: 0 0 12px;
}

/* LISTS */

.single .wp-block-post-content :is(ul, ol) {
  margin: 0 0 18px;
  padding-left: 24px;
}

.single .wp-block-post-content li {
  margin-bottom: 6px;
  padding-left: 2px;
  line-height: 1.55;
}

.single .wp-block-post-content li > :is(ul, ol) {
  margin: 6px 0 0;
}

/* SPACING BETWEEN SECTIONS */

.single .wp-block-post-content :is(h2, h3, h4) + p,
.single .wp-block-post-content :is(h2, h3, h4) + ul,
.single .wp-block-post-content :is(h2, h3, h4) + ol {
  margin-top: 0;
}

/* LINKS */

.single .wp-block-post-content a:not(.wp-block-button__link):not(.wp-element-button) {
  color: var(--brand-blue, #155b7c);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.single .wp-block-post-content a:not(.wp-block-button__link):not(.wp-element-button):hover {
  color: var(--color-dark-blue, #172e42);
}

.single .wp-block-post-content a:focus-visible {
  outline: 2px solid var(--brand-blue, #155b7c);
  outline-offset: 3px;
}

/* ==========================================================
   RESOURCE — AUTOMATIC SIDEBAR LAYOUT
========================================================== */

.single-ncc_resource .ncc-resource-layout {
  gap: 40px;
}

/* Hide the sidebar if neither dynamic block has content. */
.single-ncc_resource .ncc-resource-layout:not(
  :has(.ncc-resource-materials, .ncc-resource-related)
) > .wp-block-column:last-child {
  display: none;
}

/* Expand the content column to full width. */
.single-ncc_resource .ncc-resource-layout:not(
  :has(.ncc-resource-materials, .ncc-resource-related)
) > .wp-block-column:first-child {
  flex-basis: 100% !important;
  width: 100%;
}

/*-------------------------------*/
/*- Media Content Fix -----------*/
/*-------------------------------*/

.wp-block-media-text>.wp-block-media-text__media {
  margin-bottom: 20px;
}

.wp-block-media-text>.wp-block-media-text__content {
  padding: 0;
}

/*-------------------------------*/
/*- Responsive Layout -----------*/
/*-------------------------------*/

@media (min-width: 750px) {
  .wp-block-media-text>.wp-block-media-text__media {
    margin-bottom: 0;
  }
}

@media (min-width: 1000px) {

}

@media (min-width: 1350px) {

}