/* ===== WiCell Network - Advanced WiFi Technology Website ===== */
/* Inspired by Ruijie Networks design language */

:root {
  --primary: #e85d04;
  --primary-dark: #c44a00;
  --primary-light: #fff0e6;
  --accent: #f48c06;
  --success: #28a745;
  --text: #1a1a2e;
  --text-light: #4a4a68;
  --bg: #ffffff;
  --bg-alt: #fff8f3;
  --border: #f0e0d0;
  --shadow: 0 4px 20px rgba(232, 93, 4, 0.08);
  --shadow-hover: 0 8px 30px rgba(232, 93, 4, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #9a3412 0%, #e85d04 40%, #f48c06 100%);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
  background: var(--primary-light);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

/* ===== TABS ===== */
.tabs-section {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 74px;
  z-index: 800;
}

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.tab-btn {
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 48px 0;
  scroll-margin-top: 140px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.card a.card-link:hover {
  gap: 10px;
}

/* ===== CONTENT BLOCKS ===== */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.content-text p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.content-text ul {
  list-style: none;
  margin-top: 16px;
}

.content-text ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.content-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.content-visual {
  /* background: var(--primary-light); */
  border-radius: var(--radius);
  padding: 0;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  /* border: 2px dashed rgba(232, 93, 4, 0.25); */
  overflow: hidden;
  flex-direction: column;
}

.content-visual img {
  width: 100%;
  height: auto;
  max-height: 320px;
  min-height: 180px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  /* background: #fff8f3; */
}

/* ===== VIDEO NOTE ===== */
.video-placeholder {
  background:none;
  border-radius: var(--radius);
  padding: 0;
  text-align: center;
  color: white;
  margin: 40px 0;
  border: none;
  position: relative;
  overflow: hidden;
}
/* 1. Khung chứa ảnh */
.video-place {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;                    /* Đảm bảo khung mở tối đa theo chiều ngang */
  background:none;            /* Nên đặt màu nền nhẹ/tối làm placeholder khi ảnh chưa tải xong */
  border-radius: var(--radius);
  padding: 0;
  margin: 40px 0;
  border: none;
  position: relative;
  overflow: hidden;               /* Ép góc ảnh tuân theo border-radius của khung */
}

/* 2. Ảnh bên trong khung (BẮT BUỘC CÓ) */
.video-place img {
  border-radius: var(--radius);
  max-width: 800px;                /* Tự co lại nếu ảnh quá to, không bao giờ tràn khung */
  height: auto;                   /* Tự căn tỷ lệ chiều cao, không bị méo ảnh */
  display: block;
  object-fit: contain;            /* Giữ trọn vẹn chi tiết bức ảnh */
}

.video-place2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;                    /* Đảm bảo khung mở tối đa theo chiều ngang */
  background:none;            /* Nên đặt màu nền nhẹ/tối làm placeholder khi ảnh chưa tải xong */
  border-radius: var(--radius);
  gap: 5px;
  margin: 40px 0;
  border: none;
  position: relative;
  overflow: hidden;               /* Ép góc ảnh tuân theo border-radius của khung */
}

/* 2. Ảnh bên trong khung (BẮT BUỘC CÓ) */
.video-place2 img {
  border-radius: var(--radius);
  max-width: 800px;                /* Tự co lại nếu ảnh quá to, không bao giờ tràn khung */
  height: 400px;                   /* Tự căn tỷ lệ chiều cao, không bị méo ảnh */
  display: block;
  object-fit: contain;            /* Giữ trọn vẹn chi tiết bức ảnh */
}
.video-place3 {
  display: flex;
  flex-wrap: wrap;                /* tràn thì tự xuống dòng, không ép nhồi trên 1 hàng */
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  background: none;
  border-radius: var(--radius);
  gap: 5px;
  margin: 40px 0;
  border: none;
  position: relative;
  box-sizing: border-box;
}

.video-place3 img {
  border-radius: var(--radius);
  flex: 1 1 auto;                 /* co giãn linh hoạt theo không gian còn lại */
  width: auto;
  max-width: 100%;                /* riêng từng ảnh vẫn không bao giờ tràn khung */
  height: auto;
  display: block;
}
.video-placeholder video {
  width: 100%;
  max-width: 960px;
  max-height: 420px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  background: #000;
}

.video-placeholder .video-caption {
  padding: 12px 16px;
  font-size: 0.85rem;
  opacity: 0.8;
  background: #1a1a2e;
}

.video-placeholder .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.video-placeholder h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.video-placeholder p {
  opacity: 0.75;
  font-size: 0.95rem;
}

.video-placeholder .note {
  margin-top: 16px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
}

/* ===== TECH LIST ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: white;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tech-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tech-num {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.tech-num img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.tech-num .tnf {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.tech-item h4 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 4px;
}

.tech-item p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ===== BENEFITS ===== */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.benefit-card h4 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--primary);
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #9a3412, #e85d04);
  color: white;
  padding: 70px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 650;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.65);
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== TECH DETAIL PAGE ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
}

