/* -------------------------------------------------------------------------- */
/* EMAGAZINE CÀ MAU DESIGN SYSTEM & STYLES                                   */
/* Economic Journal Aesthetics (VnExpress / Bloomberg / Nikkei Asia)         */
/* -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Plus+Jakarta+Sans:wght@300..800&family=Be+Vietnam+Pro:ital,wght@0,400;0,600;0,700;0,800&display=swap&subset=vietnamese');

:root {
  /* Main Color Palette */
  --teal-primary: #0D7C66;
  --teal-dark: #095949;
  --teal-light: #E6F4F1;
  --blue-ocean: #0F5E9C;
  --blue-dark: #0A4370;
  --amber-earth: #D97706;
  --amber-light: #FEF3C7;
  --yellow-cream: #F5E6B3;

  /* Grays & Backgrounds */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #000000;
  --text-muted: #031022;
  --text-light: #94A3B8;
  --border-light: #E2E8F0;
  --border-teal: rgba(13, 124, 102, 0.2);

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(13, 124, 102, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Fonts */
  --font-serif: 'Playfair Display', 'Merriweather', 'Be Vietnam Pro', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Progress Bar Top */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(226, 232, 240, 0.5);
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-primary), var(--blue-ocean), var(--amber-earth));
  transition: width 0.1s ease-out;
}

/* Floating Navigation Header */
.emag-nav {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 990;
  transition: var(--transition-smooth);
}

.emag-nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 10px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-badge {
  background: var(--teal-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-title-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition-smooth);
}

.emag-nav.scrolled .nav-title-text {
  opacity: 1;
  transform: translateY(0);
}

.nav-sections {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding-bottom: 4px;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal-primary);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 80px;
  color: #FFFFFF;
  overflow: hidden;
  background: #061915;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: brightness(0.85) contrast(1.1);
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

.hero-section:hover .hero-bg-img {
  transform: scale(1.0);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: radial-gradient(circle at center, rgba(13, 124, 102, 0.25) 0%, rgba(6, 25, 21, 0.85) 80%);
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1000px;
  text-align: center;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 230, 179, 0.15);
  border: 1px solid rgba(245, 230, 179, 0.4);
  color: var(--yellow-cream);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-tag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.45;
  color: #FFFFFF;
  margin-bottom: 30px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  padding: 10px 0;
}

.hero-title .title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: lineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  padding: 4px 0;
}

.hero-title .title-line:nth-child(1) {
  animation-delay: 0.3s;
  color: var(--yellow-cream);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-title .title-line:nth-child(2) {
  animation-delay: 0.6s;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-title .title-line:nth-child(3) {
  animation-delay: 0.9s;
  color: var(--yellow-cream);
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 230, 179, 0.4);
}

@keyframes lineReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: var(--yellow-cream);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

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

.article-container {
  max-width: 780px;
  margin: 0 auto;
}

.section-padding {
  padding: 90px 0;
}

/* Intro Section (2 Cột) */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.lead-article {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.85;
  color: var(--text-main);
}

.lead-article p {
  margin-bottom: 24px;
}

.lead-article p:first-child::first-letter {
  font-size: 3.8rem;
  float: left;
  line-height: 0.9;
  padding-right: 12px;
  font-weight: 900;
  color: var(--teal-primary);
  font-family: var(--font-serif);
}

.intro-illustration-card {
  background: linear-gradient(145deg, #FFFFFF, var(--teal-light));
  border: 1px solid var(--border-teal);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.intro-svg-wrapper {
  width: 100%;
  height: auto;
}

/* Floating animation for icons in intro SVG */
.floating-icon {
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-icon:nth-child(2n) {
  animation-delay: 1s;
}

.floating-icon:nth-child(3n) {
  animation-delay: 2s;
}

@keyframes floatAnim {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-8px) rotate(3deg);
  }
}

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

.section-number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--amber-earth);
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  padding: 0 16px;
}

.section-number::before,
.section-number::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--amber-earth);
}

.section-number::before {
  left: -25px;
}

.section-number::after {
  right: -25px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--teal-primary);
  line-height: 1.3;
}

/* Body Text Styling */
.article-text {
  font-size: 1.125rem;
  color: var(--text-main);
  line-height: 1.85;
}

.article-text p {
  margin-bottom: 28px;
}

.highlight-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--teal-primary);
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal-dark);
}

