/* ==========================================================================
   HOMEPAGE COMPLETE - All Homepage Styles Combined & Optimized
   ========================================================================== */

/* ==========================================================================
   1. HOMEPAGE GENERAL SETTINGS
   ========================================================================== */

body#pages-home main {
  padding-top: 74px;
}

/* ==========================================================================
   2. HOME HERO SECTION - SWIPER CAROUSEL
   ========================================================================== */

.home-hero-swiper {
  position: relative;
  width: 100%;
}

.swiper-slide {
  pointer-events: none;
}

.swiper-slide-active {
  pointer-events: auto;
}

/* Hero Container */
.home-hero-container {
  position: relative;
  min-height: clamp(400px, 60vh, 600px);
  background-color: #000;
  overflow: hidden;
  cursor: pointer;
}

.home-hero-container iframe {
  transition: opacity 500ms ease-in-out;
  transition-delay: 250ms;
  opacity: 0.5;
  z-index: -10;
}

/* Hero Media Background */
.home-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  animation: ken-burns 20s infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes ken-burns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Background Position Variations - Desktop */
.bg-pos-left {
  background-position: left center;
}

.bg-pos-center {
  background-position: center center;
}

.bg-pos-right {
  background-position: right center;
}

/* Hero Video */
.home-hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ==========================================================================
   3. HOME HERO MASK (Gradient Overlays)
   ========================================================================== */

.home-hero-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Desktop Mask - Horizontal gradient */
@media (min-width: 768px) {
  .home-hero-mask {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      transparent 100%
    );
  }
}

/* Mobile Mask - Vertical gradient */
@media (max-width: 767px) {
  .home-hero-mask {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%
    );
  }
}

/* ==========================================================================
   4. HOME HERO CONTENT
   ========================================================================== */

.home-hero-content {
  position: absolute;
  z-index: 2;
  padding: 2rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.home-hero-content h1,
.home-hero-content h4 {
  margin: 0;
  pointer-events: none;
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

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

.home-hero-content h1 {
  line-height: 1.1;
}

.home-hero-content h4 {
  line-height: 1.2;
  font-weight: 400;
}

/* ==========================================================================
   5. HOME HERO BUTTONS
   ========================================================================== */

.home-hero-buttons {
  position: relative;
  z-index: 15;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.home-hero-buttons a,
.home-hero-buttons .btn {
  position: relative;
  z-index: 16;
  pointer-events: auto;
  border-radius: none !important;
  margin: 0;
  font-weight: 700;
}

/* Clickable Slide Link */
.home-hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto;
}

.home-hero-slide-link:hover {
  text-decoration: none !important;
}

/* ==========================================================================
   6. HOME HERO CAROUSEL CONTROLS
   ========================================================================== */

.carousel-indicators {
  justify-content: flex-start !important;
}

.carousel-indicators li {
  width: 5rem;
  margin-right: 6px;
  margin-left: 6px;
}

.carousel-control-prev,
.carousel-control-next {
  background-color: transparent !important;
}

/* ==========================================================================
   7. HOME SECTIONS - BACKGROUNDS
   ========================================================================== */

.home-highlights-section {
  background-color: #F7FCFF;
}

.home-highlights-section .rounded-circle {
  background-color: #fff;
  color: #1C4976;
  width: 140px;
  height: 140px;
  font-size: 70px;
}

.home-slideshow,
.home-subscribers-section,
.home-donate-section {
  background-color: #F9F9E9;
}

.home-join-section {
  background: url('/img/join.webp') center center;
  background-size: cover;
  height: 300px;
}

.home-donate-section {
  background-image: url('/img/donate/bg-cow.webp');
  background-repeat: no-repeat;
  background-position: center top;
}

/* ==========================================================================
   8. HOME SUBSCRIPTION WIDGET
   ========================================================================== */

.subscription-widget .card {
  top: 1rem;
  background-color: var(--bg-orangewhite);
  margin-bottom: 0;
  border-width: 8px;
}

.subscription-widget h2 {
  font-size: 2.2rem;
}

.subscription-widget .typed-text {
  font-weight: 700;
}

.subscription-widget {
  position: relative;
  z-index: 100;
}

.subscription-widget .card {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefc1 100%);
  border: none;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
  .subscription-widget .card {
    top: 0;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .subscription-widget .card {
    top: -15rem;
    margin-bottom: -15rem;
  }
  .subscription-widget.type-simple .card {
    top: -12rem;
    margin-bottom: -12rem;
  }
}

/* ==========================================================================
   10. RESPONSIVE - MOBILE EXTRA SMALL (< 576px)
   ========================================================================== */

@media (max-width: 576px) {
  /* Hero adjustments */
  .home-hero-container {
    margin-top: -60px;
  }

  .home-hero-content {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    height: auto !important;
    transform: none !important;
    text-align: center;
    align-items: center;
    justify-content: center !important;
    padding: 0 2.2rem 2.8rem;
    align-content: flex-end !important;
    margin-bottom: 1rem;
  }

  .home-hero-content h1 {
    font-size: 2.2rem;
  }

  .home-hero-content h4 {
    font-size: 0.9rem;
  }

  .home-hero-buttons {
    display: none;
    justify-content: center;
  }

  .home-hero-buttons .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }

  /* Background positioning */
  .bg-pos-mobile-left {
    background-position: left center !important;
  }

  .bg-pos-mobile-center {
    background-position: center center !important;
  }

  .bg-pos-mobile-right {
    background-position: 70% center !important;
  }

  .home-hero-media {
    background-size: cover !important;
    background-size: auto 65%;
    background-position: right -80px top;
  }

  .home-hero-video iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
  }

  /* Sections */
  .home-post-section {
    padding: auto 2rem;
  }

}

