/* ==========================================================================
   SECTION 08: 3 CÔNG NGHỆ CỐT LÕI (CORE TECHNOLOGIES)
   Matsuya R&D Vietnam - Model: MRD-BWT002
   Namespace: .mrd-tech-*
   Thiết kế: Thẻ trắng bo góc 20px, viền công nghiệp, đổ bóng đa tầng
   ========================================================================== */

.mrd-tech-wrapper {
  padding: 84px 0;
  background-color: #f8fafc;
  position: relative;
  border-top: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.mrd-tech-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   HEADER KHỐI CÔNG NGHỆ (CANH TRÁI ĐỒNG BỘ TOÀN TRANG)
   -------------------------------------------------------------------------- */
.mrd-tech-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 44px;
  width: 100%;
}

/* Tag Pill */
.mrd-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 159, 227, 0.08);
  border: 1px solid rgba(0, 159, 227, 0.25);
  border-radius: 30px;
  color: #009fe3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.mrd-tech-tag-dot {
  width: 8px;
  height: 8px;
  background-color: #009fe3;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 159, 227, 0.6);
  flex-shrink: 0;
}

/* Title H2 Uy Lực */
.mrd-tech-title {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.mrd-tech-title .mrd-highlight {
  color: #009fe3;
  white-space: nowrap;
}

/* Description cô đọng */
.mrd-tech-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   CAROUSEL CÔNG NGHỆ TỰ ĐỘNG XOAY VÒNG - TIÊU ĐIỂM Ở GIỮA (CENTER COVERFLOW)
   -------------------------------------------------------------------------- */
.mrd-tech-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.mrd-tech-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 30px 0 40px 0; /* Đệm đủ khoảng để thẻ ở giữa phóng to scale(1.06) và đổ bóng sâu */
}

.mrd-tech-track {
  display: flex;
  align-items: stretch;
  gap: 28px;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  width: max-content;
}

/* Thẻ công nghệ: Cơ bản ở trạng thái 2 bên (scale 0.92, rõ nét 100%, không làm mờ) */
.mrd-tech-card {
  flex: 0 0 360px;
  width: 360px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  transform: scale(0.92);
  opacity: 1; /* Rõ nét 100%, không làm mờ theo yêu cầu */
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  user-select: none;
}

/* Thẻ ở GIỮA: Phóng to (scale 1.06), sáng nét 100%, viền xanh Matsuya phát sáng, bóng đổ đa tầng */
.mrd-tech-card.is-center {
  transform: scale(1.06);
  opacity: 1;
  border-color: #009fe3;
  box-shadow: 0 24px 52px rgba(0, 159, 227, 0.22), 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: default;
  z-index: 5;
}

/* Hover nhẹ vào thẻ 2 bên */
.mrd-tech-card:not(.is-center):hover {
  transform: scale(0.94);
  border-color: #94a3b8;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

/* Hover vào thẻ ở giữa */
.mrd-tech-card.is-center:hover {
  box-shadow: 0 28px 60px rgba(0, 159, 227, 0.28), 0 10px 25px rgba(15, 23, 42, 0.1);
}

/* Nút điều hướng Carousel (Prev / Next) */
.mrd-tech-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mrd-tech-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.mrd-tech-prev {
  left: -20px;
}

.mrd-tech-next {
  right: -20px;
}

.mrd-tech-nav-btn:hover {
  background: #009fe3;
  border-color: #009fe3;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 159, 227, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.mrd-tech-prev:hover svg {
  transform: translateX(-2px);
}

.mrd-tech-next:hover svg {
  transform: translateX(2px);
}

/* Thanh điều hướng Dots & Gợi ý tự động xoay */
.mrd-tech-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 15px;
}

