/**
 * Homepage Styles for Emmanuel Miami Theme
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  height: 94vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--color-white);
  padding: 120px 0 60px 0;
  margin: 0;
  overflow: hidden;
  background-color: var(--color-navy-dark);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  will-change: transform;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: var(--weight-extrabold);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px 0;
  animation: fadeInUp 1s ease-out 0.3s both;
  line-height: 1.1;
}

.hero-title {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: var(--weight-normal);
  line-height: 1.4;
  margin-bottom: 50px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-title em {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-5xl);
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-section {
    height: 75vh;
    min-height: 400px;
    padding: 80px 0 50px 0;
    align-items: center;
  }

  .hero-tagline {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }

  .hero-title {
    font-size: 1.2rem;
    margin-bottom: 35px;
  }

  .hero-title em {
    font-size: 1.6rem;
  }

  .hero-actions {
    gap: 25px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-countdown__timer {
    gap: 20px;
  }

  .countdown-label {
    font-size: 11px;
  }
}

.btn.btn-primary,
.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-primary) !important;
  padding: 13px 25px 12px 25px !important;
  font-size: var(--font-size-sm) !important;
  font-family: var(--font-ui) !important;
  font-weight: var(--weight-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  border: none;
  border-radius: var(--radius-md) !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn.btn-primary:hover,
.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-accent) 50%,
    var(--color-tertiary-cyan) 100%
  );
}

.btn.btn-secondary,
.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white) !important;
  padding: 13px 25px 12px 25px !important;
  font-size: var(--font-size-sm) !important;
  font-family: var(--font-ui) !important;
  font-weight: var(--weight-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  border-radius: 4px !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn.btn-secondary:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Countdown Timer */
.hero-countdown {
  margin-top: 0;
}

.hero-countdown__label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-tertiary-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-align: center;
}

.hero-countdown__timer {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: white;
  line-height: 1;
  min-width: 45px;
}

.countdown-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ==========================================================================
   Welcome Section
   ========================================================================== */

.welcome-section {
  padding: 80px 0;
  margin-bottom: 30px;
  background: var(--color-white);
}

.welcome-header {
  margin-bottom: 50px;
  display: flex;
  gap: 15px;
  align-items: baseline;
}

.welcome-header h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 54px;
  color: var(--color-primary);
  margin: 0;
  line-height: 1;
}

.welcome-header h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 54px;
  color: var(--color-primary);
  margin: 0;
  line-height: 1;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: center;
}

.welcome-content {
  order: 2;
}

.welcome-image {
  order: 1;
}

