:root {
  --primary-blue: #0341a6;
  --primary-black: #13101e;
  --primary-white: #fff;
  --primary-accent: #f9f5e6;
  --primary-contrast: #fcbe59;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}
a {
  text-decoration: none;
} /* Header styles */
header {
  background-color: var(--primary-blue);
  color: var(--primary-accent);
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.75rem;
}
.product-cat-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  position: relative;
}
.product-cat-menu > li {
  position: relative;
} /* Submenu styles (default hidden) - Modified for Dropdown */
.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; /* This makes the submenu visible on hover */
}
.product-cat-menu li.open > ul {
  display: block; /* This makes the submenu visible when the 'open' class is present */
}
.product-cat-menu li a {
  color: var(--primary-accent);
  text-transform: uppercase;
  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: var(--primary-blue);
  display: none;
  list-style: none;
}

.current-menu-item a {
  color: var(--primary-contrast) !important;
  font-weight: 700;
}

.product-cat-menu a:hover {
  color: var(--primary-contrast);
}

/* Home page styles */

.home-hero-section img {
  width: 100%;
  object-fit: cover;
}

.home-hero-heading-section {
  background-color: var(--primary-blue);
  height: 6rem;
  margin: 0;
  padding: 1rem 3.75rem;
  text-align: center;
}

.home-hero-heading-section h1 {
  color: var(--primary-white);
  letter-spacing: 1px;
}

.home-main-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.events-section,
.news-section {
  background-color: var(--primary-contrast);
  padding: 2.5rem 3.75rem;
}

.home-main-section h2 {
  text-align: center;
  font-weight: 300;
  font-size: 2.5rem;
}

.news-section {
  background-color: lightblue;
}

.events-container {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.event-container .date-container {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-blue);
  flex-shrink: 0;
}

.event-container .date-container .month {
  font-size: 1.25rem;
  color: white;
  text-transform: uppercase;
  text-align: center;
}

.event-container .date-container .date {
  font-size: 1.75rem;
  color: white;
  text-align: center;
}

.event-container .details-container .title {
  font-size: 1.75rem;
}

.event-container .details-container .details {
  /* margin-top: 1rem;  */
  font-size: 1.5rem;
}

.event-container .details-container a {
  color: var(--primary-blue);
}

.news-section .event-container .details-container .details {
  margin-top: 0;
}

/* Interior page styles */

.page-banner {
  width: 100%;
  height: 20rem;
  background-size: cover;
  padding: 8rem 12rem;
  position: relative;
}

.page-banner h1 {
  font-size: 3.5rem;
  color: white;
  letter-spacing: 1px;
}

.breadcrumb {
  position: absolute;
  bottom: -1.5rem;
  height: 3rem;
  display: flex;
  align-items: center;
}

.breadcrumb .prev {
  background-color: var(--primary-blue);
  color: white;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
  padding: 1rem;
}

.breadcrumb .current {
  background-color: var(--primary-contrast);
  color: var(--primary-black);
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
  padding: 1rem;
}

.main-content {
  padding: 5rem 12rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-content.content-archive-blog {
  gap: 2rem;
}

.main-content p {
  color: var(--primary-black);
  font-size: 1.5rem;
  white-space: wrap;
  width: 100%;
}

.main-content a {
  white-space: wrap;
  width: 100%;
}

.page-banner-safeguarding {
  background: url(../images/spa.jpg);
}

.page-banner-weekly-news {
  background: url(../images/seascape.jpg);
  background-position: center;
}

.page-banner-blog-home {
  background: url(../images/sunrise.jpg);
  background-position: bottom;
}

.page-banner-services-sermons {
  background: url(../images/lake.jpg);
  background-position: bottom;
}

.page-banner-single-recording {
  background: url(../images/yosemite.jpg);
}

.page-banner-generic {
  background: url(../images/tree.jpg);
  background-position: top;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.page-links {
  float: right;
  position: relative;
}

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

.recordings .sermon-card {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 0.625rem;
  padding: 1.5rem;
}

.recordings .sermon-card .sermon-date {
  font-size: 0.9375rem;
  color: var(--primary-black);
}

.recordings .sermon-card .sermon-title {
  color: var(--primary-blue);
  margin-top: 1rem;
  font-size: 1.5rem;
}

.recordings .sermon-card .bible-passage {
  font-size: 1.25rem;
  color: var(--primary-black);
  margin-top: 0.5rem;
}

.recordings .sermon-card .speaker {
  font-size: 1rem;
  color: var(--primary-black);
  margin-top: 0.5rem;
}

.main-content .sermon-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.main-content .sermon-details h2 {
  font-size: 1.75rem;
  color: var(--primary-black);
}

.main-content .sermon-details h2 a,
.sermon-card .bible-passage a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.main-content .sermon-details .speaker {
  font-size: 1.5rem;
  color: var(--primary-black);
}

.main-content .pagination {
  display: flex;
  gap: 1rem;
  flex: 1;
  align-self: center;
  align-items: center;
}
/* Base styles for the search overlay */
.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: var(--primary-blue); /* Mapped from $darkOrange */
}

/* 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: var(--primary-blue); /* Mapped from $mainBlue */
  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: var(--primary-blue); /* Mapped from $darkOrange */
  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: var(--primary-blue); /* Mapped from $darkOrange */
}

/* 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;
}
