/*
 * Base visual system aligned with DESIGN.md in this child theme.
 */
:root {
  --teal: #56c3b8;
  --teal-dark: #3ba89d;
  --teal-light: #a8e0db;
  --navy: #2f3746;
  --navy-mid: #3d4a5e;
  --navy-dark: #1e2533;
  --bg: #ffffff;
  --bg-soft: #f4f8f8;
  --bg-teal: #eaf6f5;
  --text: #1e2533;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #d1e8e6;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.ibcd-home-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body.ibcd-home-body *,
body.ibcd-home-body *::before,
body.ibcd-home-body *::after {
  box-sizing: border-box;
}

body.ibcd-home-body #page,
body.ibcd-home-body .site,
body.ibcd-home-body .site-content,
body.ibcd-home-body .container {
  margin: 0;
  max-width: none;
  width: auto;
  padding: 0;
}

.ibcd-home img {
  display: block;
  max-width: 100%;
}

.ibcd-home a {
  text-decoration: none;
}

.ibcd-home .hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ibcd-home .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.ibcd-home .hero-fallback-image,
.ibcd-home .welcome-photo,
.ibcd-home .gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ibcd-home .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(30, 37, 51, 0.88) 40%, rgba(30, 37, 51, 0.3) 100%),
    linear-gradient(to top, rgba(30, 37, 51, 0.6) 0%, transparent 50%);
}

.ibcd-home .hero-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 195, 184, 0.12) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.ibcd-home .hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 0;
}

.ibcd-home .hero > .ibcd-page-container {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 5rem));
  min-height: 100%;
}

.ibcd-home .hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 6vw, 7rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s 0.15s ease both;
}