.welcome-image img {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.welcome-content p {
  font-size: 22px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-dark {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.btn-dark:hover {
  background: var(--color-primary);
}

/* ==========================================================================
   Emmanuel Family Gallery Section
   ========================================================================== */

.family-gallery-section {
  padding: 100px 0;
  margin-bottom: 30px;
  background: var(--color-white);
  overflow: hidden;
}

.family-gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Photo Circles - Base Styles */
.family-photo {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.family-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.family-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative Accent Circles */
.family-accent {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

/* Row 1 (Top) - 3 Photos */

/* Row 1, Photo 1 - Top Left */
.family-photo-1 {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 15%;
  z-index: 3;
}

/* Row 1, Photo 2 - Top Center */
.family-photo-2 {
  width: 170px;
  height: 170px;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.family-photo-2:hover {
  transform: translateX(-50%) scale(1.05);
}

/* Row 1, Photo 3 - Top Right */
.family-photo-3 {
  width: 150px;
  height: 150px;
  top: 20%;
  right: 15%;
  z-index: 3;
}

/* Row 2 (Bottom) - 4 Photos Staggered */

/* Row 2, Photo 4 - Bottom Far Left */
.family-photo-4 {
  width: 130px;
  height: 130px;
  top: 52%;
  left: 6%;
  z-index: 3;
}

/* Row 2, Photo 5 - Bottom Center-Left */
.family-photo-5 {
  width: 145px;
  height: 145px;
  top: 50%;
  left: 33%;
  z-index: 4;
}

/* Row 2, Photo 6 - Bottom Center-Right */
.family-photo-6 {
  width: 145px;
  height: 145px;
  top: 50%;
  right: 33%;
  z-index: 4;
}

/* Row 2, Photo 7 - Bottom Far Right */
.family-photo-7 {
  width: 130px;
  height: 130px;
  top: 52%;
  right: 6%;
  z-index: 3;
}

/* Accent 1 - Large Cyan, Top Left */
.family-accent-1 {
  width: 120px;
  height: 120px;
  top: 8%;
  left: 7%;
  z-index: 1;
}

/* Accent 2 - Small Orange, Between rows left */
.family-accent-2 {
  width: 65px;
  height: 65px;
  top: 40%;
  left: 25%;
  z-index: 1;
}

/* Accent 3 - Small Orange, Between rows right */
.family-accent-3 {
  width: 65px;
  height: 65px;
  top: 40%;
  right: 25%;
  z-index: 1;
}

/* Accent 4 - Large Teal, Bottom Right */
.family-accent-4 {
  width: 140px;
  height: 140px;
  bottom: 8%;
  right: 8%;
  z-index: 1;
}

/* Accent 5 - Medium Navy, Top Right */
.family-accent-5 {
  width: 100px;
  height: 100px;
  top: 12%;
  right: 8%;
  z-index: 1;
}

/* Accent 6 - Medium Teal, Bottom Left */
.family-accent-6 {
  width: 90px;
  height: 90px;
  bottom: 15%;
  left: 10%;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .family-gallery-container {
    min-height: 500px;
  }

  .family-gallery-title h2 {
    font-size: 48px;
  }

  /* Slightly smaller on tablet */
  .family-photo-1 {
    width: 130px;
    height: 130px;
  }
  .family-photo-2 {
    width: 150px;
    height: 150px;
  }
  .family-photo-3 {
    width: 130px;
    height: 130px;
  }
  .family-photo-4 {
    width: 110px;
    height: 110px;
  }
  .family-photo-5 {
    width: 125px;
    height: 125px;
  }
  .family-photo-6 {
    width: 125px;
    height: 125px;
  }
  .family-photo-7 {
    width: 110px;
    height: 110px;
  }

  .family-accent-1 {
    width: 100px;
    height: 100px;
  }
  .family-accent-4 {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .family-gallery-section {
    padding: 50px 0;
    margin-bottom: 20px;
  }

  .family-gallery-container {
    min-height: 400px;
    padding: 0 20px;
  }

  .family-gallery-title h2 {
    font-size: 36px;
  }

  /* Compact mobile layout - maintain staggered rows */
  .family-photo-1 {
    width: 90px;
    height: 90px;
    top: 12%;
    left: 8%;
  }
  .family-photo-2 {
    width: 110px;
    height: 110px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
  }
  .family-photo-2:hover {
    transform: translateX(-50%) scale(1.05);
  }
  .family-photo-3 {
    width: 90px;
    height: 90px;
    top: 12%;
    right: 8%;
  }

  .family-photo-4 {
    width: 75px;
    height: 75px;
    top: 52%;
    left: 2%;
  }
  .family-photo-5 {
    width: 85px;
    height: 85px;
    top: 50%;
    left: 28%;
  }
  .family-photo-6 {
    width: 85px;
    height: 85px;
    top: 50%;
    right: 28%;
  }
  .family-photo-7 {
    width: 75px;
    height: 75px;
    top: 52%;
    right: 2%;
  }

  .family-accent-1 {
    width: 80px;
    height: 80px;
    opacity: 0.3;
  }
  .family-accent-2 {
    width: 40px;
    height: 40px;
    opacity: 0.3;
  }
  .family-accent-3 {
    width: 50px;
    height: 50px;
    opacity: 0.3;
  }
  .family-accent-4 {
    width: 100px;
    height: 100px;
    bottom: 5%;
    opacity: 0.3;
  }
}

/* ==========================================================================
   Discipleship Pathway Section
   ========================================================================== */

.discipleship-pathway-section {
  padding: 50px 0 80px 0;
  margin-bottom: 30px;
  background: var(--color-white);
  color: var(--color-gray-900);
}

/* ── Pathway step progress row ── */
.pathway-steps-row {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  gap: 0;
}

.pathway-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pathway-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.pathway-step__label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gray-900);
  text-transform: uppercase;
}

.pathway-step__arrow {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-accent)
  );
  position: relative;
  margin: 0 12px;
  min-width: 30px;
}

.pathway-step__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--color-accent);
}

/* Ghost number inside each card */
.step-ghost-num {
  position: absolute;
  top: -8px;
  right: 12px;
  font-family: var(--font-heading);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 4;
  letter-spacing: -4px;
}

.discipleship-pathway-header {
  margin-bottom: 40px;
}

.discipleship-pathway-header h2 {
  font-family: var(--font-heading);
  font-size: 54px;
  color: var(--color-primary);
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.discipleship-pathway-header h2:first-child {
  font-weight: 900;
}

.discipleship-pathway-header h2:nth-child(2) {
  font-family: var(--font-heading);
  color: var(--color-accent) !important;
  font-weight: 600;
  font-size: 54px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  padding: 40px 30px;
  border-radius: 8px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.step-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.step-overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 2;
}

.step-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.step-bottom {
  margin-top: auto;
}

.step-bottom p {
  margin-bottom: 15px;
}

.step-large {
  grid-row: span 2;
  grid-column: 3;
}

.step-card.step-large h3 {
  font-size: 3.5rem !important;
  line-height: 1.2;
}

.step-medium {
  min-height: 300px;
}

.step-small {
  min-height: 200px;
  background-color: var(--color-secondary);
}

.step-card p {
  margin-bottom: 25px;
  line-height: 1.6;
  color: var(--color-white);
  position: relative;
  z-index: 3;
}

.step-card h3 {
  font-size: 2rem;
  margin: 20px 0 0 0;
  color: var(--color-white);
  position: relative;
  z-index: 3;
}

.btn-light {
  background: var(--color-white);
  color: var(--color-primary) !important;
}

.btn-light:hover {
  background: var(--color-gray-100);
}

/* Make step cards work as links */
.step-card {
  text-decoration: none;
  color: inherit;
}

a.step-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

a.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Take Your Next Steps Section
   ========================================================================== */

.take-next-steps-section {
  padding: 80px 0;
  margin-bottom: 30px;
  background: var(--color-gray-100);
}

.take-next-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.take-next-steps-image {
  order: 1;
}

.take-next-steps-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.take-next-steps-content {
  order: 2;
}

.take-next-steps-header {
  margin-bottom: 25px;
  display: flex;
  gap: 15px;
  align-items: baseline;
}

.take-next-steps-header h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 54px;
  color: var(--color-primary);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

.take-next-steps-header h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 54px;
  color: var(--color-accent);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

.take-next-steps-subtitle {
  font-family: var(--font-ui);
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-primary);
  margin: 0 0 20px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.take-next-steps-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-gray-900);
  margin-bottom: 30px;
}

