@import url("https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/******* SITE DEFAULTS *************/

html body {
  --primary-color-rgb: 4, 78, 154;
  --secondary-color-rgb: 10, 121, 204;
  --tertiary-color-rgb: 197, 233, 249;
  --background-color-rgb: 255, 255, 255;
  --default-white-rgb: 255, 255, 255;
  --default-black-rgb: 0, 0, 0;

  --title-font-family: "Cormorant", serif;
  --body-font-family: "Open_Sans", sans-serif;

  --last-break-point: 50.99rem;
  --site-max-width: 1920px;

  --slideshow-height: min(56.25vw, 810px);
  --slideshow-width: min(100vw, 1440px);

  --slideshow-height-mobile: 56.25vw;
  --slideshow-width-mobile: 100vw;

  --ql-num-boxes: 5;

  --site-container-max-width: 1625px;

  --main-menu-bg: rgba(255, 255, 255, 0.15);
  --main-menu-text-color: white;

  --ql-title-color: white;
  --ql-title-hover: rgba(255, 255, 255, 0.85);

  --side-menu-bg: var(--primary-color);
  --side-menu-bg-hover: var(--secondary-color);
  --side-menu-font-size-desktop: min(1.25vw, 1.25rem);
  --side-menu-font-family: var(--body-font-family);
  --side-menu-font-weight: 400;
}

html body.site-home {
  --section-slideshow-bg: #103690;
}

.site {
  --section-navigation-bg: rgba(var(--primary-color-rgb), 0);
}

/* navigation */

#g-navigation {
  position: relative;
  background-image: url("/images/template/bg-header.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#g-navigation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(var(--primary-color-rgb), 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}

#g-navigation>.g-container>.g-grid:nth-child(2) {
  padding: 2rem;
}

#g-navigation .g-main-nav .g-toplevel {
  justify-content: center !important;
}

#g-navigation .g-menu-item-container {
  color: white !important;
  font-weight: 500;
  letter-spacing: 0.5px !important;
  padding: 12px 28px !important;
  border: none !important;
  transition: all 0.3s ease;
  /* Transition all properties for sub-menu effects */
}

#g-navigation .g-main-nav .g-toplevel>li .g-menu-item-title {
  font-size: 18px;
  font-weight: 500;
  text-transform: none !important;
  /* Match screenshot's sentence case */
}

#g-navigation .g-toplevel>.g-menu-item>.g-menu-item-container:hover {
  color: rgb(var(--secondary-color-rgb)) !important;
  background: transparent !important;
}

#g-navigation .g-logo {
  padding-top: 1rem;
  justify-content: center;
}

#g-navigation .g-logo img {
  width: 100%;
  max-width: 1000px;
}

/* Ensure Bulletin, Contact Us, and all navigation links/icons stay white */
#g-navigation a,
#g-navigation .g-menu-item-type-particle,
#g-navigation .g-menu-item-content {
  color: white;
}

#g-navigation .g-main-nav i,
#g-navigation .g-main-nav .fa,
.g-social .g-social-items a {
  font-size: 1.5rem !important;
  vertical-align: middle;
}

/* Underline Animation */
#g-navigation .g-toplevel>.g-menu-item>.g-menu-item-container {
  position: relative;
}

#g-navigation .g-toplevel>.g-menu-item>.g-menu-item-container::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: rgb(var(--secondary-color-rgb));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#g-navigation .g-toplevel>.g-menu-item:hover>.g-menu-item-container::after {
  width: 40%;
}

/* --- Dropdowns --- */
#g-navigation .g-dropdown {
  background-color: rgb(var(--default-white-rgb)) !important;
  border-top: 3px solid rgb(var(--secondary-color-rgb));
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 25px rgba(var(--default-black-rgb), 0.15) !important;
  padding: 8px 0;
  min-width: 220px !important;
  z-index: 1002 !important;
}

/* Dropdown Links */
#g-navigation .g-dropdown .g-menu-item-container,
#g-navigation .g-dropdown .g-menu-item-content {
  color: rgb(var(--primary-color-rgb)) !important;
}

#g-navigation .g-sublevel .g-menu-item-container {
  font-size: 14px !important;
  padding: 10px 20px !important;
  font-weight: 500 !important;
  border-left: 3px solid transparent !important;
  display: block;
  text-transform: none !important;
  transition: all 0.3s ease !important;
  /* Added for the hover animation */
}

/* Dropdown Hover */
#g-navigation .g-sublevel .g-menu-item-container:hover {
  background-color: rgba(var(--tertiary-color-rgb), 0.35) !important;
  color: rgb(var(--secondary-color-rgb)) !important;
  border-left: 3px solid rgb(var(--secondary-color-rgb)) !important;
  padding-left: 25px !important;
}