.tech-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: #f5f5f5;
  border-bottom: none;
  padding: 0;
}

.tech-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tech-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.92) 28%,
    rgba(255, 255, 255, 0.55) 52%,
    rgba(255, 255, 255, 0.15) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.tech-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.tech-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 56px;
  min-width: 1024px;
  margin-left: 0;
  margin-right: auto;
  align-self: flex-start;
}

.tech-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a2e;
  line-height: 1.25;
}

.tech-hero p {
  opacity: 1;
  font-size: 1rem;
  max-width: 480px;
  color: #4a4a68;
  line-height: 1.65;
  margin: 0;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

@media (max-width: 768px) {
  .tech-hero {
    min-height: 280px;
  }
  .tech-hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 45%,
      rgba(255, 255, 255, 0.4) 70%,
      transparent 100%
    );
  }
  .tech-hero-content {
    min-width: auto; /* THÊM DÒNG NÀY ĐỂ BỎ ÉP KÍCH THƯỚC 1024PX TRÊN MOBILE */
    max-width: 100%;
    padding-top: 56px;
    padding-bottom: 40px;
  }
  .tech-hero-img {
    object-position: center center;
  }
}


/* Scroll-spy mode: all sections visible, tabs highlight by scroll position */
.tab-content {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2rem;
  }

  .content-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .content-block.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .section {
    padding: 36px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .tech-grid,
  .benefit-list {
    grid-template-columns: 1fr;
  }
}


