.opinions-section {
  position: relative;
  padding-bottom: clamp(10px, 4vw, 20px);
}

.opinions-section > .container {
  position: relative;
  margin: 0 auto;
  max-width: min(1200px, 100%);
  padding-inline: clamp(16px, 4vw, 40px);
  z-index: 1;
  text-align: center;
}

h2.opinions-title {
  margin: clamp(20px, 4vw, 60px) auto clamp(10px, 3vw, 32px) auto;
  position: relative;
  max-width: clamp(240px, 70vw, 600px);
  aspect-ratio: 25 / 16;
  background-image: url("../assets/img/opinion-title.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 100%;
}


.opinions-more-container {
  max-height: 0px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.opinions-more-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 14vw, 160px);
  pointer-events: none;
}

.opinions-more-container.is-open {
  max-height: 5000px;
}

.opinions-more-container.is-open::after {
  display: none;
}

.opinions-more-container .opinions-card-box {
  opacity: 0;
  transform: translateY(10px);
}

.opinions-more-container.is-open .opinions-card-box {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.opinions-card-box {
  box-sizing: border-box;
  max-width: 100%;
  margin: clamp(20px, 10vw, 60px) auto;
  background-color: #f0f9ff;
  border-radius: clamp(12px, 1vw, 42px);
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  gap: clamp (24px, 4vw, 60px);
}

.opinions-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 60px;
  border-radius: 10px;
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;

  cursor: pointer;
  transition: all 0.25s ease;
}

.opinions-more-btn:hover {
  border: 1px solid #58a7dd;
  color: #58a7dd;
  background-color: #fff;
}

.opinions-card-title {
  background-color: #475d8c;
  color: #fff;
  padding: clamp(10px, 3vw, 16px) clamp(14px, 4vw, 24px);
  font-size: clamp(14px, 4vw, 28px);
  border-top-left-radius: clamp(12px, 1vw, 24px);
  border-top-right-radius: clamp(12px, 1vw, 24px);
}

.opinions-card-title h3 {
  margin: 0;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.opinions-card-body {
  min-height: 200px;
  padding: 24px;
  background-color: #f0f9ff;
}

.voice-top {
  display: flex;
  gap: clamp(12px, 3vw, 24px);
  align-items: flex-start;
}

.voice-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 clamp(120px, 28vw, 200px);
  margin: 0;
}

.voice-avatar img {
  aspect-ratio: 19/15;
  width: 100%;
  object-fit: contain;
}

.voice-age {
  width: 100%;
  margin-top: 5px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 18px);
  color: #333;
  flex: 1 1 auto;
  min-width: 0;
}

.voice-text {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.voice-text p {
  text-align: left;
  margin: 0 0 10px 0;
  color: #222;
  font-size: clamp(12px, 2.5vw, 18px);
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.voice-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #999;
  margin-top: 12px;
  background-color: #fff;
}

.voice-table th,
.voice-table td {
  border: 1px solid #999;
  padding: clamp(8px, 2.5vw, 14px);
  text-align: left;
  font-size: clamp(10px, 2.5vw, 16px);
}

.voice-table th {
  background: #f7f7f7;
  font-weight: 700;
  white-space: nowrap;
  color: #333;
  width: clamp(30px, 20vw, 180px);
}

.voice-table td {
  color: #333;
}

.voice-subbar {
  background: #7ec0d8;
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: clamp(14px, 3vw, 24px);
  padding: clamp(8px, 2vw, 14px);
  border-radius: 6px;
  margin: clamp(12px, 4vw, 24px) 0;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.voice-ba-block {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(10px, 2.5vw, 60px);
  font-size: clamp(16px, 4vw, 24px);
  margin-bottom: clamp(16px, 4vw, 32px);
}

.before {
  text-align: center;
  color: #1e7bbb;
  font-weight: 800;
}

.after {
  text-align: center;
  color: #ff4a4a;
  font-weight: 800;
}

.ba-item img {
  width: 100%;
  max-width: 480px;
  border-radius: clamp(2px, 1vw, 8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

@media (max-width: 768px) {
  .voice-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .voice-text {
    text-align: left;
  }

  .voice-avatar {
    flex: none;
    width: clamp(200px, 40vw, 300px);
  }
}

@media (max-width: 670px) {
  .voice-ba-block {
    flex-direction: column;
    align-items: center;
  }

  .ba-item {
    max-width: 600px;
  }
}