.ibcd-home .hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.ibcd-home .hero-desc {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 0 2.5rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.ibcd-home .hero-actions,
.ibcd-home .visit-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ibcd-home .hero-actions {
  animation: fadeUp 0.8s 0.45s ease both;
}

.ibcd-home .btn-primary,
.ibcd-home .btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  padding: 0.9rem 1.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.ibcd-home .btn-primary {
  background: var(--teal);
}

.ibcd-home .btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.ibcd-home .btn-navy {
  background: var(--navy);
  margin-top: 0.5rem;
}

.ibcd-home .btn-navy:hover {
  background: var(--navy-mid);
}

.ibcd-home .btn-ghost,
.ibcd-home .btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.ibcd-home .btn-ghost {
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.ibcd-home .btn-ghost:hover {
  color: var(--teal-light);
  border-color: var(--teal);
}

.ibcd-home .btn-ghost-light {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
}

.ibcd-home .btn-ghost-dark {
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}

.ibcd-home .btn-ghost-dark:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.ibcd-home .hero-footer {
  position: absolute;
  bottom: 2.5rem;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.8s 0.6s ease both;
}

.ibcd-home .schedule-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(86, 195, 184, 0.25);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
}

.ibcd-home .schedule-pill .day,
.ibcd-home .schedule-card .day-name,
.ibcd-home .footer-col h4,
.ibcd-home .logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ibcd-home .schedule-pill .day,
.ibcd-home .schedule-card .day-name {
  color: var(--teal);
}

.ibcd-home .schedule-pill .time {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
}

.ibcd-home .section-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ibcd-home .section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.ibcd-home .welcome-text,
.ibcd-home .welcome-visual,
.ibcd-home .gallery-header,
.ibcd-home .sermons-aside-inner,
.ibcd-home .sermons-widget,
.ibcd-home .plugin-placeholder,
.ibcd-home .events-intro,
.ibcd-home .visit-text,
.ibcd-home .visit-map,
.ibcd-home .disclaimer-band {
  animation: fadeUp 0.8s ease both;
}

.ibcd-home .welcome-text,
.ibcd-home .gallery-header,
.ibcd-home .sermons-aside-inner,
.ibcd-home .events-intro,
.ibcd-home .visit-text,
.ibcd-home .disclaimer-band {
  animation-delay: 0.15s;
}

.ibcd-home .welcome-visual,
.ibcd-home .sermons-widget,
.ibcd-home .plugin-placeholder,
.ibcd-home .visit-map {
  animation-delay: 0.3s;
}

.ibcd-home .gallery-item,
.ibcd-home .event-card {
  animation: fadeUp 0.8s ease both;
}

.ibcd-home .gallery-item:nth-child(1),
.ibcd-home .event-card:nth-child(1) { animation-delay: 0.18s; }
.ibcd-home .gallery-item:nth-child(2),
.ibcd-home .event-card:nth-child(2) { animation-delay: 0.28s; }
.ibcd-home .gallery-item:nth-child(3),
.ibcd-home .event-card:nth-child(3) { animation-delay: 0.38s; }
.ibcd-home .gallery-item:nth-child(4),
.ibcd-home .event-card:nth-child(4) { animation-delay: 0.48s; }

.ibcd-home .welcome,
.ibcd-home .events,
.ibcd-home .visit,
.ibcd-home .about {
  padding: 7rem 5rem;
}

.ibcd-home .welcome > .ibcd-page-container,
.ibcd-home .events > .ibcd-page-container,
.ibcd-home .visit > .ibcd-page-container,
.ibcd-home .about > .ibcd-page-container {
  display: grid;
  gap: 5rem;
  align-items: center;
}

.ibcd-home .welcome {
  background: var(--bg);
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.ibcd-home .welcome > .ibcd-page-container {
  grid-template-columns: 1fr 1fr;
}

.ibcd-home .welcome-text .section-label {
  margin-bottom: 1.5rem;
}

.ibcd-home .welcome-text h2,
.ibcd-home .gallery-header h2,
.ibcd-home .sermons-header h2,
.ibcd-home .events-intro h2,
.ibcd-home .visit-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.ibcd-home .welcome-text h2,
.ibcd-home .sermons-header h2,
.ibcd-home .events-intro h2 {
  color: var(--navy);
}

.ibcd-home .visit-text h2,
.ibcd-home .gallery-header h2 {
  color: #fff;
}

.ibcd-home .welcome-text h2 em {
  font-style: italic;
  color: var(--teal);
}

.ibcd-home .welcome-text p,
.ibcd-home .gallery-header p,
.ibcd-home .events-intro p,
.ibcd-home .visit-text p,
.ibcd-home .footer-brand p {
  font-family: 'Lora', serif;
  line-height: 1.9;
}

.ibcd-home .welcome-text p {
  color: var(--text-mid);
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
}

.ibcd-home .welcome-visual,
.ibcd-home .visit-map {
  position: relative;
}

.ibcd-home .welcome-img-main,
.ibcd-home .about-img,
.ibcd-home .about-img-2 {
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ibcd-home .welcome-img-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  font-size: 0.8rem;
  overflow: hidden;
}

.ibcd-home .welcome-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--navy);
  color: white;
  padding: 1.5rem;
  border-radius: 22px;
  text-align: center;
  min-width: 148px;
}

.ibcd-home .welcome-badge .icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.ibcd-home .welcome-badge .label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ibcd-home .gallery {
  background: var(--navy);
  padding: 7rem 5rem;
}

.ibcd-home .gallery-header {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: anchor-center;
  gap: 2rem 3rem;
  margin-bottom: 3rem;
}

.ibcd-home .gallery-header p,
.ibcd-home .visit-text p,
.ibcd-home .footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

.ibcd-home .gallery-header .section-label,
.ibcd-home .visit-text .section-label {
  color: var(--teal-light);
}

.ibcd-home .gallery-header .section-label::before,
.ibcd-home .visit-text .section-label::before {
  background: var(--teal-light);
}

.ibcd-home .gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}

.ibcd-home .gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ibcd-home .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  margin: 0;
}

.ibcd-home .gallery-item.tall {
  aspect-ratio: 3 / 4;
}

.ibcd-home .gallery-item.medium {
  aspect-ratio: 4 / 5;
}

.ibcd-home .gallery-item.short {
  aspect-ratio: 4 / 3;
}