/* -------------------------------------------------------------------------- */
/* INFOGRAPHICS COMMON STYLES (Font size >= 18px mandatory)                  */
/* -------------------------------------------------------------------------- */
.infographic-block {
  margin: 60px 0;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.infographic-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-dark);
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.infographic-title svg {
  width: 28px;
  height: 28px;
  fill: var(--amber-earth);
}

/* Infographic 1: Horizontal Flow Infographic */
.flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-x: auto;
  padding: 20px 10px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 110px;
  flex: 1;
  position: relative;
  transition: var(--transition-smooth);
}

.flow-step:hover {
  transform: translateY(-6px);
}

.flow-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 2px solid var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.flow-step:hover .flow-icon-circle {
  background: var(--teal-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.flow-icon-circle svg {
  width: 30px;
  height: 30px;
  stroke: var(--teal-primary);
  fill: none;
  stroke-width: 2;
  transition: var(--transition-fast);
}

.flow-step:hover .flow-icon-circle svg {
  stroke: #FFFFFF;
}

.flow-label {
  font-size: 18px;
  /* Strict >=18px requirement */
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.flow-arrow {
  color: var(--amber-earth);
  font-size: 1.5rem;
  font-weight: 900;
  user-select: none;
}

/* Infographic 2: Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.dashboard-hero-badge {
  text-align: center;
  background: linear-gradient(135deg, var(--teal-primary), var(--blue-ocean));
  color: #FFFFFF;
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.badge-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-sans);
  color: var(--yellow-cream);
}

.badge-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dashboard-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition-smooth);
}

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

.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--teal-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 18px;
  /* Strict >=18px requirement */
  font-weight: 700;
  color: var(--text-muted);
}

.specialty-items-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.specialty-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.specialty-card:hover {
  background: var(--teal-light);
  border-color: var(--teal-primary);
}

.specialty-card svg {
  width: 36px;
  height: 36px;
  fill: var(--teal-primary);
}

.specialty-name {
  font-size: 18px;
  /* Strict >=18px requirement */
  font-weight: 700;
  color: var(--text-main);
}

/* Transition Divider Section */
.transition-divider {
  padding: 50px 0;
  text-align: center;
  background: var(--bg-subtle);
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  margin: 60px 0;
}

.divider-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.divider-icon {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid var(--border-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-primary);
  box-shadow: var(--shadow-sm);
}

.divider-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.wave-line {
  flex: 1;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,90 350,-40 500,40 C650,120 900,10 1200,40 L1200,120 L0,120 Z' fill='%230D7C66' opacity='0.25'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
}

/* Section 2 Infographics */
/* Hub Infographic */
.hub-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
  padding: 20px;
}

.hub-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-primary), var(--blue-ocean));
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  /* >=18px */
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 5;
  border: 4px solid #FFFFFF;
}

.hub-center svg {
  width: 36px;
  height: 36px;
  fill: var(--yellow-cream);
  margin-bottom: 4px;
}

.hub-nodes-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
}

.hub-node {
  pointer-events: auto;
  background: #FFFFFF;
  border: 2px solid var(--teal-primary);
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.hub-node:hover {
  transform: scale(1.08);
  background: var(--teal-primary);
  color: #FFFFFF;
}

.hub-node svg {
  width: 24px;
  height: 24px;
  stroke: var(--teal-primary);
  fill: none;
}

.hub-node:hover svg {
  stroke: #FFFFFF;
}

.hub-node-text {
  font-size: 18px;
  /* Strict >=18px requirement */
  font-weight: 700;
}

/* Infographic Timeline: Tân Phát Lợi Story */
.timeline-horizontal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding: 20px 0;
}

.timeline-track-svg {
  position: absolute;
  top: 0;
  left: 30px;
  width: 4px;
  height: 100%;
  background: var(--border-light);
  z-index: 1;
}

.timeline-progress-line {
  position: absolute;
  top: 0;
  left: 30px;
  width: 4px;
  height: 0%;
  background: linear-gradient(to bottom, var(--teal-primary), var(--amber-earth));
  z-index: 2;
  transition: height 1.5s ease-in-out;
}

.timeline-step-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 3;
  padding-left: 10px;
}

.timeline-icon-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.timeline-icon-dot svg {
  width: 22px;
  height: 22px;
  fill: var(--teal-primary);
}

.timeline-content-card {
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 16px 24px;
  flex: 1;
  border: 1px solid var(--border-light);
}

