/* ==========================================================================
   ATV GLASS - Component Stylesheet
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-hover));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(49, 80, 125, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 80, 125, 0.45);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(135deg, #31507d, #31507d);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(49, 80, 125, 0.35);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 80, 125, 0.45);
  color: #ffffff;
}

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

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(49, 80, 125, 0.05);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* Section Common Headers */
.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(49, 80, 125, 0.1);
  color: var(--brand-blue);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-pill.pill-danger {
  background: rgba(49, 80, 125, 0.1);
  color: #31507d;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title span.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue), #31507d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title span.text-gradient-fire {
  background: linear-gradient(135deg, #31507d, #31507d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Hero Banners with Real Photo Backgrounds */
.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  background-image: 
    linear-gradient(90deg, rgba(8, 12, 20, 0.96) 0%, rgba(11, 18, 32, 0.85) 45%, rgba(15, 23, 42, 0.35) 100%),
    url('../assets/images/hero-projects-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-attachment: fixed;
  color: #ffffff;
  padding: 130px 0 70px 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(49, 80, 125, 0.2) 0%, rgba(49, 80, 125, 0.12) 50%, transparent 70%);
  top: 15%;
  left: 10%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f1f5f9;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #31507d;
  position: relative;
  display: inline-block;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(49, 80, 125, 0.7);
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.text-gradient-fire {
  background: linear-gradient(135deg, #31507d 0%, #31507d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 34px;
  line-height: 1.75;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.hero-actions .btn-danger {
  background: linear-gradient(135deg, #31507d 0%, #31507d 100%);
  border: none;
  box-shadow: 0 10px 25px rgba(49, 80, 125, 0.4);
}

.hero-actions .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(49, 80, 125, 0.55);
}

.hero-actions .btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.hero-actions .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Trust Metrics Bar */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.metric-num span {
  color: #31507d;
}

.metric-label {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.45;
}

/* Inner Page Hero Header with Real Photos */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 160px 0 70px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 13, 22, 0.92) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.hero-about { background-image: url('../assets/images/hero-about-bg.jpg'); }
.hero-product { background-image: url('../assets/images/hero-product-bg.jpg'); }
.hero-construction { background-image: url('../assets/images/hero-construction-bg.jpg'); }
.hero-projects { background-image: url('../assets/images/hero-projects-bg.jpg'); }
.hero-news { background-image: url('../assets/images/hero-news-bg.jpg'); }
.hero-contact { background-image: url('../assets/images/hero-contact-bg.jpg'); }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb .current {
  color: var(--brand-blue);
  font-weight: 600;
}

/* Number Counters */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.counter-card {
  background: var(--bg-surface);
  padding: 20px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(49, 80, 125, 0.3);
}

.counter-num {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
  white-space: nowrap;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.counter-card:nth-child(2) .counter-num { color: #31507d; }
.counter-card:nth-child(3) .counter-num { color: #31507d; }
.counter-card:nth-child(4) .counter-num { color: #223958; }

.counter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
  text-align: center;
  width: 100%;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(49, 80, 125, 0.3);
}

.product-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-badge-group {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-ei {
  background: #31507d;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.badge-cert {
  background: #223958;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 700;
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-title a:hover {
  color: var(--brand-blue);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px dashed var(--border-subtle);
  border-bottom: 1px dashed var(--border-subtle);
  margin-bottom: 20px;
  font-size: 0.8125rem;
}

.product-specs span {
  color: var(--text-muted);
}

.product-specs strong {
  color: var(--text-primary);
  display: block;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-tab:hover, .filter-tab.is-active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(49, 80, 125, 0.25);
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.project-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-body {
  padding: 22px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.news-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-title a:hover {
  color: var(--brand-blue);
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* 8-Step Interactive Timeline (Trang Thi Công) */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.timeline-step-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.timeline-step-card:hover, .timeline-step-card.is-active {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive Table (EI Standards Comparison) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.custom-table th {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.custom-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.custom-table tr:hover td {
  background: var(--bg-surface-subtle);
}

.custom-table .badge-standard {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 700;
  background: #ebeff5;
  color: #31507d;
}

/* Accordion FAQ */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.is-open {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-surface);
  user-select: none;
}

.accordion-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
  background: rgba(49, 80, 125, 0.1);
  color: var(--brand-blue);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.accordion-item.is-open .accordion-content {
  padding: 0 24px 20px 24px;
}

.accordion-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Split Layout & Form */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(49, 80, 125, 0.15);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Partner Carousel / Grid */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  filter: grayscale(80%);
}

.partner-item:hover {
  filter: grayscale(0%);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.partner-item img {
  max-height: 44px;
}

/* Homepage product categories */
.product-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 0 24px;
}
.product-carousel-track::-webkit-scrollbar { display: none; }
.product-carousel-track > .product-card { scroll-snap-align: start; min-width: 0; }
.product-carousel-track:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; }
.product-carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.product-carousel-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.product-carousel-dot::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 0.2s, background 0.2s;
}
.product-carousel-dot[aria-current="true"]::before { width: 26px; background: var(--brand-blue); }
.product-carousel-dot:focus-visible { outline: 2px solid var(--brand-blue); border-radius: 8px; }
@media (max-width: 1024px) {
  .product-carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .product-carousel-track { grid-auto-columns: 90%; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-carousel-dot::before { transition: none; }
}

@media (pointer: fine) {
  .product-carousel-track { cursor: grab; user-select: none; }
}
.product-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.product-carousel-track.is-dragging * { cursor: grabbing; }

/* Six items, each with its own scroll position and navigation dot. */
.content-carousel-track {
  --carousel-card-width: calc((100% - 48px) / 3);
  display: flex;
}
.content-carousel-track > * {
  flex: 0 0 var(--carousel-card-width);
  min-width: 0;
  scroll-snap-align: start;
}
.carousel-more { text-align: center; margin-top: 24px; }
@media (max-width: 1024px) {
  .content-carousel-track { --carousel-card-width: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .content-carousel-track { --carousel-card-width: 90%; }
}

.content-carousel-track.is-resetting { scroll-snap-type: none; scroll-behavior: auto; }

/* A single, continuously moving row of full partner logos. */
.partner-marquee { overflow: hidden; width: 100%; }
.partner-marquee-track {
  display: flex;
  width: max-content;
  animation: partner-marquee-scroll 32s linear infinite;
}
.partner-marquee-group { display: flex; flex: 0 0 auto; align-items: center; gap: 20px; padding-right: 20px; }
.partner-marquee-group img {
  display: block;
  width: clamp(150px, 14vw, 200px);
  height: auto;
  aspect-ratio: 20 / 9;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  background: #ffffff;
  padding: 0;
  transition: border-color 0.2s;
}
.partner-marquee-group img:hover { border-color: var(--brand-blue); }
@keyframes partner-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track { animation: none; }
  .partner-marquee { overflow-x: auto; }
}

/* Landing page motion: transform/opacity only, without changing layout. */
.landing-page .hero-glow {
  animation: landing-glow-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.landing-page .hero-actions .btn svg { transition: transform 0.25s ease; }
.landing-page .hero-actions .btn:hover svg { transform: translateX(3px); }
.landing-page .counter-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  .landing-page .counter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
@keyframes landing-glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
  to { transform: translate3d(-20px, 12px, 0) scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.landing-page) { scroll-behavior: auto; }
  .landing-page *, .landing-page *::before, .landing-page *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Contain sideways entrances without creating a horizontal page scrollbar. */
.landing-page > section, .landing-page > .site-footer { overflow-x: clip; }

/* Unified navy identity and restrained line icons. */
:root {
  --brand-blue: #24466b;
  --brand-blue-hover: #193550;
  --brand-cyan: #24466b;
  --brand-amber: #94a9c0;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
}
.ui-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  max-width: none;
  flex-shrink: 0;
  vertical-align: -0.16em;
}
.float-btn > .ui-icon { width: 21px; height: 21px; }
.btn-primary, .btn-danger, .hero-actions .btn-danger {
  background: var(--brand-blue);
  border: 1px solid transparent;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}
.btn-primary:hover, .btn-danger:hover, .hero-actions .btn-danger:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.16);
}
.text-gradient, .text-gradient-fire,
.section-title span.text-gradient, .section-title span.text-gradient-fire {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}
.section-pill, .section-pill.pill-danger {
  color: var(--brand-blue);
  background: #eaf0f6;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.badge-cert { background: #f1f5f9; color: #334155; border: 1px solid #dbe3ec; }
.badge-ei { background: var(--brand-blue); }
.hero-glow, .badge-pulse { display: none; }
.float-btn.hotline, .float-btn.zalo, .float-btn.messenger {
  background: var(--brand-blue);
  animation: none;
}
.float-btn { box-shadow: 0 3px 12px rgba(15, 23, 42, 0.16); }
.float-btn:hover { transform: translateY(-2px); }
.footer-badge { color: #dce5ef; }
/* Keep meaningful feedback distinct from decorative brand colors. */
.toast.error { border-left-color: #b42318; }
.toast.success { border-left-color: #26734d; }

/* Keep navigation restrained; emphasize the top information bar and contact shortcuts. */
.main-header { background: #fff; border-bottom: 1px solid #dce5ef; }
.nav-link { font-weight: 600; color: var(--text-primary); }
.nav-item.active > .nav-link, .nav-item:hover > .nav-link {
  color: var(--brand-blue);
  background: #edf1f5;
}
.header-actions .header-cta { background: var(--brand-blue); }
.header-actions .header-cta:hover { background: var(--brand-blue-hover); }
.top-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-bar a[href^="tel:"] { color: #ef4444 !important; font-weight: 700; }
.top-bar a[href^="tel:"]:hover { color: #f87171 !important; }
.top-bar .badge-tag {
  color: #ef4444;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 9999px;
}
.top-bar .ui-icon { color: #94a3b8; }
.top-bar-left .ui-icon { color: #ef4444; }
.hero-metrics .metric-num span { color: #b9d3ed; }
.floating-actions { gap: 14px; }
.floating-actions .float-btn {
  width: 48px;
  height: 48px;
  border: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.floating-actions .float-btn.hotline {
  background: #ed0020;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(237, 0, 32, .23), 0 4px 12px rgba(237, 0, 32, .22);
}
.floating-actions .float-btn.hotline > .ui-icon { fill: currentColor; stroke-width: 0; width: 21px; height: 21px; }
.floating-actions .float-btn.zalo { background: #fff; color: #0068ff; border: 1px solid #e1eaff; }
.zalo-wordmark { font-family: Arial, sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -1px; }
.floating-actions .float-btn.messenger {
  background: linear-gradient(25deg, #087eff 5%, #8c40ff 48%, #fa4ba4 88%);
  color: #fff;
}
.floating-actions .float-btn.messenger > .ui-icon { width: 33px; height: 33px; }
.floating-actions .float-tooltip { right: 60px; font-weight: 600; padding: 7px 11px; }
.floating-actions .float-btn:focus-visible .float-tooltip { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .floating-actions { right: 14px; gap: 14px; }
}

/* Top information strip: compact colored symbols and fine red certification pill. */
.top-info-icon {
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 12px;
  line-height: 1;
  vertical-align: -1px;
  margin-right: 2px;
}
.top-bar .badge-tag {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  padding: 2px 7px;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Shared reveal effects remain contained on every public page. */
.motion-page > section, .motion-page > main, .motion-page > .site-footer { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html:has(.motion-page) { scroll-behavior: auto; }
  .motion-page *, .motion-page *::before, .motion-page *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Full-page certificate previews, never cropped to landscape thumbnails. */
.certificate-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1080px; margin-inline: auto; }
.certificate-document { min-width: 0; margin: 0; text-align: center; }
.certificate-preview { display: block; width: 100%; padding: 0; background: #fff; border: 1px solid var(--border-subtle); border-radius: 4px; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.certificate-preview img { display: block; width: 100%; height: auto; aspect-ratio: 212 / 300; object-fit: contain; }
.certificate-preview:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-md); }
.certificate-preview:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 4px; }
.certificate-document figcaption { margin-top: 16px; }
.certificate-document h3 { font-size: .95rem; margin-bottom: 6px; }
.certificate-document figcaption span { font-size: .8rem; color: var(--text-muted); }
@media (max-width: 1024px) { .certificate-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .certificate-gallery { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }
