:root {
    --bs-primary: #442171;           /* brand purple */
    --bs-primary-rgb: 68, 33, 113;
	--bs-body-font-family: 'Lexend', sans-serif;
	--bs-link-color: #442171; 
}

/* Google Font */
.lexend-<uniquifier> {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.85) !important;
  border-color: rgba(var(--bs-primary-rgb), 0.85) !important;
}

.btn-outline-primary {
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary);
}

.btn-outline-primary:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.85) !important;
  border-color: rgba(var(--bs-primary-rgb), 0.85) !important;
  color: white;
}

.btn-outline-secondary {
	background-color: #ffffff !important;
}

.btn-outline-secondary:hover {
  background-color: rgba(var(--bs-secondary-rgb), 0.85) !important;
  border-color: rgba(var(--bs-secondary-rgb), 0.85) !important;
  color: white;
}

a {
    color: var(--bs-link-color);
}

a:hover,
a:focus {
    color: #1b0d2d; /* optional: slightly darker shade for hover/focus */
}



/* Home Page - Latest Sermons */

/* Mobile: single column, each cell stacks */
.sermon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.sermon-scripture-block {
    font-size: 0.9rem;
    line-height: 1.3;
    padding: 0.85rem 1rem;
}

/* sm and above: 3 columns shared across ALL rows */
@media (min-width: 576px) {
    .sermon-grid {
        grid-template-columns: max-content 1fr auto;
        row-gap: 0.75rem;
    }

    .sermon-scripture-block {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem 0 0 0.5rem;
    }

    .sermon-grid > div:nth-child(3n+2) {
        border-radius: 0;
    }

    .sermon-grid > div:nth-child(3n+3) {
        border-radius: 0 0.5rem 0.5rem 0;
        border-left: none;
    }
}

/* Sermon Audio */

.podcast-btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 18px;
  color: #fff !important;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.podcast-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.bi-youtube {
  color: #ff0000;
}

.bi-facebook {
  color: #1877f2;
}

.bi-spotify {
  color: #1DB954;
}

.bi-apple {
  color: #872EC4;
}

.bi-amazon {
  color: #00A8E1;
}


/* Make ProcessWire pagers render like Bootstrap 5 pagination */
.pagination > li > a,
.pagination > li > span {
  display: block;
  padding: 0.375rem 0.75rem;
  margin-left: -1px;
  line-height: 1.5;
  color: var(--bs-primary);
  background-color: #fff;
  border: 1px solid #dee2e6;
  text-decoration: none;
}

.pagination > li.active > a,
.pagination > li.active > span {
  z-index: 3;
  color: #fff;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.pagination {
  list-style: none;
  padding-left: 0;
}

/* Embedded Content */
/* Google Calendar Switch from Month to Schedule for mobile view */

.embed-mobile { display: none; }
@media (max-width: 768px) {
  .embed-desktop { display: none; }
  .embed-mobile { display: block; }
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.iframe-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* HOME PAGE HERO */
.hero {
  position: relative;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(88,44,131,.70), rgba(88,44,131,.70)),
    url("<?php echo $page->hero_image->url; ?>");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* top block stays in normal flow */
.hero-top {
  position: relative;
  z-index: 2;
}

/* THIS pins the tagline to the image bottom */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.tagline {
  font-size: clamp(1.6rem, 2.1vw, 2.5rem);
  font-weight: 300;
  letter-spacing: .05em;
  max-width: 1000px;
  margin-inline: auto;
}

/* History */

.quote-card {
  padding: 1.25rem 1.5rem;
  background: var(--bs-body-tertiary);
  border-left: .35rem solid var(--bs-primary);
  border-radius: .5rem;
  box-shadow: var(--bs-box-shadow-sm);
}

/* Children */

.activity-card:hover {
  transform: translateY(-6px);
  transition: 0.3s;
}