/* ==========================================================================
   Events Section
   ========================================================================== */

.events-section {
  padding: 80px 0;
  background: var(--color-white);
}

.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

.section-header h2:first-child {
  color: var(--color-gray-900);
}

.section-header h2:last-child {
  color: var(--color-gray-900);
  font-weight: 400;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.event-card {
  background: var(--color-gray-100);
  border-radius: 8px;
  overflow: hidden;
}

.event-image {
  aspect-ratio: 2/1;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  padding: 25px;
}

.event-content h3 {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-gray-900);
}

.event-label {
  font-family: var(--font-ui);
  color: var(--color-gray-900);
  font-weight: 500;
  line-height: 1;
  margin-right: 2px;
}

.event-date {
  font-family: var(--font-ui);
  color: var(--color-gray-900);
  font-weight: 400;
  line-height: 1;
}

.event-location {
  font-family: var(--font-ui);
  color: var(--color-gray-900);
  font-weight: 400;
  line-height: 1;
}

/* ==========================================================================
   Events Section
   ========================================================================== */

.events-section {
  padding: 100px 0;
  margin-bottom: 30px;
  background: var(--color-white);
}

.events-header {
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.events-header-text {
  display: block;
}

.events-header h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 54px;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.events-header h2:nth-child(2) {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 54px;
}

.all-events-btn {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 30px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  align-self: center;
}

.all-events-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.events-button-wrapper {
  margin-top: 40px;
  text-align: center;
  display: none; /* Hidden on desktop */
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.event-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.event-image {
  width: 100%;
  aspect-ratio: 2/1;
  overflow: hidden;
  position: relative;
}

.event-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-content h3 {
  font-family: var(--font-ui);
  font-size: 20px;
  margin: 0 0 10px 0;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 600;
}

.event-content h3 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-content h3 a:hover {
  color: var(--color-accent);
}

.event-meta-wrapper {
  margin: 0;
}

.event-meta-line {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  line-height: 1;
  font-family: var(--font-ui);
  color: var(--color-gray-900);
  display: flex;
  align-items: center;
  gap: 0;
}

.event-meta-line:last-child {
  margin-bottom: 0;
}

.event-label {
  font-family: var(--font-ui);
  color: var(--color-gray-900);
  font-weight: 500;
  line-height: 1;
  margin-right: 2px;
}

.event-date {
  font-family: var(--font-ui);
  color: var(--color-gray-900);
  font-weight: 400;
  line-height: 1;
}

.event-time {
  font-family: var(--font-ui);
  color: var(--color-gray-900);
  font-weight: 400;
  line-height: 1;
}

.event-location {
  font-family: var(--font-ui);
  color: var(--color-gray-900);
  font-weight: 400;
  line-height: 1;
}

.event-separator {
  color: var(--color-gray-900);
  font-weight: 300;
  margin: 0 5px;
}

/* Event card categories/types badge */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.event-category,
.event-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-gray-100);
  border-radius: 25px;
  font-size: 0.6rem;
  color: var(--color-gray-900);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  font-family: var(--font-ui);
}

