/* ============================================
   MARKETING WEBSITE - MAIN CSS
   Design: Premium Bold Agency (Red/Orange + Black)
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --primary: #f97316;
  --primary-color: #f97316;
  --primary-dark: #dc5a0c;
  --primary-light: #ffb46f;
  --primary-rgb: 249,115,22;
  --secondary: #fb923c;
  --secondary-color: #fb923c;
  --secondary-dark: #dd7f35;
  --secondary-rgb: 251,146,60;
  --accent: #fbbf24;
  
  --dark: #0a0a0a;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --dark-4: #222222;
  --dark-5: #2d2d2d;
  
  --gray-100: #f8f8f8;
  --gray-200: #f0f0f0;
  --gray-300: #e0e0e0;
  --gray-400: #b0b0b0;
  --gray-500: #808080;
  --gray-600: #606060;
  --gray-700: #404040;
  
  --white: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(var(--primary-rgb), 0.15) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-primary: 0 8px 30px rgba(var(--primary-rgb), 0.4);
  --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.2);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 999px;
  
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 80px;
  --container-max: 1320px;
  --section-padding: 100px;
}

/* ---- CSS Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-main);
}

input, textarea, select {
  font-family: var(--font-main);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { line-height: 1.7; }

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: var(--section-padding) 0;
}

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

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}

.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Divider ---- */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: 20px auto;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-logo-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-link i {
  font-size: 0.75rem;
  transition: var(--transition);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-link:hover {
  color: var(--white);
  background: rgba(var(--primary-rgb), 0.1);
}

.dropdown-link i {
  width: 16px;
  color: var(--primary);
  font-size: 0.8rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
}

.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-dropdown {
  padding: 8px 0 16px 20px;
  display: none;
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mobile-dropdown-link:hover {
  color: var(--primary);
}

.mobile-actions {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark-4);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-dark:hover {
  background: var(--dark-5);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 17px 38px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: 100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(5deg); }
  66% { transform: translateY(15px) rotate(-3deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
  padding-bottom: 60px;
  padding-top: calc(var(--header-height) + 40px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  color: var(--primary-light);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.hero-badge i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 52px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}

.hero-scroll i {
  font-size: 1rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Scroll animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   TRUSTED BRANDS TICKER
   ============================================ */
.brands-ticker {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  gap: 60px;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  flex-shrink: 0;
}

.ticker-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Service Card */
.service-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.15));
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.card:hover .service-card-icon {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
  transform: scale(1.1);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.service-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  align-self: flex-start;
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.service-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.service-card-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.service-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Course Card */
.course-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-lg);
}

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

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.course-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(var(--primary-rgb), 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.course-card:hover .course-play-btn {
  opacity: 1;
  transform: scale(1);
}

.course-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-hot { background: var(--primary); color: var(--white); }
.badge-new { background: var(--secondary); color: var(--white); }
.badge-sale { background: #10b981; color: var(--white); }
.badge-pro { background: #8b5cf6; color: var(--white); }

.course-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-card-category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  flex: 1;
}

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.course-meta-item i {
  color: var(--primary);
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.course-price {
  display: flex;
  flex-direction: column;
}

.course-price-current {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.course-price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--dark-3);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
}

.pricing-tab {
  flex: 1;
  min-width: 120px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
}

.pricing-tab.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.pricing-tab:hover:not(.active) {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.pricing-panel {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-panel.active {
  display: grid;
}

.pricing-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), var(--dark-3));
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured:hover {
  box-shadow: var(--shadow-primary), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.pricing-amount {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pricing-currency {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pricing-old-price {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-feature i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.pricing-feature.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-feature.disabled i {
  color: var(--gray-500);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  transition: var(--transition-slow);
}

.testimonial-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 32px;
  flex: 0 0 calc(33.333% - 16px);
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(var(--primary-rgb), 0.25);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
  font-size: 0.9rem;
}

.testimonial-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}

.testimonial-content::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  display: block;
  line-height: 0.5;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
}

.testimonial-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

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

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  background: var(--dark-5);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 24px;
  background: var(--primary);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(var(--primary-rgb), 0.25);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  gap: 16px;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-wrapper {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 48px;
}

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

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

.form-label span {
  color: var(--primary);
}

.form-control {
  width: 100%;
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  background: var(--dark-5);
}

.form-control.error {
  border-color: #f87171;
}

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

select.form-control option {
  background: var(--dark-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-top: 16px;
  display: none;
}

.form-message.success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
  display: block;
}

.form-message.error {
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: #f87171;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 80px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-contact-item:hover {
  color: var(--text-secondary);
}

.footer-contact-item i {
  color: var(--primary);
  width: 16px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link::before {
  content: '›';
  color: var(--primary);
  font-size: 1rem;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-link {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-legal-link:hover {
  color: var(--primary);
}

/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
}

.floating-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.floating-btn:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-lg);
}

.floating-btn.zalo {
  background: #0068ff;
}

.floating-btn.messenger {
  background: linear-gradient(135deg, #00b2ff, #006aff);
}

.floating-btn.phone {
  background: var(--gradient-primary);
}

.floating-btn.email-btn {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
}

.floating-text {
  font-size: 0.82rem;
  transition: var(--transition);
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* ============================================
   PROJECT/CASE STUDY CARDS
   ============================================ */
.project-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-lg);
}

.project-card-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb), 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-body {
  padding: 24px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  padding: 3px 10px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 600;
}

/* ============================================
   TEAM / INSTRUCTOR CARDS
   ============================================ */
.team-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(var(--primary-rgb), 0.3);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.team-card:hover .team-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.1);
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: var(--shadow-lg);
}

.blog-card-thumb {
  height: 200px;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-meta-item i {
  color: var(--primary);
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}

.blog-card-title a {
  color: var(--white);
  transition: var(--transition);
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.blog-card-read-more:hover {
  gap: 10px;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: calc(var(--header-height) + 60px) 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.breadcrumb-item {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: var(--transition);
}

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

.breadcrumb-item.active {
  color: var(--text-secondary);
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  color: var(--text-muted);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  transition: var(--transition);
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid var(--primary); }
.toast.warning { border-left: 4px solid #f59e0b; }
.toast.info { border-left: 4px solid var(--primary-color); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   MAINTENANCE PAGE
   ============================================ */
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--white) !important; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-dark { background: var(--dark) !important; }
.bg-dark-2 { background: var(--dark-2) !important; }
.bg-dark-3 { background: var(--dark-3) !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }

/* Lazy loading
   Không ẩn ảnh bằng opacity:0 mặc định. Native lazy-loading có thể hoàn tất
   trước khi JS kịp gắn sự kiện load, khiến ảnh bị trong suốt vĩnh viễn. */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop */
@media (max-width: 1400px) {
  :root { --container-max: 1200px; }
}

/* Desktop */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Tablet / Small Desktop */
@media (max-width: 1024px) {
  :root { 
    --section-padding: 70px;
    --header-height: 70px;
  }
  
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  
  .contact-form-wrapper { padding: 32px; }
  
  .pricing-tabs { justify-content: flex-start; overflow-x: auto; }
  .pricing-tab { min-width: auto; white-space: nowrap; }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  :root { 
    --section-padding: 60px;
    --header-height: 64px;
  }
  
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 20px; }
  
  .form-row { grid-template-columns: 1fr; }
  
  .section-header { margin-bottom: 40px; }
  
  .testimonial-card { flex: 0 0 calc(100% - 0px); }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .contact-form-wrapper { padding: 24px; }
  
  .floating-contact { bottom: 20px; right: 16px; }
  .floating-btn { max-width: 52px; padding: 0; width: 52px; height: 52px; border-radius: 50%; justify-content: center; }
  .floating-btn-icon { width: 100%; height: 100%; }
  .floating-text { display: none; }
  
  .pricing-panel { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --section-padding: 48px; }
  
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  
  .hero-title { font-size: 2rem; }
  
  .btn-lg { padding: 14px 28px; }
  
  .section-badge { font-size: 0.72rem; }
  
  .pricing-tabs { flex-direction: column; }
  .pricing-tab { flex: none; }
}

/* Very Small Mobile */
@media (max-width: 360px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header, .floating-contact, .mobile-menu { display: none; }
  body { background: white; color: black; }
}

/* =========================================================
   v1.0.14 — MOBILE STABILITY POLISH
   ========================================================= */
@media (max-width: 1024px) {
  .nav-wrapper{gap:14px;min-width:0}
  .nav-logo{min-width:0}.nav-logo img{max-width:170px;height:44px}
  .nav-actions{gap:8px;min-width:0}
  .mobile-menu{overscroll-behavior:contain}
}
@media (max-width: 768px) {
  .site-header .container{padding-left:14px;padding-right:14px}
  .nav-wrapper{gap:8px}
  .nav-logo img{height:40px;max-width:135px}
  .nav-actions{gap:6px}
  .nav-actions .btn{min-height:38px;padding:8px 11px;font-size:.74rem;white-space:nowrap}
  .nav-actions .btn-outline{display:none!important} /* hotline vẫn có đầy đủ trong mobile menu */
  .hamburger{flex:0 0 40px;width:40px;height:40px;padding:8px;align-items:center;justify-content:center}
  .hamburger span{width:22px}
  .mobile-menu{padding:16px 16px 26px}
  .mobile-nav-link{font-size:.98rem;padding:14px 4px}
  .mobile-actions{padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .mobile-actions .btn{width:100%;justify-content:center;white-space:normal;text-align:center}
  .hero-content,.section-header,.card,.pricing-card,.course-card,.project-card,.contact-form-wrapper{min-width:0}
  h1,h2,h3,h4,p,a,button{overflow-wrap:anywhere}
  img,video,iframe{max-width:100%}
}
@media (max-width: 480px) {
  .nav-logo img{height:36px;max-width:112px}
  .nav-actions .btn-primary{padding:8px 9px;font-size:.69rem}
  .hamburger{width:38px;height:38px;flex-basis:38px}
  .hero-cta .btn{width:100%;justify-content:center;text-align:center}
  .hero-stats{width:100%}
}
@media (max-width: 360px) {
  .site-header .container{padding-left:10px;padding-right:10px}
  .nav-logo img{max-width:96px;height:34px}
  .nav-actions .btn-primary{padding:7px 8px;font-size:.64rem}
  .nav-wrapper{gap:5px}.nav-actions{gap:4px}
}

/* =========================================================
   v1.0.15 — PERFORMANCE / MOBILE SMOOTHNESS
   Reduce expensive paint effects on small/low-power screens.
   ========================================================= */
.section-padding{content-visibility:auto;contain-intrinsic-size:1px 760px}
@media (max-width:768px){
  html{scroll-behavior:auto}
  .hero-shapes{display:none!important}
  .site-header.scrolled,.mobile-menu,.website-network-badge,.website-network-open{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .animate-on-scroll{opacity:1!important;transform:none!important;transition:none!important}
  .hero-badge,.hero-title,.hero-subtitle,.hero-cta,.hero-stats,.hero-scroll{animation:none!important}
  .ticker-wrapper{animation-duration:36s}
  .card,.pricing-card,.course-card,.project-card,.website-network-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .animate-on-scroll{opacity:1!important;transform:none!important}
  .ticker-wrapper{animation:none!important}
}

/* =========================================================
   v1.0.16 — MOBILE HEADER / HERO HARDENING
   Prevent long brand logos, CTAs, hero stats and browser UI
   from colliding on phones.
   ========================================================= */
.nav-logo-picture{display:flex;align-items:center;min-width:0;max-width:100%}
/* Desktop must keep the brand image constrained to the header.
   v1.0.16 accidentally reset height:auto here, overriding .nav-logo img (48px). */
.nav-logo-picture img{display:block;width:auto;height:48px;max-width:210px;object-fit:contain;object-position:left center}

@media (min-width:769px){
  .site-header{overflow:visible}
  .site-header .container{height:100%}
  .nav-wrapper{height:100%;min-width:0}
  .nav-logo{max-width:210px;overflow:hidden}
  .nav-logo-picture{height:48px;max-width:210px;overflow:hidden}
  .nav-logo-picture img,.nav-logo img{width:auto!important;height:48px!important;max-width:210px!important;object-fit:contain!important}
  .nav-menu{min-width:0;flex:1;justify-content:center}
  .nav-actions{flex-shrink:0}
  .hero{min-height:100vh;height:auto;overflow:hidden}
  .hero-content{padding-top:calc(var(--header-height) + 40px);padding-bottom:60px}
}

@media (max-width:768px){
  html,body{max-width:100%;overflow-x:hidden}
  :root{--header-height:64px}

  .site-header{height:var(--header-height);min-height:var(--header-height)}
  .site-header .container{width:100%;max-width:none;padding-left:14px!important;padding-right:14px!important}
  .nav-wrapper{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:10px!important;
    width:100%;
    min-width:0;
  }
  .nav-logo{
    min-width:0!important;
    width:max-content;
    max-width:calc(100vw - 86px);
    overflow:hidden;
  }
  .nav-logo-picture{max-width:100%;overflow:hidden}
  .nav-logo img{
    width:auto!important;
    height:38px!important;
    max-width:min(180px,calc(100vw - 86px))!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  .nav-actions{margin-left:auto;gap:0!important;min-width:42px!important;justify-content:flex-end}
  .nav-actions>.btn,
  .nav-actions>.desktop-contact-cta{display:none!important}
  .hamburger{
    display:flex!important;
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    padding:9px!important;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.13);
    background:rgba(10,10,10,.28);
  }
  .site-header.scrolled .hamburger{background:rgba(255,255,255,.06)}
  .hamburger span{width:22px!important;flex:0 0 auto}
  .mobile-menu{top:var(--header-height);padding:14px 16px max(24px,env(safe-area-inset-bottom))!important}
  .mobile-actions{display:grid;grid-template-columns:1fr;gap:10px;padding:18px 0 0}
  .mobile-actions .btn{width:100%;min-width:0;max-width:100%;white-space:normal;text-align:center}

  .hero{
    min-height:auto!important;
    height:auto!important;
    align-items:flex-start!important;
    overflow:hidden!important;
  }
  .hero-content{
    width:100%;
    min-width:0;
    padding-top:calc(var(--header-height) + 36px)!important;
    padding-bottom:48px!important;
  }
  .hero-inner{width:100%;max-width:100%!important;min-width:0}
  .hero-badge{
    max-width:100%;
    white-space:normal;
    line-height:1.35;
    padding:7px 13px;
    margin-bottom:20px;
    font-size:.68rem;
  }
  .hero-title{
    max-width:100%;
    font-size:clamp(2rem,10.2vw,2.75rem)!important;
    line-height:1.04!important;
    letter-spacing:-.045em;
    margin-bottom:20px!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none;
  }
  .hero-title .highlight{display:inline}
  .hero-kicker{
    max-width:100%;
    font-size:1rem!important;
    line-height:1.45!important;
    margin-bottom:12px!important;
    overflow-wrap:break-word!important;
  }
  .hero-subtitle{
    max-width:100%;
    font-size:.97rem!important;
    line-height:1.65!important;
    margin-bottom:26px!important;
    overflow-wrap:break-word!important;
  }
  .hero-cta{
    width:100%;
    display:grid!important;
    grid-template-columns:1fr;
    gap:12px!important;
    align-items:stretch!important;
  }
  .hero-cta .btn{
    width:100%!important;
    max-width:100%;
    min-height:52px;
    padding:13px 16px!important;
    font-size:.95rem!important;
    white-space:normal;
    line-height:1.3;
  }
  .hero-stats{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:24px 14px!important;
    margin-top:36px!important;
  }
  .hero-stat{min-width:0;align-items:flex-start}
  .hero-stat-number{font-size:1.8rem!important;line-height:1.05}
  .hero-stat-label{
    max-width:100%;
    font-size:.7rem!important;
    line-height:1.35!important;
    letter-spacing:.035em!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
  .hero-scroll{display:none!important}
  .brands-ticker{position:relative;z-index:2}
}

@media (max-width:480px){
  .site-header .container{padding-left:12px!important;padding-right:12px!important}
  .nav-logo{max-width:calc(100vw - 76px)}
  .nav-logo img{height:36px!important;max-width:min(168px,calc(100vw - 76px))!important}
  .hamburger{width:40px!important;height:40px!important;min-width:40px!important;flex-basis:40px!important}
  .hero-content{padding-top:calc(var(--header-height) + 30px)!important;padding-bottom:42px!important}
  .hero-title{font-size:clamp(1.95rem,10.7vw,2.45rem)!important}
  .hero-kicker{font-size:.94rem!important}
  .hero-subtitle{font-size:.93rem!important;line-height:1.6!important}
  .hero-stat-number{font-size:1.7rem!important}
}

@media (max-width:360px){
  .site-header .container{padding-left:10px!important;padding-right:10px!important}
  .nav-logo img{height:34px!important;max-width:min(148px,calc(100vw - 72px))!important}
  .hero-title{font-size:1.9rem!important}
  .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 10px!important}
  .hero-stat-number{font-size:1.55rem!important}
  .hero-stat-label{font-size:.65rem!important}
}

/* ===== AI CUSTOMER CHAT v1.0.22 ===== */
.floating-btn.ai-support{
  position:relative;border:0;background:linear-gradient(135deg,var(--primary),var(--secondary));cursor:pointer;font-family:inherit
}
.floating-btn.ai-support .floating-btn-icon{background:rgba(255,255,255,.14)}
.ai-online-dot{width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.16);flex:0 0 auto}
.floating-contact.ai-open .floating-btn:not(.ai-support){display:none}
.ai-chat-panel{
  position:fixed;right:24px;bottom:92px;width:min(410px,calc(100vw - 48px));height:min(590px,calc(100vh - 130px));z-index:910;
  background:#0d111a;border:1px solid rgba(255,255,255,.12);border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.45);
  display:none;flex-direction:column;overflow:hidden
}
.ai-chat-panel.open{display:flex}
.ai-chat-head{padding:15px 16px;background:linear-gradient(135deg,rgba(var(--primary-rgb),.22),rgba(var(--primary-rgb),.05));border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between;gap:12px}
.ai-chat-head strong{color:#fff}.ai-chat-head span{display:block;color:#94a3b8;font-size:.72rem;margin-top:2px;line-height:1.4}
.ai-chat-close{width:32px;height:32px;min-width:32px;border:0;border-radius:9px;background:rgba(255,255,255,.07);color:#fff;font-size:20px;cursor:pointer}
.ai-chat-messages{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.ai-msg{max-width:86%;padding:10px 12px;border-radius:14px;color:#e5e7eb;font-size:.88rem;line-height:1.5;white-space:pre-wrap}
.ai-msg.bot{align-self:flex-start;background:#171e2b;border:1px solid rgba(255,255,255,.07)}.ai-msg.user{align-self:flex-end;background:var(--primary);color:#fff}
.ai-chat-form{padding:12px;border-top:1px solid rgba(255,255,255,.08);display:flex;gap:8px;background:#0b0f16}
.ai-chat-input{flex:1;min-width:0;border:1px solid rgba(255,255,255,.12);background:#141b27;color:#fff;border-radius:12px;padding:10px 12px;outline:none}
.ai-chat-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.12)}
.ai-chat-send{width:42px;min-width:42px;border:0;border-radius:12px;background:var(--primary);color:#fff;cursor:pointer}
.ai-chat-note{padding:0 12px 10px;color:#64748b;font-size:.68rem;background:#0b0f16;line-height:1.45}
@media(max-width:640px){
  .floating-contact{right:14px;bottom:16px;gap:10px}
  .floating-btn.ai-support .ai-online-dot{position:absolute;right:2px;top:2px}
  .ai-chat-panel{left:8px;right:8px;bottom:82px;width:auto;height:min(70vh,560px);border-radius:16px}
  .ai-chat-head{padding:13px 14px}.ai-chat-head strong{font-size:.9rem}.ai-chat-head span{font-size:.66rem}
}

/* ============================================
   v1.0.24 — Uploaded images: show the full image, never crop/distort
   ============================================ */
.service-card-img{width:100%!important;height:auto!important;object-fit:contain!important;display:block!important;transform:none!important}
.course-card-thumb:has(> img),.project-card-img:has(> img),.blog-card-thumb:has(> img){height:auto!important;min-height:0!important;overflow:hidden}
.course-card-thumb>img,.project-card-img>img,.blog-card-thumb>img{width:100%!important;height:auto!important;object-fit:contain!important;display:block!important;transform:none!important}
.course-card:hover .course-card-thumb img,.project-card:hover .project-card-img img,.blog-card:hover .blog-card-thumb img{transform:none!important}
.team-avatar{width:auto!important;max-width:110px!important;height:auto!important;max-height:none!important;object-fit:contain!important;border-radius:14px!important;display:block!important}
.testimonial-avatar{width:auto!important;max-width:58px!important;height:auto!important;max-height:72px!important;object-fit:contain!important;border-radius:10px!important;display:block!important}
/* Ảnh upload hiển thị trong nội dung chi tiết luôn giữ đúng tỉ lệ gốc. */
.content-body img[src*="/assets/uploads/"],.service-detail img[src*="/assets/uploads/"],.project-detail img[src*="/assets/uploads/"]{max-width:100%!important;width:auto;height:auto!important;object-fit:contain!important}


/* ============================================
   v1.0.25 — AI chat typography + compact links
   ============================================ */
.ai-msg.bot{white-space:normal!important;overflow-wrap:anywhere}
.ai-msg.bot strong{font-weight:800;color:#fff}
.ai-msg.bot .ai-smart-link{display:inline-flex;align-items:center;gap:5px;color:#7dd3fc;font-weight:800;text-decoration:none;border-bottom:1px dashed rgba(125,211,252,.55);margin:1px 2px}
.ai-msg.bot .ai-smart-link:after{content:'↗';font-size:.72em;opacity:.8}
.ai-msg.bot .ai-smart-link:hover{color:#fff;border-bottom-color:#fff}
.ai-list-line{display:flex;align-items:flex-start;gap:7px;margin:5px 0;line-height:1.5}
.ai-list-dot,.ai-list-num{flex:0 0 auto;color:var(--primary);font-weight:800}
.floating-btn.ai-support .floating-btn-icon i{font-size:1rem}
@media(max-width:640px){.floating-btn.ai-support .floating-text{font-weight:800}.ai-msg{max-width:92%}}

/* =========================================================
   v1.0.28 — AI Chat image attachment
   ========================================================= */
.ai-chat-attach{width:42px;min-width:42px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#141b27;color:#cbd5e1;cursor:pointer;display:grid;place-items:center;transition:.18s ease}
.ai-chat-attach:hover{border-color:var(--primary);color:#fff;background:rgba(var(--primary-rgb),.16)}
.ai-chat-attachment{margin:0 12px 8px;padding:8px 10px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#101722;display:grid;grid-template-columns:52px minmax(0,1fr) 32px;gap:9px;align-items:center}
.ai-chat-attachment[hidden]{display:none!important}.ai-chat-attachment img{width:52px;height:52px;object-fit:contain;border-radius:9px;background:#0b0f16;border:1px solid rgba(255,255,255,.08)}
.ai-chat-attachment b{display:block;color:#f8fafc;font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-chat-attachment small{display:block;color:#64748b;font-size:.66rem;margin-top:3px;line-height:1.35}
.ai-chat-attachment button{width:30px;height:30px;border:0;border-radius:9px;background:rgba(255,255,255,.06);color:#94a3b8;cursor:pointer}.ai-chat-attachment button:hover{background:#3f1d25;color:#fecaca}
@media(max-width:520px){.ai-chat-form{gap:6px}.ai-chat-attach,.ai-chat-send{width:40px;min-width:40px}.ai-chat-attachment{margin:0 10px 7px}}
/* v1.0.29 premium button system */
.btn,.hero-cta a,.nav-actions a,.mobile-actions a,button[type="submit"]{border:1px solid transparent;text-decoration:none;-webkit-tap-highlight-color:transparent}
.btn{min-height:46px;border-radius:12px;font-weight:750;box-shadow:0 8px 22px rgba(0,0,0,.16);isolation:isolate}
.btn::after{content:"";position:absolute;inset:1px;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.13),transparent 48%);pointer-events:none;z-index:-1}
.btn-primary{border-color:rgba(255,255,255,.14);box-shadow:0 10px 26px rgba(var(--primary-rgb),.28)}
.btn-primary:hover{transform:translateY(-2px);filter:saturate(1.06);box-shadow:0 14px 32px rgba(var(--primary-rgb),.36)}
.btn-outline{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.035);backdrop-filter:blur(8px)}
.btn-outline:hover{background:rgba(var(--primary-rgb),.10);border-color:rgba(var(--primary-rgb),.6);color:#fff}
.btn-dark{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035));border-color:rgba(255,255,255,.10)}
.btn i{font-size:.95em}.btn:focus-visible{outline:3px solid rgba(var(--primary-rgb),.3);outline-offset:3px}
@media(max-width:640px){.btn{min-height:48px;padding:12px 18px;border-radius:12px}.btn-lg{padding:14px 20px}.hero-cta{gap:10px!important}}

/* ============================================================
   v1.0.34 - GLOBAL BUTTON RENDERING FIX
   Prevent right-edge black artifacts caused by negative-z pseudo
   overlays / GPU compositing while preserving premium gradients.
   ============================================================ */
.btn,
.hero-cta a,
.nav-actions a,
.mobile-actions a,
.floating-contact-btn,
.ai-chat-toggle,
.ai-chat-send,
.ai-chat-attach,
button[type="submit"] {
  isolation: auto !important;
  overflow: hidden;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
  background-origin: border-box !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* The old decorative layers were the source of the black edge. */
.btn::before,
.btn::after {
  content: none !important;
  display: none !important;
}

/* Premium hover without pseudo overlays. */
.btn-primary {
  background-image: linear-gradient(135deg,var(--primary),var(--secondary)) !important;
}
.btn-primary:hover {
  background-image: linear-gradient(135deg,var(--secondary),var(--primary)) !important;
}

/* Keep button content above native/GPU layers. */
.btn > *,
.hero-cta a > *,
.nav-actions a > *,
.mobile-actions a > *,
button[type="submit"] > * {
  position: relative;
  z-index: 1;
}

@media (hover:none) {
  .btn:hover,
  .hero-cta a:hover,
  .nav-actions a:hover,
  .mobile-actions a:hover,
  button[type="submit"]:hover {
    transform: none;
  }
}

/* ============================================================
   v1.0.35 - SITE-WIDE BUTTON NORMALIZATION
   Final safe rendering layer for every interactive button/link.
   Prevents dark/right-edge seams across desktop/mobile browsers.
   ============================================================ */
:where(
  button,
  input[type="submit"],
  input[type="button"],
  a.btn,
  a[class*="-btn"],
  a[class*="btn-"],
  .course-play-btn,
  .slider-btn,
  .social-btn,
  .floating-btn,
  .floating-contact-btn,
  .ai-chat-toggle,
  .ai-chat-send,
  .ai-chat-attach
) {
  -webkit-appearance: none;
  appearance: none;
  border-image: none !important;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
  background-origin: border-box !important;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Decorative pseudo overlays caused compositing seams on several browsers. */
:where(
  button,
  a.btn,
  a[class*="-btn"],
  a[class*="btn-"],
  .course-play-btn,
  .slider-btn,
  .social-btn,
  .floating-btn,
  .floating-contact-btn,
  .ai-chat-toggle,
  .ai-chat-send,
  .ai-chat-attach
)::before,
:where(
  button,
  a.btn,
  a[class*="-btn"],
  a[class*="btn-"],
  .course-play-btn,
  .slider-btn,
  .social-btn,
  .floating-btn,
  .floating-contact-btn,
  .ai-chat-toggle,
  .ai-chat-send,
  .ai-chat-attach
)::after {
  pointer-events: none;
}

/* Explicitly remove legacy decoration from the shared CTA system. */
.btn::before,
.btn::after,
.hero-cta .btn::before,
.hero-cta .btn::after,
.nav-actions .btn::before,
.nav-actions .btn::after,
.mobile-actions .btn::before,
.mobile-actions .btn::after {
  content: none !important;
  display: none !important;
}

/* Avoid GPU seam artifacts while keeping shadows outside the element. */
.btn,
.hero-cta a,
.nav-actions a,
.mobile-actions a,
.course-play-btn,
.slider-btn,
.social-btn,
.ai-chat-send,
.ai-chat-attach,
button[type="submit"] {
  transform-style: flat;
  -webkit-transform-style: flat;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

@media (max-width: 768px) {
  :where(button, a.btn, a[class*="-btn"], a[class*="btn-"]) {
    max-width: 100%;
  }
}


/* ============================================================
   v1.0.39 - SERVICE DETAIL MOBILE POLISH
   Desktop layout is intentionally unchanged. Mobile only.
   ============================================================ */
@media (max-width: 768px) {
  .service-detail-hero {
    padding: 112px 0 46px !important;
  }
  .service-detail-hero .container,
  .service-detail-main .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .service-detail-breadcrumbs {
    margin-bottom: 16px !important;
    gap: 7px !important;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .service-detail-breadcrumbs::-webkit-scrollbar { display:none; }
  .service-detail-hero-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 26px !important;
    align-items: start !important;
  }
  .service-detail-title {
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.8px !important;
    margin-bottom: 14px !important;
  }
  .service-detail-summary {
    font-size: 15px !important;
    line-height: 1.68 !important;
    margin-bottom: 22px !important;
  }
  .service-detail-feature-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 10px !important;
    margin-bottom: 22px !important;
  }
  .service-detail-feature-grid > div {
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
  }
  .service-detail-actions {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .service-detail-actions > .btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    min-height: 50px !important;
    padding: 13px 18px !important;
    text-align: center !important;
  }
  .service-detail-price {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    text-align: center;
    line-height: 1.45;
  }
  .service-detail-price strong {
    display: inline-block;
    margin-left: 4px;
  }
  .service-detail-media {
    width: 100%;
    min-width: 0;
  }
  .service-detail-media-frame {
    width: 100%;
    border-radius: 15px !important;
    background: #0d1118;
    box-shadow: 0 16px 34px rgba(0,0,0,.34) !important;
  }
  .service-detail-media-frame img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }
  .service-detail-media-fallback {
    padding: 40px 22px !important;
  }
  .service-detail-main {
    padding: 46px 0 56px !important;
  }
  .service-detail-layout {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 24px !important;
  }
  .service-detail-card {
    padding: 22px !important;
    margin-bottom: 22px !important;
    border-radius: 14px !important;
    min-width: 0 !important;
  }
  .service-detail-card h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  .service-detail-card .article-body,
  .service-detail-card p,
  .service-detail-card li {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .service-detail-sidebar {
    gap: 20px !important;
    min-width: 0 !important;
  }
  .service-detail-contact {
    position: static !important;
    top: auto !important;
    padding: 22px !important;
  }
  .service-detail-contact input,
  .service-detail-contact textarea,
  .service-detail-contact button {
    min-height: 46px;
    font-size: 14px !important;
  }
  .service-detail-related {
    padding: 22px !important;
  }
}

@media (max-width: 480px) {
  .service-detail-hero {
    padding-top: 100px !important;
    padding-bottom: 38px !important;
  }
  .service-detail-hero .container,
  .service-detail-main .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .service-detail-title {
    font-size: clamp(28px, 9.5vw, 34px) !important;
  }
  .service-detail-card,
  .service-detail-contact,
  .service-detail-related {
    padding: 18px !important;
    border-radius: 13px !important;
  }
  .service-detail-media-frame {
    border-radius: 13px !important;
  }
}


/* ============================================
   v1.0.48 - HOMEPAGE HERO TITLE SHOWCASE
   Centered two-line title inspired by premium digital agency layouts.
   ============================================ */
.home .hero-inner-showcase,
.hero .hero-inner-showcase {
  width:100%;
  max-width:980px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
.hero .hero-inner-showcase .hero-badge {
  width:max-content;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
}
.hero .hero-title-showcase {
  max-width:1050px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:26px;
  font-size:clamp(3rem,5.4vw,5.35rem);
  line-height:.98;
  letter-spacing:-.055em;
  text-align:center;
  text-wrap:balance;
}
.hero .hero-title-showcase .hero-title-main,
.hero .hero-title-showcase .hero-title-accent {
  display:block;
  width:100%;
}
.hero .hero-title-showcase .hero-title-main {
  color:#fff;
  -webkit-text-fill-color:#fff;
  text-shadow:0 3px 28px rgba(0,0,0,.28);
}
.hero .hero-title-showcase .hero-title-accent {
  width:max-content;
  max-width:100%;
  margin:.08em auto 0;
  padding-right:.08em;
  background:linear-gradient(90deg,var(--primary) 0%,#2f7cff 48%,#0ea5e9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:var(--primary);
  filter:drop-shadow(0 8px 26px rgba(var(--primary-rgb),.22));
}
.hero .hero-title-showcase .hero-title-accent::after {
  content:'';
  display:inline-block;
  width:3px;
  height:.78em;
  margin-left:.12em;
  border-radius:999px;
  background:var(--primary);
  vertical-align:-.02em;
  animation:heroTitleCaret 1s steps(1,end) infinite;
  -webkit-text-fill-color:initial;
}
@keyframes heroTitleCaret { 0%,48%{opacity:1} 49%,100%{opacity:.08} }
.hero .hero-inner-showcase .hero-kicker,
.hero .hero-inner-showcase .hero-subtitle {
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
.hero .hero-inner-showcase .hero-subtitle { max-width:720px; }
.hero .hero-inner-showcase .hero-cta { justify-content:center; }
.hero .hero-inner-showcase .hero-stats { justify-content:center; }

@media (max-width: 991px) {
  .hero .hero-title-showcase {
    font-size:clamp(2.65rem,7.8vw,4.3rem)!important;
    max-width:820px;
  }
}
@media (max-width: 767px) {
  .hero .hero-inner-showcase { max-width:100%!important; }
  .hero .hero-title-showcase {
    font-size:clamp(2.15rem,10.6vw,3.15rem)!important;
    line-height:1.02!important;
    letter-spacing:-.045em!important;
    margin-bottom:20px!important;
    padding:0 2px;
  }
  .hero .hero-title-showcase .hero-title-accent {
    width:auto;
    max-width:100%;
    margin-top:.1em;
    overflow-wrap:break-word;
  }
  .hero .hero-title-showcase .hero-title-accent::after { width:2px; }
  .hero .hero-inner-showcase .hero-badge { margin-bottom:18px; }
  .hero .hero-inner-showcase .hero-cta { align-items:stretch!important; }
}
@media (max-width: 420px) {
  .hero .hero-title-showcase { font-size:clamp(2rem,10.2vw,2.65rem)!important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-title-showcase .hero-title-accent::after { animation:none; opacity:.75; }
}

/* ============================================
   v1.0.49 - HOMEPAGE HERO CONTENT TRUE CENTER
   Keep desktop hero title as-is; center subtitle, CTAs and stats precisely.
   ============================================ */
.hero .hero-inner-showcase {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:1080px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
.hero .hero-inner-showcase .hero-kicker {
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
.hero .hero-inner-showcase .hero-subtitle {
  width:min(100%,720px)!important;
  max-width:720px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
.hero .hero-inner-showcase .hero-cta {
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
}
.hero .hero-inner-showcase .hero-stats {
  width:min(100%,800px)!important;
  max-width:800px!important;
  margin:52px auto 0!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:24px!important;
  justify-content:center!important;
  justify-items:center!important;
  align-items:start!important;
}
.hero .hero-inner-showcase .hero-stat {
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
}
.hero .hero-inner-showcase .hero-stat-number,
.hero .hero-inner-showcase .hero-stat-label {
  text-align:center!important;
}

@media (max-width: 767px) {
  .hero .hero-inner-showcase .hero-cta {
    width:min(100%,520px)!important;
    align-items:stretch!important;
  }
  .hero .hero-inner-showcase .hero-stats {
    width:min(100%,520px)!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:22px 12px!important;
    margin-top:38px!important;
  }
}


/* ============================================
   v1.0.50 - HERO PREMIUM TYPOGRAPHY
   Manrope-based display typography inspired by modern digital agency hero layouts.
   ============================================ */
.hero .hero-title-showcase {
  font-family:'Manrope','Plus Jakarta Sans','Inter',sans-serif!important;
  font-weight:700!important;
  font-optical-sizing:auto;
  letter-spacing:-.048em!important;
  line-height:1.035!important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.hero .hero-title-showcase .hero-title-main,
.hero .hero-title-showcase .hero-title-accent {
  font-family:inherit!important;
  font-weight:700!important;
  letter-spacing:inherit!important;
}
.hero .hero-title-showcase .hero-title-main {
  text-shadow:0 3px 22px rgba(0,0,0,.24)!important;
}
.hero .hero-title-showcase .hero-title-accent {
  line-height:1.02!important;
  filter:drop-shadow(0 8px 22px rgba(var(--primary-rgb),.18))!important;
}
.hero .hero-inner-showcase .hero-badge,
.hero .hero-inner-showcase .hero-kicker {
  font-family:'Manrope','Plus Jakarta Sans','Inter',sans-serif!important;
  font-weight:600!important;
  letter-spacing:.105em!important;
}
.hero .hero-inner-showcase .hero-subtitle {
  font-family:'Manrope','Plus Jakarta Sans','Inter',sans-serif!important;
  font-weight:450!important;
  letter-spacing:-.015em!important;
  line-height:1.62!important;
}
.hero .hero-inner-showcase .hero-cta .btn {
  font-family:'Manrope','Plus Jakarta Sans','Inter',sans-serif!important;
  font-weight:700!important;
  letter-spacing:-.015em!important;
}
.hero .hero-inner-showcase .hero-stat-number {
  font-family:'Manrope','Plus Jakarta Sans','Inter',sans-serif!important;
  font-weight:700!important;
  letter-spacing:-.035em!important;
}
.hero .hero-inner-showcase .hero-stat-label {
  font-family:'Manrope','Plus Jakarta Sans','Inter',sans-serif!important;
  font-weight:500!important;
  letter-spacing:.01em!important;
}

@media (min-width: 992px) {
  .hero .hero-title-showcase {
    font-size:clamp(3.3rem,5.25vw,5.15rem)!important;
    max-width:1120px!important;
  }
}
@media (max-width: 991px) {
  .hero .hero-title-showcase {
    letter-spacing:-.044em!important;
    line-height:1.04!important;
  }
}
@media (max-width: 767px) {
  .hero .hero-title-showcase {
    font-weight:700!important;
    letter-spacing:-.038em!important;
    line-height:1.06!important;
  }
  .hero .hero-inner-showcase .hero-subtitle {
    line-height:1.65!important;
    letter-spacing:-.01em!important;
  }
}

/* ============================================
   v1.0.51 - HERO H1 + TYPEWRITER H2
   H1 lớn, đứng yên; H2 tách riêng và chạy type/delete.
   ============================================ */
.hero .hero-title-stack{
  width:100%;
  max-width:1180px;
  margin:0 auto 24px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.hero .hero-title-h1{
  width:100%;
  max-width:1160px;
  margin:0 auto!important;
  font-family:'Manrope','Plus Jakarta Sans','Inter',sans-serif!important;
  font-size:clamp(3.65rem,5.6vw,5.75rem)!important;
  line-height:.98!important;
  letter-spacing:-.055em!important;
  font-weight:720!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:0 4px 30px rgba(0,0,0,.28)!important;
  text-wrap:balance;
}
.hero .hero-title-h2{
  width:100%;
  max-width:1080px;
  min-height:1.14em;
  margin:0 auto!important;
  padding:0 .08em;
  font-family:'Manrope','Plus Jakarta Sans','Inter',sans-serif!important;
  font-size:clamp(2.8rem,4.55vw,4.65rem)!important;
  line-height:1.04!important;
  letter-spacing:-.052em!important;
  font-weight:720!important;
  text-align:center;
  color:var(--primary);
  overflow-wrap:anywhere;
}
.hero .hero-title-h2 #heroTypewriter{
  background:linear-gradient(90deg,var(--primary) 0%,#2578ff 48%,#0ea5e9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 8px 24px rgba(var(--primary-rgb),.18));
}
.hero .hero-type-caret{
  display:inline-block;
  width:3px;
  height:.82em;
  margin-left:.11em;
  border-radius:999px;
  background:var(--primary);
  vertical-align:-.015em;
  animation:heroH2Caret .8s steps(1,end) infinite;
}
@keyframes heroH2Caret{0%,48%{opacity:1}49%,100%{opacity:.08}}

@media (max-width:991px){
  .hero .hero-title-stack{gap:8px;margin-bottom:22px}
  .hero .hero-title-h1{font-size:clamp(3rem,7.7vw,4.55rem)!important;line-height:1.01!important}
  .hero .hero-title-h2{font-size:clamp(2.45rem,6.7vw,3.8rem)!important;line-height:1.04!important}
}
@media (max-width:767px){
  .hero .hero-title-stack{gap:7px;margin-bottom:19px;padding:0 2px}
  .hero .hero-title-h1{font-size:clamp(2.35rem,11vw,3.2rem)!important;line-height:1.03!important;letter-spacing:-.045em!important}
  .hero .hero-title-h2{font-size:clamp(2rem,9.7vw,2.8rem)!important;line-height:1.06!important;letter-spacing:-.042em!important;min-height:1.18em}
  .hero .hero-type-caret{width:2px}
}
@media (max-width:420px){
  .hero .hero-title-h1{font-size:clamp(2.12rem,10.5vw,2.75rem)!important}
  .hero .hero-title-h2{font-size:clamp(1.85rem,9.2vw,2.45rem)!important}
}
@media (prefers-reduced-motion:reduce){
  .hero .hero-type-caret{animation:none;opacity:.75}
}


/* ============================================
   v1.0.52 - HERO H2 GLOW + MOBILE SINGLE-LINE FIT
   H2 phát sáng; H1/H2 giữ riêng từng dòng và JS tự co chữ khi màn hình hẹp.
   ============================================ */
.hero .hero-title-h2{
  white-space:nowrap;
  overflow:visible;
  max-width:100%;
}
.hero .hero-title-h2{
  position:relative;
  min-height:1.16em;
  isolation:isolate;
}
.hero .hero-title-h2 #heroTypewriter{
  display:inline-block;
  position:relative;
  z-index:1;
  background:linear-gradient(90deg,#0b6cff 0%,#0768ff 35%,#00a7ff 68%,#29d3ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:
    drop-shadow(0 0 6px rgba(13,110,253,.78))
    drop-shadow(0 0 16px rgba(0,153,255,.48))
    drop-shadow(0 8px 28px rgba(0,92,255,.32));
  animation:heroH2Glow 2.6s ease-in-out infinite alternate;
  will-change:filter;
}
.hero .hero-type-caret{
  box-shadow:0 0 8px rgba(13,110,253,.9),0 0 18px rgba(14,165,233,.58);
}
@keyframes heroH2Glow{
  from{filter:drop-shadow(0 0 5px rgba(13,110,253,.66)) drop-shadow(0 0 13px rgba(0,153,255,.34)) drop-shadow(0 8px 22px rgba(0,92,255,.25))}
  to{filter:drop-shadow(0 0 9px rgba(13,110,253,.92)) drop-shadow(0 0 23px rgba(0,184,255,.58)) drop-shadow(0 10px 34px rgba(0,92,255,.38))}
}
.hero .hero-title-stack{
  overflow:visible;
}
@media (max-width:767px){
  .hero .hero-title-stack{
    width:100%;
    max-width:100%;
    gap:10px;
    margin-bottom:18px;
    padding-left:10px;
    padding-right:10px;
  }
  .hero .hero-title-h1,
  .hero .hero-title-h2{
    width:auto;
    max-width:calc(100vw - 32px);
    margin-left:auto!important;
    margin-right:auto!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-wrap:nowrap!important;
  }
  .hero .hero-title-h1{
    font-size:var(--hero-h1-fit,clamp(2.2rem,10.2vw,3rem))!important;
    line-height:1.02!important;
  }
  .hero .hero-title-h2{
    font-size:var(--hero-h2-fit,clamp(1.8rem,8.9vw,2.55rem))!important;
    line-height:1.06!important;
    min-height:1.2em;
  }
  .hero .hero-inner-showcase .hero-kicker{
    margin-top:2px!important;
  }
  .hero .hero-inner-showcase .hero-subtitle{
    max-width:92vw!important;
    line-height:1.62!important;
  }
}
@media (max-width:420px){
  .hero .hero-title-stack{padding-left:8px;padding-right:8px;gap:8px}
  .hero .hero-title-h1,.hero .hero-title-h2{max-width:calc(100vw - 24px)}
  .hero .hero-title-h1{font-size:var(--hero-h1-fit,2rem)!important}
  .hero .hero-title-h2{font-size:var(--hero-h2-fit,1.7rem)!important}
}
@media (prefers-reduced-motion:reduce){
  .hero .hero-title-h2 #heroTypewriter{animation:none!important}
}

/* ============================================
   v1.0.53 - HERO H2 BRIGHT GLOW + SAFE FIT
   - H2 xanh sáng/cyan giống mẫu, glow mềm.
   - Chừa vùng đệm theo chiều dọc để dấu tiếng Việt và glow không bị cắt.
   - H2 luôn nằm riêng một dòng và được JS co vừa chiều ngang.
   ============================================ */
.hero .hero-title-stack{
  width:100%;
  max-width:1180px;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:0 12px 8px;
  overflow:visible!important;
  box-sizing:border-box;
}
.hero .hero-title-h1{
  max-width:1160px;
  margin-left:auto!important;
  margin-right:auto!important;
  line-height:1.035!important;
  padding:.03em .05em .05em;
  overflow:visible!important;
}
.hero .hero-title-h2{
  display:flex!important;
  align-items:center;
  justify-content:center;
  width:100%!important;
  max-width:min(1120px,calc(100vw - 32px))!important;
  min-height:1.48em!important;
  margin:-.03em auto 0!important;
  padding:.12em .18em .22em!important;
  box-sizing:border-box;
  line-height:1.12!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-wrap:nowrap!important;
  font-size:var(--hero-h2-fit,clamp(3rem,4.7vw,4.9rem))!important;
  letter-spacing:-.047em!important;
}
.hero .hero-title-h2 #heroTypewriter{
  display:inline-block;
  max-width:100%;
  padding:.03em .02em .08em;
  background:linear-gradient(90deg,#0b67ff 0%,#087cff 34%,#009cff 68%,#13c7ff 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:#0b82ff!important;
  -webkit-text-fill-color:transparent!important;
  filter:
    drop-shadow(0 0 4px rgba(11,103,255,.88))
    drop-shadow(0 0 11px rgba(0,157,255,.72))
    drop-shadow(0 0 24px rgba(0,157,255,.46))
    drop-shadow(0 9px 30px rgba(0,92,255,.28))!important;
  animation:heroH2GlowV153 2.45s ease-in-out infinite alternate!important;
  will-change:filter;
}
.hero .hero-type-caret{
  flex:0 0 auto;
  width:3px!important;
  height:.86em!important;
  margin-left:.12em!important;
  margin-top:.02em;
  background:#0aa9ff!important;
  box-shadow:0 0 7px rgba(10,169,255,.95),0 0 18px rgba(10,169,255,.72),0 0 28px rgba(0,110,255,.45)!important;
}
@keyframes heroH2GlowV153{
  from{filter:drop-shadow(0 0 4px rgba(11,103,255,.76)) drop-shadow(0 0 10px rgba(0,157,255,.54)) drop-shadow(0 0 20px rgba(0,157,255,.34)) drop-shadow(0 8px 25px rgba(0,92,255,.22))}
  to{filter:drop-shadow(0 0 6px rgba(11,103,255,.98)) drop-shadow(0 0 15px rgba(0,180,255,.86)) drop-shadow(0 0 30px rgba(0,180,255,.56)) drop-shadow(0 10px 34px rgba(0,92,255,.34))}
}
@media (max-width:991px){
  .hero .hero-title-stack{padding-left:10px;padding-right:10px;padding-bottom:7px;gap:7px}
  .hero .hero-title-h1{font-size:clamp(2.8rem,7.2vw,4.25rem)!important}
  .hero .hero-title-h2{
    max-width:calc(100vw - 28px)!important;
    min-height:1.5em!important;
    font-size:var(--hero-h2-fit,clamp(2.35rem,6.4vw,3.65rem))!important;
  }
}
@media (max-width:767px){
  .hero .hero-title-stack{padding:0 8px 7px!important;gap:6px!important}
  .hero .hero-title-h1{
    width:100%!important;
    max-width:calc(100vw - 24px)!important;
    white-space:normal!important;
    text-wrap:balance!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    font-size:clamp(2.18rem,10.4vw,3.08rem)!important;
    line-height:1.02!important;
    letter-spacing:-.048em!important;
  }
  .hero .hero-title-h2{
    width:100%!important;
    max-width:calc(100vw - 18px)!important;
    min-height:1.58em!important;
    padding:.13em .08em .27em!important;
    font-size:var(--hero-h2-fit,clamp(1.9rem,9vw,2.7rem))!important;
    line-height:1.14!important;
    letter-spacing:-.038em!important;
  }
  .hero .hero-title-h2 #heroTypewriter{padding-bottom:.1em}
  .hero .hero-type-caret{width:2px!important;margin-left:.09em!important}
}
@media (max-width:420px){
  .hero .hero-title-h1{font-size:clamp(2rem,10vw,2.68rem)!important;max-width:calc(100vw - 18px)!important}
  .hero .hero-title-h2{max-width:calc(100vw - 12px)!important;font-size:var(--hero-h2-fit,1.82rem)!important}
}
@media (prefers-reduced-motion:reduce){
  .hero .hero-title-h2 #heroTypewriter{animation:none!important}
}
.hero .hero-bg-picture{display:block;width:100%;height:100%}
.hero .hero-bg-picture img{display:block;width:100%;height:100%;object-fit:cover}

/* ============================================
   v1.0.54 - HERO H2 DEEP ROYAL BLUE
   Đậm màu giống mẫu, glow gọn để chữ rõ nét và không nhòe.
   ============================================ */
.hero .hero-title-h2 #heroTypewriter{
  background:linear-gradient(90deg,#0756f5 0%,#065ff7 34%,#0870ff 67%,#1188ff 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:#075ff5!important;
  -webkit-text-fill-color:transparent!important;
  filter:
    drop-shadow(0 0 2px rgba(0,68,255,.92))
    drop-shadow(0 0 7px rgba(0,91,255,.62))
    drop-shadow(0 0 16px rgba(0,105,255,.34))!important;
  animation:heroH2GlowV154 2.6s ease-in-out infinite alternate!important;
  font-weight:800!important;
}
.hero .hero-type-caret{
  background:#075ff5!important;
  box-shadow:0 0 5px rgba(7,95,245,.92),0 0 13px rgba(0,105,255,.55)!important;
}
@keyframes heroH2GlowV154{
  from{
    filter:drop-shadow(0 0 2px rgba(0,68,255,.82)) drop-shadow(0 0 6px rgba(0,91,255,.50)) drop-shadow(0 0 13px rgba(0,105,255,.28));
  }
  to{
    filter:drop-shadow(0 0 3px rgba(0,68,255,.96)) drop-shadow(0 0 9px rgba(0,91,255,.68)) drop-shadow(0 0 18px rgba(0,105,255,.38));
  }
}
@media (prefers-reduced-motion:reduce){
  .hero .hero-title-h2 #heroTypewriter{animation:none!important}
}


/* ============================================
   v1.0.55 - HERO H1 MOBILE ONE-LINE FIT
   Giữ H1 một dòng trên điện thoại, tự co cỡ chữ để không bị rớt hàng.
   ============================================ */
@media (max-width:767px){
  .hero .hero-title-stack{
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .hero .hero-title-h1{
    width:auto!important;
    max-width:calc(100vw - 16px)!important;
    white-space:nowrap!important;
    text-wrap:nowrap!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
    overflow:visible!important;
    font-size:var(--hero-h1-fit,clamp(1.95rem,9.4vw,2.8rem))!important;
    line-height:1.02!important;
    letter-spacing:-.055em!important;
  }
}
@media (max-width:420px){
  .hero .hero-title-h1{
    max-width:calc(100vw - 12px)!important;
    font-size:var(--hero-h1-fit,1.82rem)!important;
    letter-spacing:-.06em!important;
  }
}


/* ============================================
   v1.0.57 - DESKTOP NAV DROPDOWN HOVER BRIDGE
   Loại bỏ khoảng chết giữa menu chính và dropdown.
   ============================================ */
@media (min-width: 993px){
  .nav-menu > .nav-item{
    position:relative;
  }
  .nav-menu > .nav-item:has(.nav-dropdown)::after{
    content:'';
    position:absolute;
    left:-8px;
    right:-8px;
    top:100%;
    height:16px;
    background:transparent;
    pointer-events:auto;
  }
  .nav-dropdown{
    top:calc(100% + 2px)!important;
    transform:translateX(-50%) translateY(6px);
    transition:opacity .18s ease,visibility .18s ease,transform .18s ease!important;
    z-index:1005;
  }
  .nav-item:hover > .nav-dropdown,
  .nav-item:focus-within > .nav-dropdown,
  .nav-dropdown:hover{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateX(-50%) translateY(0)!important;
  }
  .nav-item:hover > .nav-link i,
  .nav-item:focus-within > .nav-link i{
    transform:rotate(180deg);
  }
  .nav-dropdown{
    max-height:min(72vh,620px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
}


/* ============================================
   v1.0.58 - DESKTOP DROPDOWN STABLE HOVER
   Giữ menu Dịch vụ/Khóa học mở khi rê chuột từ trigger vào dropdown.
   ============================================ */
@media (min-width:993px){
  .nav-menu > .nav-item:has(> .nav-dropdown){
    position:relative;
  }
  .nav-menu > .nav-item:has(> .nav-dropdown)::after{
    content:'';
    position:absolute;
    z-index:1003;
    left:-12px;
    right:-12px;
    top:100%;
    height:18px;
    pointer-events:auto;
    background:transparent;
  }
  .nav-menu > .nav-item > .nav-dropdown{
    top:100%!important;
    margin-top:0!important;
    transform:translateX(-50%)!important;
    transition:opacity .14s ease,visibility .14s ease!important;
    z-index:1004!important;
  }
  .nav-menu > .nav-item:hover > .nav-dropdown,
  .nav-menu > .nav-item:focus-within > .nav-dropdown,
  .nav-menu > .nav-item.dropdown-open > .nav-dropdown,
  .nav-menu > .nav-item > .nav-dropdown:hover{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateX(-50%)!important;
  }
  .nav-menu > .nav-item.dropdown-open > .nav-link i,
  .nav-menu > .nav-item:hover > .nav-link i,
  .nav-menu > .nav-item:focus-within > .nav-link i{
    transform:rotate(180deg)!important;
  }
}


/* =========================================================
   v1.0.62 — MOBILE POLISH / SMOOTH LAYOUT
   Compact hotline placement, premium AI assistant button and
   cross-device layout/media hardening without changing content.
   ========================================================= */
.header-hotline-btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  white-space:nowrap;
}
.header-hotline-text{display:inline-block;line-height:1}

@media (max-width:768px){
  .site-header .container{padding-left:12px!important;padding-right:10px!important}
  .nav-wrapper{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:6px!important;
  }
  .nav-logo{max-width:min(42vw,150px)!important}
  .nav-logo img{max-width:100%!important}
  .nav-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:5px!important;
    min-width:0!important;
  }
  .nav-actions>.header-hotline-btn{
    display:inline-flex!important;
    position:relative;
    left:-5px;
    min-height:36px!important;
    height:36px;
    max-width:none!important;
    padding:7px 10px!important;
    border-radius:12px!important;
    border-color:rgba(255,255,255,.16)!important;
    background:rgba(8,13,23,.64)!important;
    box-shadow:0 5px 16px rgba(0,0,0,.18)!important;
    font-size:.74rem!important;
    font-weight:800!important;
    letter-spacing:-.015em;
    transform:none!important;
  }
  .nav-actions>.header-hotline-btn i{font-size:.72rem;color:var(--primary)}
  .nav-actions>.desktop-contact-cta{display:none!important}
  .hamburger{margin-left:0!important}

  /* Mobile AI helper: compact premium robot tile instead of a long pill. */
  .floating-btn.ai-support{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    padding:0!important;
    gap:0!important;
    justify-content:center!important;
    border-radius:18px!important;
    overflow:visible!important;
    border:1px solid rgba(255,255,255,.20)!important;
    background:linear-gradient(145deg,var(--primary),var(--secondary))!important;
    box-shadow:0 12px 30px rgba(var(--primary-rgb),.34),0 4px 14px rgba(0,0,0,.28)!important;
    transform:translateZ(0)!important;
  }
  .floating-btn.ai-support .floating-text{display:none!important}
  .floating-btn.ai-support .floating-btn-icon{
    width:44px!important;
    height:44px!important;
    margin:0!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.09))!important;
    border:1px solid rgba(255,255,255,.20);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 4px 12px rgba(0,0,0,.15);
  }
  .floating-btn.ai-support .floating-btn-icon i{
    font-size:1.28rem!important;
    line-height:1;
    color:#fff;
    filter:drop-shadow(0 2px 4px rgba(0,0,0,.24));
  }
  .floating-btn.ai-support .ai-online-dot{
    width:10px!important;
    height:10px!important;
    right:-1px!important;
    top:-1px!important;
    border:2px solid #0b0f16;
    box-shadow:0 0 0 2px rgba(52,211,153,.18)!important;
  }
  .floating-btn.ai-support:hover{transform:none!important}

  /* Stabilize layout and media on touch devices. */
  .container,.section-header,.hero-inner,.footer-grid,.grid-2,.grid-3,.grid-4,.grid-auto,.grid-auto-sm{min-width:0}
  .card,.service-card,.course-card,.project-card,.blog-card,.pricing-card{min-width:0}
  .service-card img,.course-card img,.project-card img,.blog-card img{max-width:100%;height:auto}
}

@media (max-width:430px){
  .site-header .container{padding-left:10px!important;padding-right:8px!important}
  .nav-logo{max-width:min(39vw,132px)!important}
  .nav-actions>.header-hotline-btn{
    left:-6px;
    height:35px;
    min-height:35px!important;
    padding:6px 8px!important;
    font-size:.70rem!important;
    gap:5px;
  }
  .hamburger{width:39px!important;height:39px!important;min-width:39px!important;flex-basis:39px!important;padding:8px!important}
  .floating-contact{right:12px!important;bottom:max(14px,env(safe-area-inset-bottom))!important}
}

@media (max-width:360px){
  .nav-logo{max-width:min(36vw,112px)!important}
  .nav-actions>.header-hotline-btn{
    left:-5px;
    padding:6px 7px!important;
    font-size:.66rem!important;
  }
  .nav-actions>.header-hotline-btn i{display:none}
  .hamburger{width:37px!important;height:37px!important;min-width:37px!important;flex-basis:37px!important}
  .floating-btn.ai-support{width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;border-radius:17px!important}
  .floating-btn.ai-support .floating-btn-icon{width:40px!important;height:40px!important;border-radius:13px!important}
}

@media (hover:none),(pointer:coarse){
  .floating-btn:hover,.card:hover,.service-card:hover,.course-card:hover,.project-card:hover,.blog-card:hover{transform:none!important}
}


/* =========================================================
   v1.0.63 — DESKTOP MEDIA RESTORE
   Khôi phục ảnh/video nền desktop sau khi các rule global ở 1.0.60/1.0.62
   vô tình can thiệp kích thước/hiển thị media. Chỉ tác động từ 769px trở lên.
   ========================================================= */
@media (min-width:769px){
  .hero-bg{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    overflow:hidden!important;
  }

  .hero-bg > video{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center center!important;
    opacity:1!important;
    visibility:visible!important;
  }

  .hero-bg > .hero-bg-picture{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    opacity:1!important;
    visibility:visible!important;
  }

  .hero-bg > .hero-bg-picture > img,
  .hero-bg > img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center center!important;
    opacity:1!important;
    visibility:visible!important;
  }

  /* Media/card images retain their original component dimensions on desktop. */
  .service-card img,
  .course-card img,
  .project-card img,
  .blog-card img,
  .website-network-card img{
    visibility:visible;
  }
}