/* --- Mobile Styles --- */
@media (max-width: 50.99rem) {

  #g-navigation .g-logo img {
    min-width: unset !important;
    max-width: 80% !important;
  }

  #g-navigation .g-main-nav {
    background-color: rgba(255, 255, 255, 0.95) !important;
  }

  #g-navigation .g-dropdown {
    box-shadow: none !important;
    border-top: none;
    background-color: rgba(var(--tertiary-color-rgb), 0.3) !important;
  }
}

@media only screen and (min-width: 50.99rem) {
  .ql-fa-toplinks .g-blockcontent-subcontent {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch !important;
    justify-content: flex-end;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block {
    flex: var(--ql-flex);
    display: flex;
    justify-content: center;
    padding: 1vw;
    position: relative;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block-content {
    position: unset;
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block:hover {
    background: var(--ql-background-hover);
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block:hover .g-blockcontent-subcontent-title-text {
    color: var(--ql-title-hover);
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block:hover .g-blockcontent-subcontent-title-icon {
    color: var(--ql-icon-hover);
  }

  .ql-fa-toplinks .g-blockcontent-buttons {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .ql-fa-toplinks .g-blockcontent-buttons>a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    color: transparent;
    opacity: 0;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-title {
    order: 3;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-title-text,
  .wl-fa-toplinks-2 .g-blockcontent-subcontent-title-text {
    font-size: clamp(16px, 1.1vw, 21px);
    text-align: center;
    font-weight: 400;
    color: var(--ql-title-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-desc {
    order: 1;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-title-icon,
  .wl-fa-toplinks-2 .g-blockcontent-subcontent-title-icon {
    font-size: clamp(24px, 1.9vw, 38px);
    color: var(--ql-icon-color);
    margin-bottom: 1vw;
  }
}

@media only screen and (max-width: 50.99rem) {
  .ql-fa-toplinks {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex-basis: 100% !important;
    padding: 0 !important;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block-content>.g-blockcontent-subcontent-title {
    margin-top: 1rem !important;
  }

  #g-navigation>.g-container>.g-grid:nth-child(2) {
    padding: 1rem 2rem;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block {
    padding: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0px !important;
    height: auto !important;
    width: auto !important;
    border: none !important;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent>.g-blockcontent-subcontent-block:not(:last-child) {
    border-right: 1px solid rgba(var(--secondary-color-rgb), 0.3) !important;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block-content {
    position: relative;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
  }

  .ql-fa-toplinks.ql-fa-toplinks-2 .g-blockcontent-buttons a {
    color: transparent !important;
  }

  .ql-fa-toplinks .g-blockcontent-buttons {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: transparent;
    color: transparent !important;
    margin: 0;
    padding: 0;
    border-radius: 0;
    z-index: 5;
  }

  .ql-fa-toplinks #g-navigation .g-blockcontent-buttons>a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: transparent;
    color: transparent !important;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-block-content>.g-blockcontent-subcontent-title {
    order: 2;
    margin: 5px 0 0 0 !important;
    padding: 0;
    font-size: 14px !important;
    display: block !important;
    color: var(--ql-title-color) !important;
  }

  .ql-fa-toplinks .g-blockcontent-subcontent-title-icon {
    color: var(--ql-icon-color);
    font-size: 1.5rem !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/*  */

.site-home #g-slideshow {
  padding: 2rem !important;
}

/* Mass Schedule Container */
.mass-schedule-wrapper,
.site-home #g-slideshow .mass-schedule-wrapper {
  background: #e4effb;
  /* Matching the light blue from the screenshot */
  border-radius: 20px;
  padding: 2.5rem;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-color-rgb), 0.3) transparent;
}

@media (min-width: 50.99rem) {
  .mass-schedule-wrapper {
    max-height: 35vw;
  }
}

/* Custom Scrollbar for Mass Schedule */
.mass-schedule-wrapper::-webkit-scrollbar {
  width: 6px;
}

.mass-schedule-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(var(--primary-color-rgb), 0.2);
  border-radius: 10px;
}

.mass-schedule-wrapper h1,
.site-home #g-slideshow .mass-schedule-wrapper h1 {
  color: rgb(var(--primary-color-rgb));
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  font-family: var(--title-font-family);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
}

.mass-schedule-wrapper hr,
.site-home #g-slideshow .mass-schedule-wrapper hr {
  border: none;
  border-top: 1px solid rgb(var(--primary-color-rgb));
  margin: 0.35rem 0 1.25rem 0;
  opacity: 1;
  width: 100%;
}

.mass-schedule-wrapper h2,
.site-home #g-slideshow .mass-schedule-wrapper h2 {
  color: rgb(var(--primary-color-rgb));
  margin: 1rem 0 0.35rem 0;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-family: var(--title-font-family);
  font-weight: 600;
}

.mass-schedule-wrapper p,
.site-home #g-slideshow .mass-schedule-wrapper p {
  color: rgb(var(--primary-color-rgb));
  margin-bottom: 0.2rem;
  font-weight: 400;
  line-height: 1.4;
  font-size: clamp(14px, 1.1vw, 17px);
}

/* Slideshow Container */
.j-swiper .g-swiper {
  border-radius: 20px;
  overflow: hidden;
}

.j-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation & Interactivity */
.j-swiper .swiper-navigation div {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.j-swiper .swiper-navigation div:hover {
  transform: translateY(-50%) scale(1.1);
  opacity: 0.8;
}

.j-swiper .swiper-pagination-bullet {
  transition: background-color 0.3s ease;
}

.j-swiper .swiper-pagination-bullet:hover {
  background-color: #ffffff;
}

/* Mobile Responsive Styles */
@media (max-width: 50.99rem) {
  .g-grid {
    display: flex;
    flex-direction: column !important;
  }

  .g-block.size-25,
  .g-block.size-75 {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }

  .j-swiper {
    margin-top: 1.5rem;
  }
}

/* Aspect Ratio Adjustments */
.j-swiper .g-swiper-slider {
  height: auto !important;
  /* Overriding the inline 56vw height */
  aspect-ratio: 16 / 9;
}

.j-swiper .swiper-slide {
  height: 100% !important;
}

.j-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Navigation Arrow Polish */
.j-swiper [class^="swiper-button-"] {
  background: rgba(0, 0, 0, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50% !important;
}

.j-swiper [class^="swiper-button-"]:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.05);
}

/* Mobile Ratio Adjustment */
@media (max-width: 50.99rem) {
  .j-swiper .g-swiper-slider {
    aspect-ratio: 4 / 3;
    /* Slightly taller for better visibility on mobile */
  }
}



/* Rotator Aspect Ratio & Shape */
.site-home #g-slideshow .j-swiper .g-swiper {
  border-radius: 20px;
  overflow: hidden;
}

.site-home #g-slideshow .j-swiper .g-swiper-slider {
  height: auto !important;
  aspect-ratio: 16 / 9;
}

.site-home #g-slideshow .j-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Hover Effects */
.site-home #g-slideshow .j-swiper [class^="swiper-button-"]:hover {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Mobile Responsive Styles */
@media (max-width: 50.99rem) {
  .site-home #g-slideshow .g-grid {
    flex-direction: column !important;
    row-gap: 1rem;
  }

  .site-home #g-slideshow .g-block.size-25,
  .site-home #g-slideshow .g-block.size-75 {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .site-home #g-slideshow .j-swiper .g-swiper-slider {
    aspect-ratio: 4 / 3;
    /* Taller ratio for mobile devices */
  }
}

/*  */

.site-home #g-header {
  padding: 2rem !important;
}

/* --- SLIDESHOW CONTAINER --- */
.j-swiper .g-swiper,
.site-home #g-slideshow .j-swiper .g-swiper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  position: relative;
}

