/*
 * File: public\css\church\affiliates.css
 * Purpose: Defines presentation styles for the affiliates interface.
 */

.community-overlay {
  background: rgba(30, 42, 87, 0.85);
  flex-direction: column;
  text-align: center;
}

.community-overlay h1 {
  font-size: 50px;
}

.community-content h2 {
  color: #000;
  font-size: 36px;
  margin-bottom: 20px;
}

.community-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 60px;
}

/* =============================
   AFFILIATES GRID
============================= */
.affiliates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-content: center; /* [OK] centers last row if not full */
  justify-items: center;
}

.affiliate-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px 25px 40px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  min-height: 360px; /* [OK] ensures all boxes same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.affiliate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.affiliate-logo img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.affiliate-card p {
  font-size: 17px;
  font-weight: 600;
  color: #1e2a57;
  margin-bottom: 20px;
}

/* =============================
   BUTTON (MATCH EXPAND ALL)
============================= */
.visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1e2a57 !important;
  color: white !important;
  border: 2px solid #1e2a57 !important;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px; /* [OK] longer button */
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%; /* [OK] full-width look */
  max-width: 260px; /* keeps it balanced */
  margin: 0 auto;
}

.visit-btn:hover {
  background: white !important;
  color: #1e2a57 !important;
  border-color: #1e2a57 !important;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(30, 42, 87, 0.35);
}

.external-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.visit-btn:hover .external-icon {
  filter: none;
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 950px) {
  .community-overlay h1 {
    font-size: 40px;
  }

  .community-content h2 {
    font-size: 30px;
  }

  .affiliate-logo img {
    height: 80px;
  }

  .affiliate-card {
    min-height: 340px;
  }
}