.timeline-title {
  font-size: 18px;
  /* Strict >=18px requirement */
  font-weight: 800;
  color: var(--teal-dark);
}

.timeline-highlight-stat {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--amber-earth);
  display: inline-block;
  margin: 4px 0;
}

/* Full-width Visual & Quote Section */
.fullwidth-visual-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin: 80px 0;
  overflow: hidden;
}

.fullwidth-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.65) contrast(1.1);
}

.fullwidth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 124, 102, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
  z-index: 2;
}

.quote-box {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
  padding: 40px;
}

.quote-icon {
  width: 60px;
  height: 60px;
  fill: var(--yellow-cream);
  opacity: 0.8;
  margin-bottom: 20px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Section 3 Infographics */
/* Network Infographic */
.network-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
}

.network-center-node {
  background: linear-gradient(135deg, var(--amber-earth), #B45309);
  color: #FFFFFF;
  padding: 20px 40px;
  border-radius: 40px;
  font-size: 22px;
  /* >=18px */
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 0 25px rgba(217, 119, 6, 0.4);
  animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
  }

  100% {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(217, 119, 6, 0.6);
  }
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
}

.network-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-teal);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.network-item:hover {
  background: #FFFFFF;
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.network-item svg {
  width: 28px;
  height: 28px;
  fill: var(--teal-primary);
  flex-shrink: 0;
}

.network-item-text {
  font-size: 18px;
  /* Strict >=18px requirement */
  font-weight: 700;
  color: var(--text-main);
}

/* Smartphone QR Simulator Infographic */
.qr-sim-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.phone-mockup {
  background: #0F172A;
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 4px solid #334155;
  max-width: 320px;
  margin: 0 auto;
}

.phone-screen {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 18px;
  position: relative;
  overflow: hidden;
}

.qr-scanner-box {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border: 2px dashed var(--teal-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  overflow: hidden;
}

.qr-code-img {
  width: 130px;
  height: 130px;
}

.laser-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #EF4444, transparent);
  box-shadow: 0 0 10px #EF4444;
  animation: scanLaser 2s infinite ease-in-out;
}

@keyframes scanLaser {
  0% {
    top: 0%;
  }

  50% {
    top: 98%;
  }

  100% {
    top: 0%;
  }
}

.phone-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  /* Strict >=18px requirement */
  font-weight: 700;
  color: var(--text-main);
}

.check-icon {
  color: #10B981;
  font-weight: 900;
  font-size: 1.2rem;
}

.qr-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qr-flow-card {
  background: var(--teal-light);
  border: 1px solid var(--border-teal);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-flow-card-text {
  font-size: 18px;
  /* Strict >=18px requirement */
  font-weight: 800;
  color: var(--teal-dark);
}

.qr-flow-arrow {
  color: var(--amber-earth);
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
}

/* Author Sign-off */
.author-credit {
  margin-top: 40px;
  text-align: right;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-dark);
}

/* Conclusion Section */
.conclusion-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  color: #FFFFFF;
  overflow: hidden;
}

.conclusion-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.45) contrast(1.15);
}

.conclusion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(13, 124, 102, 0.4) 0%, rgba(6, 25, 21, 0.9) 85%);
  z-index: 2;
}

.conclusion-card {
  position: relative;
  z-index: 3;
  max-width: 900px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 230, 179, 0.3);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.conclusion-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.8;
  color: #FFFFFF;
  font-weight: 600;
}

/* Footer */
.emag-footer {
  background: #091E1A;
  color: var(--text-light);
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yellow-cream);
  margin-bottom: 12px;
}

/* -------------------------------------------------------------------------- */
/* SCROLL ANIMATION UTILITIES                                                */
/* -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE MEDIA QUERIES FOR TABLET & MOBILE                              */
/* -------------------------------------------------------------------------- */