/* Quote Overlay Injection */
.j-swiper .g-swiper::after {
  content: "“We are disciples of Jesus building the Kingdom.”";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.92);
  color: rgb(var(--primary-color-rgb));
  padding: 15px 50px;
  border-radius: 12px 12px 0 0;
  /* Only top corners rounded to sit flush */
  font-family: var(--title-font-family);
  font-size: 2.25rem;
  font-style: italic;
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  /* Shadow only on top now */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile responsive quote */
@media (max-width: 50.99rem) {
  .j-swiper .g-swiper::after {
    font-size: 1rem;
    padding: 12px 20px;
    bottom: 0;
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

.j-swiper .g-swiper-slider,
.site-home #g-slideshow .j-swiper .g-swiper-slider {
  height: auto !important;
  aspect-ratio: 16 / 9;
}

.j-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- NAVIGATION & INTERACTIVITY --- */
.j-swiper [class^="swiper-button-"] {
  /* Using black variable for the arrow background */
  background: rgba(var(--default-black-rgb), 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50% !important;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.j-swiper [class^="swiper-button-"]:hover {
  background: rgba(var(--default-black-rgb), 0.5);
  transform: translateY(-50%) scale(1.05);
}

.j-swiper .swiper-pagination-bullet:hover {
  background-color: rgb(var(--default-white-rgb));
}

/* --- FLEXBOX LAYOUT ADJUSTMENTS --- */
.site-home #g-slideshow .g-grid {
  display: flex !important;
  column-gap: 1rem;
  align-items: stretch;
}

/* 25% Block (Mass Schedule) */
.site-home #g-slideshow .g-block.size-25 {
  flex: 0 0 calc(25% - 0.75rem) !important;
  width: calc(25% - 0.75rem) !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
  /* Allows child to scroll if content too tall */
}

/* 75% Block (Rotator) */
.site-home #g-slideshow .g-block.size-75 {
  flex: 0 0 calc(75% - 0.25rem) !important;
  width: calc(75% - 0.25rem) !important;
  display: flex !important;
  flex-direction: column !important;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 50.99rem) {
  .site-home #g-slideshow .g-grid {
    flex-direction: column-reverse !important;
    row-gap: 1.5rem;

  }

  .site-home #g-slideshow .g-block.size-25,
  .site-home #g-slideshow .g-block.size-75 {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .j-swiper .g-swiper-slider {
    aspect-ratio: 4 / 3;
  }
}

