/** BASE **/

/* Preload hover images */

body::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  background-image: url('/wp-content/uploads/2025/11/child-of-god-lutheran-church-online-portal-homepage-graphic-hover.jpg'),
  url('/wp-content/uploads/2025/11/child-of-god-lutheran-school-online-portal-homepage-graphic-hover.jpg');
  background-repeat: no-repeat;
}

	.inside-article {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

  .center-block {
  margin-left: auto;
  margin-right: auto;
}

.block-right {
  margin-left: auto !important;
  margin-right: 0 !important;

  /* align the menu items to the right inside the bar */
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.center-img {
  text-align: center;
}


/** HOMEPAGE VIDEOS **/

.video-hero .bg-video {
  position: absolute;
  inset: 0;                  /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;      /* clicks go to your content */
}

.bg-video-wrap {
  position: relative;
  overflow: hidden;
  /* your background here */
  background: #1b1640; /* or gradient / image / whatever */
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transition: opacity 0.4s ease;
}
.bg-video.is-ready {
  opacity: 1;
}

/** FORMS **/

.wpcf7-form-control-wrap input, .wpcf7-form-control-wrap textarea, .et_pb_subscribe .et_pb_contact_field input, .et_pb_subscribe .et_pb_contact_field textarea {
    width: 100%;
    padding: 16px;
    border-width: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    color: #999;
    background-color: #eee;
    font-size: 14px;
    -webkit-appearance: none;
}

.wpcf7-submit {
	background: #662D91 !important;
}

/** EVENTS **/

.event-calendar {
	width: 100%;
height: 900px;
}

/** HERO SECTIONS **/

.blue-gradient-banner {
	background: linear-gradient(90deg, #00558B 0%, var(--COG-Blue, #457DB1) 50%, var(--Dark-Blue, #00558B) 100%);
}


/* ================================
   ANIMATION UTILITIES
================================ */

.slide-fade-up-seq {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.slide-fade-up-seq.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Repeat the stagger pattern every 5 items */
.slide-fade-up-seq:nth-child(5n + 1) { transition-delay: 0s;   }
.slide-fade-up-seq:nth-child(5n + 2) { transition-delay: 0.1s; }
.slide-fade-up-seq:nth-child(5n + 3) { transition-delay: 0.2s; }
.slide-fade-up-seq:nth-child(5n + 4) { transition-delay: 0.3s; }
.slide-fade-up-seq:nth-child(5n + 5) { transition-delay: 0.4s; }

.slide-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 2s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.slide-fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.slide-fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide up + fade in */
.slide-fade-up {
  opacity: 0;
  transform: translateY(40px);      /* starts lower, slides up */
  transition: opacity 0.6s ease-out, 
              transform 0.6s ease-out;
  will-change: opacity, transform;
}

.slide-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/** COMPONENTS **/

/* Card wrapper */
.school-card {
  position: relative;
  overflow: hidden;
}

/* Gradient overlay layer BEHIND the content */
.school-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--COG---Guardians, #662D91);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0; 
}

/* Make inner content sit above the overlay */
.school-card > * {
  position: relative;
  z-index: 1;
}

/* Hover state – fade the overlay in */
.school-card:hover::before,
.school-card:focus-within::before {
  opacity: 0.4;
}

.gb-element-d12afb37 a {
	text-decoration: none;
}

/* HOMEPAGE BORDERED BOX */

.bevel-box {
  outline: 1px solid #fff;
  outline-offset: 5px;
  padding: 20px;
z-index:8;
}

.church-site-btn, .school-site-btn {
	position:relative;
	z-index:9;
}

/** HOME ICON CTAs **/

.icon-links {
	font-family: "proxima-nova";
}

.col-grade-cta {
	text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25) !important;
}

/** BACKGROUND SHIELDS **/


/** BACKGROUND SHIELDS — PSEUDO ONLY (VISIBLE EVERYWHERE) **/

/* Base: gradient only + reliable stacking context */


/* Watermark layer (desktop default: scrolls with section) */
.shield-section::before,
.shield-section2::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;

  /* IMPORTANT: keep it visible, behind content */
  z-index: -1;

  background-repeat: no-repeat;
  background-position: 98% 50%;
  background-size: 28% auto;

/*   opacity: 0.12; */
}

/* Content above watermark */
.shield-section > *,
.shield-section2 > *{
  position: relative;
  z-index: 1;
}



/* Guarantee pseudo watermark is visible on ALL devices */
.shield-section,
.shield-section2{
/*   isolation: isolate;  */
}

.shield-section::before,
.shield-section2::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  
  background-repeat: no-repeat;
  background-position: 98% 50%;
  background-size: 28% auto;
/*   opacity: 0.12; */
}

.shield-section::before{
  background-image: url("/wp-content/uploads/2025/12/child-of-god-lutheran-school-guardians-shield-logo.svg") !important;

opacity: 1;
}

.shield-section2::before{
  background-image: url("/wp-content/uploads/2025/11/child-of-god-lutheran-church-school-shield-logo-watermark.svg") !important;
opacity: 1;
}


