/* Premium Sermons page */
.sermon-page {
  --sermon-ink: #211b16;
  --sermon-muted: #81786e;
  --sermon-gold: #c59a52;
  --sermon-line: #e9e1d6;
  --sermon-paper: #fbf9f5;
  color: var(--sermon-ink);
  background: var(--sermon-paper);
  overflow: hidden;
}
.sermon-page * {
  box-sizing: border-box;
}
.sermon-page .shell {
  width: min(1160px, calc(100% - 44px));
  margin-inline: auto;
}
.sermon-hero {
  position: relative;
  isolation: isolate;
  background: #211d19;
  color: #fff;
  overflow: hidden;
}
.sermon-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
      ellipse at 78% 45%,
      rgba(197, 154, 82, 0.2),
      transparent 35%
    ),
    linear-gradient(115deg, #211d19 0%, #29231d 62%, #33291d 100%);
}
.sermon-hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(222, 188, 128, 0.12);
  border-radius: 50%;
  right: 5%;
  top: 6%;
  pointer-events: none;
}
.sermon-hero-glow:after {
  content: "";
  position: absolute;
  inset: 35px;
  border: 1px solid rgba(222, 188, 128, 0.09);
  border-radius: 50%;
}
.sermon-hero-inner {
  position: relative;
  padding: 26px 0 0;
}
.sermon-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #c2b8aa;
}
.sermon-breadcrumb a {
  color: #e6d6bb;
  text-decoration: none;
}
.sermon-breadcrumb a:hover {
  color: #fff;
}
.sermon-breadcrumb > i {
  font-size: 9px;
  color: #9c8b73;
}
.sermon-breadcrumb span {
  color: #fff;
}
.sermon-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  padding: 62px 0 58px;
}
.sermon-eyebrow,
.sermon-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sermon-gold);
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 800;
}
.sermon-eyebrow > span {
  width: 23px;
  height: 1px;
  background: var(--sermon-gold);
}
.sermon-hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.3vw, 69px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  font-weight: 400;
  margin: 22px 0 20px;
  color: #fff;
}
.sermon-hero-copy h1 em,
.sermon-section-heading h2 em,
.sermon-list-heading h3 em {
  font-weight: 400;
  color: #d9b578;
}
.sermon-hero-copy p {
  max-width: 530px;
  color: #c8c0b5;
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}
.sermon-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 29px;
  padding: 14px 18px;
  border: 1px solid rgba(217, 181, 120, 0.5);
  color: #f2dfbd;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
}
.sermon-hero-cta:hover {
  background: var(--sermon-gold);
  color: #211d19;
}
.sermon-hero-cta i {
  font-size: 17px;
}
.sermon-hero-art {
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sermon-art-ring {
  position: absolute;
  border: 1px solid rgba(217, 181, 120, 0.3);
  border-radius: 50%;
  aspect-ratio: 1;
}
.ring-one {
  width: min(290px, 80%);
}
.ring-two {
  width: min(225px, 64%);
  border-style: dashed;
  animation: sermon-rotate 65s linear infinite;
}
.sermon-art-symbol {
  width: 138px;
  height: 138px;
  border: 1px solid rgba(217, 181, 120, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #55432b, #2b251e 70%);
  box-shadow: 0 0 0 13px rgba(217, 181, 120, 0.035), 0 20px 70px #17130f;
}
.sermon-art-symbol i {
  font-size: 58px;
  color: #e1c18a;
}
.sermon-art-caption,
.sermon-art-reference {
  position: absolute;
  color: #d2b47e;
  font-size: 9px;
  letter-spacing: 2px;
}
.sermon-art-caption {
  top: 8%;
  right: 2%;
}
.sermon-art-reference {
  bottom: 7%;
  left: 6%;
}
.sermon-hero-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  gap: 35px;
  padding: 17px 0;
  color: #c5b9a7;
  font-size: 9px;
  letter-spacing: 1.4px;
}
.sermon-hero-footer span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sermon-hero-footer i {
  color: var(--sermon-gold);
  font-size: 13px;
}
.sermon-library {
  padding: 76px 0 80px;
}
.sermon-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
}
.sermon-section-heading h2 {
  font: 400 clamp(30px, 3.8vw, 44px) / 1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -0.8px;
  margin: 13px 0 10px;
}
.sermon-section-heading h2 em,
.sermon-list-heading h3 em {
  color: #a47a3e;
}
.sermon-section-heading p {
  margin: 0;
  color: var(--sermon-muted);
  font-size: 14px;
  line-height: 1.7;
}
.sermon-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.sermon-total strong {
  font: 400 40px/1 Georgia, serif;
  color: #b18a4d;
}
.sermon-total span {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8c8174;
}
.sermon-featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  border: 1px solid var(--sermon-line);
  margin-bottom: 54px;
  box-shadow: 0 16px 50px rgba(55, 42, 25, 0.045);
}
.sermon-featured-image {
  position: relative;
  display: block;
  min-height: 350px;
  overflow: hidden;
  background: #e7dfd3;
}
.sermon-featured-image:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(24, 19, 14, 0.42));
}
.sermon-featured-image img,
.sermon-row-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.sermon-featured-image:hover img,
.sermon-row-image:hover img {
  transform: scale(1.04);
}
.sermon-featured-label {
  position: absolute;
  z-index: 1;
  left: 22px;
  top: 22px;
  padding: 10px 12px;
  background: rgba(35, 29, 22, 0.86);
  color: #f0d8ad;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.sermon-featured-label i {
  margin-right: 6px;
}
.sermon-image-mark {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
}
.sermon-featured-copy {
  padding: clamp(25px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.sermon-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b7e6e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  line-height: 1.6;
}
.sermon-meta > span:first-child {
  color: #a57d40;
}
.sermon-meta > i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5b49b;
}
.sermon-featured-copy h3 {
  font: 400 clamp(27px, 3vw, 38px) / 1.16 Georgia, "Times New Roman", serif;
  letter-spacing: -0.6px;
  margin: 17px 0 12px;
}
.sermon-featured-copy h3 a,
.sermon-row-copy h3 a {
  color: inherit;
  text-decoration: none;
}
.sermon-featured-copy h3 a:hover,
.sermon-row-copy h3 a:hover {
  color: #a57d40;
}
.sermon-preacher {
  font-size: 11px;
  color: #8a7d6d;
  margin: 0 0 14px;
}
.sermon-preacher i {
  color: #b28b50;
  margin-right: 5px;
}
.sermon-featured-copy > p {
  color: #776e64;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}
.sermon-featured-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #eee8df;
  margin-top: 24px;
  padding-top: 18px;
}
.sermon-views,
.sermon-row-foot > span {
  font-size: 10px;
  color: #94887a;
}
.sermon-views i,
.sermon-row-foot > span i {
  margin-right: 5px;
}
.sermon-read-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #946b31;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.sermon-read-link i {
  font-size: 16px;
  transition: transform 0.2s;
}
.sermon-read-link:hover i {
  transform: translate(3px, -3px);
}
.sermon-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}
.sermon-list-heading h3 {
  font: 400 clamp(25px, 3vw, 34px) / 1.2 Georgia, "Times New Roman", serif;
  margin: 10px 0 0;
}
.sermon-list-note {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9b8d7a;
  padding-bottom: 5px;
}
.sermon-list {
  border-top: 1px solid var(--sermon-line);
}
.sermon-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid var(--sermon-line);
  align-items: center;
}
.sermon-row-image {
  position: relative;
  display: block;
  height: 155px;
  overflow: hidden;
  background: #e9e1d5;
}
.sermon-row-image > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #986e35;
  opacity: 0;
  transform: translateY(5px);
  transition: 0.2s;
}
.sermon-row-image:hover > span {
  opacity: 1;
  transform: none;
}
.sermon-row-copy h3 {
  font: 400 25px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -0.3px;
  margin: 10px 0;
}
.sermon-row-copy > p {
  font-size: 12px;
  line-height: 1.8;
  color: #7e7469;
  margin: 0;
  max-width: 760px;
}
.sermon-row-foot {
  display: flex;
  justify-content: space-between;
  align-items: left;
  gap: 15px;
  margin-top: 13px;
}
.sermon-row-foot a {
  color: #946b31;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}
.sermon-row-foot a i {
  margin-left: 7px;
}
.sermon-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 36px 0 10px;
}
.sermon-pagination a,
.sermon-pagination span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sermon-line);
  color: #6f6252;
  text-decoration: none;
  font-size: 12px;
  background: #fff;
}
.sermon-pagination a:hover,
.sermon-pagination .is-current {
  background: #29231d;
  color: #fff;
  border-color: #29231d;
}
.sermon-empty-state {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--sermon-line);
  margin: 25px 0 50px;
}
.sermon-empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f5eee2;
  color: #a47a3e;
  font-size: 22px;
}
.sermon-empty-state h2 {
  font: 400 25px Georgia, serif;
  margin: 0 0 8px;
}
.sermon-empty-state p {
  font-size: 13px;
  line-height: 1.7;
  color: #81766a;
  margin: 0;
}
.sermon-outline-link {
  margin-left: auto;
  white-space: nowrap;
  color: #946b31;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.sermon-outline-link i {
  margin-left: 8px;
}
.sermon-closing-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 65px;
  padding: 30px 32px;
  background: #27221c;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sermon-closing-panel:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(210, 174, 113, 0.15);
  border-radius: 50%;
  right: 15%;
  top: -130px;
  pointer-events: none;
}
.sermon-closing-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(211, 176, 117, 0.5);
  display: grid;
  place-items: center;
  color: #d8b579;
  font-size: 25px;
}
.sermon-closing-panel h2 {
  font: 400 clamp(22px, 2.5vw, 30px) / 1.2 Georgia, serif;
  margin: 8px 0;
}
.sermon-closing-panel p {
  font-size: 12px;
  line-height: 1.7;
  color: #c7bdb0;
  margin: 0;
  max-width: 650px;
}
.sermon-closing-panel > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(211, 176, 117, 0.5);
  color: #f0d9b3;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}
