/* Import components */
@import 'components/exposed-filters.css';

/* Daily verse block spacing */
#block-esjc-theme-esjc-daily-verse-block {
  padding-top: 50px;
}

/* Shared homepage button geometry (except menu). */
.esjc-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1.55rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #0369a1;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.esjc-home-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.esjc-home-btn--gold {
  background: #d2af1f;
  color: #0369a1;
  border-color: #0369a1;
}

.esjc-home-btn--gold:hover {
  color: #0369a1;
}

.esjc-home-btn--danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #0369a1;
}

.esjc-home-btn--danger:hover {
  color: #ffffff;
}

/* News article full view styles */
.news-article .field--name-field-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* News teaser image */
.news-teaser .field--name-field-news-image img {
  height: 16rem;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-teaser:hover .field--name-field-news-image img {
  transform: scale(1.03);
}

/* Hide field labels in news article */
.news-article .field__label,
.news-teaser .field__label {
  display: none;
}

/* Hide field wrappers */
.news-article .field--name-field-news-image,
.news-teaser .field--name-field-news-image,
.news-article .field--name-field-news-category,
.news-teaser .field--name-field-news-category {
  margin: 0;
  padding: 0;
}

/* Keep header visible even if Tailwind arbitrary classes are purged. */
.site-header-banner {
  background-image: url('/themes/custom/esjc_theme/img/header_mobile.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

/* Main navigation shell with visible left-to-right gradient. */
.esjc-main-nav {
  background: linear-gradient(90deg, #e0f2fe 0%, #ffffff 48%, #e0f2fe 100%);
  border-top: 1px solid rgba(2, 132, 199, 0.28);
  border-bottom: 1px solid rgba(2, 132, 199, 0.28);
  box-shadow: 0 8px 18px -15px rgba(2, 132, 199, 0.5);
}

/* Gold CTA style for FAIRE UN DON and Espace Pasteurs. */
.menu-cta-gold {
  background: linear-gradient(90deg, #f4cf72 0%, #f6dd97 52%, #dfb353 100%);
  color: #3f2c07;
  font-weight: 600;
  border-top: 2px solid #0369a1;
  border-bottom: 2px solid #0369a1;
  box-shadow: 0 8px 16px -11px rgba(146, 96, 11, 0.72);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.menu-cta-gold:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  color: #2d1e03;
}

/* Footer inspired by clean corporate multi-column layout. */
.esjc-footer {
  background: #f3f4f6;
  border-top: 1px solid #d1d5db;
  color: #425466;
}

.esjc-footer__inner {
  padding-top: 2.6rem;
  padding-bottom: 1.55rem;
}

.esjc-footer__grid {
  align-items: start;
  gap: 1.9rem;
}

.esjc-footer__brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.esjc-footer__brand img {
  max-height: 4.8rem;
  width: auto;
  object-fit: contain;
  filter: saturate(0.08) brightness(0.7);
  opacity: 0.9;
}

.esjc-footer h2 {
  color: #1f2f67;
  font-size: clamp(1.2rem, 1.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.esjc-footer p,
.esjc-footer li,
.esjc-footer a {
  color: #50657a;
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.75;
  text-decoration: none;
}

.esjc-footer a:hover {
  color: #1f2f67;
}

.esjc-footer__quick ul,
.esjc-footer__social ul,
.esjc-footer__legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.esjc-footer__social ul {
  margin-top: 0.2rem;
}

.esjc-footer__social li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.esjc-footer__social li svg {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: #2d3b73;
  color: #f8fafc;
}

.esjc-footer__contact a,
.esjc-footer__quick a,
.esjc-footer__social a {
  display: inline-block;
}

.esjc-footer__divider {
  margin-top: 2rem;
  border-color: #d1d5db;
}

.esjc-footer__bottom {
  margin-top: 1.1rem;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
}

.esjc-footer__copy {
  margin: 0;
  color: #2f3c75;
  font-size: 0.84rem;
  font-weight: 550;
}

.esjc-footer__copy a {
  color: #2f3c75;
  text-decoration: underline;
}

.esjc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.95rem;
}

.esjc-footer__legal a {
  color: #4f6076;
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .esjc-footer__grid {
    gap: 1.35rem;
  }

  .esjc-footer__brand {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 768px) {
  .esjc-footer__inner {
    padding-top: 2rem;
    padding-bottom: 1.15rem;
  }

  .esjc-footer h2 {
    font-size: 1.24rem;
    margin-bottom: 0.75rem;
  }

  .esjc-footer p,
  .esjc-footer li,
  .esjc-footer a {
    line-height: 1.62;
  }

  .esjc-footer__divider {
    margin-top: 1.45rem;
  }

  .esjc-footer__bottom {
    margin-top: 0.9rem;
    align-items: center;
  }
}

/* Replace old quick-search input with Select2 widget. */
.views-exposed-form input[id$="_quick_search"] {
  display: none !important;
}

.views-exposed-form .select2-container {
  width: 100% !important;
}

.views-exposed-form .select2-container--default .select2-selection--single {
  height: 3.1rem;
  border-radius: 0.75rem;
  border: 2px solid rgb(229 231 235);
  background: #ffffff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.views-exposed-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 2.95rem;
  padding-left: 0.95rem;
  color: rgb(23 23 23);
  font-size: 0.94rem;
}

.views-exposed-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.5rem;
}

.views-exposed-form .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgb(3 105 161 / 0.12);
}

.select2-dropdown {
  border: 1px solid rgb(229 231 235);
  border-radius: 0.7rem;
  overflow: hidden;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid rgb(209 213 219) !important;
  border-radius: 0.55rem;
  padding: 0.45rem 0.6rem;
}

@media (min-width: 768px) {
  .site-header-banner {
    background-image: url('/themes/custom/esjc_theme/img/header_desktop.jpg');
    background-position: center;
  }
}

/* Stable slider sizing independent from Tailwind arbitrary classes. */
.esjc-slider .esjc-slider-swiper {
  height: 50vh;
}

.esjc-slider .swiper-wrapper,
.esjc-slider .swiper-slide {
  height: 100%;
}

.esjc-slider .swiper-slide > .relative {
  height: 100%;
}

@media (min-width: 768px) {
  .esjc-slider .esjc-slider-swiper,
  .esjc-slider .swiper-slide {
    height: 75vh;
  }
}

/* Floating radio player visible site-wide. */
.esjc-radio-floating {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.95), #121b50);
  border-top: 1px solid rgba(147, 197, 253, 0.55);
  box-shadow: 0 -10px 24px -18px rgba(2, 6, 23, 0.85);
}

.esjc-radio-floating,
.esjc-back-to-top {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Reserve space so the fixed radio bar never covers footer content. */
.esjc-radio-floating + footer {
  padding-bottom: calc(4rem + env(safe-area-inset-bottom));
}

/* Back-to-top button should stay above floating radio. */
.esjc-back-to-top {
  z-index: 85;
  bottom: calc(5.4rem + env(safe-area-inset-bottom));
}

.esjc-radio-floating__inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.esjc-radio-floating__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.esjc-radio-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #f43f5e;
  box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.15);
}

.esjc-radio-floating__title {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.esjc-radio-floating__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #000000;
  background: #fde68a;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.esjc-radio-floating__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.esjc-radio-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  max-height: 2.25rem;
  border-radius: 9999px !important;
  background: #f59e0b;
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.85);
  transition: background-color 0.2s ease;
}

.esjc-radio-play-btn:hover {
  background: #fbbf24;
}

.esjc-radio-play-btn.is-loading .js-icon-play,
.esjc-radio-play-btn.is-loading .js-icon-pause {
  opacity: 0;
}

.esjc-radio-play-btn.is-loading::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  animation: esjc-radio-spin 0.75s linear infinite;
}

@keyframes esjc-radio-spin {
  to {
    transform: rotate(360deg);
  }
}

.esjc-radio-time {
  width: 2.6rem;
  font-size: 0.78rem;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.esjc-radio-seek {
  width: 100%;
  min-width: 0;
  height: 0.34rem;
  border-radius: 999px;
  accent-color: #0284c7;
  background: #dbeafe;
}

.esjc-radio-status {
  margin: 0;
  font-size: 0.75rem;
  color: #e0f2fe;
  white-space: nowrap;
}

/* Keep mobile drawer menu fully accessible above fixed radio player. */
@media (max-width: 767px) {
  #default-sidebar {
    z-index: 95;
  }

  #default-sidebar > div {
    padding-bottom: calc(5.6rem + env(safe-area-inset-bottom));
  }

  body.esjc-menu-open .esjc-radio-floating,
  body.esjc-menu-open .esjc-back-to-top {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
}

/* Daily verse premium look. */
.esjc-daily-verse {
  margin-bottom: 2.4rem;
}

.esjc-daily-verse__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8fafc;
  box-shadow: 0 18px 32px -28px rgba(15, 23, 42, 0.65);
  overflow: hidden;
}