/* Mobile: fixed watermark + opacity */

@media (max-width: 768px) {

  .shield-section,
  .shield-section2{
    position: relative;
    background: linear-gradient(180deg, #cfb596 0%, rgba(10,10,10,0) 0%);
    z-index: 0;
  }

  .shield-section::before,
  .shield-section2::before{
    content:"";
    position: fixed;
    inset: 0;
    pointer-events: none;

    z-index: 0 !important;     /* <-- critical change */


    background-repeat: no-repeat;
    background-position: 100% 50%;
    background-size: 55% auto;
  }

  .shield-section > *,
  .shield-section2 > *{
    position: relative;
    z-index: 1;
  }
}












/** Events Calendar Section Shool Homepage **/


.events-slider-section {
  padding: 60px 0;

}

.events-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.events-slider-title {
  margin: 0;
  color: #fff;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.events-slider-nav {
  display: flex;
  gap: 14px;
}

/* Make Swiper buttons look like simple chevrons */
.events-slider-nav .swiper-button-prev,
.events-slider-nav .swiper-button-next {
  position: static;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.events-slider-nav .swiper-button-prev::after,
.events-slider-nav .swiper-button-next::after {
  font-size: 28px;
  color: rgba(0,0,0,0.6);
}

.event-card {
  background: transparent;
  padding: 10px;

}

.event-card-inner {
  background: #fff;
  padding: 20px 15px;
  text-align: center;
box-shadow: -15px 15px 0px -1px var(--cog-dark-purple);
  border: 1px solid rgba(0,0,0,0.06);

}

.event-card-date {
color: var(--COG-Blue, var(--COG-Blue, #457DB1));
text-align: center;
font-size: 24px;
font-style: normal;
font-weight: 600;
line-height: 40px;
letter-spacing: 1.2px;
  margin-bottom: 0px;
}

.event-card-title {
  margin: 0 0 20px;
color: var(--Dark-Purple, var(--Dark-Purple, #3F2A55));
font-size: 28px;
font-style: normal;
font-weight: 600;
line-height: 40px;
}

.event-card-btn {
  display: inline-block;
  padding: 5px 34px;
  background: var(--COG-Blue, #457DB1);
color: #ffffff;
  font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: 42px; /* 210% */
  text-decoration: none;
  
  
}

.event-card-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}



/* --- Swiper spacing + equal-size cards --- */

/* Use Swiper's JS spaceBetween for the real gap; remove slide padding */
.ics-event-slider .swiper-slide {

}
.event-card {
                 /* kill the extra gap you were creating */
   height: 252px; 
}
.event-card-inner {
  height: 252px;
  width: 370px;
  box-sizing: border-box;

  background: #fff;
  padding: 45px 35px;
  text-align: center;
  box-shadow: -15px 15px 0px -1px var(--cog-dark-purple);
  border: 1px solid rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;
  gap: 10px;                 /* “inside out” spacing */
}


/* Keep titles from changing card height */
.event-card-title {
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* clamp to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Keep the button from stretching weirdly */
.event-card-btn {
  margin-top: auto;
  white-space: nowrap;
}

.event-card-date { margin-bottom: 0; }
.event-card-title { margin: 0; }  /* remove the big bottom margin */
.event-card-btn { margin-top: auto; } /* undo the auto push */


.events-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.events-slider-nav {
  margin-left: auto; /* guarantees it sits on the right */
}


/** TESTIMONIAL BACKGROUND **/

.testimonial-section {
  background: linear-gradient(90deg, #FBF6FF 0%, #F4E6FF 50%, #FBF6FF 100%);
}

/** TYPOGRAPHY **/

.heading-h1 {
	color: var(--Darkest-Purple, #2A1D38);
	text-align: center;
	font-size: 32px;
	font-style: normal;
	font-weight: 400;
	line-height: 30px; /* 93.75% */
	font-variant: all-small-caps;
	letter-spacing: 1.6px;
}

.heading-h3 {
	color: var(--Darkest-Purple, #2A1D38);
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 30px;
}

.heading-h4 {
	color: var(--Darkest-Purple, #2A1D38);
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: 30px;
}

.heading-h5 {
	font-family: "proxima-nova";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
}

/** FORMS **/

.wpcf7-form-control-wrap input{
	margin-bottom: 10px !important;
}

.wpcf7-form-control {
	border: none !important;
  background: #eee !important;
}

.wpcf7-submit {
	background: var(--COG---Guardians, #662D91) !important;
  padding: 0px 30px !important;
  box-shadow: 0 3px 4.5px 0 rgba(0, 0, 0, 0.30);
}

.wpcf7-submit:hover {
	background: #ffffff !important;
  color: var(--COG---Guardians, #662D91) !important;
}

/** MEDIA QUERIES **/

@media (max-width: 768px) {

  /** MOBILE EVENTS **/

  .event-calendar {
    width: 100%;
    height: 600px;
  }

  /** MOBILE BACKGROUND SHIELDS */



}