.ibcd-home .gallery-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy-mid);
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.ibcd-home .gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(86, 195, 184, 0);
  transition: background 0.35s ease;
}

.ibcd-home .gallery-item:hover::after {
  background: rgba(86, 195, 184, 0.25);
}

.ibcd-home .gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(30, 37, 51, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ibcd-home .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.ibcd-home .gallery-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  font-weight: 500;
}

.ibcd-home .gallery-item:hover .gallery-img-placeholder {
  transform: scale(1.04);
}

.ibcd-home .gallery-footer {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.ibcd-home .sermons {
  background: var(--bg);
  padding: 7rem 5rem;
}

.ibcd-home .events-intro .section-label,
.ibcd-home .sermons-aside .section-label {
  margin-bottom: 0.75rem;
}

.ibcd-home .sermons-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
}

.ibcd-home .sermons-aside-inner {
  position: sticky;
  top: 6rem;
}

.ibcd-home .sermons-aside h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

.ibcd-home .sermons-aside h2 em {
  font-style: italic;
}

.ibcd-home .sermons-main {
  min-width: 0;
}

.ibcd-home .sermons-main .plugin-placeholder {
  margin: 0;
}

.ibcd-home .plugin-placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 28px;
  padding: 4rem 2rem;
}

.ibcd-home .plugin-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.ibcd-home .plugin-placeholder-inner p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.ibcd-home .plugin-placeholder-inner span {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.ibcd-home .sermons-widget .sf-latest-sermon {
  padding: 0;
}

.ibcd-home .sermons-widget {
  width: 100%;
  margin: 0;
}

.ibcd-home .sermons-widget .sermo-widget {
  border-radius: 28px;
  overflow: hidden;
}

.ibcd-home .sermons-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
}

.ibcd-home .sermons-footer .btn-ghost-dark {
  align-items: center;
}

.ibcd-home .sermons-footer .btn-ghost-dark span {
  display: inline-block;
  margin-left: 0.15rem;
}

.ibcd-home .events {
  background: var(--bg-soft);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.ibcd-home .events > .ibcd-page-container {
  grid-template-columns: 1fr 2fr;
  align-items: start;
}

.ibcd-home .events-intro p {
  color: var(--text-mid);
  font-size: 1.05rem;
}

.ibcd-home .events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ibcd-home .event-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg);
  padding: 1.4rem 1.8rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ibcd-home .event-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(86, 195, 184, 0.12);
}

.ibcd-home .event-date-box {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}

.ibcd-home .event-date-box .month {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  display: block;
}

.ibcd-home .event-date-box .day {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
}

