/* ===== Causes Page Styles ===== */

/* Hero Banner */
.causes-hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.causes-hero > .causes-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 27, 46, 0.88) 0%, rgba(45, 46, 74, 0.92) 100%);
  z-index: 0;
}

.causes-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(242, 101, 34, 0.07),
    transparent 70%
  );
  border-radius: 50%;
}

.causes-hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(242, 101, 34, 0.04),
    transparent 70%
  );
  border-radius: 50%;
}

.causes-hero > .container {
  position: relative;
  z-index: 1;
}

.causes-hero .hero-label {
  display: inline-block;
  background: rgba(242, 101, 34, 0.15);
  color: #f26522;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(242, 101, 34, 0.2);
}

.causes-hero h2 {
  color: #fff;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1.3;
}

.causes-hero p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Stat Bar */
.stat-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 25px 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-bar .stat-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.stat-bar .stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-bar .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #f26522;
  line-height: 1;
}

.stat-bar .stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* Causes Grid */
.causes-grid {
  padding: 70px 0 80px;
  background: #f8f9fb;
}

/* Cause Card — Image-based 3-per-row */
.cause-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  height: 100%;
  text-decoration: none !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cause-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.cause-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.cause-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cause-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

/* Tag on Image */
.cause-card .card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #f26522;
  color: #fff;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
  z-index: 2;
}

.cause-card .card-tag i {
  font-size: 0.7rem;
}

/* Card Content */
.cause-card .card-content {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cause-card .card-content h5 {
  color: #1a1b2e;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 12px;
  line-height: 1.3;
  transition: color 0.3s;
}

.cause-card:hover .card-content h5 {
  color: #f26522;
}

.cause-card .card-content p {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* CTA Section */
.causes-cta {
  background: linear-gradient(135deg, #f26522 0%, #e05515 50%, #d4541a 100%);
  padding: 65px 0;
  position: relative;
  overflow: hidden;
}

.causes-cta::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.causes-cta .cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #f26522;
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.causes-cta .cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  color: #f26522;
  text-decoration: none;
}

.causes-cta .cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
  margin-left: 12px;
}

.causes-cta .cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 991px) {
  .causes-hero h2 {
    font-size: 1.8rem;
  }

  .stat-bar {
    max-width: 100%;
  }

  .stat-bar .stat-num {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .causes-hero {
    padding: 50px 0;
  }

  .causes-hero h2 {
    font-size: 1.5rem;
  }

  .causes-grid {
    padding: 50px 0;
  }

  .causes-cta .cta-btn-primary,
  .causes-cta .cta-btn-secondary {
    padding: 13px 26px;
    font-size: 0.85rem;
  }

  .causes-cta .cta-btn-secondary {
    margin-left: 0;
    margin-top: 12px;
  }
}
