/* ==== RESET & GLOBAL ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --kc-hero-bg: url("/images/kc/hero/hero_web_bg.png");
}

/* ── Shared Hero Layout Tokens (SSOT v1.0.1) ── */
:root {
  --hero-inner-max:    1280px;
  --hero-px:           clamp(20px, 5vw, 40px);
  --hero-pt:           clamp(64px, 8vw, 96px);
  --hero-pb:           clamp(48px, 6vw, 80px);
  --hero-grid-gap:     clamp(40px, 5vw, 64px);
  --hero-path-mb:      20px;
  --hero-title-mb:     16px;
  --hero-subtitle-mb:  20px;
  --hero-support-mb:   24px;
  --hero-card-pad-lg:  32px;
  --hero-card-pad-md:  20px;
  --hero-card-radius:  20px;
  /* --hero-stack-bp: 1024px — documentation only, NOT for use in @media */
}

/* ── Shared Body Layout Tokens (PAGE-BODY-LAYOUT-SSOT v1.0 + PO Addendum v1.0.1) ── */
:root {
  --body-inner-max: 1280px;
  --body-form-max: 1100px;
  --body-px: clamp(20px, 5vw, 40px);
  --body-section-py: clamp(56px, 7vw, 96px);
  --body-section-py-lg: clamp(72px, 8vw, 112px);
  --body-section-py-sm: clamp(48px, 6vw, 72px);
  --body-grid-gap: clamp(24px, 4vw, 40px);
  --body-grid-gap-lg: clamp(32px, 5vw, 64px);
  --body-card-gap: clamp(16px, 2vw, 24px);
  --body-card-radius: 20px;
  --body-tablet-rail-max: 560px;
}