.ibcd-home .event-info h4 {
  margin: 0 0 0.3rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.ibcd-home .event-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.ibcd-home .event-arrow {
  color: var(--teal);
  font-size: 1.1rem;
}

.ibcd-home .visit {
  background: var(--navy);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.ibcd-home .visit > .ibcd-page-container {
  grid-template-columns: 1fr 1fr;
}

.ibcd-home .visit-text p {
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.ibcd-home .schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.ibcd-home .schedule-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(86, 195, 184, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
}

.ibcd-home .schedule-card .service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.ibcd-home .schedule-card .service-time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.ibcd-home .visit-map {
  background: var(--navy-mid);
  border-radius: 28px;
  min-height: 420px;
  overflow: hidden;
}

.ibcd-home .map-overlay-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ibcd-home .map-overlay-card strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-family: 'Playfair Display', serif;
}

.ibcd-home .map-phone {
  color: var(--teal);
  font-size: 0.75rem;
}

.ibcd-home .disclaimer-band {
  background: #252f3f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 5rem;
}

.ibcd-home .disclaimer-band > .ibcd-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.ibcd-home .disclaimer-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ibcd-home .disclaimer-text {
  max-width: 780px;
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.ibcd-home footer {
  background: var(--navy-dark);
  padding: 5rem 5rem 2.5rem;
}

.ibcd-home .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
}

.ibcd-home .footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.ibcd-home .logo-sub {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.25rem;
}

.ibcd-home .footer-brand p {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  max-width: 280px;
  margin: 0 0 1.5rem;
}

.ibcd-home .social-links {
  display: flex;
  gap: 0.75rem;
}

.ibcd-home .social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.ibcd-home .social-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.ibcd-home .footer-col h4 {
  color: var(--teal);
  margin: 0 0 1.25rem;
}

.ibcd-home .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ibcd-home .footer-col ul li {
  margin-bottom: 0.6rem;
}

.ibcd-home .footer-col ul li a,
.ibcd-home .contact-item,
.ibcd-home .contact-item a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.ibcd-home .footer-col ul li a:hover,
.ibcd-home .contact-item a:hover {
  color: #fff;
}

.ibcd-home .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.ibcd-home .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.ibcd-home .footer-bottom p,
.ibcd-home .footer-bottom a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
}

.ibcd-home .footer-bottom a:hover {
  color: var(--teal);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .ibcd-home .hero-content {
    padding: 0 0 7rem;
  }

  .ibcd-home .hero-footer {
    right: 0;
    gap: 0.75rem;
  }

  .ibcd-home .schedule-pill {
    padding: 0.6rem 1rem;
  }

  .ibcd-home .welcome {
    padding: 5rem 2.5rem;
  }

  .ibcd-home .welcome > .ibcd-page-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ibcd-home .welcome-visual {
    display: none;
  }

  .ibcd-home .gallery,
  .ibcd-home .sermons,
  .ibcd-home .events,
  .ibcd-home .visit,
  .ibcd-home .disclaimer-band,
  .ibcd-home footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .ibcd-home .gallery {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .ibcd-home .gallery-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ibcd-home .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .ibcd-home .gallery-col:nth-child(3),
  .ibcd-home .gallery-col:nth-child(4) {
    display: none;
  }

  .ibcd-home .sermons {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .ibcd-home .sermons-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ibcd-home .sermons-aside-inner {
    position: static;
  }

  .ibcd-home .events > .ibcd-page-container,
  .ibcd-home .visit > .ibcd-page-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ibcd-home .visit-map {
    min-height: 300px;
  }

  .ibcd-home .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .ibcd-home .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .ibcd-home .hero-content {
    padding: 0 0 8rem;
  }

  .ibcd-home .hero h1 {
    font-size: 2.8rem;
  }

  .ibcd-home .hero-desc {
    font-size: 0.95rem;
  }

  .ibcd-home .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .ibcd-home .hero-footer {
    bottom: 1.75rem;
    right: 0;
    left: 0;
    justify-content: left;
    flex-wrap: wrap;
  }

  .ibcd-home .hero > .ibcd-page-container {
    padding-top: 3rem;
  }

  .ibcd-home .schedule-pill {
    padding: 0.5rem 0.9rem;
  }

  .ibcd-home .schedule-pill .time {
    font-size: 0.95rem;
  }

  .ibcd-home .welcome {
    padding: 4rem 1.5rem;
  }

  .ibcd-home .welcome > .ibcd-page-container {
    gap: 2rem;
  }

  .ibcd-home .welcome-text h2 {
    font-size: 2rem;
  }

  .ibcd-home .gallery,
  .ibcd-home .sermons,
  .ibcd-home .events,
  .ibcd-home .visit,
  .ibcd-home .disclaimer-band,
  .ibcd-home footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .ibcd-home .gallery {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .ibcd-home .gallery-masonry {
    gap: 8px;
  }

  .ibcd-home .gallery-item.short {
    aspect-ratio: 1;
  }

  .ibcd-home .sermons {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .ibcd-home .events {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
  }

  .ibcd-home .event-card {
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
  }

  .ibcd-home .event-date-box .day {
    font-size: 1.6rem;
  }

  .ibcd-home .schedule-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ibcd-home .visit {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2.5rem;
  }

  .ibcd-home .disclaimer-band {
    padding: 2rem 1.5rem;
  }

  .ibcd-home .visit-map {
    min-height: 260px;
  }

  .ibcd-home .map-overlay-card {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .ibcd-home footer {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .ibcd-home .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ibcd-home .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
