/* ==========================================================================
   Rugando Community Foundation — Complete Hero Stylesheet
   File: assets/css/hero.css
   ========================================================================== */

.rcf-hero-wrapper {
  position: relative;
  padding-bottom: 48px;
}

.rcf-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #1a2820;
}

.rcf-slides-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.rcf-slide {
  position: relative;
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  min-height: 520px;
  background-color: #26382d;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 60px 0 96px;
}

.rcf-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 24, 18, 0.84) 0%,
    rgba(13, 24, 18, 0.58) 58%,
    rgba(13, 24, 18, 0.34) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.rcf-slide > .rcf-container {
  position: relative;
  z-index: 2;
}

.rcf-hero-content {
  max-width: 740px;
  color: #ffffff;
}

.rcf-pill {
  display: inline-block;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f3f9f5;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.rcf-hero-content h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  overflow-wrap: break-word;
}

.rcf-subheadline {
  margin: 0 0 28px;
  max-width: 620px;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

.rcf-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.rcf-btn-white,
.rcf-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.rcf-btn-white {
  background-color: #ffffff;
  color: var(--rcf-green-dark, #166534);
  font-weight: 700;
}

.rcf-btn-white:hover {
  background-color: var(--rcf-green-soft, #dcfce7);
  transform: translateY(-1px);
}

.rcf-btn-outline {
  background-color: rgba(24, 34, 28, 0.45);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.rcf-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}

/* Previous / Next Controls */
.rcf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: rgba(18, 28, 22, 0.55);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.rcf-arrow:hover {
  background-color: var(--rcf-green, #15803d);
}

.rcf-arrow.prev {
  left: 18px;
}

.rcf-arrow.next {
  right: 18px;
}

/* Pagination Dots */
.rcf-dots {
  position: absolute;
  bottom: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.rcf-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.rcf-dot.active {
  width: 26px;
  background-color: #ffffff;
}

/* Trust Strip Card */
.rcf-trust-strip {
  position: relative;
  z-index: 10;
  margin-top: -46px;
  background-color: var(--rcf-surface, #ffffff);
  border: 1px solid var(--rcf-border, #e2e8e4);
  border-radius: var(--rcf-radius, 14px);
  box-shadow: var(--rcf-shadow, 0 12px 32px rgba(15, 23, 42, 0.08));
  padding: 20px 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--rcf-text, #18221c);
}

@media (max-width: 768px) {
  .rcf-hero-wrapper {
    padding-bottom: 24px;
  }

  .rcf-slide {
    min-height: 440px;
    padding: 38px 0 76px;
  }

  .rcf-slide::before {
    background: linear-gradient(
      180deg,
      rgba(13, 24, 18, 0.74) 0%,
      rgba(13, 24, 18, 0.88) 100%
    );
  }

  .rcf-arrow {
    display: none;
  }

  .rcf-dots {
    bottom: 20px;
  }

  .rcf-hero-buttons {
    flex-direction: column;
  }

  .rcf-btn-white,
  .rcf-btn-outline {
    width: 100%;
  }

  .rcf-trust-strip {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 18px;
  }
}