.thrive-sermon-library,
.thrive-sermon-video {
  --tsl-accent: #169fe6;
  --tsl-text: #111;
  --tsl-muted: #5f6368;
  --tsl-radius: 18px;
  color: var(--tsl-text);
}

.thrive-sermon-library__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.thrive-sermon-library__heading {
  margin: 0;
}

.thrive-sermon-filter {
  display: flex;
  align-items: end;
  gap: .65rem;
  flex-wrap: wrap;
}

.thrive-sermon-filter label {
  font-weight: 700;
}

.thrive-sermon-filter select,
.thrive-sermon-filter button {
  min-height: 44px;
  border: 1px solid #8c8f94;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: .65rem .85rem;
  font: inherit;
}

.thrive-sermon-filter button {
  cursor: pointer;
  border-color: var(--tsl-accent);
}

.thrive-sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
}

.thrive-sermon-card {
  min-width: 0;
}

.thrive-sermon-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--tsl-radius);
  background: #e9eef2;
  aspect-ratio: 16 / 9;
}

.thrive-sermon-card__image,
.thrive-sermon-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .2s ease;
}

.thrive-sermon-card__media:hover .thrive-sermon-card__image {
  transform: scale(1.02);
}

.thrive-sermon-card__body {
  padding-top: 1rem;
}

.thrive-sermon-card__meta {
  margin: 0 0 .4rem;
  color: var(--tsl-muted);
  font-size: .95rem;
}

.thrive-sermon-card__title {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
}

.thrive-sermon-card__title a {
  color: inherit;
  text-decoration: none;
}

.thrive-sermon-card__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: .1em;
  text-underline-offset: .15em;
}

.thrive-sermon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.thrive-sermon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.3rem;
  border: 2px solid var(--tsl-accent);
  border-radius: 999px;
  color: var(--tsl-text);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.1;
}

.thrive-sermon-button:hover,
.thrive-sermon-button.is-active {
  color: #fff;
  background: var(--tsl-accent);
}

.thrive-sermon-card a:focus-visible,
.thrive-sermon-filter select:focus-visible,
.thrive-sermon-filter button:focus-visible,
.thrive-sermon-pagination a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.thrive-sermon-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--tsl-radius);
  background: #000;
}

.thrive-sermon-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.thrive-sermon-pagination {
  margin-top: 2.5rem;
}

.thrive-sermon-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.thrive-sermon-pagination a,
.thrive-sermon-pagination .current {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .5rem .75rem;
  border: 1px solid #bbb;
  border-radius: 8px;
  text-decoration: none;
}

.thrive-sermon-pagination .current {
  border-color: var(--tsl-accent);
  background: var(--tsl-accent);
  color: #fff;
}

@media (max-width: 900px) {
  .thrive-sermon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thrive-sermon-library__header { align-items: start; flex-direction: column; }
}

