/**
 * HOPE Testimonials — Scoped Stylesheet
 * Covers: .hop-tabs-wrap, .hop-card*, .hop-pagin*, .hop-grid*, .hop-pagination
 *
 * Issue 35 Fix:
 *  - Bug 1: body .hop-pagin-btn with !important to override Elementor/Hello theme button reset
 *  - Bug 2: .hop-card.hop-hidden class-based hiding (more reliable than inline style against e-flex/e-con)
 */

/* ── Tab Navigation ──────────────────────────────────────────────────────── */
.hop-tabs-wrap {
  width: 100%;
  max-width: 1200px;
  margin: -40px auto 0;
  position: relative;
  z-index: 10;
  background: #F7F3EE;
  border-radius: 24px;
  box-shadow: 0 4px 40px -10px rgba(0,0,0,0.05);
  padding: 12px;
}
.hop-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hop-tabs-wrap .hop-tab-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid rgba(24, 40, 30, 0.32);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1A2621;
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 999px;
  transition: all 280ms cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(24,40,30,0.04);
  opacity: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}
.hop-tabs-wrap .hop-tab-btn:hover {
  color: #1A2621;
  background: #EFEBE4;
  border-color: rgba(197,160,89,0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(24,40,30,0.10);
}
.hop-tabs-wrap .hop-tab-btn:active {
  transform: scale(0.97);
}
.hop-tabs-wrap .hop-tab-btn:focus-visible {
  outline: 2px solid #C5A059;
  outline-offset: 2px;
}
.hop-tabs-wrap .hop-tab-btn.is-active {
  color: #fff;
  background: #1A2621;
  border-color: #1A2621;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08),
              0 8px 24px -10px rgba(24,40,30,0.4);
}
.hop-tabs-wrap .hop-tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: #C5A059;
  border-radius: 4px;
}

@media(max-width: 767px) {
  .hop-tabs-wrap {
    margin-top: -20px;
    padding: 12px 0;
    overflow: hidden;
  }
  .hop-tabs-nav {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 16px 8px;
    scrollbar-width: none;
  }
  .hop-tabs-nav::-webkit-scrollbar { display: none; }
  .hop-tabs-wrap .hop-tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    width: auto;
    flex-shrink: 0;
    text-align: center;
  }
  .hop-tabs-wrap .hop-tab-btn.is-active::after { bottom: -6px; }
}

/* ── Card Styles ─────────────────────────────────────────────────────────── */
.hop-card {
  background: #F7F3EE;
  border: 1px solid rgba(24, 40, 30, 0.08);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.03);
  height: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}
.hop-card.is-animated {
  animation: hopFadeInUp 600ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes hopFadeInUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media(max-width: 767px) {
  .hop-card { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Bug 2 Fix: class-based hiding — stronger than inline style vs Elementor e-flex/e-con */
.hop-card.hop-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hop-card-header { margin-bottom: 24px; }
.hop-card-name {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  color: #1A2621;
  margin: 0 0 12px;
}
.hop-card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hop-card-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #EFEBE4;
  color: #2E5E41;
  padding: 6px 12px;
  border-radius: 100px;
}
.hop-card-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(26, 38, 33, 0.65);
  margin: 0 0 16px;
  flex-grow: 1;
  text-wrap: pretty;
}
.hop-card-quote-meditasi {
  font-style: italic;
  font-size: 16px;
}
.hop-card-divider {
  width: 100%;
  height: 1px;
  background: rgba(24, 40, 30, 0.08);
  border: none;
  margin: 20px 0;
}
.hop-card-after {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1A2621;
  margin: 0;
  font-weight: 500;
  text-wrap: pretty;
}

/* Coming Soon */
.hop-coming-soon {
  text-align: center;
  padding: 80px 24px;
  background: #EFEBE4;
  border-radius: 24px;
  border: 1px dashed rgba(24, 40, 30, 0.15);
  font-family: 'DM Sans', sans-serif;
  color: rgba(26, 38, 33, 0.65);
}

/* ── Grid Layout ─────────────────────────────────────────────────────────── */
.hop-grid-target { display: none; }
#tab-hypno        { display: grid; }

.hop-grid-container {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  width: 100%;
}
@media(max-width: 1024px) { .hop-grid-container { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 767px)  { .hop-grid-container { grid-template-columns: 1fr; } }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.hop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  width: 100%;
}

/* Bug 1 Fix: body prefix + !important to override Elementor/Hello theme button reset */
body .hop-pagin-btn {
  all: unset;
  display: inline-flex !important;
  background: #fff !important;
  border: 1.5px solid rgba(24, 40, 30, 0.25) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A2621 !important;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(24,40,30,0.08), inset 0 0 0 1.5px rgba(24,40,30,0.12);
  opacity: 1 !important;
  visibility: visible !important;
}
body .hop-pagin-btn:hover:not(.is-disabled):not(.is-active) {
  background: #EFEBE4 !important;
  border-color: rgba(197, 160, 89, 0.45) !important;
  transform: translateY(-1px);
}
body .hop-pagin-btn:focus-visible {
  outline: 2px solid #C5A059;
  outline-offset: 2px;
}
body .hop-pagin-btn.is-active {
  background: #1A2621 !important;
  border-color: #1A2621 !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px -3px rgba(24,40,30,0.3);
}
body .hop-pagin-btn.is-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed;
  border-color: rgba(24,40,30,0.08) !important;
}
.hop-pagin-icon { stroke: currentColor; }
@media(max-width: 767px) {
  body .hop-pagin-btn { width: 36px; height: 36px; font-size: 13px; }
}

/* ── Elementor Editor Fallback ─────────────────────────────── */
.elementor-editor-active .hop-card,
.elementor-edit-mode .hop-card {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

