* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

body,
html {
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", Times, serif;
}

a,
button {
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.header-bar {
  display: flex;
  width: 100%;
  height: 4rem;
  padding: 0.625rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  border-radius: 31.25rem;
  background: rgba(255, 255, 255, 0.04);
}

.header-logo {
  height: 3.5rem;
}

.product-cat-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
  position: relative;
  z-index: 9999;
}
.product-cat-menu > li {
  position: relative;
}
.product-cat-menu li ul {
  position: absolute;
  top: calc(
    100% - 1px
  ); /* CHANGE: Position the submenu directly below its parent list item */
  left: 0; /* CHANGE: Align the left edge of the submenu with its parent list item */
  min-width: 260px;
  display: none; /* Submenus are hidden by default */
  z-index: 9999; /* Ensure it's above other content. You can increase this if needed. */
} /* Show submenu on hover */

.product-cat-menu li ul li {
  margin-top: 1.5rem;
}

.product-cat-menu li:hover > ul {
  display: block;
  z-index: 9999; /* This makes the submenu visible on hover */
}
.product-cat-menu li.open > ul {
  display: block;
  background-color: #0141a6;
  z-index: 9999; /* This makes the submenu visible when the 'open' class is present */
}
.product-cat-menu li a {
  color: #f7f7ea;

  letter-spacing: 1px;
} /* Also for visual arrow indicator */
.product-cat-menu li.has-children > a::after {
  content: ">"; /* Adds a ">" icon to indicate sub-menus */
  font-size: 1rem;
  display: inline-block; /* Crucial for consistent transform behavior */
  margin-left: 5px; /* Add some spacing between text and arrow */
  transition: transform 0.3s ease-in-out; /* Smooth rotation effect */
  transform: rotate(90deg); /* This makes the '>' point down */
}
.product-cat-menu li.open.has-children > a::after {
  transform: rotate(-90deg); /* This makes the '>' point up */
}
.product-cat-menu li {
  position: relative;
}

.product-cat-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0; /* important */
  padding: 1rem;
  min-width: 260px;
  background-color: #0141a6;
  z-index: 9999 !important;
  display: none;
  list-style: none;
}

.current-menu-item a {
  font-weight: 700;
}

.fa-magnifying-glass {
  color: #f7f7ea;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.home-hero {
  background-image:
    linear-gradient(180deg, rgba(18, 18, 18, 0.5) -68.01%, #000 107.08%),
    url(../images/stlukes.jpg);
  background-size: cover;
  background-position: right;
  width: 100%;
  padding: 2.5rem 8.75rem;
  display: flex;
  flex-direction: column;
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 6.5rem;
}

.home-hero-content .welcome {
  height: 2.1875rem;
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 31rem;
  background-color: rgba(255, 255, 255, 0.04);
}

.home-hero-content .welcome p {
  color: #fbbe59;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.home-hero-content h1 {
  margin-top: 2rem;
  color: white;
  text-align: center;
  font-size: 5rem;
  font-weight: 700;
  width: 100%;
  max-width: 60rem;
}

.home-hero-content h1 span {
  color: #59a5fb;
}

.home-hero-content .subheadline {
  margin-top: 1rem;
  color: white;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  width: 100%;
  max-width: 52rem;
}

.home-hero-content .find-section {
  margin-top: 2rem;
  display: flex;
  gap: 4.5rem;
}

.home-hero-content .find-section .find-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.home-hero-content .find-section .find-container .find-dot {
  width: 2.125rem;
  height: 2.125rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1.5rem;
  border: 0.5px solid rgba(255, 255, 255, 0.02);
  background-color: rgba(89, 165, 251, 0.35);
}

.home-hero-content .find-section .find-container .find-dot .inner-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #59a5fb;
}

.home-hero-content .find-section .find-container .find-text {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.what-we-believe {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7.5rem;
}

.large-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 4rem;
}