.sermon-closing-panel > a:hover {
  background: #c59a52;
  color: #211d19;
}
@keyframes sermon-rotate {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 800px) {
  .sermon-page .shell {
    width: min(100% - 32px, 650px);
  }
  .sermon-hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 47px 0 32px;
  }
  .sermon-hero-copy h1 {
    font-size: clamp(42px, 10vw, 61px);
  }
  .sermon-hero-art {
    min-height: 210px;
    margin-top: 4px;
  }
  .sermon-art-symbol {
    width: 105px;
    height: 105px;
  }
  .sermon-art-symbol i {
    font-size: 43px;
  }
  .ring-one {
    width: 205px;
  }
  .ring-two {
    width: 160px;
  }
  .sermon-art-caption {
    right: 10%;
    top: 5%;
  }
  .sermon-art-reference {
    left: 10%;
    bottom: 4%;
  }
  .sermon-hero-footer {
    gap: 14px;
    flex-wrap: wrap;
  }
  .sermon-library {
    padding: 52px 0 55px;
  }
  .sermon-featured {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }
  .sermon-featured-image {
    min-height: 0;
    height: 260px;
  }
  .sermon-featured-copy {
    padding: 25px;
  }
  .sermon-row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }
  .sermon-row-image {
    height: 125px;
  }
  .sermon-row-copy h3 {
    font-size: 21px;
  }
  .sermon-row-copy > p {
    font-size: 12px;
  }
  .sermon-closing-panel {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    padding: 23px;
    margin-top: 48px;
  }
  .sermon-closing-icon {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }
  .sermon-closing-panel > a {
    grid-column: 2;
    justify-self: start;
  }
  .sermon-empty-state {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sermon-outline-link {
    margin-left: 76px;
  }
}
@media (max-width: 540px) {
  .sermon-page .shell {
    width: calc(100% - 28px);
  }
  .sermon-hero-inner {
    padding-top: 20px;
  }
  .sermon-breadcrumb {
    font-size: 11px;
  }
  .sermon-hero-grid {
    padding: 39px 0 23px;
  }
  .sermon-hero-copy h1 {
    font-size: 42px;
    letter-spacing: -1.3px;
    margin: 18px 0 15px;
  }
  .sermon-hero-copy p {
    font-size: 13px;
    line-height: 1.8;
  }
  .sermon-hero-cta {
    margin-top: 22px;
  }
  .sermon-hero-art {
    min-height: 175px;
  }
  .sermon-art-symbol {
    width: 85px;
    height: 85px;
  }
  .sermon-art-symbol i {
    font-size: 35px;
  }
  .ring-one {
    width: 165px;
  }
  .ring-two {
    width: 132px;
  }
  .sermon-art-caption,
  .sermon-art-reference {
    font-size: 8px;
  }
  .sermon-hero-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 0;
  }
  .sermon-hero-footer span {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .sermon-section-heading {
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .sermon-section-heading h2 {
    font-size: 31px;
  }
  .sermon-section-heading p {
    font-size: 12px;
  }
  .sermon-total strong {
    font-size: 30px;
  }
  .sermon-total span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .sermon-featured-image {
    height: 210px;
  }
  .sermon-featured-copy {
    padding: 21px 18px;
  }
  .sermon-featured-copy h3 {
    font-size: 29px;
  }
  .sermon-featured-copy > p {
    font-size: 12px;
  }
  .sermon-featured-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .sermon-list-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .sermon-list-heading h3 {
    font-size: 27px;
  }
  .sermon-list-note {
    font-size: 8px;
  }
  .sermon-list {
    border-top: 0;
  }
  .sermon-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
    align-items: start;
  }
  .sermon-row-image {
    height: 96px;
  }
  .sermon-row-image > span {
    display: none;
  }
  .sermon-row-copy .sermon-meta {
    gap: 6px;
    font-size: 8px;
    letter-spacing: 0.4px;
  }
  .sermon-row-copy h3 {
    font-size: 18px;
    line-height: 1.22;
    margin: 7px 0;
  }
  .sermon-row-copy .sermon-preacher {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .sermon-row-copy > p {
    font-size: 11px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sermon-row-foot {
    margin-top: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .sermon-row-foot > span {
    font-size: 9px;
  }
  .sermon-row-foot a {
    font-size: 10px;
  }
  .sermon-pagination {
    gap: 5px;
  }
  .sermon-pagination a,
  .sermon-pagination span {
    width: 34px;
    height: 34px;
  }
  .sermon-empty-state {
    padding: 22px 18px;
    gap: 14px;
  }
  .sermon-empty-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .sermon-empty-state h2 {
    font-size: 22px;
  }
  .sermon-empty-state p {
    font-size: 12px;
  }
  .sermon-outline-link {
    margin-left: 56px;
  }
  .sermon-closing-panel {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 22px 18px;
  }
  .sermon-closing-panel h2 {
    font-size: 25px;
  }
  .sermon-closing-panel p {
    font-size: 12px;
  }
  .sermon-closing-panel > a {
    grid-column: 1;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sermon-art-ring,
  .sermon-featured-image img,
  .sermon-row-image img {
    animation: none;
    transition: none;
  }
}

/* =========================================================
   CELESTIAL CHURCH — PREMIUM SERMON PALETTE REFRESH
   Brand: Blue / Purple / Cyan / Orange / Red / Yellow
   ========================================================= */
.sermon-page {
  --sermon-ink: #17143a;
  --sermon-muted: #6f6c86;
  --sermon-gold: #f49c15;
  --sermon-line: #e8e5f1;
  --sermon-paper: #fbfaff;
  background: var(--sermon-paper);
  color: var(--sermon-ink);
}
.sermon-hero {
  background: #00007e;
  color: #fff;
}
.sermon-hero:before {
  background: radial-gradient(
      ellipse at 82% 28%,
      rgba(0, 164, 230, 0.24),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 12% 92%,
      rgba(122, 29, 124, 0.62),
      transparent 42%
    ),
    linear-gradient(118deg, #00007e 0%, #17106f 48%, #7a1d7c 100%);
}
.sermon-hero-glow {
  border-color: rgba(245, 241, 19, 0.18);
}
.sermon-hero-glow:after {
  border-color: rgba(0, 164, 230, 0.2);
}
.sermon-breadcrumb {
  color: rgba(255, 255, 255, 0.7);
}
.sermon-breadcrumb a {
  color: #7be0ff;
}
.sermon-breadcrumb a:hover,
.sermon-breadcrumb span {
  color: #fff;
}
.sermon-breadcrumb > i {
  color: #f49c15;
}
.sermon-eyebrow,
.sermon-section-kicker {
  color: #f49c15;
}
.sermon-eyebrow > span {
  background: #f49c15;
}
.sermon-hero-copy h1 em {
  color: #7be0ff;
}
.sermon-hero-copy p {
  color: rgba(255, 255, 255, 0.76);
}
.sermon-hero-cta {
  border-color: rgba(245, 241, 19, 0.55);
  color: #f5f113;
  border-radius: 4px;
}
.sermon-hero-cta:hover {
  background: #f5f113;
  border-color: #f5f113;
  color: #00007e;
}
.sermon-art-ring {
  border-color: rgba(0, 164, 230, 0.42);
}
.sermon-art-ring.ring-two {
  border-color: rgba(245, 241, 19, 0.38);
}
.sermon-art-symbol {
  border-color: rgba(0, 164, 230, 0.65);
  background: radial-gradient(circle, #7a1d7c 0%, #21116f 72%);
  box-shadow: 0 0 0 13px rgba(0, 164, 230, 0.06),
    0 20px 70px rgba(0, 0, 40, 0.42);
}
.sermon-art-symbol i {
  color: #7be0ff;
}
.sermon-art-caption,
.sermon-art-reference {
  color: #f5f113;
}
.sermon-hero-footer {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}
.sermon-hero-footer i {
  color: #00a4e6;
}
.sermon-library {
  background: linear-gradient(180deg, #fbfaff 0%, #fff 46%, #f8f7ff 100%);
}
.sermon-section-heading h2 {
  color: #00007e;
}
.sermon-section-heading h2 em,
.sermon-list-heading h3 em {
  color: #7a1d7c;
}
.sermon-section-heading p {
  color: #77738f;
}
.sermon-total strong {
  color: #7a1d7c;
}
.sermon-total span {
  color: #85819b;
}
.sermon-featured {
  border: 1px solid #e6e2f1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 65px rgba(28, 18, 91, 0.09);
}
.sermon-featured-image {
  background: #e9e6f7;
}
.sermon-featured-image:after {
  background: linear-gradient(transparent, rgba(0, 0, 74, 0.5));
}
.sermon-featured-label {
  background: linear-gradient(120deg, #00007e, #7a1d7c);
  color: #fff;
  border-radius: 3px;
}
.sermon-image-mark {
  border-radius: 12px;
  background: rgba(0, 0, 126, 0.45);
  border-color: rgba(255, 255, 255, 0.7);
}
.sermon-meta {
  color: #77738f;
}
.sermon-meta > span:first-child {
  color: #7a1d7c;
}
.sermon-meta > i {
  background: #00a4e6;
}
.sermon-featured-copy h3 {
  color: #17143a;
}
.sermon-featured-copy h3 a:hover,
.sermon-row-copy h3 a:hover {
  color: #7a1d7c;
}
.sermon-preacher {
  color: #77738f;
}
.sermon-preacher i {
  color: #00a4e6;
}
.sermon-featured-copy > p,
.sermon-row-copy > p {
  color: #6f6c86;
}
.sermon-featured-bottom {
  border-color: #ece9f5;
}
.sermon-views,
.sermon-row-foot > span {
  color: #88849d;
}
.sermon-read-link,
.sermon-row-foot a {
  color: #00007e;
}
.sermon-read-link:hover,
.sermon-row-foot a:hover {
  color: #7a1d7c;
}
.sermon-read-link i,
.sermon-row-foot a i {
  color: #f49c15;
}
.sermon-list-heading h3 {
  color: #00007e;
}
.sermon-list-note {
  color: #77738f;
}
.sermon-list {
  border-color: #e5e2f0;
}
.sermon-row {
  border-color: #e5e2f0;
  transition: background 0.22s ease, padding 0.22s ease;
}
.sermon-row:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 164, 230, 0.045),
    rgba(122, 29, 124, 0.025)
  );
}
.sermon-row-image {
  border-radius: 7px;
  background: #eeecf8;
  box-shadow: 0 7px 22px rgba(28, 18, 91, 0.08);
}
.sermon-row-image > span {
  background: #00007e;
  color: #fff;
  border-radius: 5px;
}
.sermon-pagination a,
.sermon-pagination span {
  border-color: #e4e1f0;
  color: #555174;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(28, 18, 91, 0.035);
}
.sermon-pagination a:hover,
.sermon-pagination .is-current {
  background: #00007e;
  color: #fff;
  border-color: #00007e;
}
.sermon-empty-state {
  border: 1px solid #e6e2f1;
  border-radius: 9px;
  box-shadow: 0 14px 38px rgba(28, 18, 91, 0.055);
}
.sermon-empty-icon {
  background: linear-gradient(
    135deg,
    rgba(0, 164, 230, 0.12),
    rgba(122, 29, 124, 0.12)
  );
  color: #7a1d7c;
  border-radius: 14px;
}
.sermon-empty-state h2 {
  color: #00007e;
}
.sermon-empty-state p {
  color: #77738f;
}
.sermon-outline-link {
  color: #00007e;
}
.sermon-outline-link:hover {
  color: #7a1d7c;
}
.sermon-closing-panel {
  background: linear-gradient(115deg, #00007e 0%, #21116e 52%, #7a1d7c 100%);
  border-radius: 9px;
  box-shadow: 0 20px 48px rgba(0, 0, 126, 0.14);
}
.sermon-closing-panel:after {
  border-color: rgba(0, 164, 230, 0.3);
}
.sermon-closing-icon {
  border-color: rgba(0, 164, 230, 0.7);
  color: #7be0ff;
  border-radius: 14px;
}
.sermon-closing-panel p {
  color: rgba(255, 255, 255, 0.75);
}
.sermon-closing-panel > a {
  border-color: rgba(245, 241, 19, 0.55);
  color: #f5f113;
  border-radius: 4px;
}
.sermon-closing-panel > a:hover {
  background: #f5f113;
  color: #00007e;
}
@media (max-width: 540px) {
  .sermon-featured {
    border-radius: 8px;
  }
  .sermon-row {
    border-bottom: 1px solid #e5e2f0;
  }
  .sermon-row:hover {
    padding-inline: 7px;
  }
  .sermon-closing-panel {
    border-radius: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sermon-row {
    transition: none;
  }
}
/* =========================================================
   RESPONSIVE SERMON IMAGE SIZING
   Keeps image boxes proportional and prevents stretching.
   ========================================================= */
.sermon-featured-image,
.sermon-row-image {
  width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Featured image: wider, shorter crop so it does not dominate the card. */
.sermon-featured-image {
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 300px;
  min-height: 0;
  align-self: stretch;
}

.sermon-featured-image img,
.sermon-row-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

/* List thumbnails always keep a stable landscape ratio. */
.sermon-row-image {
  height: auto;
  aspect-ratio: 16 / 10;
}

/* Avoid grid children forcing the layout wider than the screen. */
.sermon-featured,
.sermon-featured-copy,
.sermon-row,
.sermon-row-copy {
  min-width: 0;
}

@media (max-width: 800px) {
  .sermon-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .sermon-featured-image {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 260px;
    min-height: 0;
  }

  .sermon-row-image {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

@media (max-width: 540px) {
  .sermon-featured-image {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 210px;
    min-height: 0;
  }

  /* Compact vertical list with thumbnails sized to their own column. */
  .sermon-row {
    grid-template-columns: minmax(82px, 28%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .sermon-row-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
  }

  .sermon-row-copy {
    overflow-wrap: anywhere;
  }

  .sermon-row-copy h3 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .sermon-featured-image {
    max-height: 180px;
  }

  .sermon-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .sermon-row-copy h3 {
    font-size: 16px;
  }
}

/* =========================================================
   PREMIUM SERMON LIBRARY CARDS
   Desktop: 3-column card grid
   Mobile: clean horizontal list
   The featured sermon styling above remains unchanged.
   ========================================================= */

.sermon-page .sermon-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border: 0;
  align-items: stretch;
}

.sermon-page .sermon-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e7e4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(28, 18, 91, 0.055);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.sermon-page .sermon-row:hover {
  padding: 0;
  border-color: rgba(122, 29, 124, 0.25);
  background: #fff;
  box-shadow: 0 18px 42px rgba(28, 18, 91, 0.12);
  transform: translateY(-5px);
}

.sermon-page .sermon-row-image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: #eeecf8;
  box-shadow: none;
}

.sermon-page .sermon-row-image img {
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sermon-page .sermon-row:hover .sermon-row-image img {
  transform: scale(1.055);
}

.sermon-page .sermon-row-image > span {
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 126, 0.92);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sermon-page .sermon-row:hover .sermon-row-image > span,
.sermon-page .sermon-row-image:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.sermon-page .sermon-row-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 5px 15px 16px;
}

.sermon-page .sermon-row-copy .sermon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.75px;
}

.sermon-page .sermon-row-copy h3 {
  margin: 12px 0 9px;
  font: 400 clamp(20px, 1.65vw, 24px) / 1.28 Georgia, "Times New Roman", serif;
  letter-spacing: -0.35px;
  overflow-wrap: anywhere;
}

.sermon-page .sermon-row-copy h3 a {
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.sermon-page .sermon-row-copy .sermon-preacher {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.6;
}

.sermon-page .sermon-row-copy > p {
  display: -webkit-box;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: #77738f;
  font-size: 12px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sermon-page .sermon-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.sermon-page .sermon-row-foot > span {
  font-size: 10px;
  line-height: 1.5;
}

.sermon-page .sermon-row-foot a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.sermon-page .sermon-row-foot a i {
  margin: 0;
  transition: transform 0.2s ease;
}

.sermon-page .sermon-row-foot a:hover i {
  transform: translateX(3px);
}

/* Medium desktop and tablet: maintain the card layout without squeezing text. */
@media (max-width: 1000px) and (min-width: 641px) {
  .sermon-page .sermon-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .sermon-page .sermon-row-copy {
    padding: 20px;
  }

  .sermon-page .sermon-row-copy h3 {
    font-size: 22px;
  }
}

/* Mobile: switch the library back to a premium horizontal list. */
@media (max-width: 640px) {
  .sermon-page .sermon-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    border: 0;
  }

  .sermon-page .sermon-row,
  .sermon-page .sermon-row:hover {
    display: grid;
    grid-template-columns: clamp(94px, 29%, 132px) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e7e4f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(28, 18, 91, 0.045);
    transform: none;
  }

  .sermon-page .sermon-row-image {
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 124px;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .sermon-page .sermon-row-image img {
    object-position: center;
  }

  .sermon-page .sermon-row-image > span {
    display: none;
  }

  .sermon-page .sermon-row-copy {
    min-width: 0;
    padding: 13px 13px 12px;
    overflow-wrap: anywhere;
  }

  .sermon-page .sermon-row-copy .sermon-meta {
    gap: 5px;
    font-size: 8px;
    letter-spacing: 0.35px;
    line-height: 1.5;
  }

  .sermon-page .sermon-row-copy h3 {
    margin: 7px 0 6px;
    font-size: clamp(16px, 4.2vw, 19px);
    line-height: 1.25;
    letter-spacing: -0.2px;
  }

  .sermon-page .sermon-row-copy .sermon-preacher {
    margin: 0 0 7px;
    font-size: 10px;
    line-height: 1.45;
  }

  .sermon-page .sermon-row-copy > p {
    display: -webkit-box;
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
  }

  .sermon-page .sermon-row-foot {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 10px;
  text-align: left;
}

.sermon-page .sermon-row-foot > span,
.sermon-page .sermon-row-foot > a {
  text-align: left;
  margin-left: 0;
}

.sermon-page .sermon-row-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
}
}

@media (max-width: 380px) {
  .sermon-page .sermon-row,
  .sermon-page .sermon-row:hover {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .sermon-page .sermon-row-image {
    min-height: 118px;
  }

  .sermon-page .sermon-row-copy {
    padding: 11px 10px;
  }

  .sermon-page .sermon-row-copy .sermon-meta {
    font-size: 7px;
  }

  .sermon-page .sermon-row-copy h3 {
    font-size: 16px;
  }

  .sermon-page .sermon-row-copy > p {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sermon-page .sermon-row,
  .sermon-page .sermon-row-image img,
  .sermon-page .sermon-row-image > span,
  .sermon-page .sermon-row-foot a i {
    transition: none;
  }

  .sermon-page .sermon-row:hover {
    transform: none;
  }
}