/* ── Stack Content Rail — shared tablet layout (641px–1024px) ─────── */
/* All hero pages wrap ROW 1/2/3 in ._kn_j7WG inside __inner. */
._kn_j7WG {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 641px) and (max-width: 1024px) {
  ._kn_j7WG {
    max-width: 560px;
    margin-inline: auto;
  }

  /* B19 — Stack Rail owns width. Child cards fill rail.
     No child card may set its own max-width or margin-inline
     inside the rail. */
  ._dv73Zy5,
  ._vMpAFk1,
  ._osjRrGm,
  ._BEGyXaa,
  ._OZ7oNdj,
  ._VwcOSpE,
  ._9hcZm2z,
  ._1pAgjD1,
  ._XPBlXrj,
  ._AZP4i3b,
  ._9qo2RID,
  ._Vc8cniI {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
}


/* ===== THEME: Sitewide background (light, airy) ===== */
:root {
  /* palette (cùng tông của bạn, nhưng cân bão hòa & ánh sáng) */
  --bg-top:    #E9F2FF;   /* ✅ nhạt nhưng đậm hơn ~20% so với #F6FAFF */
  --bg-mid1:   #C7DEFF;   /* ✅ xanh nhạt đậm hơn */
  --bg-mid2:   #A5C9FF;   /* ✅ xanh sữa đậm hơn */
  --bg-bottom: #5E96FF;   /* ✅ xanh dịu nhưng sâu hơn */
  
  --bg-top:    #F3F7FF;   /* sáng hơn, gần trắng xanh – giữ cảm giác thoáng */
  --bg-mid1:   #D6E6FF;   /* xanh nhẹ đã làm dịu, bớt bão hòa */
  --bg-mid2:   #B4CEFF;   /* xanh trung tính, ít "sữa", nhìn cứng cáp hơn */
  --bg-bottom: #7BA8F9;   /* thay vì #5E96FF: vẫn xanh dịu nhưng sang hơn */

  --text: #0F172A;
  --panel: rgba(255,255,255,.60);
  --shadow: 0 10px 30px rgba(15,23,42,.08);
}

:root {
  /* Text & surface */
  --text-color: #0F172A;
  --panel-bg: rgba(255,255,255,.4);
  --panel-shadow: 0 10px 30px rgba(0,0,0,.08);

  /* Section defaults */
  --section-heading-color: var(--text-color);
  --section-subtitle-color: rgba(15,23,42,.68);

  --section-heading-shadow: none;
  --section-subtitle-shadow: none;

  --section-shadow-1: rgba(15,70,200,.12);
  --section-shadow-2: rgba(30,100,255,.18);

  --section-bg: transparent;
}

/* Fallback biến toàn cục (dùng cả khi không có wrapper) */
:root{
  --tabs-bg: rgba(255,255,255,.72);
  --tabs-border: rgba(255,255,255,.9);
  --tabs-shadow: 0 8px 24px rgba(34,67,142,.16);
  --tab-color: rgba(15,23,42,.78);
  --tab-color-active: #0F172A;
  --tab-bg-active: #fff;
  --tab-underline: linear-gradient(90deg,#1e3a8a,#2563eb);
  --tab-gap: 8px;
}

/* ========== WHITE-PEARL CARD (trắng ngọc) ========== */
:root{
  /* trắng -> xanh rất nhạt, ưu tiên độ sáng */
  --c-top:  #FFFFFF;   /* trắng tuyệt đối trên cùng */
  --c-mid:  #FBFDFF;   /* trắng pha lam 1–2% thôi */
  --c-bot:  #F5FAFF;   /* sáng hơn hẳn bản trước */

  --outer-shadow: 0 12px 30px rgba(31, 72, 144, 0.12); /* nhẹ hơn */
  --inner-bottom: rgba(70, 120, 190, 0.06);            /* giảm độ xanh */
  --stroke: rgba(255,255,255,0.95);                    /* viền trắng rõ hơn */
  --text: #0F172A;

   /* bóng & viền */
  --border: rgba(255,255,255,.92);
  --light-blue: rgba(140,180,255,.40);   /* ánh sáng lam sát mép dưới */
  --deep-blue:  rgba(50,100,200,.24);    /* bóng xa tạo chiều sâu */
}

/* ===== Light background ===== */
body {
  margin: 0;
  padding-top: 90px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;

  /* radial highlight + linear gradient chính, không dùng attachment: fixed */
  background:
    radial-gradient(900px 360px at 50% 120px,
      color-mix(in srgb, #fff 55%, transparent) 0%,
      transparent 70%),
    linear-gradient(160deg,
      var(--bg-top) 0%,
      var(--bg-mid1) 22%,
      var(--bg-mid2) 50%,
      var(--bg-bottom) 100%);
  background-repeat: no-repeat;
}

/* Noise overlay chống banding */
body::before{
  content:"";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ==== NAVBAR ==== */
.navbar {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

/* Logo trong navbar */
.navbar .logo img {
  height: 36px;       /* 👈 thu nhỏ logo */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Hover nhẹ cho premium feel */
.navbar .logo img:hover {
  transform: scale(1.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #012B5D;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: #0F172A;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2563EB;
}

.cta-btn {
  background: #2563EB;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: #1E40AF;
}

/* ==== HOT NEWS BANNER ==== */
.hot-banner {
  background: linear-gradient(to right, #1E40AF, #2563EB);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
}

.hot-banner a {
  color: #fff;
  font-weight: 600;
  margin-left: 8px;
  text-decoration: underline;
}

/* ==========================================================
   🔹 SECTION BASE (v2.1 Final)
   ----------------------------------------------------------
   - Là khung layout cho mọi vùng nội dung (AMS, SSL, v.v.)
   - Dễ theme hóa bằng biến CSS.
   ========================================================== */

/* ===== Base container ===== */
/* ===== Base Section Wrapper (optional) ===== */
.section {
  max-width: 1536px;
  margin: 0 auto;
  padding: clamp(60px, 6vw, 100px) clamp(24px, 5vw, 60px);
  text-align: center;
  box-sizing: border-box;
  background: var(--section-bg);
}

/* ===== Title (standalone) ===== */
.section h2,
.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--section-heading-color, #012B5D);
  text-shadow: var(--section-heading-shadow, none);
}

/* ===== Subtitle (standalone) ===== */
.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: var(--section-subtitle-color, #475569);
  margin-bottom: clamp(40px, 6vw, 60px);
  line-height: 1.6;
  text-shadow: var(--section-subtitle-shadow, none);
}

/* =========================================
   TABS (section-tabs) — Base + Themeable
   ========================================= */

/* Wrapper: dùng được độc lập hoặc đặt trong .section */
.section-tabs,
.tabs {
  position: relative;
  display: inline-flex;
  gap: var(--tab-gap);
  padding: 10px;
  border-radius: 9999px;
  background: var(--tabs-bg);
  border: 1px solid var(--tabs-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    var(--tabs-shadow);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}

/* Tab item (dùng button hoặc <a>) */
.tab {
  position: relative;
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 700;
  color: var(--tab-color);
  text-decoration: none;
  line-height: 1;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  outline: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Hover & focus */
.tab:hover{ background: rgba(255,255,255,.55); color: rgba(15,23,42,.9); }
.tab:focus-visible{
  box-shadow: 0 0 0 3px rgba(37,99,235,.35);
}

/* Active state: dùng aria-selected=true HOẶC .is-active */
.tab[aria-selected="true"],
.tab.is-active{
  background: var(--tab-bg-active);
  color: var(--tab-color-active);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow:
    0 6px 14px rgba(34,67,142,.14),
    inset 0 1px 0 rgba(255,255,255,.96);
}

/* Underline nhỏ cho active */
.tab[aria-selected="true"]::after,
.tab.is-active::after{
  content:"";
  position:absolute; left:16px; right:16px; bottom:2px; height:1.5px;
  border-radius:9999px;
  background: var(--tab-underline);
  opacity:.95;
}

/* Size variants */
.tabs--sm .tab{ padding: 8px 14px; font-weight: 600; }
.tabs--lg .tab{ padding: 12px 22px; font-size: 1.05rem; }

/* ==== CARD GRID ==== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card{
  position:relative;
  border-radius:24px;
  padding:28px;
  color:var(--text);

  /* 2 lớp cho mặt card + 1 lớp viền sáng – KHÔNG dùng mask */
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255,255,255,.90), transparent 70%) padding-box,
    linear-gradient(180deg, var(--c-top) 0%, var(--c-mid) 46%, var(--c-bot) 100%) padding-box,
    linear-gradient(180deg, #FFF 0%, rgba(255,255,255,0) 100%) border-box;
  border:1px solid transparent;
  background-origin:border-box;
  background-clip:padding-box, padding-box, border-box;

  /* combo 3 lớp shadow giống mẫu zoom */
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.96),    /* mép sáng trong */
    0 2px 6px var(--light-blue),              /* ánh sáng lam sát mép */
    0 10px 24px var(--deep-blue);             /* bóng xa sâu */
  transition:transform .25s ease, box-shadow .25s ease;
  overflow:hidden;
}

/* highlight đỉnh */
.card::after{ 
  content:""; position:absolute; left:50%; top:-12px; transform:translateX(-50%);
  width:80%; height:70px; border-radius:28px;
  background:radial-gradient(80% 100% at 50% 0%, rgba(255,255,255,.92), transparent 100%);
  filter:blur(12px); pointer-events:none;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    0 4px 8px var(--light-blue),
    0 16px 32px color-mix(in srgb, var(--deep-blue) 100%, transparent 0%);
}

/* gợi ý text */
.card h3 { 
  margin:6px 0 10px; 
  font-size:22px; 
  font-weight:800; 
  line-height:1.25; 
}

.card p { 
  margin:0; 
  color:#3a4a5e; 
}

/* ==== WEB DEVELOPMENT SECTION ==== */
.webdev-section {
  background: linear-gradient(to bottom, #F9FBFF, #E0ECFF);
}

/* ==== WIDE CARD GRID (AMS SECTION) ==== */
.wide-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.wide-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  gap: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.wide-card img {
  width: 72px;
}

.wide-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.wide-card p {
  font-size: 1rem;
  color: #475569;
}

.wide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ==== WHY KUMACLOUDS ==== */
.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.four-col .card {
  padding: 40px 24px;
}

.four-col h3 {
  font-size: 1.4rem;
}

/* ==== CTA SECTION ==== */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  color: #fff;
  padding: 100px 20px;
}

.cta-section h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 32px;
}

.cta-main-btn {
  background: #fff;
  color: #1E3A8A;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s;
}

.cta-main-btn:hover {
  background: #F1F5F9;
  transform: translateY(-4px);
}

/* ==== FOOTER ==== */
.footer {
  background: #0A1630;
  color: #E2E8F0;
  padding: 60px;
}

.footer-content {
  max-width: 1536px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo img {
  width: 140px;
  margin-bottom: 20px;
}

.footer-logo p {
  font-size: 0.95rem;
  color: #CBD5E1;
}

.footer-links h4 {
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #fff;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #94A3B8;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #64748B;
  margin-top: 40px;
  border-top: 1px solid #1E293B;
  padding-top: 20px;
}

.global-wave {
  position: relative;
  width: 100%;
  height: 100%;    /* chỉnh theo ý bạn */
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.global-wave img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  display: block;
}


/* ===== Dark mode (tuỳ chọn) ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #0D1B3A;
    --bg-mid1:#12306B;
    --bg-mid2:#1E49A1;
    --bg-bottom:#2563EB;

    --text-color:#E6F0FF;
    --panel-bg: rgba(255,255,255,.08);
    --panel-shadow: 0 10px 30px rgba(0,0,0,.35);

    --section-heading-color: #E6F0FF;
    --section-subtitle-color: rgba(230,240,255,.8);
    --section-shadow-1: rgba(100,140,255,.15);
    --section-shadow-2: rgba(150,180,255,.25);

    --tabs-bg: rgba(255,255,255,.10);
    --tabs-border: rgba(255,255,255,.18);
    --tabs-shadow: 0 8px 24px rgba(0,0,0,.35);
    --tab-color: rgba(230,240,255,.85);
    --tab-color-active: #fff;
    --tab-bg-active: rgba(255,255,255,.14);
    --tab-underline: linear-gradient(90deg,#60a5fa,#93c5fd);
  }
}

@media (max-width: 640px) {
  :root {
    --kc-hero-bg: url("/images/kc/hero/hero_mobile_bg.png");
  }

  .section {
    padding: 56px 24px;
  }
  .section h2,
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  .section-subtitle {
    font-size: 1rem;
  }

  .navbar .logo img {
    height: 28px;
  }

  ._9qo2RID,
  ._OZ7oNdj,
  ._AZP4i3b,
  ._1pAgjD1,
  ._osjRrGm {
    display: none !important;
  }
}