/*  */

/* --- VARIABLES --- */

/* --- RESET & LAYOUT --- */
.j-quicklinks,
.j-quicklinks .g-container,
.j-quicklinks .g-blockcontent,
.j-quicklinks .g-blockcontent-subcontent-block {
  height: auto !important;
  block-size: auto !important;
  min-height: 0 !important;
}

/* --- GRID SYSTEM --- */
.j-quicklinks .g-blockcontent-subcontent {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  /* Centers items if they wrap to a new line */
  justify-content: center !important;
  gap: 20px !important;
  width: 100% !important;
}

/* --- UNIFORM CARD SIZING (Desktop) --- */
.j-quicklinks .g-blockcontent-subcontent-block {
  /* Set a fixed width percentage for 5 items per row minus gaps */
  /* (100% / 5) = 20%. We use slightly less to account for gap math. */
  flex: 0 0 calc(20% - 16px) !important;
  max-width: calc(20% - 16px) !important;
  min-width: 180px !important;
  /* Prevents them from getting too skinny */
}

.j-quicklinks .g-blockcontent-subcontent-block-content {
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%;
}

/* --- FULL BLOCK CLICKABILITY --- */
.j-quicklinks .g-blockcontent-buttons {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  height: 0;
  overflow: hidden;
}

.j-quicklinks .g-blockcontent-buttons a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  cursor: pointer;
}

/* --- IMAGE & SHADOW --- */
.j-quicklinks .g-blockcontent-subcontent-img {
  width: 100% !important;
  height: auto !important;
  /* Set a fixed aspect ratio so all images look identical */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  margin-bottom: 15px;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* --- TITLE --- */
.j-quicklinks .g-blockcontent-subcontent-title {
  margin: 0 !important;
  height: auto !important;
}

.j-quicklinks .g-blockcontent-subcontent-title-text {
  color: rgb(var(--primary-color-rgb));
  font-family: var(--title-font-family);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none !important;
}

/* --- INTERACTION --- */
.j-quicklinks .g-blockcontent-subcontent-block-content:hover {
  transform: translateY(-8px);
}

.j-quicklinks .g-blockcontent-subcontent-block-content:hover .g-blockcontent-subcontent-img {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

/* --- MOBILE RESPONSIVENESS (2 Columns) --- */
@media (max-width: 50.99rem) {
  .j-quicklinks .g-blockcontent-subcontent {
    gap: 12px !important;
  }

  .j-quicklinks .g-blockcontent-subcontent-block {
    /* Exact 50% width minus half the gap for 2 columns */
    flex: 0 0 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    min-width: 0 !important;
    margin-bottom: 10px;
  }
}

/*  */

/* --- News & Events Scoped Styles --- */

/* Main Section Title */
.j-main-title h2 {
  color: rgba(var(--primary-color-rgb), 1) !important;
  font-size: 2.5rem;
  font-variant: small-caps;
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-weight: bold;
}

.j-news .g-joomla-articles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card Container */
.j-news .g-grid {
  background-color: rgba(var(--background-color-rgb), 1) !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(var(--default-black-rgb), 0.15);
  overflow: hidden;
  max-width: 100% !important;
  flex-basis: 100% !important;
  height: auto !important;
}

/* Image 16/9 Aspect Ratio */
.j-news .g-array-item-image {
  width: 100%;
  aspect-ratio: 1600 / 900;
  height: auto !important;
  overflow: hidden;
}

.j-news .g-array-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title Area Styling */
.j-news .g-array-item-title {
  background-color: rgba(var(--default-white-rgb), 1);
  padding: 1.25rem;
  height: auto !important;
  min-height: auto !important;
}

.j-news .g-item-title,
.j-news .g-item-title a {
  color: rgba(var(--primary-color-rgb), 1) !important;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Pagination Controls */
.j-news .g-content-array-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1.5rem;
  width: 100% !important;
}

.j-news .pagination-button {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background-color: rgba(var(--default-black-rgb), 0.1) !important;
  border: none !important;
  /* Removed hover border */
  color: rgba(var(--default-black-rgb), 0.6) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.j-news .pagination-button:hover:not([disabled]) {
  background-color: rgba(var(--default-black-rgb), 0.2) !important;
}

.j-news .pagination-button-prev::before {
  content: "\2039";
  font-size: 24px;
}

.j-news .pagination-button-next::before {
  content: "\203A";
  font-size: 24px;
}

/* Main Button (View All) */
#g-sidebar .j-main-button a.button {
  background-color: rgba(var(--primary-color-rgb), 1) !important;
  color: rgba(var(--default-white-rgb), 1) !important;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  border: none !important;
  /* Removed hover border */
  transition: opacity 0.2s;
}

#g-sidebar .j-main-button a.button:hover {
  opacity: 0.9;
}



#g-sidebar .j-main-button a.button::after {
  content: "View All";
}

