/* ==========================================================================
   SECTION 04: TỔNG QUAN NĂNG LỰC THIẾT BỊ (OVERVIEW SECTION)
   ========================================================================== */

.mrd-overview-wrapper {
  padding: 80px 0;
  background-color: #f8fafc;
  position: relative;
}

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


.mrd-overview-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: stretch;
}


/* --------------------------------------------------------------------------
   LEFT COLUMN: HEADINGS, 4 BOXES & CTA BUTTONS
   -------------------------------------------------------------------------- */

/* Tag / Badge */
.mrd-overview-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-overview-tag-dot {
  width: 8px;
  height: 8px;
  background-color: #009fe3;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 159, 227, 0.6);
}

/* Section Title */
.mrd-overview-title {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.mrd-overview-title span {
  color: #009fe3;
  white-space: nowrap;
}

/* Description */
.mrd-overview-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 32px;
}

.mrd-overview-desc strong {
  color: #0f172a;
  font-weight: 600;
}

/* 4 Feature Cards Grid (2x2) */
.mrd-overview-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.mrd-overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.mrd-overview-card:hover {
  transform: translateY(-4px);
  border-color: #009fe3;
  box-shadow: 0 12px 25px rgba(0, 159, 227, 0.12);
}

/* Card Icon Box */
.mrd-overview-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.mrd-overview-card-icon svg {
  width: 22px;
  height: 22px;
  fill: #0284c7;
}

/* Card Title & Text */
.mrd-overview-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}

.mrd-overview-card-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* CTA Action Buttons Row */
.mrd-overview-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}


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

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

/* Phone Icon Wave & Shake Container */
.mrd-btn-phone-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* Radar Wave Ripples */
.mrd-btn-phone-pulse::before,
.mrd-btn-phone-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  animation: mrdWavePulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}

.mrd-btn-phone-pulse::after {
  animation-delay: 0.85s;
}

/* Ringing / Shaking Phone Icon */
.mrd-btn-phone-pulse svg {
  width: 15px;
  height: 15px;
  fill: #ffffff;
  animation: mrdPhoneRing 2s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  transform-origin: center center;
}

@keyframes mrdPhoneRing {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  10%, 30% {
    transform: rotate(-18deg) scale(1.12);
  }
  20%, 40% {
    transform: rotate(18deg) scale(1.12);
  }
  50% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes mrdWavePulse {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}


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

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

.mrd-overview-btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* --------------------------------------------------------------------------
   RIGHT COLUMN: PRODUCT GALLERY / ALBUM
   -------------------------------------------------------------------------- */

.mrd-overview-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.mrd-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  width: 100%;
  min-height: 0;
}

/* Main Display Container with FIXED height matching the left column */
.mrd-gallery-main-frame {
  position: relative;
  width: 100%;
  flex: 1 1 0%;
  min-height: 0;
  background-color: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

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


.mrd-gallery-main-img.fading {
  opacity: 0.2;
}

/* Top Glass Badge */
.mrd-gallery-top-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

/* Bottom Dark Gradient Text Overlay */
.mrd-gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 65%, transparent 100%);
  padding: 40px 24px 20px 24px;
  color: #ffffff;
  z-index: 3;
  pointer-events: none;
}

.mrd-gallery-caption-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.35;
  transition: all 0.3s ease;
}

.mrd-gallery-caption-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Thumbnails Strip */
.mrd-gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  flex-shrink: 0;
}


.mrd-gallery-thumb-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  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-gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.mrd-gallery-thumb-item:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.mrd-gallery-thumb-item:hover img {
  transform: scale(1.08);
}

/* Active Thumbnail State */
.mrd-gallery-thumb-item.active {
  border-color: #009fe3;
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.25);
  transform: translateY(-2px);
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .mrd-overview-wrapper {
    padding: 60px 0;
  }
  .mrd-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mrd-overview-title {
    font-size: 28px;
  }
  .mrd-gallery-main-frame {
    aspect-ratio: 4 / 3;
    min-height: 340px;
    flex: none;
  }
}


@media (max-width: 640px) {
  .mrd-overview-wrapper {
    padding: 40px 0;
  }
  .mrd-overview-container {
    padding: 0 16px;
  }
  .mrd-overview-title {
    font-size: 24px;
  }
  .mrd-overview-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mrd-overview-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mrd-overview-btn-primary,
  .mrd-overview-btn-secondary {
    width: 100%;
  }
  .mrd-gallery-thumbs-grid {
    gap: 8px;
  }
  .mrd-gallery-caption-overlay {
    padding: 30px 16px 16px 16px;
  }
  .mrd-gallery-caption-title {
    font-size: 15px;
  }
  .mrd-gallery-caption-desc {
    font-size: 12px;
  }
}