.esjc-daily-verse__visual {
  margin: 0;
  min-height: 320px;
}

.esjc-daily-verse__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.esjc-daily-verse__panel {
  background: linear-gradient(180deg, #0284c7, #0369a1);
  color: #ffffff;
  padding: 2.4rem 2.1rem;
}

.esjc-daily-verse__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.esjc-daily-verse__title {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.08;
  font-weight: 800;
}

.esjc-daily-verse__quote {
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
  line-height: 1.62;
  color: #f2f8ff;
  border-left: 3px solid rgba(255, 255, 255, 0.65);
  padding-left: 1rem;
}

.esjc-daily-verse__reference {
  margin: 1.15rem 0 0;
  color: #dbeafe;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Keep only floating radio player: hide front-page radio block under slider. */
.radio-esjc-block {
  display: none;
}

@media (max-width: 767px) {
  .esjc-radio-floating {
    left: 0.5rem;
    right: 0.5rem;
    bottom: calc(0.45rem + env(safe-area-inset-bottom));
    border-radius: 0.75rem;
    border: 1px solid rgba(147, 197, 253, 0.55);
  }

  .esjc-radio-floating + footer {
    padding-bottom: calc(7.6rem + env(safe-area-inset-bottom));
  }

  .esjc-radio-floating__meta {
    width: 100%;
  }

  .esjc-radio-status {
    display: none;
  }

  .esjc-back-to-top {
    right: 0.75rem;
    bottom: calc(7.2rem + env(safe-area-inset-bottom));
  }
}

/* Recent predication block: split layout inspired by provided style. */
.predication-recent-block {
  background: #2b3278;
  position: relative;
  overflow: hidden;
  padding: 4.2rem 1rem;
}

.predication-recent-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.8rem;
  align-items: center;
}

.predication-recent-copy {
  color: #f7f9ff;
}

.predication-recent-kicker {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: rgba(221, 231, 255, 0.8);
  font-weight: 700;
}

.predication-recent-title {
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.06;
  max-width: 14ch;
  font-weight: 800;
}

.predication-recent-media {
  display: flex;
  justify-content: center;
  width: 100%;
}

.predication-video-card {
  width: min(100%, 640px);
  max-width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(233, 241, 255, 0.78);
  box-shadow: 0 24px 35px -24px rgba(0, 0, 0, 0.65);
  background: #0f172a;
}

.predication-video-launch {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  cursor: pointer;
  background: #0f172a;
}

.predication-video-launch::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4.4rem;
  height: 4.4rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px -18px rgba(2, 6, 23, 0.8);
  pointer-events: none;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.predication-video-launch::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-42%, -50%);
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1.12rem solid #ffffff;
  pointer-events: none;
}