/* Responsive adjustments */
@media (max-width: 50.99rem) {
  .j-news .g-grid {
    margin-bottom: 1.25rem;
  }

  #g-offcanvas .g-social-items {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .g-offcanvas-toggle {
    display: grid;
  }

  .g-offcanvas-toggle {
    top: 0;
    left: 0;
  }

  .g-offcanvas-toggle {
    background: var(--default-white);
    /* display: none; */
    justify-content: center;
    align-items: center;
    border-radius: 0;
    border-bottom-right-radius: 50%;
    box-shadow: var(--default-box-shadow);
  }
}

/*  */

.site-home #g-container-main {
  padding: 4rem !important;
}

@media (max-width: 50.99rem) {
  .site-home #g-container-main {
    padding: 2rem !important;
  }
}

.site-home #g-container-main .g-block:has(.j-banners) {
  display: grid;
  align-items: center;
}

/* --- Primary Column Spacing (Doubled Gaps) --- */

/* Target only the immediate top-level grid of the main container */
.site-home #g-container-main>.g-container>.g-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  /* Negative margin matches the padding to keep outer alignment flush */
  margin-left: -40px !important;
  margin-right: -40px !important;
}

/* Target only the primary columns (News, Facebook, Ads) */
.site-home #g-container-main>.g-container>.g-grid>.g-block {
  box-sizing: border-box !important;
  /* Doubled from 20px to 40px for a total 80px gap between columns */
  padding-left: 40px !important;
  padding-right: 40px !important;
}

/* Mobile Adjustments (Breakpoint: 50.99rem) */
@media (max-width: 50.99rem) {
  .site-home #g-container-main>.g-container>.g-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .site-home #g-container-main>.g-container>.g-grid>.g-block {
    flex-basis: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 3rem;
    /* Slightly increased vertical space for balance */
  }
}

/*  */

/* --- Main Container Background & Blurred Overlay --- */

.site-home #g-container-main {
  position: relative !important;
  background-image: url('/images/template/bg-news.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  overflow: hidden;
  /* Contains the blurred pseudo-element */
}

/* The White Blurred Overlay */
.site-home #g-container-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Use a semi-transparent white to create the overlay effect */
  background-color: rgba(var(--background-color-rgb), 0.7);
  /* The 12px blur requested */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}

/* Ensure content stays crisp and visible */
.site-home #g-container-main>.g-container {
  position: relative;
  z-index: 2;
}

/* Maintain original column spacing logic */
.site-home #g-container-main>.g-container>.g-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -40px !important;
  margin-right: -40px !important;
}

.site-home #g-container-main>.g-container>.g-grid>.g-block {
  box-sizing: border-box !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

/* Mobile Adjustments */
@media (max-width: 50.99rem) {
  .site-home #g-container-main {
    background-attachment: scroll;
    /* Better performance on mobile */
  }

  .site-home #g-container-main>.g-container>.g-grid>.g-block {
    padding: 0 !important;
  }
}

/*  */


/* --- Full Width Main Action Button --- */