.about-us-container {
  display: flex;
  width: 9.125rem;
  height: 2.1875rem;
  padding: 0.75rem;
  justify-content: center;
  align-items: center;
  gap: 17.10238rem;
  border-radius: 31.78881rem;
  background: rgba(251, 190, 89, 0.16);
}

.about-us-container .about-us-text {
  color: #ea9406;
  text-align: center;
  font-family: Georgia;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 1.5rem */
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.what-we-believe h2 {
  margin-top: 1rem;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
}

.what-we-believe h2 span {
  color: #0141a6;
}

.what-we-believe .trinity {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  margin-top: 1rem;
}

.what-we-believe-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.what-we-believe-grid article {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid #f4f4e6;
  background: #fff;
  box-shadow: 0 29.062px 58.125px 17.438px rgba(0, 0, 0, 0.08);
}

.what-we-believe-grid article img {
  width: 4rem;
}

.what-we-believe-grid article h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.what-we-believe-grid article p {
  font-weight: 300;
  line-height: 1.5;
}

.upcoming-services {
  position: relative;
  background-color: #000;
  padding: 7.5rem;
}

.upcoming-services .blue-blur,
.contact-us-section .blue-blur,
.interior-hero .blue-blur {
  width: 100%;
  height: 38rem;
  border-radius: 90rem;
  opacity: 0.8;
  background: #0141a6;
  filter: blur(342px);
  position: absolute;
  bottom: 0;
}

.upcoming-services h2 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.upcoming-services h2 span {
  color: #59a5fb;
}

.upcoming-services .services {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
}

.services-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.service-container {
  display: flex;
  height: 8rem;
  padding: 2.25rem 1.25rem;
  align-items: center;
  gap: 1rem;
  align-self: flex-start;
  width: 70%;
  border-radius: 1.5rem;
  border: 0.5px solid rgba(255, 255, 255, 0.02);
  background: rgba(1, 65, 166, 0.35);
}

.service-container .date-container {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: -0.5rem;
  aspect-ratio: 1/1;
  background-color: #0141a6;
}

.service-container .date-container .month {
  color: #fbbe59;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

.service-container .date-container .date {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-container .details-container .title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.service-container .details-container .details {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
}

.view-all-container {
  display: flex;
  padding: 0.625rem 1.25rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 31.25rem;
  background: #0141a6;
  box-shadow:
    -4px -4px 8px 0 rgba(255, 255, 255, 0.2) inset,
    4px 4px 8px 0 rgba(255, 255, 255, 0.2) inset;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  z-index: 2;

  align-self: center;
  width: fit-content;
  margin: 4.5rem auto 0;
  cursor: pointer;
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.latest-news-section {
  padding: 7.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.latest-news-section h2.heading {
  margin-top: 1rem;
  color: #000;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.latest-news-section h2 span {
  color: #0141a6;
}

.latest-news-grid article {
  padding: 1.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid#F4F4E6;
  box-shadow: 0 29.062px 58.125px 17.438px rgba(0, 0, 0, 0.08);
  position: relative;
}

.latest-news-grid article a {
  color: #ea9406;
  text-decoration: underline;
  position: absolute;
  bottom: 1rem;
}

/* Footer styles */

.contact-us-section {
  background-color: #000;
  position: relative;
  padding: 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-us-form-container {
  display: flex;
  width: 100%;
  max-width: 73rem;
  padding: 1.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) -2.58%,
    rgba(255, 255, 255, 0.06) 101.85%
  );
  backdrop-filter: blur(4px);
}

.contact-us-form-container h2 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.contact-us-form-container h2 span {
  color: #59a5fb;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  position: relative;
}

.form-container .row-container {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

input,
textarea {
  display: flex;
  padding: 1.25rem 1.5rem;
  align-items: center;
  flex: 1;
  align-self: stretch;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.11) -2.58%,
    rgba(255, 255, 255, 0.08) 101.85%
  );
  backdrop-filter: blur(10.5px);
}

.submit-btn {
  display: flex;
  padding: 0.625rem 1.25rem;
  justify-content: center;
  align-items: center;
  border-radius: 31.25rem;
  background: #0141a6;
  box-shadow:
    -4px -4px 8px 0 rgba(255, 255, 255, 0.2) inset,
    4px 4px 8px 0 rgba(255, 255, 255, 0.2) inset;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  width: fit-content;
  align-self: center;
}

.horizontal-line {
  width: 100%;
  height: 0.0625rem;
  background-color: rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
}

.copyright {
  margin-top: 1rem;
  color: #fff;
}

.copyright a {
  color: #fff;
  text-decoration: underline;
  position: relative;
  z-index: 2;
}

/* Interior page styles */

.interior-hero {
  background-color: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 8.75rem 0;
  position: relative;
  width: 100%;
}

/* Gutenberg content spacing */
.page-content {
  line-height: 1.6;
  padding: 6.25rem;
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 4px solid #ccc;
}

.interior-hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.interior-hero-content .title {
  color: #fff;
  font-size: 5rem;
  margin: 2rem;
}

.person-container {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.person-container .left-side img {
  width: 15rem;
  height: 15rem;
  object-fit: contain;
}

.person-container .right-side {
  display: flex;
  flex-direction: column;
}

/* Sermon recordings page */

.sermons-page {
  display: flex;
  justify-content: center;
  align-items: center;
}

.recordings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.sermon-card {
  padding: 0 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0.625rem;
  border: 1px solid #f4f4e6;
  width: 100%;
}

.sermon-card .sermon-date {
  font-size: 1rem;
}

.sermon-card .sermon-title {
  color: #0141a6;
  font-size: 2rem;
}

.sermon-card a {
  color: #0141a6;
}

.sermon-details h2 a {
  color: #0141a6;
}

.pagination {
  margin: 2rem auto;
  align-self: center;
  text-align: center;
}

.pagination .page-numbers {
  padding: 0.5rem 1rem;
  color: #0141a6;
  border: 1px solid #0141a6;

  margin-left: 1rem;
  font-size: 1.25rem;
}

.pagination .current {
  color: #fff;
  background-color: #0141a6;
}

.home-post-container a {
  color: #ea9406;
}

.search-overlay {
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 110;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.96);
  visibility: hidden;
  opacity: 0;
  transform: scale(1.09);
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0.3s;
  box-sizing: border-box;
}

/* Nested paragraph styles within .search-overlay */
.search-overlay p {
  padding-top: 15px;
}

/* Nested .event-summary paragraph styles within .search-overlay */
.search-overlay .event-summary p {
  padding-top: 0;
}

/* Nested .event-summary styles within .search-overlay */
.search-overlay .event-summary {
  margin-bottom: 0;
  margin-top: 20px;
}

/* Adjust top position when admin bar is present */
body.admin-bar .search-overlay {
  top: 32px;
}

/* Styles for .search-overlay__top */
.search-overlay__top {
  background-color: rgba(0, 0, 0, 0.12);
}

/* Styles for .search-overlay__icon */
.search-overlay__icon {
  margin-right: 10px;
  font-size: 1.8rem;
  color: #0141a6;
}

/* Media query for .search-overlay__icon at medium screens */
@media (max-width: 1024px) {
  /* Mapped from @include atMedium */
  .search-overlay__icon {
    font-size: 2.5rem;
  }
}

/* Styles for active state of search overlay */
.search-overlay--active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

/* Styles for .search-overlay__section-title */
.search-overlay__section-title {
  margin: 30px 0 1px 0;
  font-weight: 400;
  color: #0141a6;
  font-size: 2rem;
  padding: 15px 0;
  border-bottom: 1px solid #ccc;
}

/* Styles for .search-overlay__close button */
.search-overlay__close {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 2.1rem;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #fff;
  color: #0141a6;
  line-height: 0.7;
}

/* Media query for .search-overlay__close at small screens */
@media (max-width: 768px) {
  /* Mapped from @include atSmall */
  .search-overlay__close {
    top: 18px;
    font-size: 2.1rem;
  }
}

/* Media query for .search-overlay__close at medium screens */
@media (max-width: 1024px) {
  /* Mapped from @include atMedium */
  .search-overlay__close {
    top: 26px;
    font-size: 2.8rem;
  }
}

/* Hover styles for .search-overlay__close button */
.search-overlay__close:hover {
  opacity: 1;
}

/* Nested .one-half styles within .search-overlay */
.search-overlay .one-half {
  padding-bottom: 0;
}

/* Styles for the search input term */
.search-term {
  width: 75%;
  box-sizing: border-box;
  border: none;
  padding: 15px 0;
  margin: 0;
  background-color: transparent;
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  color: #0141a6;
}

/* Media query for .search-term at small screens */
@media (max-width: 768px) {
  /* Mapped from @include atSmall */
  .search-term {
    font-size: 1.5rem;
  }
}

/* Media query for .search-term at medium screens */
@media (max-width: 1024px) {
  /* Mapped from @include atMedium */
  .search-term {
    width: 80%;
    font-size: 3rem;
  }
}

/* Styles to prevent body scroll */
.body-no-scroll {
  overflow: hidden;
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.spinner-loader {
  margin-top: 45px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  border: 0.25rem solid rgba(0, 0, 0, 0.2);
  border-top-color: black;
  -webkit-animation: spin 1s infinite linear;
  animation: spin 1s infinite linear;
}
/* Styles for .professor-cards */
.person-cards {
  margin: 0;
  padding: 0;
}

/* Specific styles for .person-cards when nested within .search-overlay */
.search-overlay .person-cards {
  padding-top: 21px;
}

/* Base styles for .person-card */
.person-card {
  position: relative;
  display: inline-block;
  width: 200px;
  margin-right: 15px;
  background-color: #ea9406; /* Mapped from $darkOrange */
  overflow: hidden;
}

/* Specific styles for .person-card when nested within .search-overlay */
.search-overlay .person-card {
  width: 180px;
}

.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2rem;
}

/* Styles for the image within .person-card */
.person-card__image {
  display: block;
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

/* Hover effect for the image within .person-card */
.person-card:hover .person-card__image {
  opacity: 0.8;
  transform: scale(1.1) rotate(4deg);
}

/* Styles for the name overlay within .person-card */
.person-card__name {
  font-weight: 300;
  font-size: 0.9rem;
  position: absolute;
  bottom: 0;
  color: #fff;
  left: 0;
  right: 0;
  padding: 3px 10px;
  /* Approximated from adjust-color($darkOrange, $alpha: -0.15, $lightness: -9%, $saturation: -6%) */
  background-color: rgba(201, 155, 77, 0.85);
}

/* Hover effect for the name overlay within .person-card */
.person-card:hover .person-card__name {
  /* Approximated from adjust-color($darkOrange, $alpha: -0.15, $lightness: -15%, $saturation: -6%) */
  background-color: rgba(184, 142, 69, 0.85);
}

/* Styles for list items within .professor-card */
.person-card__list-item {
  display: inline-block;
  list-style: none;
}

.search-trigger {
  display: none;
  color: #fff;
  position: relative;
  cursor: pointer;
  top: 1px;
  margin-left: 20px;
}

/* @include atMedium mapped to @media (max-width: 1024px) */
@media (max-width: 1024px) {
  .search-trigger {
    display: inline-block;
    top: 6px;
  }
}

.search-trigger:hover {
  opacity: 0.65;
}

@media (max-width: 1330px) {
  .interior-hero,
  .home-hero {
    padding: 4rem 2rem;
  }
}
/* ============================= */
/* GLOBAL RESPONSIVE CONTAINERS */
/* ============================= */

@media (max-width: 1200px) {
  .home-hero,
  .interior-hero,
  .latest-news-section,
  .upcoming-services,
  .contact-us-section,
  .what-we-believe,
  .page-content {
    padding: 4rem 2rem;
  }
}

@media (max-width: 992px) {
  .home-hero-content h1,
  .interior-hero-content .title {
    font-size: 3rem;
  }

  .what-we-believe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recordings {
    grid-template-columns: 1fr;
  }

  .service-container {
    width: 100%;
  }

  .person-container {
    flex-direction: column;
    text-align: center;
  }

  .person-container .left-side img {
    width: 10rem;
    height: 10rem;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 3rem 1.5rem;
    background-position: center;
  }

  .home-hero-content h1 {
    font-size: 2.25rem;
  }

  .home-hero-content .find-section {
    flex-direction: column;
    gap: 2rem;
  }

  .what-we-believe-grid {
    grid-template-columns: 1fr;
  }

  .latest-news-grid {
    grid-template-columns: 1fr;
  }

  .form-container .row-container {
    flex-direction: column;
  }

  .service-container {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .service-container .date-container {
    margin-bottom: 1rem;
  }

  .interior-hero-content .title {
    font-size: 2.25rem;
  }

  .page-content {
    padding: 3rem 1.5rem;
  }
}

/* ============================= */
/* HAMBURGER STYLES */
/* ============================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 10001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #f7f7ea;
  transition: 0.3s ease;
}

/* Mobile Nav */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 260px;
    background: #0141a6;
    padding: 6rem 2rem;
    transition: 0.3s ease;
    z-index: 10000;
  }

  nav.active {
    left: 0;
  }

  .product-cat-menu {
    flex-direction: column;
    gap: 1.5rem;
  }

  .product-cat-menu li ul {
    position: relative;
    top: auto;
    left: auto;
  }

  .product-cat-menu li:hover > ul {
    display: none;
  }

  .product-cat-menu li.open > ul {
    display: block;
  }
}

/* ============================= */
/* ADVANCED MOBILE NAVIGATION */
/* ============================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Hamburger */

/* ============================= */
/* CLEAN HAMBURGER ANIMATION */
/* ============================= */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 28px;
  cursor: pointer;
  z-index: 11001;
  position: relative;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #f7f7ea;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Position the 3 bars */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* Animate to X */
.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Slide-in Nav (from RIGHT now) */

.site-nav {
  transition: 0.35s ease;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 10999;
}

/* Mobile Styles */

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: #0141a6;
    padding: 6rem 2rem 2rem;
    z-index: 11000;
    overflow-y: auto;
  }

  .site-nav.active {
    right: 0;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .product-cat-menu {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Disable hover behaviour on mobile */
  .product-cat-menu li:hover > ul {
    display: none;
  }

  /* Accordion submenu */

  /* MOBILE SUBMENU FIX */

  .product-cat-menu li ul {
    position: static !important;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s ease;
    background: transparent;
  }

  .product-cat-menu li.mobile-open > ul {
    max-height: 500px;
    padding-top: 0.5rem;
  }

  .product-cat-menu {
    align-items: center;
    text-align: center;
  }

  .product-cat-menu li {
    width: 100%;
  }

  .product-cat-menu li > a {
    display: block;
    text-align: center;
    width: 100%;
  }

  .product-cat-menu li ul {
    background-color: transparent !important;
    padding: 0;
  }

  .product-cat-menu li.mobile-open > ul {
    background-color: transparent !important;
  }
}

.sermons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.person-sermons .sermon-card {
  width: 25rem;
}

/* Make submenu links full width rows */
.product-cat-menu .sub-menu li {
  margin: 0; /* remove spacing gaps */
}

.product-cat-menu .sub-menu li a {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  color: #f7f7ea;
  transition: background 0.25s ease;
}

/* Full row hover highlight */
.product-cat-menu .sub-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.product-cat-menu .sub-menu {
  padding: 0;
}

.product-cat-menu .sub-menu li a:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
}

/* Top-level menu links full clickable area */
.product-cat-menu > li > a {
  display: block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: background 0.25s ease;
}

.product-cat-menu > li > a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.product-cat-menu > li.current-menu-item > a,
.product-cat-menu > li.current-menu-ancestor > a {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

@media (max-width: 1440px) {
  .product-cat-menu > li > a {
    font-size: 0.875rem;
  }
}