.predication-video-launch:hover::before {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(30, 41, 59, 0.87);
}

.predication-video-launch.is-playing::before,
.predication-video-launch.is-playing::after {
  display: none;
}

.predication-video-launch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.predication-video-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #111827;
}

.predication-video-foot h3 {
  margin: 0;
  color: #f9fafb;
  font-size: 0.98rem;
  font-weight: 700;
  flex: 1 1 14rem;
  min-width: 0;
}

.predication-video-foot a {
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.predication-video-foot a:hover {
  background: #b91c1c;
}

@media (max-width: 980px) {
  .predication-recent-wrap {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .predication-recent-copy {
    text-align: center;
  }

  .predication-recent-title {
    max-width: none;
  }

  .predication-video-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .predication-recent-block {
    padding: 3.2rem 0.75rem;
  }

  .predication-recent-wrap {
    gap: 1.25rem;
  }

  .predication-video-card {
    border-radius: 0.8rem;
  }

  .predication-video-foot {
    align-items: stretch;
    padding: 0.8rem 0.82rem;
    gap: 0.72rem;
  }

  .predication-video-foot h3 {
    flex-basis: 100%;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .predication-video-foot .esjc-home-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Apostle welcome section inspired by founder message visual. */
.apostle-welcome-block {
  background: #dfdbc8;
  padding: 4.5rem 1rem;
  overflow: hidden;
}

.apostle-welcome-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 2.8rem;
  align-items: center;
}

.apostle-welcome-content {
  color: #0d7d79;
}

.apostle-welcome-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #dff6f5;
  background: #0369a1f2;
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.2rem;
}

.apostle-welcome-name {
  margin: 0;
  color: #0369a1f2;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 9.1ch;
}

.apostle-welcome-intro {
  margin: 1.6rem 0 1rem;
  color: #385e5b;
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 60ch;
}

.apostle-welcome-body {
  color: #385e5b;
  font-size: 1.11rem;
  line-height: 1.72;
  max-width: 64ch;
}

.apostle-welcome-body p {
  margin: 0 0 1rem;
}

.apostle-welcome-body p:last-child {
  margin-bottom: 0;
}

.apostle-welcome-photos {
  position: relative;
  min-height: 36rem;
}

.apostle-photo-frame {
  position: absolute;
  margin: 0;
  background: #f8f6f1;
  border: 12px solid #f8f6f1;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.apostle-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.apostle-photo-main {
  right: 1.3rem;
  top: 0;
  width: min(92%, 25.5rem);
  height: 31.2rem;
  transform: rotate(-1.8deg);
}

.apostle-photo-secondary {
  right: -0.25rem;
  bottom: 0;
  width: min(55%, 14.2rem);
  height: 17.2rem;
  transform: rotate(7deg);
}

@media (max-width: 991px) {
  .apostle-welcome-wrap {
    grid-template-columns: 1fr;
    gap: 2.1rem;
  }

  .apostle-welcome-photos {
    order: -1;
  }

  .apostle-welcome-name {
    max-width: none;
  }

  .apostle-welcome-photos {
    min-height: 27rem;
    width: min(100%, 31rem);
    margin: 0 auto;
  }

  .apostle-photo-main {
    right: 1rem;
    width: min(86%, 23rem);
    height: 23.5rem;
  }

  .apostle-photo-secondary {
    width: min(52%, 12rem);
    height: 14rem;
    right: 0;
  }
}

@media (max-width: 640px) {
  .apostle-welcome-block {
    padding: 3rem 1rem;
  }

  .apostle-welcome-kicker {
    font-size: 0.75rem;
  }

  .apostle-welcome-intro,
  .apostle-welcome-body {
    font-size: 1rem;
  }

  .apostle-welcome-photos {
    min-height: 22.5rem;
  }

  .apostle-photo-main {
    left: 50%;
    right: auto;
    width: min(89%, 18rem);
    height: 19.5rem;
    transform: translateX(-50%) rotate(-1.8deg);
  }

  .apostle-photo-secondary {
    width: min(58%, 9.8rem);
    height: 10.5rem;
    left: 50%;
    right: auto;
    transform: translateX(28%) rotate(7deg);
  }
}

/* About hero block inspired by the provided visual. */
.esjc-about-hero {
  position: relative;
  background-color: #eceff3;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(236, 241, 247, 0.92)),
    url('/themes/custom/esjc_theme/img/bg_section_geo2.svg'),
    radial-gradient(rgba(3, 105, 161, 0.06) 0.8px, transparent 0.8px);
  background-size: 100% 100%, cover, 4px 4px;
  background-position: center, center, 0 0;
  padding: 4.5rem 1rem 4.2rem;
  overflow: hidden;
}

.esjc-about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(3, 105, 161, 0.09), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(13, 125, 121, 0.08), transparent 28%);
}

