@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500&display=swap');

.gmb *, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.gmb {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.text-center .gmb {
  text-align: left;
}

/* ── Header ── */
.gmb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 40px;
}

.gmb-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.gmb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8f7ff;
  border: 1px solid #eae8f0;
  border-radius: 30px;
  padding: 7px 16px;
}

.gmb-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gmb-badge-num {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: #1a1a2e;
}

.gmb-badge-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.gmb-badge-cnt {
  font-size: 12px;
  color: #94a3b8;
}

.gmb-arrows {
  display: flex;
  gap: 8px;
}

.gmb-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e0ea;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6366F1;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gmb-arrow:hover {
  background: #6366F1;
  color: #fff;
  border-color: #6366F1;
}

.gmb-arrow:active {
  transform: scale(0.95);
}

/* ── Carousel ── */
.gmb-carousel {
  overflow: hidden;
  padding: 0 0 2px 0;
}

.gmb-track {
  display: flex;
  gap: 16px;
  padding-left: 40px;
  padding-right: 40px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Cards ── */
.gmb-card {
  flex-shrink: 0;
  width: calc((100% - 80px - 32px) / 3);
  min-width: 280px;
  
}

.gmb-card-inner {
  border: 1px solid #eae8f0;
  border-radius: 14px;
  background: #fff;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  transition: border-color 0.2s;
  overflow: auto;
}

.gmb-card-inner:hover {
  border-color: #c7c5f0;
}

.gmb-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.gmb-card-who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmb-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}

.gmb-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gmb-card-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
}

.gmb-card-date {
  font-size: 11px;
  color: #b0adc0;
  margin-top: 2px;
}

.gmb-card-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.gmb-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  margin-top: 4px;
  flex-grow: 1;
}

/* ── Footer ── */
.gmb-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 0 40px;
}

.gmb-dots {
  display: flex;
  gap: 6px;
}

.gmb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e0ea;
  transition: all 0.3s;
  cursor: pointer;
}

.gmb-dot.active {
  background: #6366F1;
  width: 24px;
  border-radius: 4px;
}

.gmb-link {
  color: #6366F1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.gmb-link:hover {
  opacity: 0.75;
}

.gmb-list-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  
}

.gmb-list-container  .gmb-card {
  width: calc((100% / 3 ) - 8px);
  min-width: unset;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .gmb {
    padding: 40px 0;
  }

  .gmb-head {
    padding: 0 16px;
    margin-bottom: 18px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .gmb-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .gmb-badge {
    padding: 5px 12px;
    gap: 6px;
  }

  .gmb-badge svg {
    width: 14px;
    height: 14px;
  }

  .gmb-badge-num {
    font-size: 17px;
  }

  .gmb-badge-stars {
    font-size: 12px;
  }

  .gmb-badge-cnt {
    font-size: 11px;
  }

  .gmb-arrows {
    gap: 6px;
    align-self: flex-end;
  }

  .gmb-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .gmb-arrow:hover {
    background: #fff;
    color: #6366F1;
    border-color: #e2e0ea;
  }

  .gmb-arrow:active {
    background: #f4f3ff;
    transform: scale(0.95);
  }

  .gmb-track {
    padding-left: 16px;
    gap: 10px;
  }

  .gmb-card {
    width: calc(100% - 32px);
  }

  .gmb-card-inner {
    padding: 14px;
  }

  .gmb-card-inner:hover {
    border-color: #eae8f0;
  }

  .gmb-card-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border-radius: 8px;
  }

  .gmb-card-name {
    font-size: 13px;
  }

  .gmb-card-stars {
    font-size: 12px;
  }

  .gmb-card-text {
    font-size: 13px;
  }

  .gmb-foot {
    padding: 0 16px;
    margin-top: 16px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .gmb-dot {
    width: 6px;
    height: 6px;
  }

  .gmb-dot.active {
    width: 18px;
    border-radius: 3px;
  }

  .gmb-link {
    font-size: 12px;
  }
}

/* ── Tablet ── */
@media (min-width: 769px) and (max-width: 1023px) {
  .gmb-card {
    width: calc((100% - 80px - 16px) / 2);
  }
}