.mrd-tech-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mrd-tech-dot {
  background: transparent;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mrd-tech-dot-inner {
  display: block;
  width: 10px;
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mrd-tech-dot:hover .mrd-tech-dot-inner {
  background: #94a3b8;
}

.mrd-tech-dot.is-active .mrd-tech-dot-inner {
  width: 34px;
  background: linear-gradient(90deg, #009fe3, #0077b6);
  box-shadow: 0 0 12px rgba(0, 159, 227, 0.65);
}





/* Khung ảnh cơ cấu máy móc */
.mrd-tech-img-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mrd-tech-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

/* Hiệu ứng hover: Ảnh zoom mượt mà */
.mrd-tech-card:hover .mrd-tech-img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

/* Nội dung thông tin card */
.mrd-tech-card-body {
  padding: 24px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Khối tiêu đề (không còn vạch kẻ đứng) */
.mrd-tech-card-title-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Nhãn Tag Công Nghệ (Hình chữ nhật bo nhẹ 4px - Title Case) */
.mrd-tech-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(0, 159, 227, 0.08);
  border: 1px solid rgba(0, 159, 227, 0.25);
  border-radius: 4px; /* Hình chữ nhật bo nhẹ 4px theo yêu cầu */
  color: #0077b6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-transform: none;
  transition: all 0.3s ease;
}

.mrd-tech-card:hover .mrd-tech-card-tag {
  background: rgba(0, 159, 227, 0.14);
  border-color: #009fe3;
  color: #009fe3;
}

/* Tiêu đề công nghệ */
.mrd-tech-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.mrd-tech-card:hover .mrd-tech-card-title {
  color: #009fe3;
}

/* Danh sách 2 điểm đột phá kỹ thuật (Technical Bullet Points) */
.mrd-tech-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.mrd-tech-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.mrd-tech-feature-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  background-color: #009fe3;
  border-radius: 50%;
  margin-top: 7px;
  box-shadow: 0 0 6px rgba(0, 159, 227, 0.6);
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.mrd-tech-card:hover .mrd-tech-feature-dot {
  transform: scale(1.3);
  background-color: #0077b6;
  box-shadow: 0 0 10px rgba(0, 159, 227, 0.9);
}

.mrd-tech-feature-text {
  flex: 1;
}

.mrd-tech-feature-label {
  display: inline-block;
  color: #004b87;
  font-weight: 800;
  font-size: 13.5px;
}

.mrd-tech-feature-text strong {
  color: #0f172a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   THANH CAM KẾT GIÁ TRỊ CÔNG NGHỆ (HIGH-IMPACT VALUE PILL)
   Hiệu ứng: Shimmer kim loại lướt qua + Checkmark Breathing Pulse + Viền phát sáng
   -------------------------------------------------------------------------- */
.mrd-tech-card-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0, 159, 227, 0.08) 0%, rgba(2, 132, 199, 0.14) 100%);
  border: 1.5px solid rgba(0, 159, 227, 0.38);
  border-radius: 12px;
  color: #0369a1;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 159, 227, 0.10);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tia sáng ánh kim quét ngang định kỳ (Shimmer Effect) */
.mrd-tech-card-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: mrdPillShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mrdPillShimmer {
  0%, 70% {
    left: -120%;
  }
  100% {
    left: 180%;
  }
}

/* Khi Hover Card hoặc Hover trực tiếp vào Pill */
.mrd-tech-card:hover .mrd-tech-card-pill,
.mrd-tech-card-pill:hover {
  background: linear-gradient(135deg, rgba(0, 159, 227, 0.15) 0%, rgba(0, 75, 135, 0.20) 100%);
  border-color: #009fe3;
  box-shadow: 0 6px 22px rgba(0, 159, 227, 0.25), 0 0 12px rgba(0, 159, 227, 0.18);
  transform: translateY(-2px);
}

/* Icon Cúp Thành Tựu nền Xanh Matsuya (Trophy Cup Blue Pulse) */
.mrd-tech-card-pill-cup,
.mrd-tech-card-pill-check {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #009fe3 0%, #0077b6 100%);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 159, 227, 0.65);
  animation: mrdCupPulse 2.6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.mrd-tech-card-pill-cup svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  display: block;
}

@keyframes mrdCupPulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(0, 159, 227, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px rgba(0, 159, 227, 0.95);
    transform: scale(1.1);
  }
}

.mrd-tech-card:hover .mrd-tech-card-pill-cup,
.mrd-tech-card:hover .mrd-tech-card-pill-check {
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(0, 159, 227, 1);
}

/* Nội dung chữ trong thanh cam kết giá trị */
.mrd-tech-card-pill-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.4;
  z-index: 1;
}

.mrd-tech-card-pill-text strong {
  color: #004b87;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.mrd-tech-card-pill-divider {
  color: #009fe3;
  font-weight: 800;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   RESPONSIVE (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .mrd-tech-prev {
    left: 2px;
  }
  .mrd-tech-next {
    right: 2px;
  }
  .mrd-tech-card {
    flex: 0 0 330px;
    width: 330px;
  }
}

@media (max-width: 1024px) {
  .mrd-tech-wrapper {
    padding: 64px 0;
  }

  .mrd-tech-title {
    font-size: 28px;
  }

  .mrd-tech-prev {
    left: 4px;
    width: 42px;
    height: 42px;
  }

  .mrd-tech-next {
    right: 4px;
    width: 42px;
    height: 42px;
  }

  .mrd-tech-card {
    flex: 0 0 310px;
    width: 310px;
  }
}

@media (max-width: 768px) {
  .mrd-tech-wrapper {
    padding: 48px 0;
  }

  .mrd-tech-header {
    margin-bottom: 24px;
  }

  .mrd-tech-title {
    font-size: 24px;
  }

  .mrd-tech-desc {
    font-size: 14px;
  }

  .mrd-tech-viewport {
    padding: 16px 0 24px 0;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .mrd-tech-track {
    gap: 16px;
  }

  .mrd-tech-card {
    flex: 0 0 calc(84vw);
    width: calc(84vw);
    max-width: 330px;
  }

  .mrd-tech-card.is-center {
    transform: scale(1.02);
  }

  .mrd-tech-card-body {
    padding: 20px 18px 18px 18px;
  }

  .mrd-tech-img-wrap {
    height: 190px;
  }

  /* Ẩn nút mũi tên trên màn hình nhỏ để ưu tiên vuốt cảm ứng và bấm dots */
  .mrd-tech-prev,
  .mrd-tech-next {
    display: none;
  }

  .mrd-tech-controls {
    margin-top: 10px;
  }
}