.j-main-button {
  background-color: rgba(var(--primary-color-rgb), 1) !important;
  color: rgba(var(--default-white-rgb), 1) !important;
  text-decoration: none !important;
  border-radius: 5px !important;

  margin-top: 2rem;

  /* Layout: Full width with constraint */
  display: flex !important;
  width: 100% !important;
  max-width: 620px !important;
  /* Adjust this value as needed */
  margin-left: auto !important;
  margin-right: auto !important;

  /* Alignment & Sizing */
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 0 !important;
  /* Vertical padding only, horizontal is flexed */

  /* Typography */
  font-weight: normal !important;
  font-size: 1.1rem !important;
  text-align: center !important;
  line-height: 1 !important;

  /* Interaction */
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

/* Hover state */
.j-main-button:hover {
  background-color: rgba(var(--secondary-color-rgb), 1) !important;
  opacity: 0.95;
  text-decoration: none !important;
}

/* Ensure centering on mobile */
@media (max-width: 50.99rem) {
  .j-main-button {
    max-width: 100% !important;
  }
}

/*  */

/* --- Global Mobile Override for size-xx classes --- */

@media (max-width: 50.99rem) {

  /* Targets any element where the class attribute contains "size-" */
  .site-home #g-container-main [class*="size-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    /* Reset any side margins that might interfere with full width */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Remove the negative margin on the grid for mobile to prevent horizontal overflow */
  .site-home #g-container-main>.g-container>.g-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .site-home.withmaxwidth:not(.sponsorshippage) :is(#g-top, #g-container-main, #g-above, #g-feature, #g-showcase, #g-utility, #g-container-main, #g-expanded, #g-extension, #g-bottom, #g-footer)>.g-container {
    padding: 0 !important;
  }
}

/*  */

.site-home #g-expanded {
  padding: 4rem !important;
}

/*  */

.site-home #g-expanded {
  position: relative !important;
  background-image: url('/images/template/bg-news.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  overflow: hidden;
}

.site-home #g-expanded::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(var(--primary-color-rgb), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}

/*  */

/* Diocesan News Container */
.diocesan-news-container {
  padding: 0px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Header Styling */
.news-title {
  color: rgb(var(--default-white-rgb));
  /* Inherits global font-family */
  /* font-size: 28px; */
  margin-top: 0;
  /* margin-bottom: 20px; */
  font-weight: 500;
  line-height: 1;
}

/* Individual News Item "Cards" */
.news-item {
  background-color: rgba(var(--secondary-color-rgb), 0.55);
  color: rgb(var(--default-white-rgb)) !important;
  padding: 25px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  /* Slightly sharper corners like the screenshot */
  text-decoration: none !important;
  display: block;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  transition: background 0.3s ease;
  box-shadow: 0 2px 4px rgba(var(--default-black-rgb), 0.1);
}

.news-item:hover {
  background-color: rgba(var(--secondary-color-rgb), 0.6);
  text-decoration: none !important;
}

/* The "View More" Button */
.view-more-btn {
  background-color: rgba(255, 255, 255, 1) !important;
  color: rgba(var(--primary-color-rgb), 1) !important;
  text-decoration: none !important;
  border-radius: 5px !important;
  margin-top: 2rem;
  display: flex !important;
  width: 100% !important;
  max-width: 350px !important;
  /* margin-left: auto !important; */
  margin-right: auto !important;
  margin-bottom: 4rem;
  margin-top: 1rem;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 0 !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  text-align: center !important;
  line-height: 1 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

/* --- DESKTOP SPECIFIC STYLES --- */
@media (min-width: 992px) {
  .diocesan-news-container {
    padding: 0px;
  }

  .news-title {
    font-size: 3rem;
    /* Larger on desktop per your request */
    margin-bottom: 30px;
  }

  .news-item {
    padding: 25px 25px;
    font-size: 16px;
    /* Slightly larger text for readability */
    margin-bottom: 30px;
  }

  .view-more-btn {
    font-size: 14px;
    padding: 12px 30px;
  }


}

/*  */

.bulletin-picture-list .bulletin-variables {
  --bulletin-border-radius: 5px;
  --load-more-border-radius: var(--bulletin-border-radius);
  --big-bulletin-font-size: clamp(1.5rem, 21.6px, 2rem);
  --small-bulletin-font-size: clamp(1.2rem, 21.6px, 1.5rem);
  --bulletin-container-padding: 0rem;
  --big-bulletin-size: 90%;
  --bulletin-title-color: var(--default-white);
  --bulletin-text-background-color: rgb(8 103 173);
  --bulletin-list-background-color: rgba(var(--secondary-color-rgb), 0.4);
  --bulletin-gaps: 1rem;
  --bulletin-list-row-height: 3rem;
  --bulletin-text-hover-color: var(--default-black);
  --bulletin-margins: 0;
  --load-more-button-display: none;
  --bulletin-min-width: 125px;
  --bulletin-max-width: 350px;
}

.bulletin-picture-list h2 {
  color: white;
  text-align: center;
  margin: 0;
  line-height: 1;
  margin-bottom: 30px;
  font-size: 3rem;
}

.bulletin-picture-list .bulletin-container .bulletin:first-child .bulletin-date-container {
  height: 15%;
  backdrop-filter: blur(2px);
}

.bulletin-picture-list .view-more-btn {
  margin-left: auto !important;
}

@media (max-width: 50.99rem) {
  .bulletin-picture-list h2 {
    font-size: 2rem;
    font-weight: 600;
  }

  .yottie-widget-header-inner {
    padding: 0px !important;
  }
}

/*  */

.site-home #g-extension {
  padding: 4rem !important;
}

@media (max-width: 50.99rem) {
  .site-home #g-extension {
    padding: 2rem !important;
  }

  .site-home #g-expanded {
    padding: 2rem !important;
  }

  .ph-rounded-square-mobile .g-content-array {
    padding: 1rem 0 !important;
    align-items: center;
  }

  .j-main-title h2 {
    text-align: center;
  }
}

