/* Beyond Testimonials Grid - btg.css */
.btg-wrap {
  --btg-accent1: #4f46e5;
  --btg-accent2: #0ea5e9;

  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.btg-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  box-sizing: border-box;
}

.btg-has-bg {
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 45%, #e0e7ff 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.btg-has-bg::before,
.btg-has-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.55;
}

.btg-has-bg::before {
  top: -120px;
  right: -120px;
  background: color-mix(in srgb, var(--btg-accent2) 28%, transparent);
}

.btg-has-bg::after {
  bottom: -130px;
  left: -120px;
  background: color-mix(in srgb, var(--btg-accent1) 24%, transparent);
}

@supports not (background: color-mix(in srgb, #000 10%, transparent)) {
  .btg-has-bg::before { background: rgba(14, 165, 233, 0.22); }
  .btg-has-bg::after  { background: rgba(79, 70, 229, 0.20); }
}

.btg-head {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.btg-title {
  margin: 0;
  padding: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.btg-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btg-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.75);
  font-size: 26px;
  line-height: 1;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btg-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.20);
  transform: translateY(-1px);
}

.btg-btn:active {
  transform: translateY(0px);
}

.btg-viewport {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.btg-page {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 280ms ease, transform 280ms ease;
}

.btg-page.is-enter.dir-next {
  opacity: 0;
  transform: translateX(18px);
}

.btg-page.is-enter.dir-prev {
  opacity: 0;
  transform: translateX(-18px);
}

.btg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .btg-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.btg-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 18px;
  box-sizing: border-box;
  min-height: 140px;
}

.btg-accent {
  height: 6px;
  width: 56px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--btg-accent1), var(--btg-accent2));
  margin-bottom: 12px;
}

.btg-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.btg-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
}

.btg-meta {
  margin: 2px 0 0;
  color: rgba(15, 23, 42, 0.55);
  font-size: 13px;
  line-height: 1.3;
}

.btg-quote-badge {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--btg-accent1) 14%, transparent),
    color-mix(in srgb, var(--btg-accent2) 14%, transparent)
  );
}

@supports not (background: color-mix(in srgb, #000 10%, transparent)) {
  .btg-quote-badge { background: rgba(79, 70, 229, 0.10); }
}

.btg-quote-badge svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  fill: none;
  stroke: color-mix(in srgb, var(--btg-accent1) 68%, #0f172a);
  stroke-width: 2;
}

@supports not (stroke: color-mix(in srgb, #000 10%, #fff)) {
  .btg-quote-badge svg { stroke: rgba(49, 46, 129, 0.75); }
}

.btg-text {
  margin: 12px 0 0;
  color: rgba(15, 23, 42, 0.78);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.btg-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.btg-dot {
  appearance: none;
  border: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(100, 116, 139, 0.35);
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.btg-dot:hover { opacity: 0.95; }

.btg-dot.is-active {
  background: var(--btg-accent1);
  transform: scale(1.08);
}

.btg-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.52);
  position: relative;
  z-index: 1;
}

.btg-empty {
  padding: 10px 0;
  color: rgba(15, 23, 42, 0.65);
}
