/* WDIGC Premium Testimonies Page Styling */

/* Page Hero */
.testimonies-hero {
  background: linear-gradient(135deg, var(--obsidian-dark), var(--obsidian));
  color: var(--white);
  padding: 160px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonies-hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(234, 28, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.testimonies-hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.testimonies-hero p {
  font-size: 1.1rem;
  color: var(--muted-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filter & Search Panel Bar */
.filter-panel {
  margin-top: -36px;
  position: relative;
  z-index: 15;
  padding-bottom: 20px;
}

.filter-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 16px 20px 16px 52px;
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink);
  outline: none;
  transition: all var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(234, 28, 36, 0.08);
}

/* Category Tabs */
.category-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0;
  width: 100%;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.tab-btn:hover {
  background: var(--white);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(234, 28, 36, 0.2);
}

.scroll-arrow {
  background: var(--white);
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  color: var(--ink);
  flex-shrink: 0;
}

.scroll-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--soft);
}

/* Testimonies Grid Layout */
.testimonies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.testimony-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition);
}

.testimony-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.testimony-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--line);
  transition: all var(--transition);
}

.testimony-card:hover::before {
  background: var(--accent);
  width: 6px;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar-chip {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(234, 28, 36, 0.08);
  color: var(--accent);
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-family: var(--heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.user-location {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-badge {
  background: rgba(234, 28, 36, 0.05);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.scripture-tag {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.testimony-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  flex-grow: 1;
}

/* Bottom Submit CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal), var(--obsidian-dark));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(234, 28, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-desc {
  color: var(--muted-light);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Modals & Submissions Forms */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.modal-title-text {
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.modal-desc-text {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  right: 24px;
  top: 24px;
  background: var(--soft);
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

/* Modal form controls */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.form-control {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.92rem;
  outline: none;
  background: var(--white);
  transition: border-color var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 24px;
}

.consent-checkbox {
  margin-top: 4px;
  accent-color: var(--accent);
}

.consent-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Giving Modal override styling */
.giving-modal-content {
  background: linear-gradient(135deg, var(--charcoal), var(--obsidian-dark)) !important;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.giving-modal-content .modal-title {
  color: var(--white) !important;
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-close-giving {
  position: absolute;
  right: 24px;
  top: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted-light);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close-giving:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.bank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

/* Dynamic Scroll to Top circular button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  font-size: 1.2rem;
  font-weight: 700;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(234, 28, 36, 0.2);
}

/* Responsiveness adjustments */
@media (max-width: 980px) {
  .testimonies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .testimonies-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-content {
    padding: 24px;
  }
  .cta-banner {
    padding: 32px;
  }
  .filter-inner {
    padding: 20px;
  }
}