.esjc-about-hero__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 3rem;
  align-items: center;
}

.esjc-about-hero__content {
  text-align: center;
  color: #0369a1;
}

.esjc-about-hero__kicker {
  display: inline-block;
  background: #0369a1;
  color: #eafaf9;
  border-radius: 0.45rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 1.2rem;
}

.esjc-about-hero__title {
  margin: 0;
  color: #0369a1;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.esjc-about-hero__description {
  margin: 1.6rem auto 0;
  max-width: 36ch;
  color: #405f5c;
  font-size: 1.02rem;
  line-height: 1.55;
}

.esjc-about-hero__description p {
  margin: 0;
}

.esjc-about-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.esjc-about-hero__photo-frame {
  margin: 0;
  width: min(100%, 42rem);
  border: 11px solid #f5f5f1;
  box-shadow: 0 18px 36px -26px rgba(15, 23, 42, 0.6);
  transform: rotate(2.2deg);
  background: #f5f5f1;
}

.esjc-about-hero__photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.esjc-about-hero__cta {
  color: #0369a1;
  min-width: 13rem;
  box-shadow: 0 12px 20px -15px rgba(161, 98, 7, 0.8);
}

.esjc-about-hero__cta:hover {
  color: #0369a1;
}

@media (max-width: 980px) {
  .esjc-about-hero__wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .esjc-about-hero__photo-frame {
    transform: rotate(0.8deg);
  }
}