@media (max-width: 600px) {
  .thrive-sermon-grid { grid-template-columns: 1fr; }
  .thrive-sermon-filter { width: 100%; }
  .thrive-sermon-filter select { flex: 1 1 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .thrive-sermon-card__image { transition: none; }
}

/* Complete sermon hero */
.thrive-sermon-hero {
  --tsl-accent: #20b7eb;
  --tsl-hero-text: #fff;
  color: var(--tsl-hero-text);
  width: 100%;
}

.thrive-sermon-hero .thrive-sermon-video {
  --tsl-radius: 12px;
}

.thrive-sermon-hero__content {
  padding-top: 1rem;
}

.thrive-sermon-hero__title {
  margin: 0;
  font-family: "georama-variable", "Georama", sans-serif;
  font-size: clamp(1.5rem, 1.14rem + 1.1vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.thrive-sermon-hero__meta {
  margin: .65rem 0 0;
  color: #fff;
  font-size: clamp(.875rem, .82rem + .16vw, 1rem);
  line-height: 1.5;
}

.thrive-sermon-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.15rem;
}

.thrive-sermon-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.thrive-sermon-action svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.thrive-sermon-action:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.thrive-sermon-action:focus-visible {
  outline: 3px solid var(--tsl-accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .thrive-sermon-hero__actions {
    gap: .6rem;
  }

  .thrive-sermon-action {
    padding-inline: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thrive-sermon-action {
    transition: none;
  }
}


/* Keep hero action colors consistent when Elementor/theme link styles are more specific. */
.thrive-sermon-hero .thrive-sermon-hero__actions .thrive-sermon-action,
.thrive-sermon-hero .thrive-sermon-hero__actions a.thrive-sermon-action,
.thrive-sermon-hero .thrive-sermon-hero__actions a.thrive-sermon-action:visited,
.thrive-sermon-hero .thrive-sermon-hero__actions button.thrive-sermon-action {
  color: #fff !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, .8) !important;
  text-decoration: none !important;
}

.thrive-sermon-hero .thrive-sermon-hero__actions .thrive-sermon-action svg {
  color: inherit !important;
  fill: currentColor !important;
}

.thrive-sermon-hero .thrive-sermon-hero__actions .thrive-sermon-action:hover,
.thrive-sermon-hero .thrive-sermon-hero__actions .thrive-sermon-action:focus-visible {
  color: #000 !important;
  background-color: #fff !important;
  border-color: #fff !important;
}

.thrive-sermon-hero .thrive-sermon-hero__actions .thrive-sermon-action:hover *,
.thrive-sermon-hero .thrive-sermon-hero__actions .thrive-sermon-action:focus-visible * {
  color: #000 !important;
  fill: currentColor !important;
}

/* Library typography and progressive loading */
.thrive-sermon-library .thrive-sermon-library__heading,
.thrive-sermon-library .thrive-sermon-card__title,
.thrive-sermon-library .thrive-sermon-card__title a {
  font-family: "georama-variable", "Georama", sans-serif !important;
}

.thrive-sermon-library .thrive-sermon-card__title,
.thrive-sermon-library .thrive-sermon-card__title a {
  font-weight: 800 !important;
}

.thrive-sermon-library .thrive-sermon-library__heading {
  font-weight: 700;
  line-height: 1.2;
}

.thrive-sermon-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* A tertiary control rather than another sermon-choice pill. */
.thrive-sermon-load-more {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .4rem .2rem;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-family: "georama-variable", "Georama", sans-serif;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.thrive-sermon-load-more::after {
  content: "↓";
  font-size: 1.1em;
  line-height: 1;
  transition: transform .18s ease;
}

.thrive-sermon-load-more:hover {
  color: var(--tsl-accent);
}

.thrive-sermon-load-more:hover::after {
  transform: translateY(2px);
}

.thrive-sermon-load-more:focus-visible {
  outline: 3px solid var(--tsl-accent);
  outline-offset: 5px;
}

.thrive-sermon-load-more[disabled] {
  cursor: wait;
  opacity: .6;
}

/* v1.3.2 */
.thrive-sermon-library{--tsl-accent:#0bafe5;--tsl-ink:#000002}
.thrive-sermon-library .thrive-sermon-library__heading{font-family:"georama-variable","Georama",sans-serif!important;font-size:clamp(1.65rem,1.35rem + 1vw,2.25rem)!important;font-weight:800!important;line-height:1.1!important;color:var(--tsl-ink)!important}
.thrive-sermon-library .thrive-sermon-card__title{margin:0 0 .85rem!important;font-size:clamp(1.05rem,.95rem + .45vw,1.35rem)!important;font-weight:750!important;line-height:1.22!important}
.thrive-sermon-library .thrive-sermon-card__title a,.thrive-sermon-library .thrive-sermon-card__title a:visited{color:var(--tsl-ink)!important}
.thrive-sermon-library .thrive-sermon-button,.thrive-sermon-library a.thrive-sermon-button,.thrive-sermon-library a.thrive-sermon-button:visited{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:.62rem 1.15rem!important;border:1px solid var(--tsl-accent)!important;border-radius:999px!important;background:transparent!important;background-color:transparent!important;box-shadow:none!important;color:var(--tsl-ink)!important;font-family:"Geologica",sans-serif!important;font-size:.95rem!important;font-weight:500!important;line-height:1.2!important;text-decoration:none!important;text-transform:none!important;transition:color .18s ease,background-color .18s ease,border-color .18s ease!important}
.thrive-sermon-library .thrive-sermon-button:hover,.thrive-sermon-library .thrive-sermon-button:focus-visible,.thrive-sermon-library .thrive-sermon-button.is-active{border-color:var(--tsl-ink)!important;background:var(--tsl-ink)!important;background-color:var(--tsl-ink)!important;color:#fff!important}
.thrive-sermon-library .thrive-sermon-load-more,.thrive-sermon-library button.thrive-sermon-load-more{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.5rem!important;min-height:44px!important;padding:.55rem .25rem!important;border:0!important;border-bottom:2px solid var(--tsl-ink)!important;border-radius:0!important;background:transparent!important;background-color:transparent!important;box-shadow:none!important;color:var(--tsl-ink)!important;fill:var(--tsl-ink)!important;font-family:"Geologica",sans-serif!important;font-size:.95rem!important;font-weight:600!important;line-height:1.2!important;text-decoration:none!important;text-transform:none!important}
.thrive-sermon-library .thrive-sermon-load-more:hover,.thrive-sermon-library .thrive-sermon-load-more:focus-visible{border-color:var(--tsl-accent)!important;background:transparent!important;background-color:transparent!important;color:var(--tsl-accent)!important;fill:var(--tsl-accent)!important}
.thrive-sermon-action__icon{width:1em;min-width:1em;font-size:1em;line-height:1;color:currentColor!important}
.thrive-sermon-hero .thrive-sermon-action:hover .thrive-sermon-action__icon,.thrive-sermon-hero .thrive-sermon-action:focus-visible .thrive-sermon-action__icon{color:#000!important}
@media(max-width:900px){.thrive-sermon-grid{gap:2rem 1.25rem}}
@media(max-width:600px){.thrive-sermon-library__header{margin-bottom:1.35rem}.thrive-sermon-grid{gap:2.25rem}.thrive-sermon-card__body{padding-top:.8rem}.thrive-sermon-actions{gap:.6rem}.thrive-sermon-library .thrive-sermon-button{flex:1 1 auto;padding-inline:1rem!important}.thrive-sermon-hero__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.thrive-sermon-hero .thrive-sermon-action{width:100%;padding-inline:.75rem}}
@media(max-width:380px){.thrive-sermon-hero__actions{grid-template-columns:1fr}}