/*  */

#yottie_1 .yottie-widget-header {
  background-color: transparent !important;
}

.yottie-widget-header-channel-title {
  display: block !important;
  display: -webkit-box !important;
  overflow: hidden;
  line-height: 1 !important;
  max-height: initial !important;
  font-size: 3rem !important;
  font-family: var(--title-font-family);
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/*  */

.site-home #g-extension {
  position: relative !important;
  background-image: url('/images/template/bg-news.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  overflow: hidden;
}

.site-home #g-extension::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}

/*  */

/* Footer Main Container */
.st-teresa-footer {
  background-color: #0c4d94 !important;
  color: #ffffff !important;
  padding: 60px 40px !important;
  font-family: 'Georgia', serif !important;
}

.footer-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 30px !important;
}

/* Column 1: Logo and Socials */
.footer-side-branding {
  flex: 0 0 180px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.church-emblem {
  width: 160px !important;
  height: auto !important;
  margin-bottom: 25px !important;
}

.social-links {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
}

.social-links a {
  color: #ffffff !important;
  font-size: 22px !important;
  text-decoration: none !important;
}

/* Column 2: Church Name and Contact */
.footer-center-content {
  flex: 2 !important;
  padding: 0 20px !important;
  width: fit-content;
  display: grid;
  align-items: center;
  justify-content: center;
}

.church-name {
  font-size: 70px !important;
  font-variant: small-caps;
  margin: 0 !important;
  font-weight: bold !important;
  line-height: 1.1 !important;
  color: white;
}

.church-tagline {
  font-family: var(--body-font-family);
  font-size: 25px !important;
  text-transform: uppercase !important;
  letter-spacing: 4px !important;
  margin: 5px 0 35px 0 !important;
}

.contact-grid {
  font-family: var(--body-font-family);
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.contact-block {
  margin-bottom: 18px !important;
}

.contact-header {
  font-weight: bold !important;
  display: block !important;
}

.contact-email {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Column 3: Helpful Links Panel */
.helpful-links-panel {
  flex: 1 !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  padding: 35px !important;
  min-width: 260px !important;
}

.panel-title {
  font-size: 40px !important;
  margin: 0 0 20px 0 !important;
  font-weight: 400 !important;
  color: white;
}

.link-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.link-item {
  margin-bottom: 12px !important;
}

.link-item a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'Arial', sans-serif !important;
  font-size: 15px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
}

.link-item i {
  font-size: 10px !important;
  margin-right: 12px !important;
}

#g-footer {
  border-bottom: 10px solid rgb(var(--secondary-color-rgb));
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .church-name {
    font-size: 40px !important;
  }

  .helpful-links-panel {
    width: 100% !important;
  }
}

/*  */

.g-content-array .g-array-item .g-array-item-text {
  margin: 0 !important;
}

/*  */

.helpful-links-panel {
  background-color: rgba(var(--default-white-rgb), 0.12) !important;
  color: rgb(var(--default-white-rgb)) !important;
}

.helpful-links-panel .panel-title {
  color: rgb(var(--default-white-rgb)) !important;
  font-weight: 400 !important;
  margin-bottom: 20px !important;
  /* opacity: 0.8 !important; */
}

.helpful-links-panel .link-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.helpful-links-panel .link-item a {
  color: rgb(var(--default-white-rgb)) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
}

/* Arrow injection using pseudo-element */
.helpful-links-panel .link-item a::before {
  content: '▶' !important;
  font-size: 10px !important;
  margin-right: 12px !important;
  display: inline-block !important;
  color: rgb(var(--default-white-rgb)) !important;
  transition: transform 0.3s ease !important;
}

.helpful-links-panel .link-item a:hover {
  opacity: 0.7 !important;
}

.helpful-links-panel .link-item a:hover::before {
  transform: translateX(3px) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 50.99rem) {
  .helpful-links-panel {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    inline-size: 100% !important;
  }
}

#custom-4260-particle {
  height: 100%;
}