@media (max-width: 640px) {
  .esjc-about-hero {
    padding: 3.2rem 1rem;
  }

  .esjc-about-hero__kicker {
    font-size: 0.74rem;
    letter-spacing: 0.07em;
  }

  .esjc-about-hero__description {
    font-size: 0.96rem;
  }

  .esjc-about-hero__cta {
    min-width: 11.5rem;
    font-size: 0.92rem;
    padding: 0.66rem 1.2rem;
  }
}

/* Home blog block inspired by the provided reference. */
.esjc-blog-home {
  background: #e8e6d2;
  padding: 4.4rem 1rem 5rem;
}

.esjc-blog-home__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.esjc-blog-home__header {
  text-align: center;
  max-width: 54rem;
  margin: 0 auto;
}

.esjc-blog-home__title {
  margin: 0;
  color: #0369a1;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.01;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.esjc-slider-title,
.esjc-cta-title {
  font-size: clamp(2rem, 4.4vw, 3.55rem);
}

.esjc-blog-home__intro {
  margin: 1.4rem auto 0;
  max-width: 45rem;
  color: #354f4d;
  font-size: 1.06rem;
  line-height: 1.45;
}

.esjc-blog-grid {
  margin-top: 3.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

/* .esjc-blog-swiper {
  margin-top: 3.7rem;
} */

.esjc-blog-swiper__pagination {
  display: none;
}

.esjc-blog-card {
  background: #f7f7f6;
  border: 1px solid #dcded8;
  box-shadow: 0 16px 22px -24px rgba(15, 23, 42, 0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.esjc-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 32px -25px rgba(15, 23, 42, 0.48);
}

.esjc-blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.esjc-blog-card__media {
  margin: 0;
  position: relative;
  border: 12px solid #f3f3f2;
  border-bottom-width: 0;
}

.esjc-blog-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.esjc-blog-card__tag {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: #d6be1c;
  color: #0369a1;
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.esjc-blog-card__body {
  padding: 0.95rem 1.2rem 1.15rem;
  text-align: center;
}

.esjc-blog-card__date {
  color: #8b8f90;
  font-size: 0.82rem;
}

.esjc-blog-card__title {
  margin: 0.7rem 0 0;
  color: #0369a1;
  font-size: clamp(1.2rem, 1.28vw, 1.58rem);
  line-height: 1.24;
  font-weight: 700;
}

.esjc-blog-card__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  color: #0369a1;
  background: rgba(219, 234, 254, 0.82);
  border: 1px solid rgba(14, 116, 144, 0.3);
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.esjc-blog-card__cta::after {
  content: '\2192';
  margin-left: 0.45rem;
  font-size: 0.8rem;
}

.esjc-blog-card:hover .esjc-blog-card__cta {
  background: rgba(191, 219, 254, 0.85);
}

/* Harmonized slider controls and CTA. */
.esjc-slider-nav {
  width: 2.65rem !important;
  height: 2.65rem !important;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.8) !important;
  border: 2px solid #0369a1;
  box-shadow: 0 10px 20px -15px rgba(15, 23, 42, 0.85);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.esjc-slider-nav:hover {
  background: rgba(3, 105, 161, 0.92) !important;
  transform: translateY(-1px);
}

.esjc-slider-nav::after {
  content: none !important;
}

.esjc-slider-nav--prev {
  left: 0.75rem !important;
  bottom: 0.75rem !important;
  top: auto !important;
}

.esjc-slider-nav--next {
  right: 0.75rem !important;
  bottom: 0.75rem !important;
  top: auto !important;
}

.esjc-slider-cta {
  min-width: 12.2rem;
  border-color: #0369a1 !important;
  box-shadow: 0 14px 22px -18px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
  .esjc-slider-nav--prev {
    left: 1.4rem !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
  }

  .esjc-slider-nav--next {
    right: 1.4rem !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
  }

  .esjc-slider-nav--prev:hover,
  .esjc-slider-nav--next:hover {
    transform: translateY(-50%) translateY(-1px);
  }
}

.esjc-blog-home__footer {
  margin-top: 3.1rem;
  text-align: center;
}

.esjc-blog-home__button {
  color: #0369a1;
  min-width: 14.2rem;
}

.esjc-blog-home__button:hover {
  color: #0369a1;
}

@media (max-width: 1080px) {
  .esjc-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .esjc-daily-verse__inner {
    grid-template-columns: 1fr;
  }

  .esjc-daily-verse__visual {
    min-height: 240px;
  }

  .esjc-daily-verse__panel {
    padding: 1.55rem 1.25rem;
  }

  .esjc-daily-verse__quote {
    font-size: 0.98rem;
  }

  .esjc-blog-home {
    padding: 3rem 1rem 3.4rem;
  }

  .esjc-blog-swiper {
    margin-top: 2.3rem;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .esjc-blog-swiper .esjc-blog-grid {
    margin-top: 0;
    display: flex;
    gap: 0;
    max-width: none;
  }

  .esjc-blog-swiper .esjc-blog-card {
    height: auto;
  }

  .esjc-blog-swiper__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.95rem;
  }

  .esjc-blog-swiper__pagination .swiper-pagination-bullet {
    width: 0.52rem;
    height: 0.52rem;
    opacity: 1;
    background: rgba(3, 105, 161, 0.24);
  }

  .esjc-blog-swiper__pagination .swiper-pagination-bullet-active {
    background: #0369a1;
  }

  .esjc-blog-home__intro {
    font-size: 1.02rem;
  }

  .esjc-blog-home__button {
    min-width: 11.8rem;
    font-size: 0.95rem;
  }
}

