.container.page-shell {
  max-width: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

.home-intro {
  padding-top: 0.85rem;
  padding-bottom: 1.5rem;
}

.home-intro .lead {
  margin-bottom: 1.2rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.38rem;
  color: #2f3944;
  line-height: 1.75;
}

.home-intro p {
  margin-bottom: 1.2rem;
  color: #3e4a55;
}

.home-featured-grid .memory-card {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.home-cta {
  margin-top: 2.5rem;
  gap: 1.5rem;
}

.home-cta .btn {
  font-size: 1.15rem;
  padding: 0.85rem 1.8rem;
}

.home-cta .btn-outline-secondary {
  box-shadow: 0 6px 16px rgba(58, 74, 86, 0.12);
}

.home-hero-carousel {
  position: relative;
  margin-top: 4rem;
  border: 1px solid rgba(184, 192, 199, 0.6);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(58, 74, 86, 0.08);
}

.home-hero-carousel .carousel-indicators {
  margin-bottom: 1.5rem;
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
  width: 6%;
}

.home-hero-carousel .carousel-control-prev-icon,
.home-hero-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 4px 10px rgba(58, 74, 86, 0.45));
  background-color: rgba(20, 26, 32, 0.6);
  border-radius: 50%;
}

.home-hero-carousel .carousel-item {
  transition: transform 0.7s ease;
}

.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 2rem;
  overflow: hidden;
  animation: heroReveal 0.8s ease both;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 12px;
}

.hero-background picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  border-radius: 12px;
  transition: transform 0.45s ease;
}

.home-hero-carousel .carousel-item:hover .hero-background img {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(184, 192, 199, 0.18), rgba(184, 192, 199, 0.18)),
    linear-gradient(135deg, rgba(248, 248, 245, 0.4) 0%, rgba(238, 234, 228, 0.35) 100%);
  z-index: 2;
}

.home-hero-carousel .carousel-item:nth-child(1) .hero-overlay {
  background:
    linear-gradient(0deg, rgba(184, 192, 199, 0.1), rgba(184, 192, 199, 0.1)),
    linear-gradient(135deg, rgba(248, 248, 245, 0.25) 0%, rgba(238, 234, 228, 0.2) 100%);
}

.home-hero-carousel .carousel-item:nth-child(3) .hero-overlay {
  background:
    linear-gradient(0deg, rgba(184, 192, 199, 0.08), rgba(184, 192, 199, 0.08)),
    linear-gradient(135deg, rgba(236, 233, 228, 0.22) 0%, rgba(230, 224, 218, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  background: rgba(243, 246, 249, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.home-hero-carousel .carousel-item:nth-child(1) .hero-content {
  transform: translateY(-68px);
  background: rgba(243, 246, 249, 0.2);
}

.home-hero-carousel .carousel-item:nth-child(3) .hero-content {
  transform: translateY(-68px);
  background: rgba(243, 246, 249, 0.32);
}

.hero-content p {
  margin: 0;
  font-size: 1.1rem;
  color: #3a4855;
  text-align: justify;
  line-height: 1.9;
}

.hero-content h2 {
  margin-bottom: 1.6rem;
  color: #5a6b7a;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-content-center p {
  text-align: center;
}

.hero-content .quote-author {
  text-align: right;
  font-size: 1rem;
  color: #5a6b7a;
  letter-spacing: 0.02em;
}

.hero-content .quote-author span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-content .quote-author span::after {
  content: "";
  width: 36px;
  height: 1px;
  background: rgba(74, 92, 106, 0.55);
}

.hero-section.is-emphasis .hero-content p {
  font-size: 1.32rem;
  color: #3a4a56;
  font-weight: 500;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background img {
    transition: none;
  }

  .home-hero-carousel .carousel-item:hover .hero-background img {
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 480px;
    padding: 3.5rem 1.75rem;
  }

  .hero-content {
    padding: 1rem 1.5rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .hero-section.is-emphasis .hero-content p {
    font-size: 1.15rem;
  }
}

@media (max-width: 767px) {
  .container.page-shell {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .home-intro {
    padding-top: 0.3rem;
  }

  .home-intro .lead {
    font-size: 1.12rem;
    line-height: 1.65;
  }

  .home-cta {
    gap: 0.75rem;
    margin-top: 1.4rem;
  }

  .home-cta .btn {
    max-width: 100%;
    padding: 0.72rem 1.35rem;
    font-size: 1rem;
  }

  .home-hero-carousel {
    margin-top: 2.4rem;
    border-radius: 18px;
  }

  .home-hero-carousel .carousel-control-prev,
  .home-hero-carousel .carousel-control-next {
    width: 12%;
  }

  .hero-section {
    min-height: min(72vh, 560px);
    padding: 2.2rem 1rem 3.5rem;
  }

  .hero-background img {
    object-position: center;
  }

  .hero-content {
    max-width: calc(100% - 1rem);
    padding: 1rem 1.1rem;
    border-radius: 16px;
  }

  .home-hero-carousel .carousel-item:nth-child(1) .hero-content,
  .home-hero-carousel .carousel-item:nth-child(3) .hero-content {
    transform: none;
  }

  .hero-content p {
    font-size: 0.98rem;
    line-height: 1.68;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .hero-content .quote-author {
    font-size: 0.9rem;
    text-align: center;
  }

  .hero-content .quote-author span::after {
    display: none;
  }

  .hero-section.is-emphasis .hero-content p {
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .hero-section {
    min-height: min(76vh, 540px);
    padding: 1.8rem 0.8rem 3.4rem;
  }

  .hero-content {
    max-width: calc(100% - 0.75rem);
    padding: 0.9rem 1rem;
  }

  .hero-content p {
    font-size: 0.94rem;
    line-height: 1.58;
  }
}