/* --- Slideshow Mobile Fixes --- */
@media (max-width: 50.99rem) {
  #g-slideshow {
    padding: 20px 15px !important;
  }

  #g-slideshow .g-container,
  #g-slideshow .g-grid {
    width: 100% !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    height: auto !important;
    block-size: auto !important;
  }

  #g-slideshow .g-block,
  #custom-4260-particle,
  #swiper-5867-particle {
    width: 100% !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    height: auto !important;
    block-size: auto !important;
    flex-basis: 100% !important;
  }

  #g-slideshow .size-67 {
    margin-top: 24px !important;
  }

  /* --- Diocesan News Mobile Fixes --- */
  #custom-3505-particle,
  .diocesan-news-container,
  #wichita-rss-feed,
  .diocesan-news-container .news-item,
  .diocesan-news-container .view-more-btn {
    width: 100% !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    height: auto !important;
    block-size: auto !important;
  }

  /* Reset the parent block if it has fixed dimensions */
  .site-home #g-container-main .g-block:has(#custom-3505-particle) {
    flex-basis: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Global Fix for Grid Columns */
  body [class*="size-"] {
    width: 100% !important;
  }
}


@media (max-width: 50.99rem) {
  .site-sub #g-bottom>.g-container {
    padding: 2rem 0 !important;
  }

  #g-navigation .g-blockcontent-subcontent-title-text {
    font-size: 1rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    margin-top: 1rem;
  }

  .st-teresa-footer {
    padding: 0 !important;
    padding-bottom: 2rem !important;
  }
}

.site-sub #g-bottom {
  padding-bottom: 2rem !important;
}

/*  */

.g-block:has(.diocesan-news-container),
#custom-3505-particle,
.diocesan-news-container {
  height: 100%;
}

/*  */

.history-page #g-mainbar>div:nth-child(1)>div>div {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/*  */

#g-navigation .g-social-items a:hover {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

/*  */

/* Container and Layout */
.j-banners {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.j-banners table {
  width: 100% !important;
  border: none !important;
  margin: 0 auto;
}

.j-banners .g-content {
  padding: 0;
  margin: 0;
}

.j-banners tbody {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.j-banners tr {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  row-gap: 1rem;
  width: 100%;
}

/* Cell and Link Styling */
.j-banners td {
  display: block !important;
  padding: 0 !important;
  border: none !important;
  width: auto !important;
  max-width: 100% !important;
}

.j-banners td>div,
.j-banners td>div>div {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto;
}

.j-banners td>div>div {
  display: grid !important;
}

.j-banners a {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

/* Image and Effects */
.j-banners img {
  position: relative !important;
  display: block;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
  border-radius: 4px;
}

.j-banners a:hover img {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 50.99rem) {
  .j-banners {
    padding: 0;
  }

  .j-banners table {
    display: block !important;
    width: 100% !important;
  }

  .j-banners tbody {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100%;
  }

  .j-banners tr {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: fit-content !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .j-banners td {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .j-banners div[style*="width: 330px"] {
    max-width: 100% !important;
  }
}

@media only screen and (max-width: 50.99rem) {
  @media (display-mode: standalone) {
    .mobile-fixed-nav .g-blockcontent-subcontent {
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: row !important;
      flex-wrap: nowrap;
      gap: 1pt;
    }
  }
}

@media only screen and (max-width: 50.99rem) {
  #site-grid section:has(#ph-addpic, .grid-mobile-stacked):not(:has(.grid-mobile-horizontal-scroll)) #g-mainbar {
    margin: 0rem !important;
    padding: 0 !important;
  }

  .withmaxwidth:not(.sponsorshippage) :is(#g-top, #g-container-main, #g-above, #g-feature, #g-showcase, #g-utility, #g-container-main, #g-expanded, #g-extension, #g-bottom, #g-footer)>.g-container {
    position: relative;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
  }
}

.site-sponsors .page-header:has([itemprop="headline"]) {
  display: none;
}