/* ==========================================================================
   11. RESPONSIVE - MOBILE SMALL (576px - 767px)
   ========================================================================== */

@media (min-width: 576px) {
  .home-hero-content h1 {
    font-size: 2.6rem;
  }

  .home-hero-content h4 {
    font-size: 1rem;
  }

  .home-hero-buttons .btn {
    padding: 0.3rem 0.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .home-hero-content {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    text-align: center;
    align-items: center;
    justify-content: center !important;
    width: 100%;
    height: auto !important;
    margin-bottom: 1rem;
  }

  .home-hero-buttons {
    display: none;
    justify-content: center;
  }
}

/* ==========================================================================
   12. RESPONSIVE - TABLET (768px - 991px)
   ========================================================================== */

@media (min-width: 768px) {
  /* Hero dimensions */
  .home-hero-container,
  .home-hero-media,
  .home-hero-content {
    height: 500px !important;
  }

  /* Hero content positioning */
  .home-hero-content {
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    align-items: flex-start;
    max-width: 50%;
  }

  .home-hero-content h1 {
    font-size: 3rem;
  }

  .home-hero-content h4 {
    font-size: 1.1rem;
  }

  /* Carousel */
  .carousel-indicators {
    justify-content: flex-start !important;
  }

}

/* ==========================================================================
   13. RESPONSIVE - DESKTOP SMALL (992px - 1199px)
   ========================================================================== */

@media (min-width: 992px) {
  .home-hero-content {
    width: 50%;
    left: 5rem;
  }

  .home-hero-content h1 {
    font-size: 3.5rem;
  }

  .home-hero-content h4 {
    font-size: 1.4rem;
  }

  .home-hero-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   14. RESPONSIVE - DESKTOP LARGE (1200px+)
   ========================================================================== */

@media (min-width: 1200px) {
  .home-hero-container,
  .home-hero-media,
  .home-hero-content {
    height: 600px !important;
  }

  .home-hero-content h1 {
    font-size: 4.5rem;
  }

  .home-hero-content h4 {
    font-size: 1.4rem;
  }
}


/* Otros */

body#pages-home header .logo img {
  width: auto;
  height: 5rem;
}

.home-highlights-section .rounded-circle {
  background-color: var(--color-white);
  color: #1C4976;
  width: 140px;
  height: 140px;
  font-size: 70px;
}

@media (min-width: 576px) {
  .home-hero-content h1 { font-size: 2.6rem; }
  .home-hero-content h4 { font-size: 1rem; }
  .home-hero-buttons .btn { padding: 0.3rem 0.8rem; font-size: 1rem; }
}

@media (min-width: 768px) {
  .home-hero-container,
  .home-hero-media,
  .home-hero-content { height: 500px !important; }
  
  .home-hero-content { left: 3rem; }
  .home-hero-content h1 { font-size: 3rem; }
  .home-hero-content h4 { font-size: 1.1rem; }
  
  .carousel-indicators {
    justify-content: flex-start !important;
  }
}

@media (min-width: 992px) {
  .home-hero-content { width: 50%; left: 5rem; }
  .home-hero-content h1 { font-size: 3.5rem; }
  .home-hero-content h4 { font-size: 1.4rem; }
  .home-hero-buttons .btn { padding: 0.5rem 1rem; font-size: 1.25rem; }
}

@media (min-width: 1200px) {
  .home-hero-container,
  .home-hero-media,
  .home-hero-content { height: 600px !important; }
  
  .home-hero-content h1 { font-size: 4.5rem; }
  .home-hero-content h4 { font-size: 1.4rem; }
}

@media (max-width: 576px) {
  .home-hero-container { margin-top: -60px; }
  
  .home-hero-content {
    width: 100%;
    left: 0;
    padding: 0 2.2rem 2.8rem;
    align-content: flex-end !important;
  }
  
  .home-hero-content h1 { font-size: 2.2rem; }
  .home-hero-content h4 { font-size: 0.9rem; }
  
  .home-hero-buttons .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }
  
  .home-hero-media {
    background-size: auto 65%;
    background-position: right -80px top;
  }
  
  .home-post-section { padding: auto 2rem; }
}