/* ==========================================================================
   SECTION: MATSUYA R&D VIETNAM (ABOUT & JAPANESE TECHNICAL SUPPORT)
   Namespace: .mrd-about-*
   ========================================================================== */

.mrd-about-wrapper {
  padding: 80px 0;
  background-color: #ffffff;
  position: relative;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
}

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

.mrd-about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

.mrd-about-header .mrd-about-tag {
  align-self: center;
  margin-bottom: 12px;
}

.mrd-about-main-title {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0;
  text-align: center;
}

.mrd-about-title-years {
  color: #009fe3;
  display: block;
  white-space: nowrap;
}

.mrd-about-title-sub {
  display: block;
  color: #0f172a;
}

.mrd-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   CỘT TRÁI: ALBUM TƯƠNG TÁC SẢN PHẨM
   -------------------------------------------------------------------------- */
.mrd-about-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mrd-about-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(0, 159, 227, 0.08);
  border: 1px solid rgba(0, 159, 227, 0.25);
  border-radius: 4px; /* Khung hình chữ nhật bo góc nhẹ 4px */
  color: #0077b6;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: none;
  margin-bottom: 14px;
  align-self: flex-start;
  transition: all 0.25s ease;
}

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

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

/* Interactive Product Gallery Box */
.mrd-about-gallery-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  flex: 1 1 0%;
}

.mrd-about-main-frame {
  position: relative;
  width: 100%;
  flex: 1 1 0%;
  min-height: 350px;
  background-color: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.mrd-about-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.mrd-about-main-img.fading {
  opacity: 0.25;
}

/* Glass Top Badge */
.mrd-about-frame-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 3;
}

.mrd-about-frame-badge-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

/* Bottom Caption Overlay - Removed as requested */
.mrd-about-caption-overlay {
  display: none !important;
}

/* Thumbnails Carousel Wrapper with Navigation Buttons (Overlaid on images) */
.mrd-about-thumbs-wrapper {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.mrd-about-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid #009fe3;
  color: #004b87;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  padding: 0;
  z-index: 10;
}

.mrd-about-nav-prev {
  left: -16px; /* 1/2 bên trong, 1/2 bên ngoài */
}

.mrd-about-nav-next {
  right: -16px; /* 1/2 bên trong, 1/2 bên ngoài */
}

.mrd-about-nav-btn:hover {
  background: #009fe3;
  border-color: #009fe3;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 159, 227, 0.5);
  transform: translateY(-50%) scale(1.12);
}

.mrd-about-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.mrd-about-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Thumbnails Strip (Cuộn ngang mượt mà) */
.mrd-about-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 4px 0;
  width: 100%;
}

.mrd-about-thumbs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.mrd-about-thumb-btn {
  position: relative;
  flex: 0 0 calc((100% - 30px) / 4); /* Hiện chuẩn 4 ảnh cùng lúc */
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background-color: #f1f5f9;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
}

.mrd-about-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.mrd-about-thumb-btn:hover {
  border-color: #009fe3;
  transform: translateY(-2px);
}

.mrd-about-thumb-btn:hover img {
  transform: scale(1.08);
}

.mrd-about-thumb-btn.active {
  border-color: #009fe3;
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.3);
  transform: translateY(-2px);
}

.mrd-about-thumb-btn.active::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px #009fe3;
  border-radius: 10px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   CỘT PHẢI: NHÃN BANNER NHẬT BẢN & MÔ TẢ
   -------------------------------------------------------------------------- */
.mrd-about-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Banner Nhãn Điểm Nhấn Chuẩn Bản In */
.mrd-about-japan-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0a2540 0%, #004b87 100%);
  border: 1.5px solid #004b87;
  padding: 12px 18px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 75, 135, 0.22);
  margin-bottom: 16px;
}

.mrd-about-japan-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  background: #ffffff;
  border-radius: 3px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.mrd-about-japan-flag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #bc002d; /* Chuẩn màu cờ Nhật Bản */
}

/* Đoạn Văn Giới Thiệu */
.mrd-about-desc-group {
  margin-bottom: 18px;
}

.mrd-about-desc-group p {
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 8px;
}

.mrd-about-desc-group p:last-child {
  margin-bottom: 0;
}

.mrd-about-desc-group strong {
  color: #0f172a;
  font-weight: 700;
}

/* 3 Thẻ Trụ Cột Cam Kết Năng Lực (Trust Pillars) */
.mrd-about-pillars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mrd-about-pillar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.mrd-about-pillar-item:hover {
  background: #ffffff;
  border-color: #009fe3;
  box-shadow: 0 6px 18px rgba(0, 159, 227, 0.1);
  transform: translateX(4px);
}

.mrd-about-pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.mrd-about-pillar-content {
  flex: 1;
  min-width: 0; /* Cho phép flex item co lại để ellipsis hoạt động */
}

.mrd-about-pillar-content h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mrd-about-pillar-content p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA Buttons */
.mrd-about-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mrd-about-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #009fe3 0%, #0077b6 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 159, 227, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.mrd-about-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 159, 227, 0.42);
  background: linear-gradient(135deg, #008cd0 0%, #006097 100%);
}

.mrd-about-btn-primary svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.mrd-about-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mrd-about-btn-secondary:hover {
  border-color: #009fe3;
  color: #009fe3;
  background: #f0f9ff;
  transform: translateY(-2px);
}

.mrd-about-btn-secondary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .mrd-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mrd-about-main-frame {
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .mrd-about-wrapper {
    padding: 60px 0;
  }

  .mrd-about-main-title {
    font-size: 26px;
  }

  .mrd-about-actions {
    grid-template-columns: 1fr;
  }

  .mrd-about-thumb-btn {
    flex: 0 0 calc((100% - 16px) / 3);
  }

  .mrd-about-nav-btn {
    width: 28px;
    height: 28px;
  }

  .mrd-about-japan-banner {
    font-size: 13px;
    padding: 11px 16px;
  }
}