.event-category {
  background: var(--color-gray-100);
  color: var(--color-primary);
}

/* No events state */
.no-events {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-gray-900);
  font-size: 1.1rem;
}

.no-events p {
  margin: 0;
}

/* ==========================================================================
   Community Section
   ========================================================================== */

.community-section {
  padding: 80px 0;
  margin-bottom: 30px;
  background: var(--color-primary);
  color: var(--color-white);
}

.community-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.community-content {
  text-align: left;
}

.community-subtitle {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--color-tertiary-cyan);
  text-transform: uppercase;
}

.community-content h2 {
  font-family: var(--font-heading);
  font-size: 54px;
  color: var(--color-white);
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
}

.community-content h2:first-of-type {
  color: var(--color-white);
  font-weight: 900;
}

.community-content h2:last-of-type {
  font-family: var(--font-heading);
  color: var(--color-tertiary-cyan);
  font-weight: 600;
  font-size: 54px;
}

.community-description {
  max-width: 500px;
  margin: 30px 0 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.community-services {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.service-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(90%) sepia(85%) saturate(1458%)
    hue-rotate(140deg) brightness(102%) contrast(101%);
}

.service-item h3 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin: 0;
  font-weight: 600;
  font-family: var(--font-body);
}

/* ==========================================================================
   Latest Sermon Section
   ========================================================================== */

.sermon-section {
  background: var(--color-gray-lightest);
  padding: 100px 0;
  margin-bottom: 30px;
}

.sermon-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.sermon-header {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.sermon-subtitle {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  color: var(--color-accent);
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-accent);
  display: inline-block;
}

.sermon-label {
  font-family: var(--font-heading);
  font-size: 54px;
  color: var(--color-primary);
  margin: 0;
  text-transform: uppercase;
  line-height: 1.1;
}

.sermon-label-first {
  font-family: var(--font-heading);
  font-weight: 900;
}

.sermon-label-second {
  font-family: var(--font-heading);
  font-weight: 600;
}

.sermon-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sermon-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
}

.sermon-image:hover {
  transform: scale(1.02);
}

.sermon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.sermon-image:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.sermon-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sermon-title {
  font-family: var(--font-ui);
  font-size: 24px;
  color: var(--color-navy-darker);
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.sermon-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-gray-700);
  font-size: 1rem;
  font-family: var(--font-ui);
}

.sermon-divider {
  color: var(--color-gray-300);
}

.sermon-description {
  line-height: 1.8;
  color: var(--color-gray-800);
  font-size: 1rem;
  font-family: var(--font-ui);
  margin: 0;
}