@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .specialty-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .network-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qr-sim-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .emag-nav .nav-sections {
    display: none;
  }

  .emag-nav {
    padding: 8px 16px;
  }

  .emag-nav.scrolled {
    padding: 8px 16px;
  }

  /* Containers & Spacing */
  .container {
    padding: 0 16px;
  }

  .article-container {
    padding: 0;
  }

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

  /* Typography */
  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-number {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .article-text {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .article-text p {
    margin-bottom: 20px;
  }

  /* Hero Section */
  .hero-section {
    padding: 90px 16px 50px;
    min-height: 85vh;
  }

  .hero-tag {
    font-size: 0.75rem;
    padding: 4px 14px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.5rem);
    line-height: 1.35;
    margin-bottom: 20px;
  }

  .hero-title .title-line {
    padding: 2px 0;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 30px;
  }

  .mouse-icon {
    width: 20px;
    height: 32px;
  }

  .mouse-wheel {
    width: 3px;
    height: 6px;
  }

  /* Infographics Common Mobile Styling */
  .infographic-block {
    padding: 24px 16px;
    margin: 40px 0;
    border-radius: 16px;
  }

  .infographic-title {
    font-size: 1.15rem;
    margin-bottom: 24px;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .infographic-title svg {
    width: 24px;
    height: 24px;
  }

  /* Infographic 1 (Flow) Mobile */
  .flow-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0;
  }

  .flow-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    min-width: 100%;
    background: var(--bg-subtle);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
  }

  .flow-icon-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-bottom: 0;
  }

  .flow-icon-circle svg {
    width: 22px;
    height: 22px;
  }

  .flow-label {
    font-size: 18px;
    line-height: 1.3;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: 2px auto;
    font-size: 1.1rem;
  }

  /* Infographic 2 (Dashboard) Mobile */
  .dashboard-grid {
    gap: 24px;
  }

  .dashboard-hero-badge {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .badge-number {
    font-size: 3rem;
  }

  .badge-title {
    font-size: 1.15rem;
  }

  .dashboard-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-num {
    font-size: 2rem;
  }

  .stat-desc {
    font-size: 18px;
  }

  .specialty-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .specialty-card {
    padding: 12px 8px;
    gap: 6px;
  }

  .specialty-card svg {
    width: 28px;
    height: 28px;
  }

  .specialty-name {
    font-size: 18px;
  }

  /* Infographic 1 (Hub) Mobile */
  .hub-container {
    min-height: auto;
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }

  .hub-center {
    width: 100px;
    height: 100px;
    font-size: 18px;
    border-width: 3px;
  }

  .hub-center svg {
    width: 28px;
    height: 28px;
  }

  .hub-nodes-grid {
    position: relative;
    height: auto;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .hub-node {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .hub-node-text {
    font-size: 18px;
  }

  /* Infographic 2 (Timeline) Mobile */
  .timeline-horizontal {
    gap: 16px;
  }

  .timeline-track-svg,
  .timeline-progress-line {
    left: 20px;
  }

  .timeline-step-item {
    gap: 14px;
    padding-left: 0;
  }

  .timeline-icon-dot {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .timeline-icon-dot svg {
    width: 18px;
    height: 18px;
  }

  .timeline-content-card {
    padding: 12px 16px;
  }

  .timeline-title {
    font-size: 18px;
  }

  .timeline-highlight-stat {
    font-size: 1.8rem;
  }

  /* Fullwidth Visual Quote Mobile */
  .fullwidth-visual-section {
    min-height: 50vh;
    margin: 40px 0;
  }

  .quote-box {
    padding: 24px 16px;
  }

  .quote-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .quote-text {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    line-height: 1.45;
  }

  /* Infographic 1 (Network) Mobile */
  .network-container {
    gap: 20px;
  }

  .network-center-node {
    padding: 14px 24px;
    font-size: 18px;
    text-align: center;
    border-radius: 30px;
  }

  .network-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .network-item {
    padding: 12px 16px;
  }

  .network-item-text {
    font-size: 18px;
  }

  /* Infographic 2 (Smartphone QR Simulator) Mobile */
  .phone-mockup {
    max-width: 280px;
    padding: 12px;
    border-radius: 28px;
  }

  .phone-screen {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .qr-scanner-box {
    width: 120px;
    height: 120px;
    margin-bottom: 14px;
  }

  .qr-code-img {
    width: 95px;
    height: 95px;
  }

  .phone-check-item {
    font-size: 18px;
  }

  .qr-flow-card {
    padding: 12px 16px;
  }

  .qr-flow-card-text {
    font-size: 18px;
  }

  /* Conclusion Section Mobile */
  .conclusion-section {
    min-height: 60vh;
    padding: 60px 16px;
  }

  .conclusion-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .conclusion-text {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  /* Author Credit & Footer */
  .author-credit {
    font-size: 1rem;
    margin-top: 24px;
  }

  .emag-footer {
    padding: 30px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.45rem, 7.5vw, 1.95rem);
  }

  .specialty-items-grid {
    grid-template-columns: 1fr;
  }
}