/* ==========================================================================
   KAGRI DIGITAL - CORPORATE STYLING & DESIGN SYSTEM
   Theme inspired by KAGRI GROUP (kagri.vn) with High-Tech AI/MCP Elevance
   ========================================================================== */

:root {
  --primary: #089B2E;
  --primary-hover: #067d25;
  --primary-light: #e8f7ec;
  --primary-dark: #045218;
  --primary-glow: rgba(8, 155, 46, 0.25);
  --accent-tech: #00b4d8;
  --accent-cyan: #06d6a0;
  
  --dark: #111827;
  --dark-surface: #1f2937;
  --text-main: #27272a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-subtle: #f1f5f9;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px rgba(8, 155, 46, 0.12);
  
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Helpers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(8, 155, 46, 0.2);
}

.section-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background-color: #000;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   TOP BAR (Contact & Group link)
   ========================================================================== */
.top-bar {
  background-color: #0d2818;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: #fff;
}

.badge-group-member {
  background: rgba(8, 155, 46, 0.3);
  color: #55f37d;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(85, 243, 125, 0.3);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-name-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-title .digital-highlight {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--dark);
}

.mobile-drawer {
  display: none !important;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f8fbf9 0%, #edf7f0 50%, #f4fbf6 100%);
  padding: 80px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(8, 155, 46, 0.12) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -50px;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  border: 1px solid rgba(8, 155, 46, 0.2);
  margin-bottom: 24px;
}

.hero-badge-tag {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--primary);
  background: linear-gradient(120deg, #089B2E 0%, #056B20 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 580px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item h4 span {
  color: var(--primary);
}

.stat-item p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Visual Card */
.hero-visual-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(8, 155, 46, 0.15);
  position: relative;
}

.visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.visual-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.vtab {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.vtab.active {
  background: var(--primary);
  color: #fff;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.metric-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.metric-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

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

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fbfdfc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.channel-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.channel-icon img, .channel-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.icon-fb { background: #1877f2; }
.icon-gg { background: #ffffff; border: 1px solid #e2e8f0; }
.icon-zl { background: transparent; }
.icon-tt { background: #000000; }
.icon-sp { background: transparent; }
.icon-mcp-chat, .icon-mcp-tune, .icon-mcp-data, .icon-mcp-report,
.icon-edge-soil, .icon-edge-lora, .icon-edge-water, .icon-edge-bio,
.icon-ops-return, .icon-ops-stock, .icon-ops-profit, .icon-ops-vtp {
  background: transparent;
}

.channel-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   ABOUT / GROUP INTEGRATION SECTION
   ========================================================================== */
.about-section {
  padding: 90px 0;
  background-color: var(--bg-main);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-badge-card {
  background: linear-gradient(135deg, #0d2818 0%, #154726 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-badge-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(8, 155, 46, 0.25);
  border-radius: 50%;
  filter: blur(40px);
}

.card-leaf-icon {
  width: 60px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.about-badge-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
}

.about-badge-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

/* Ecosystem / Subsidiaries Grid */
.ecosystem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.eco-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
}

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

.eco-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 16px;
}

.eco-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.eco-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CORE SOLUTIONS SECTION (AI, MCP, ADS, HEALTH)
   ========================================================================== */
.solutions-section {
  padding: 90px 0;
  background-color: var(--bg-alt);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.solution-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.solution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(8, 155, 46, 0.4);
}

.solution-card:hover::after {
  opacity: 1;
}

.solution-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  transition: var(--transition);
}

.solution-card:hover .solution-icon-wrap {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.solution-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.solution-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.solution-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   MCP & AD BUDGET WORKFLOW SECTION
   ========================================================================== */
.workflow-section {
  padding: 90px 0;
  background: #ffffff;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.flow-step-card {
  background: #fbfdfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

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

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.flow-step-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.flow-step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   LEGAL / TAX INFORMATION & VERIFICATION
   ========================================================================== */
.tax-info-banner {
  background: linear-gradient(135deg, #f4fbf6 0%, #eaf6ee 100%);
  border: 1px solid rgba(8, 155, 46, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin: 60px 0;
  box-shadow: var(--shadow-sm);
}

.tax-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.tax-item {
  display: flex;
  gap: 14px;
}

.tax-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.tax-item-content h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.tax-item-content p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.tax-item-content .status-active {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   NEWS & ARTICLES (WordPress Style)
   ========================================================================== */
.news-section {
  padding: 90px 0;
  background-color: var(--bg-alt);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-thumb-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.news-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-card h3 a:hover {
  color: var(--primary);
}

.news-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.news-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 90px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.contact-item-body h6 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-item-body p, .contact-item-body a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

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

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* ==========================================================================
   FOOTER (KAGRI GROUP WordPress Design)
   ========================================================================== */
.site-footer {
  background-color: #0b1e13;
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  overflow: hidden;
}

.social-btn img, .social-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ==========================================================================
   LOGIN MODAL & WORDPRESS STYLE PORTAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.login-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.login-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.login-header {
  text-align: center;
  margin-bottom: 26px;
}

.login-header img {
  height: 50px;
  margin: 0 auto 12px;
}

.login-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

.login-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-alert {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.login-alert.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.login-alert.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile, Tablet, Desktop)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual-card { max-width: 550px; margin: 0 auto; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-cards { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-list { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  
  /* Prevent header overflow on mobile */
  .header-inner { height: 66px; }
  .brand-logo { height: 36px; }
  .brand-title { font-size: 1.1rem; }
  .brand-tagline { font-size: 0.62rem; }
  .nav-cta-group { gap: 8px; }
  .nav-cta-group .btn-primary { display: none !important; } /* Hidden on mobile header to prevent breaking; available in mobile drawer & floating hotline */
  
  .hero-title { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  
  .about-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .ecosystem-cards { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .tax-info-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  
  /* Mobile drawer */
  .mobile-drawer {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: #ffffff;
    z-index: 999;
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  
  .mobile-drawer.active {
    display: flex !important;
  }
  
  .mobile-drawer .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
  }
}

/* ==========================================================================
   FLOATING HOTLINE CALL BUTTON (0989626142)
   ========================================================================== */
.floating-call-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.25s ease;
}

.floating-call-btn:hover {
  transform: scale(1.05);
}

.floating-call-circle {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 20px rgba(8, 155, 46, 0.45);
  z-index: 2;
}

/* Pulsing waves */
.floating-call-circle::before,
.floating-call-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
  z-index: -1;
  animation: callPulse 2s infinite ease-out;
}

.floating-call-circle::after {
  animation-delay: 0.7s;
}

@keyframes callPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.85);
    opacity: 0;
  }
}

.floating-call-icon {
  width: 24px;
  height: 24px;
  animation: phoneRing 1.6s infinite ease-in-out;
}

@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-16deg); }
  20%, 40% { transform: rotate(16deg); }
  50% { transform: rotate(0deg); }
}

.floating-call-label {
  background: #ffffff;
  color: #111827;
  padding: 8px 16px 8px 22px;
  margin-left: -12px;
  border-radius: 0 9999px 9999px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(8, 155, 46, 0.25);
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  z-index: 1;
}

.floating-call-label .sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.floating-call-label .phone {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
}

@media (max-width: 768px) {
  .floating-call-btn {
    bottom: 24px;
    right: 20px;
    left: auto;
  }
  .floating-call-circle {
    width: 48px;
    height: 48px;
  }
  .floating-call-icon {
    width: 22px;
    height: 22px;
  }
  .floating-call-label {
    display: none;
  }
}

/* ==========================================================================
   LANGUAGE SELECT DROPDOWN (Tiếng Việt, Tiếng Anh, Tiếng Trung, Tiếng Đức)
   ========================================================================== */
.lang-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  font-family: inherit;
}

/* Trigger Button styled as a high-end select box */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.lang-btn:hover {
  background: #f8fafc;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(8, 155, 46, 0.12);
  color: #0f172a;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lang-btn[aria-expanded="true"] {
  border-color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(8, 155, 46, 0.15);
}

/* Flag SVG Icon Container - Renders real crisp vector flag colors */
.flag-icon-wrap {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  background: #f1f5f9;
}

.flag-icon-wrap .flag-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-current-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.lang-arrow {
  color: #64748b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

/* Floating Dropdown Menu (Select Options List) - Always 1 vertical column */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 175px;
  min-width: 175px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 6px;
  display: none;
  flex-direction: column !important;
  gap: 3px;
  z-index: 99999;
  animation: langFadeIn 0.18s ease forwards;
}

.lang-dropdown.show {
  display: flex !important;
}

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

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lang-option:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.lang-option.active {
  background: rgba(8, 155, 46, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.lang-option .lang-name {
  flex: 1;
}

.lang-option .lang-tag {
  font-size: 0.72rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-option.active .lang-tag {
  background: var(--primary);
  color: #ffffff;
}

/* Mobile Header Language Button tweaks */
@media (max-width: 768px) {
  .lang-btn {
    padding: 6px 9px;
    gap: 6px;
  }
  .lang-current-label {
    display: none; /* Keep header compact on mobile screens */
  }
}

@media (max-width: 380px) {
  .lang-btn {
    padding: 5px 7px;
    gap: 4px;
  }
  .lang-code {
    display: none; /* Ultra-compact: flag + arrow only on 320px-360px */
  }
}

/* Mobile Drawer Language Row */
.mobile-lang-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.mobile-lang-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-lang-grid .lang-option {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  justify-content: flex-start;
  font-size: 0.84rem;
  background: #ffffff;
}

.mobile-lang-grid .lang-option.active {
  border-color: var(--primary);
  background: rgba(8, 155, 46, 0.08);
}

/* Google Translate Header & Frame Cleanup (Hidden silently) */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.goog-tooltip {
  display: none !important;
}

.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
}

/* ==========================================================================
   OPERATIONAL MANAGEMENT MODELS (DCA, KAIZEN, DATA-DRIVEN, ADAPTIVE, EXPERIMENTAL)
   ========================================================================== */
.mg-section {
  padding: 85px 0;
  background-color: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.mg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.mg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(8, 155, 46, 0.08);
  border-color: rgba(8, 155, 46, 0.35);
}

.mg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mg-card:hover::before {
  opacity: 1;
}

.mg-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.mg-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(8, 155, 46, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(8, 155, 46, 0.15);
}

.mg-title-wrap h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.mg-title-wrap .mg-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  color: #057a23;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mg-content-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.mg-block {
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.mg-block-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.mg-block.foundation {
  background: #f1f5f9;
  border-left: 4px solid #64748b;
  color: #334155;
}

.mg-block.foundation .mg-block-label {
  color: #475569;
}

.mg-block.ai-enhanced {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-left: 4px solid var(--primary);
  color: #14532d;
  box-shadow: 0 2px 8px rgba(8, 155, 46, 0.04);
}

.mg-block.ai-enhanced .mg-block-label {
  color: #057a23;
}

.mg-footer-tag {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.mg-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.76rem;
  background: rgba(8, 155, 46, 0.1);
  color: #057a23;
}

@media (max-width: 768px) {
  .mg-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mg-card {
    padding: 22px;
  }
}