/* ===== RELATED TECHNOLOGIES (card grid like screenshot) ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  border: 1px solid #eee;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.related-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(232, 93, 4, 0.12);
  transform: translateY(-4px);
}

.related-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fff0e6, #ffe8d6);
  overflow: hidden;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card-img .img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  opacity: 0.5;
  padding: 12px;
  text-align: center;
}

.related-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.related-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-body .related-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.related-card:hover .related-more {
  gap: 8px;
}

.related-all {
  text-align: center;
  margin-top: 12px;
}

/* Video container: keep compact, centered */
.video-placeholder {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.content-visual {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.content-block {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .tabs-section {
    top: 56px;
  }
  .section {
    scroll-margin-top: 110px;
  }
  .video-placeholder video {
    max-height: 240px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Thanh tab: bỏ thanh cuộn dọc (nút mũi tên lên/xuống) ===== */
.tabs { overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { display: none; }

/* ===== Trang chi tiết GIẢI PHÁP (giai-phap/<slug>.html) ===== */
.sol-list { list-style: none; margin: 12px 0 0; padding: 0; }
.sol-list li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--text-light); }
.sol-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.content-text ul.sol-sub, .sol-list ul.sol-sub { list-style: none; margin: 8px 0 0; padding: 0; }
.content-text ul.sol-sub li::before, .sol-list ul.sol-sub li::before { content: '–'; }
.related-all { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech-hero-content p { max-width: 860px; }

/* Điểm nổi bật: 2 cột chảy liền như bài báo, không khung thẻ.
   Tiêu đề "01. …" in đậm, nội dung bên dưới; mục nào cũng cao theo nội dung nên không bị kéo giãn. */
.sol-hl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; max-width: 1100px; margin: 0 auto; }
/* 2 cột độc lập: mục lẻ (01, 03, 05…) cột trái, mục chẵn (02, 04, 06…) cột phải — khung nối sát nhau, không chừa khoảng trống */
.sol-hl-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.sol-hl-item { order: var(--o, 0); }
.sol-hl-item { display: block; margin: 0; padding: 24px 28px; background: #fff; border: 2px solid #ff7a1a; border-radius: 14px; box-shadow: 0 6px 20px rgba(255, 122, 26, 0.16); }
.sol-hl-head { display: block; text-align: center; margin: 0 0 14px; }
.sol-hl-num, .sol-hl-head h4 {
  display: inline; font-size: 1.02rem; font-weight: 800; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--text);
}
.sol-hl-num { color: #ff6a00; }
.sol-hl-num::after { content: '.'; }
.sol-hl-num::after { margin-right: 6px; }
.sol-hl-head h4 { margin: 0; }
.sol-hl-body p { margin: 0 0 10px; color: var(--text-light); font-size: 0.95rem; line-height: 1.7; text-align: justify; }
.sol-hl-body p:last-child { margin-bottom: 0; }
.sol-hl-body .sol-list li { font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px; text-align: justify; }
@media (max-width: 860px) {
  .sol-hl { grid-template-columns: 1fr; gap: 28px; }
  .sol-hl-col { display: contents; } /* điện thoại: 1 cột, giữ thứ tự 01, 02, 03… nhờ --o */
  .sol-hl-item { padding: 20px; }
}
.content-block-rev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.content-block-rev .content-text {
  order: 2;              /* chữ luôn hiển thị bên phải */
}

.content-block-rev .content-visual {
  order: 1;               /* ảnh luôn hiển thị bên trái */
}

.content-block-rev .content-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.content-block-rev .content-text p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.content-block-rev .content-text ul {
  list-style: none;
  margin-top: 16px;
}

.content-block-rev .content-text ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.content-block-rev .content-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.content-block-rev .content-visual {
  border-radius: var(--radius);
  padding: 0;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  overflow: hidden;
  flex-direction: column;
}

.content-block-rev .content-visual img {
  width: 100%;
  height: auto;
  max-height: 320px;
  min-height: 180px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .content-block-rev {
    grid-template-columns: 1fr;
  }
  .content-block-rev .content-text,
  .content-block-rev .content-visual {
    order: initial;       /* mobile thì chữ trên, ảnh dưới theo đúng thứ tự HTML */
  }
}


/* =====================================================================
   TỐI ƯU ẢNH CHO LAPTOP / TABLET / ĐIỆN THOẠI
   (khối ghi đè – đặt cuối file để thắng các rule cũ)
   Laptop: ≥ 1025px | Tablet: 601–1024px | Điện thoại: ≤ 600px
   ===================================================================== */

/* --- Nền tảng: ảnh/video không bao giờ tràn khung --- */
img, video, svg { max-width: 100%; }
img { height: auto; }

/* --- Hero trang chủ: có gradient dự phòng khi ảnh chưa tải/lỗi --- */
.hero {
  background-image:
    linear-gradient(135deg, #9a3412 0%, #e85d04 40%, #f48c06 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Sửa lỗi tablet: min-width 1024px làm trang tràn ngang ở 769–1023px.
       Chỉ áp dụng ≤1024px; laptop giữ nguyên như bản gốc (chữ sát trái) --- */
@media (max-width: 1024px) {
  .tech-hero-content {
    min-width: 0;
    max-width: 100%;
  }
}

/* --- Ảnh trong khối nội dung --- */
.content-visual img,
.content-block-rev .content-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- Ảnh đơn (.video-place) --- */
.video-place img {
  width: auto;
  max-width: min(100%, 800px);
  height: auto;
}

/* --- Nhóm 2 ảnh (.video-place2): bỏ height cố định 400px --- */
.video-place2 { flex-wrap: wrap; }
.video-place2 img {
  width: auto;
  max-width: min(100%, 800px);
  height: auto;
  max-height: 400px;
}

/* --- Nhóm nhiều ảnh (.video-place3) --- */
.video-place3 img { flex: 1 1 280px; }

/* ================= LAPTOP (≥ 1025px) ================= */
@media (min-width: 1025px) {
  .content-visual img,
  .content-block-rev .content-visual img { max-height: 360px; }
  .tech-hero { min-height: 340px; }
  .tech-hero-img { object-position: center right; }
}

/* ================= TABLET (601px – 1024px) ================= */
@media (min-width: 601px) and (max-width: 1024px) {
  .tech-hero { min-height: 300px; }
  .tech-hero-img { object-position: 65% center; }
  .tech-hero-content { padding-top: 44px; padding-bottom: 44px; }

  .content-visual img,
  .content-block-rev .content-visual img { max-height: 320px; }

  .video-place img,
  .video-place2 img { max-width: 100%; }
  .video-place2 img { max-height: 300px; }
  .video-place3 img { flex: 1 1 calc(50% - 5px); }
}

/* Tablet dọc & nhỏ hơn: 2 kiểu khối nội dung cùng chuyển 1 cột ở 900px */
@media (max-width: 900px) {
  .content-block-rev {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .content-block-rev .content-text,
  .content-block-rev .content-visual { order: initial; }

  .content-visual,
  .content-block-rev .content-visual { min-height: 0; }

  /* ảnh đứng giữa, không kéo quá to trên tablet dọc */
  .content-visual img,
  .content-block-rev .content-visual img {
    max-width: 640px;
    margin: 0 auto;
  }
}

/* ================= ĐIỆN THOẠI (≤ 600px) ================= */
@media (max-width: 600px) {
  .hero { background-position: 60% center; }   /* ưu tiên phần chủ thể của ảnh */

  .tech-hero { min-height: 260px; }
  .tech-hero-img { object-position: center center; }

  .content-visual img,
  .content-block-rev .content-visual img {
    min-height: 0;
    max-height: 260px;
    max-width: 100%;
  }

  .video-place,
  .video-place2,
  .video-place3 { margin: 24px 0; }

  .video-place img,
  .video-place2 img,
  .video-place3 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    flex: 1 1 100%;
  }

  .related-card-img { aspect-ratio: 16 / 9; }
}

/* Màn hình rất nhỏ (≤ 360px) */
@media (max-width: 360px) {
  .content-visual img,
  .content-block-rev .content-visual img { max-height: 220px; }
}