.sermon-watch-btn {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 30px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.sermon-watch-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.sermon-button-wrapper {
  margin-top: 30px;
  text-align: center;
  display: none; /* Hidden on desktop */
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .take-next-steps-grid {
    gap: 40px;
  }

  .community-split {
    gap: 50px;
  }

  .community-content h2 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .community-section {
    padding: 50px 0;
    margin-bottom: 20px;
  }

  .community-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .community-content {
    text-align: center;
  }

  .community-subtitle {
    font-size: 0.9rem;
  }

  .community-description {
    margin: 30px auto 0;
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .community-content h2 {
    font-size: 2.2rem;
  }

  .community-content h2:last-of-type {
    font-size: 2.2rem;
  }

  .community-services {
    gap: 20px;
  }

  .service-item {
    padding: 24px;
  }

  .service-item h3 {
    font-size: 1.4rem;
  }

  .sermon-section {
    padding: 50px 0;
    margin-bottom: 20px;
  }

  .sermon-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sermon-header {
    text-align: center;
  }

  .sermon-header .sermon-watch-btn {
    display: none; /* Hide header button on mobile */
  }

  .sermon-label {
    font-size: 2.2rem;
  }

  .sermon-image {
    max-width: 100%;
  }

  .sermon-title {
    font-size: 1.4rem;
  }

  .sermon-meta {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }

  .sermon-divider {
    display: none;
  }

  .sermon-button-wrapper {
    margin-top: 25px;
    display: block; /* Show bottom button on mobile */
  }

  .welcome-section {
    padding: 50px 0;
    margin-bottom: 20px;
  }

  .welcome-header {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 40px;
  }

  .welcome-header h2,
  .welcome-header h3 {
    font-size: 2rem;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .welcome-content p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .welcome-content h2 {
    font-size: 2rem;
  }

  .welcome-content h3 {
    font-size: 1.75rem;
  }

  .discipleship-pathway-section {
    padding: 50px 0;
    margin-bottom: 20px;
  }

  .discipleship-pathway-header h2,
  .discipleship-pathway-header h2:nth-child(2) {
    font-size: 2.2rem;
  }

  .pathway-steps-row {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    justify-content: center;
    align-items: center;
    gap: 20px 10px;
  }

  .pathway-step {
    gap: 8px;
  }

  .pathway-step__num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .pathway-step__label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .pathway-step__arrow {
    min-width: 60px;
    margin: 0;
  }

  /* Grid layout: 
     Row 1: JOIN | arrow | GROW
     Row 2: SERVE | arrow | GO */

  .pathway-steps-row > :nth-child(1) {
    /* Step 1: JOIN */
    grid-column: 1;
    grid-row: 1;
  }

  .pathway-steps-row > :nth-child(2) {
    /* Arrow 1 */
    grid-column: 2;
    grid-row: 1;
  }

  .pathway-steps-row > :nth-child(3) {
    /* Step 2: GROW */
    grid-column: 3;
    grid-row: 1;
  }

  .pathway-steps-row > :nth-child(4) {
    /* Arrow 2 - hide it */
    display: none;
  }

  .pathway-steps-row > :nth-child(5) {
    /* Step 3: SERVE */
    grid-column: 1;
    grid-row: 2;
  }

  .pathway-steps-row > :nth-child(6) {
    /* Arrow 3 */
    grid-column: 2;
    grid-row: 2;
  }

  .pathway-steps-row > :nth-child(7) {
    /* Step 4: GO */
    grid-column: 3;
    grid-row: 2;
  }

  .take-next-steps-section {
    padding: 50px 0;
    margin-bottom: 20px;
  }

  .take-next-steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .take-next-steps-image {
    order: 1;
  }

  .take-next-steps-content {
    order: 2;
  }

  .take-next-steps-header {
    flex-direction: column;
    gap: 4px;
  }

  .take-next-steps-header h2,
  .take-next-steps-header h3 {
    font-size: 2.2rem;
  }

  .take-next-steps-description {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-card {
    grid-row: span 1;
    grid-column: auto;
    min-height: 320px;
  }

  .step-large {
    min-height: 400px;
  }

  /* Order cards by their step number: Join(1), Grow(2), Serve(3), Go(4) */
  .steps-grid > :nth-child(3) {
    /* Join Our Gathering - Step 1 */
    order: 1;
  }

  .steps-grid > :nth-child(2) {
    /* Grow Your Faith - Step 2 */
    order: 2;
  }

  .steps-grid > :nth-child(4) {
    /* Serve Others - Step 3 */
    order: 3;
  }

  .steps-grid > :nth-child(5) {
    /* Go to the World - Step 4 */
    order: 4;
  }

  .step-small {
    display: none;
  }

  .events-section {
    padding: 50px 0;
    margin-bottom: 20px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-card {
    margin-bottom: 0;
  }

  .events-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .events-header .all-events-btn {
    display: none; /* Hide header button on mobile */
  }

  .events-header h2,
  .events-header h2:nth-child(2) {
    font-size: 2.2rem;
  }

  .events-button-wrapper {
    margin-top: 30px;
    display: block; /* Show bottom button on mobile */
  }

  .event-image {
    height: 200px;
  }

  .event-content {
    padding: 25px;
  }

  .event-content h3 {
    font-size: 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .community-header h2 {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-actions {
    gap: 20px;
  }

  .hero-countdown__timer {
    gap: 10px;
  }

  .countdown-value {
    font-size: 20px;
    min-width: 32px;
  }

  .countdown-label {
    font-size: 9px;
  }

  .discipleship-pathway-header h2,
  .discipleship-pathway-header h2:nth-child(2) {
    font-size: 2rem;
  }

  .take-next-steps-header {
    gap: 2px;
  }

  .take-next-steps-header h2,
  .take-next-steps-header h3 {
    font-size: 2rem;
  }

  .take-next-steps-description {
    font-size: 16px;
  }

  .step-card {
    padding: 30px 20px;
  }

  .step-card h3 {
    font-size: 1.5rem;
  }

  .events-header h2,
  .events-header h2:nth-child(2) {
    font-size: 1.8rem;
  }

  .community-content h2 {
    font-size: 1.8rem;
  }

  .community-content h2:last-of-type {
    font-size: 1.8rem;
  }

  .event-content h3 {
    font-size: 20px;
  }

  .event-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================
   Identity Strip — Three Panels (Option C — rotateX swap)
   ================================================ */
.identity-strip-section {
  padding: 0 0 80px 0;
  margin-bottom: 30px;
}

.identity-strip {
  display: flex;
  width: 100%;
}

.identity-panel {
  position: relative;
  flex: 1;
  height: 460px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  cursor: default;
  perspective: 600px;
}

/* Background image */
.identity-panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.identity-panel:hover .identity-panel__bg {
  transform: scale(1.03);
}

/* Overlay — deepens on hover */
.identity-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 28, 0.92) 0%,
    rgba(10, 10, 28, 0.35) 55%,
    rgba(10, 10, 28, 0.08) 100%
  );
  transition: background 0.5s ease;
  z-index: 1;
}

.identity-panel:hover .identity-panel__overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* Content wrapper */
.identity-panel__content {
  position: relative;
  z-index: 2;
  padding: 36px 32px;
  width: 100%;
  transform-style: preserve-3d;
}

/* Title — visible at rest, flips out on hover */
.identity-panel__title {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
  transform-origin: bottom center;
  transform: rotateX(0deg);
  opacity: 1;
  transition:
    transform 0.28s cubic-bezier(0.55, 0, 1, 0.45),
    opacity 0.2s ease;
  backface-visibility: hidden;
}

.identity-panel:hover .identity-panel__title {
  transform: rotateX(90deg);
  opacity: 0;
}

/* Description — hidden and flipped back at rest, snaps in on hover */
.identity-panel__desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  position: absolute;
  bottom: 36px;
  left: 32px;
  right: 32px;
  transform-origin: top center;
  transform: rotateX(-90deg);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0, 0.55, 0.45, 1) 0.18s,
    opacity 0.25s ease 0.18s;
  backface-visibility: hidden;
}

.identity-panel:hover .identity-panel__desc {
  transform: rotateX(0deg);
  opacity: 1;
}

/* Dividers between panels */
.identity-panel + .identity-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobile: stack vertically, tap to reveal description */
@media (max-width: 768px) {
  .identity-strip-section {
    padding: 0 0 50px 0;
    margin-bottom: 20px;
  }

  .identity-strip {
    flex-direction: column;
  }
  .identity-panel {
    height: auto;
    min-height: 260px;
  }
  .identity-panel + .identity-panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Default: title visible, desc hidden */
  .identity-panel__title {
    transform: rotateX(0deg);
    opacity: 1;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
  }
  .identity-panel__desc {
    position: static;
    transform: rotateX(0deg);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      opacity 0.25s ease,
      max-height 0.3s ease;
    margin-top: 0;
  }

  /* Tapped: desc visible, title hidden */
  .identity-panel.is-tapped .identity-panel__title {
    transform: rotateX(90deg);
    opacity: 0;
  }
  .identity-panel.is-tapped .identity-panel__desc {
    opacity: 1;
    max-height: 200px;
    margin-top: 10px;
  }

  /* Visual cue: subtle bottom border to hint tappable */
  .identity-panel__content::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    margin-top: 14px;
    transition: width 0.3s ease;
  }
  .identity-panel.is-tapped .identity-panel__content::after {
    width: 0;
  }
}
