/*
 * BURNING BUSH GLOBAL - SCOPED HOMEPAGE STYLES
 * File: /assets/css/scoped-home.css
 * All selectors are prefixed with .homepage to avoid conflicts.
 */

.homepage .section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}
.homepage .section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}
.homepage .text-center {
  text-align: center;
}

/* 1. HERO SLIDER */
.homepage .hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  color: var(--color-white);
}
.homepage .hero-slider__wrapper {
  width: 100%;
  height: 100%;
}
.homepage .hero-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}
.homepage .hero-slider__slide.active {
  opacity: 1;
  z-index: 1;
}
.homepage .hero-slider__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(20, 20, 20, 0.7) 0%,
    rgba(20, 20, 20, 0.3) 100%
  );
}
.homepage .hero-slider__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeIn 1.5s ease-out;
}
.homepage .hero-slider__content h1,
.homepage .hero-slider__content h2 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.homepage .hero-slider__content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.homepage .hero-slider__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}
.homepage .hero-slider__arrow {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  pointer-events: all;
}
.homepage .hero-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}
.homepage .hero-slider__nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.75rem;
}
.homepage .hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.homepage .hero-slider__dot.active {
  background: var(--color-white);
  transform: scale(1.2);
}

/* 2. IMPACT STATS */
.homepage .impact-stats {
  background-color: var(--color-bg-light);
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}
.homepage .impact-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.homepage .impact-stats__item {
  text-align: center;
}
.homepage .impact-stats__number {
  font-size: 3rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  display: block;
}
.homepage .impact-stats__label {
  font-size: 1rem;
  color: var(--color-text-light);
}

/* 3. MISSION & VISION */
.homepage .mission-vision {
  padding: 6rem 0;
}

.homepage .mission-vision .section-title {
  margin-top: 0 !important;
}

.homepage .mission-vision__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.homepage .mission-vision__image-col img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.homepage .mission-vision__scripture {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* 4. GLOBAL PRAYER CAMPS */
.homepage .camps-showcase {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 6rem 0;
}
.homepage .camps-showcase .section-title {
  color: var(--color-white);
}
.homepage .camps-showcase .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}
.homepage .camps-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.homepage .camps-showcase__item {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
}
.homepage .camps-showcase__item:hover {
  background-color: var(--color-primary);
  transform: translateY(-5px);
}
.homepage .camps-showcase__item .fi {
  font-size: 1.5rem;
}

/* 5. PRAYER COUNTDOWN */
.homepage .prayer-countdown {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://burningbushglobal.com/wp-content/uploads/2025/10/elissa-garcia-sQUmDRqY8SA-unsplash.jpg")
      center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 0;
}
.homepage .prayer-countdown__timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem 0;
}
.homepage .prayer-countdown__box {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  min-width: 100px;
}
.homepage .prayer-countdown__time {
  display: block;
  font-size: 3rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  /* START: ADD THESE TO FIX JIGGLE */
  min-width: 60px; /* Gives the number a stable width */
  font-variant-numeric: tabular-nums; /* Makes numbers equal width */
  /* END: ADD THESE */
}
/* .homepage .prayer-countdown__time {
  display: block;
  font-size: 3rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
} */
.homepage .prayer-countdown__label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 6. EVENTS CAROUSEL */
.homepage .events-carousel {
  padding: 6rem 1rem;
  overflow: hidden;
}
/* START: ADD THIS NEW RULE */
.homepage .events-carousel__header {
  /* On mobile, stack the title and button */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align title and button to the left */
  gap: 1rem; /* Space between title and button */
  margin-bottom: 2rem;
}
.homepage .events-carousel__wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem var(--container-padding);
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.homepage .events-carousel__wrapper::-webkit-scrollbar {
  display: none;
}
.homepage .events-carousel__card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.homepage .events-carousel__card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.homepage .events-carousel__card-content {
  padding: 1.5rem;
}
.homepage .events-carousel__card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* And change it to this */
.homepage .resource-highlights__grid {
  display: grid;
  /* It will be 1 column on mobile by default */
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 7. TESTIMONIALS */
.homepage .testimonials {
  background-color: var(--color-bg-light);
  padding: 6rem 0;
}
.homepage .testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.homepage .testimonials__card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-secondary);
}
.homepage .testimonials__author {
  font-weight: var(--font-weight-semibold);
  margin-top: 1.5rem;
}

/* 9. GET INVOLVED */
.homepage .get-involved {
  padding: 6rem 0;
}
.homepage .get-involved__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.homepage .get-involved__card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
}
.homepage .get-involved__card--primary {
  background: var(--color-primary);
  color: white;
  border: none;
  transform: scale(1.05);
}
.homepage .get-involved__card--primary h3 {
  color: white;
}
.homepage .get-involved__card--primary .btn {
  background: white;
  color: var(--color-primary);
}

/* 10. STORE PREVIEW */
.homepage .store-preview {
  background-color: var(--color-bg-light);
  padding: 6rem 0;
}
.homepage .store-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.homepage .store-preview__product img {
  border-radius: 8px;
}
.homepage .store-preview__product h4 {
  margin: 1rem 0 0.25rem 0;
}

/* 11. HELPLINE */
.homepage .helpline {
  background-color: var(--color-accent);
  color: var(--color-dark);
  padding: 4rem 0;
}
.homepage .helpline__number {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  margin: 1rem 0;
  letter-spacing: 2px;
}
.homepage .helpline__badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: var(--font-weight-semibold);
}

/* RESPONSIVE STYLES */
@media (min-width: 768px) {
  .homepage .mission-vision__grid {
    grid-template-columns: 1fr 1fr;
  }
  .homepage .get-involved__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .homepage .get-involved__card--primary {
    transform: scale(1.1);
  }
  .homepage .helpline__number {
    font-size: 3.5rem;
  }

  .homepage .resource-highlights__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* REPLACE the old .events-carousel__header rule with this block */

  .homepage .events-carousel__header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally centers the items in a column layout */
    gap: 1.5rem; /* A bit more space */
    margin-bottom: 3rem;
  }

  .homepage .events-carousel__header .section-title {
    text-align: center; /* Ensures the text itself is centered */
  }
}
@media (min-width: 1024px) {
  .homepage .hero-slider__content h1,
  .homepage .hero-slider__content h2 {
    font-size: 4.5rem;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* START: NEW MEDIA QUERY for Countdown Responsiveness */
@media (max-width: 767px) {
  .homepage .prayer-countdown__timer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* END: NEW MEDIA QUERY */
