/* ── Fonts ─────────────────────────────────── */

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("../fonts/IBMPlexSansThai-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("../fonts/IBMPlexSansThai-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("../fonts/IBMPlexSansThai-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("../fonts/IBMPlexSansThai-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("../fonts/IBMPlexSansThai-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Google Sans 400 - Regular */
@font-face {
  font-family: "Google Sans Display";
  src: url("../fonts/GoogleSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Google Sans 500 - Medium */
@font-face {
  font-family: "Google Sans Display";
  src: url("../fonts/GoogleSans-Medium.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Google Sans 600 - SemiBold */
@font-face {
  font-family: "Google Sans Display";
  src: url("../fonts/GoogleSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Google Sans - Text 400 - Regular */
@font-face {
  font-family: "Google Sans Text";
  src: url("../fonts/GoogleSans_17pt-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

/* ── General Styles ─────────────────────────── */
:root {
  font-size: 62.5%;

  /* ── Website Theme ───────────────────────── */

  /* === Brand === */
  --color-primary: #0ca0df;
  --color-primary-400: #38bdf8;
  --color-secondary: #4285f4;
  --color-tertiary: #6d5df0;
  --color-emphasis: #01135e;

  /* === Accent === */
  --color-accent: #f10486;
  --color-success: #48c78e;

  /* === Surface === */
  --color-surface-base: #ffffff;
  --color-surface-subtle: #f0faff;
  --color-surface-muted: #f5f8fe;
  --color-surface-dark: #0c0e2c;

  /* === Text === */
  --color-text-base: #1a1a2e;
  --color-text-subtle: #3f5e85;
  --color-text-subtle-high: #24364d;
  --color-text-inverse: #ffffff;
  --color-text-muted: #a7acc8;
  --color-text-muted-dark: #7a82a8;
  --color-label: #8b93bb;

  /* === Arrow & Dot === */
  --color-arrow-border: rgba(255, 255, 255, 0.55);
  --color-arrow-hover: rgba(255, 255, 255, 0.15);
  --color-dot: rgba(255, 255, 255, 0.22);
  --color-dot-active: #ffffff;

  /* === Border === */
  --color-border-primary: rgba(12, 160, 223, 0.6);
  --color-border-secondary: rgba(12, 160, 223, 0.14);
  --color-border-subtle: #e5e7eb;
  --color-border-muted: rgba(255, 255, 255, 0.18);

  /* === Divider === */
  --color-divider: rgba(255, 255, 255, 0.12);
  --color-divider-md: rgba(215, 224, 249, 0.2);

  /* === Gradient === */
  --gradient-primary: linear-gradient(
    90deg,
    #3fcacf 0%,
    #5ba8f5 50%,
    #9a7de8 100%
  );
  --gradient-surface: linear-gradient(
    136deg,
    #f2fafb,
    #f2fafb 36%,
    #f7ebed 100%
  );

  /* === Font Size === */
  --font-size-xs: 1.3rem;
  --font-size-sm: 1.5rem;
  --font-size-md: 1.7rem;
  --font-size-lg: 1.9rem;
  --font-size-xl: 2.1rem;

  /* === Radius === */
  --radius-sm: 0.6rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.2rem;
  --radius-pill: 9999px;

  /* === BTN Padding === */
  --btn-padding-sm: 0.6rem 1rem;
  --btn-padding-md: 1rem 1.4rem;
  --btn-padding-lg: 1.2rem 1.8rem;

  /* === Shadow === */
  --color-shadow-sm: rgba(0, 0, 0, 0.05);
  --color-shadow-md: rgba(0, 0, 0, 0.1);
  --color-shadow-lg: rgba(0, 0, 0, 0.2);
  --shadow-card: 0 0 2rem 2rem 0 rgba(82, 156, 219, 0.16);

  --card-px: 1.6rem;
  --card-py: 1.75rem;
  --arrow-size: 6rem;

  --transition-base: 0.25s ease;
  --transition-slide: 0.52s cubic-bezier(0.4, 0, 0.2, 1);

  /* ══════════════════════════════════════════
     Spacing System — Mobile-first scale
     Mobile  → Tablet (≥768) → Desktop (≥1024)
     ══════════════════════════════════════════ */

  /* Section vertical padding (top+bottom) */
  --section-py: 5rem; /* mobile  */

  /* Section horizontal padding */
  --section-px: 2rem; /* mobile  */

  /* Inner content gap (between child elements inside a section) */
  --section-gap: 2.4rem; /* mobile  */
}

/* ── Tablet (≥ 768px) ── */
@media (min-width: 768px) {
  :root {
    --section-py: 7rem;
    --section-px: 4rem;
    --section-gap: 2.4rem;
  }
}

/* ── Desktop (≥ 1024px) ── */
@media (min-width: 1024px) {
  :root {
    --section-py: 9rem;
    --section-px: 6vw;
    --section-gap: 3rem;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text-base);
  background: var(--color-surface-base);
}

input[type="submit"] {
  text-decoration: none;
  border-radius: 0.6rem;
  transition: all 0.2s ease-in-out;
}

a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

li {
  list-style: none;
}

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

input,
fieldset,
textarea {
  border: none;
  background: none;
  outline: none;
}

/* ── Overall Layout ─────────────────────────── */
.overall-layout {
  grid-column: container-start/container-end;
}

/* ── Utility Classes ────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sec-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

/* .padd — Mobile-first: ใช้ CSS custom properties ที่ responsive อัตโนมัติ */
.padd {
  padding: var(--section-py) var(--section-px);
}

/* .padd-lr — horizontal padding เท่ากับ section-px */
.padd-lr {
  padding-inline: var(--section-px);
}

.sec-link,
input[type="submit"] {
  color: hsl(0deg, 0%, 100%);
  font-size: 1.5rem;
  padding: 1rem 3rem;
}

.sec-para {
  font-size: var(--font-size-md);
  color: var(--color-text-subtle);
  text-align: center;
  margin-bottom: 3.2rem;
}

.sec-para-wh {
  font-size: 1.7rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.sec-para span {
  display: block;
}

.sec-mini-title {
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

.sec-title {
  font-size: clamp(2.4rem, 3vw + 1rem, 4rem);
  font-weight: 600;
  color: var(--color-emphasis);
  text-align: center;
}

.sec-title-wh {
  font-size: clamp(2.4rem, 3vw + 1rem, 4rem);
  font-weight: 600;
  color: var(--color-text-inverse);
  text-align: center;
}

.sec-sub-para {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-subtle);
}

.sec-sub-title {
  font-size: clamp(2.4rem, 2.5vw, 3rem);
  font-weight: 600;
  transition: all 0.25s ease-in-out;
}

@media (hover) {
  .sec-sub-title {
    color: var(--color-text-base);
  }
  .sec-sub-title:hover {
    color: hsl(327deg, 97%, 48%);
  }
}

.responsive-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: var(--section-gap);
}

/* ── Card ────────────────────────────────────── */
.card {
  background: var(--color-surface-base);
  border: 0.5px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 2rem 0 rgba(82, 156, 219, 0.16);
  overflow: hidden;
}
.card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-dark);
}
.card__media iframe,
.card__media video,
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}
.card__body {
  padding: 2.4rem;
}
.card__title {
  font-size: var(--font-size-lg);
  font-weight: 500;
  margin: 0 0 0.8rem;
  color: var(--color-text-base);
}
.card__description {
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--color-text-subtle);
  margin: 0;
}

/* ── hcard-grid ──────────────────────────────── */
.hcard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--section-gap);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hcard-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 40rem), 1fr));
  }
}

/* ── hcard ───────────────────────────────────── */
.hcard {
  display: flex;
  flex-direction: column; /* mobile: stack */
  align-items: flex-start;
  gap: 1.6rem;
  background: var(--color-surface-base);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: 0 0 2rem 0 rgba(82, 156, 219, 0.16);
  border: 1px solid var(--color-border-secondary);
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease;
  overflow: hidden;
}

@media (min-width: 520px) {
  .hcard {
    flex-direction: row; /* tablet+: horizontal */
    align-items: stretch;
  }
}

.hcard:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* ── Thumbnail ──────────────────────────── */
.hcard__figure {
  flex-shrink: 0;
  width: 100%;
  height: 18rem;
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(40, 165, 219, 0.2);
  overflow: hidden;
  background: #e2eaf2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (min-width: 520px) {
  .hcard__figure {
    width: 16rem;
    height: 16rem;
  }
}

.hcard__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Body ───────────────────────────────── */
.hcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.8rem;
  min-width: 0;
}

/* ── Text group ────────── */
.hcard__text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hcard__heading {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-base);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hcard__desc {
  font-size: 1.4rem;
  color: var(--color-text-subtle);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Meta ─ */
.hcard__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hcard__meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
  line-height: 1.4;
}

.hcard__meta-item svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--color-primary);
}

/* ── Action button ──────────────────────── */
.hcard__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: var(--btn-padding-md);
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-border-subtle);
  background: transparent;
  color: var(--color-text-base);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  white-space: nowrap;
}

.hcard__action:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ── Action button style 2 ──────────────────────── */
.hcard__action-st2 {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: var(--color-text-inverse);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-base),
    border-color var(--transition-base);
  white-space: nowrap;
}

.hcard__action-st2:hover {
  color: var(--color-primary);
  background: var(--color-surface-base);
}

.hcard__action-st2:hover .btn-icon {
  background: var(--color-primary);
}

.hcard__action-st2:hover .btn-icon svg {
  transform: rotate(45deg);
}

/* ── Icon circle ── */
.btn-label {
  padding-right: 1.2rem;
}

.btn-icon {
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid rgba(215, 224, 249, 0.3);
  border-radius: 50%;
  background: rgba(215, 224, 249, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-base);
}

.btn-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  stroke: var(--color-text-inverse);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Demo label ─────────────────────────── */
.demo-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 auto 0.75rem;
  max-width: 1100px;
}

.surface-subtle {
  background-color: var(--color-surface-subtle);
}

.surface-gradient {
  background-color: var(--color-surface-subtle);
  background-image: var(--gradient-surface);
}

/* ── Buttons ─────────────────────────────── */
.btn {
  padding: var(--btn-padding-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  color: var(--color-text-inverse);
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(12, 160, 223, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  opacity: 0.88;
}
.btn:active {
  transform: scale(0.97);
}

.btn-diagonal {
  color: var(--color-text-inverse);
  background: var(--gradient-primary);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-gradient {
  color: var(--color-primary);
  background: transparent;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #3ecbcf, #5ba8f5, #9b7fe8) 1;
  border-radius: 8px;
}

.btn-outline {
  color: var(--color-primary);
  background: transparent;
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(12, 160, 223, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-w {
  color: var(--color-primary-400);
  background: transparent;
  border: 2px solid var(--color-primary-400);
  box-shadow: 0 2px 8px rgba(12, 160, 223, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(12, 160, 223, 0.3);
  transform: translateY(-3px);
}

.btn-outline:hover,
.btn-outline-w:hover {
  opacity: 1;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(12, 160, 223, 0.3);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: scale(0.97);
  box-shadow: none;
}

.btn-dark {
  background: var(--color-emphasis);
  border-color: var(--color-emphasis);
  color: #ffffff;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  padding: var(--btn-padding-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-inverse);
  background-color: #06c755;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.25s ease-in-out;
}

.btn-line:hover {
  opacity: 0.88;
}

.btn-line:active {
  transform: scale(0.97);
}

.readmore svg {
  stroke-width: 2;
  width: 2rem;
}

.readmore-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
  padding-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.readmore-text:hover {
  color: var(--color-secondary);
  font-weight: 600;
  text-shadow: 0 0 0.5px var(--color-shadow-lg);
}

.btn-margin-top {
  margin-top: 4rem;
}

/* ── Section fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.header__top,
.header__nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.header__top {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  background-color: var(--color-surface-dark);
  padding: 1rem var(--section-px);
}

.header__top-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  transition: color 0.25s ease-in-out;
}

.header__top-info a:hover {
  color: color-mix(in srgb, var(--color-primary) 70%, #ffffff);
}

.header__top-info svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  transition: stroke 0.25s ease-in-out;
}

/* ── Language ── */
.header__language {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header__language-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.header__language-dropdown {
  position: relative;
}

.header__language-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--btn-padding-sm);
  background: transparent;
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition:
    border-color 0.25s ease-in-out,
    color 0.25s ease-in-out;
}

.header__language-btn:hover {
  border-color: var(--color-primary);
  color: color-mix(in srgb, var(--color-primary) 70%, #ffffff);
}

.header__language-btn img {
  width: 1.8rem;
  height: auto;
  border-radius: 2px;
}

.header__language-chevron {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  transition: transform 0.25s ease-in-out;
}

.header__language-dropdown.is-open .header__language-chevron {
  transform: rotate(180deg);
}

.header__language-list {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 14rem;
  background-color: var(--color-surface-dark);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  overflow: hidden;
  list-style: none;
  z-index: 100;
  box-shadow: 0 8px 24px var(--color-shadow-lg);
}

.header__language-dropdown.is-open .header__language-list {
  display: block;
}

.header__language-list li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
}

.header__language-list li a:hover {
  background-color: var(--color-divider-md);
  color: color-mix(in srgb, var(--color-primary) 70%, #ffffff);
}

.header__language-list li a img {
  width: 1.8rem;
  height: auto;
  border-radius: 2px;
}

.header__nav {
  border-bottom: 1px solid var(--color-divider-md);
}

.header__nav--logo {
  width: 8rem;
  height: auto;
}

.header__nav-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.header__nav-menu-item a {
  color: var(--color-text-base);
  font-size: var(--font-size-md);
  font-weight: 500;
  transition: color 0.25s ease-in-out;
}

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

.header--scrolled .header__nav {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}

/* ── Submenu Desktop ── */
.header__nav-menu-item--link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-arrow {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-arrow--right {
  width: 1rem;
  height: 1rem;
}

.nav-sub {
  list-style: none;
  padding: 0.6rem 0;
  margin: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border-subtle);
  min-width: 18rem;
  position: absolute;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.nav-sub--lv1 {
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

.nav-sub--lv2 {
  top: -0.6rem;
  left: calc(100% + 0.4rem);
  transform: translateY(8px);
}

.header__nav-menu-item--has-sub {
  position: relative;
}

.nav-sub__item--has-sub {
  position: relative;
}

.nav-sub__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.6rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-base);
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s,
    padding-left 0.15s;
  border-radius: 6px;
  margin: 0 0.4rem;
}

.nav-sub__link:hover {
  background: var(--color-surface-subtle);
  color: var(--color-primary);
  padding-left: 2rem;
}

.header__nav-menu-item--has-sub:hover > .nav-sub--lv1 {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header__nav-menu-item--has-sub:hover > a .nav-arrow:not(.nav-arrow--right) {
  transform: rotate(180deg);
}

.nav-sub__item--has-sub:hover > .nav-sub--lv2 {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-sub__item--has-sub:hover > .nav-sub__link .nav-arrow--right {
  transform: translateX(3px);
}

.nav-sub--lv1 > .nav-sub__item + .nav-sub__item {
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 0.2rem;
  padding-top: 0.2rem;
}

/* ── Header Right ── */
.header__right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.header__nav--login svg {
  stroke-width: 1.75;
  padding-bottom: 0.5rem;
}

.header__cart {
  padding-top: 1.3rem;
}

.header__cart-btn {
  position: relative;
}

.header__cart-btn svg {
  color: var(--color-text-base);
  width: 2.4rem;
  height: 2.4rem;
  stroke-width: 1.75;
  transition: color 0.25s ease-in-out;
}

.header__cart-btn svg:hover {
  color: var(--color-primary);
}

.header__cart-btn .notification {
  top: -1.8rem;
  right: -7px;
  position: absolute;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  font-size: 10px;
  color: #fff;
  border-radius: 50%;
  background-color: #ca2424;
}

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .hero {
    min-height: 90vh;
  }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 40, 0.5) 0%,
    rgba(10, 10, 40, 0) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.4rem;
  z-index: 2;
  padding: var(--section-py) var(--section-px);
  min-height: inherit;
}

.hero__title {
  color: var(--color-text-inverse);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 500;
  text-align: center;
  text-shadow: 2px 1px 7px hsl(210, 90%, 72%);
  line-height: 1.3;
  padding-top: 3rem; /* nav clearance on mobile */
}

@media (min-width: 768px) {
  .hero__title {
    padding-top: 0;
  }
}

.hero__title span {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════ */
.about {
  display: flex;
  flex-direction: column-reverse; /* mobile: image below text */
  align-items: flex-start;
  gap: var(--section-gap);
}

.about__image {
  flex: 0 0 auto;
  width: 100%;
  position: relative;
}

.about__image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.28) 0%,
    rgba(240, 253, 244, 0) 70%
  );
  pointer-events: none;
}

.about__image svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.about__content {
  flex: 1;
}

.about__content-title {
  margin-bottom: 1.4rem;
  text-align: left;
}

.about__content-title span {
  color: var(--color-primary);
}

.about__content-desc {
  color: var(--color-text-subtle);
  font-size: var(--font-size-md);
  margin-bottom: 2rem;
}

.about__content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3.2rem;
}

.about__content-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: var(--font-size-md);
}

.about__content-list .check-icon {
  flex-shrink: 0;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 9px;
  background: var(--color-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__content-list .check-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  fill: none;
}

@media (min-width: 1024px) {
  .about {
    flex-direction: row; /* desktop: side by side */
    align-items: center;
  }

  .about__image {
    width: 48rem;
  }
}

/* ══════════════════════════════════════════
   TESTIMONIALS-VIDEO SECTION
   ══════════════════════════════════════════ */
.testimonials-vdo__content .card:last-child {
  display: none;
}

@media (min-width: 1280px) {
  .testimonials-vdo__content .card:last-child {
    display: block;
  }
}

/* ══════════════════════════════════════════
   TESTIMONIALS-TEXT SECTION
   ══════════════════════════════════════════ */
.testimonials-text {
  display: grid;
  grid-template-columns: 1fr; /* mobile: 1 col */
  gap: var(--section-gap);
  background-color: var(--color-surface-dark);
  overflow: hidden;
}

.testimonials-text__content .readmore {
  display: none;
}

.testimonials-wrap .readmore {
  display: block;
}

.testimonials-text__content {
  min-width: 0;
}

.testimonials-text__title {
  color: var(--color-text-inverse);
  font-size: clamp(2rem, 2vw + 1rem, 3.6rem);
  font-weight: 600;
}

.testimonials-text h3 {
  color: var(--color-text-muted);
  font-weight: 400;
}

.testimonials-text__content p {
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .testimonials-text {
    grid-template-columns: 0.5fr 1fr; /* desktop: sidebar + slider */
  }

  .testimonials-text__content .readmore {
    display: block;
  }

  .testimonials-wrap .readmore {
    display: none;
  }
}

/* ══════════════════════════════════════════
   READ-ONLINE / BOOK CARD
   ══════════════════════════════════════════ */
.book-card {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-base);
  border: 1px solid rgba(66, 133, 244, 0.1);
  box-shadow: 0 0 24px 0 var(--color-shadow-sm);
  overflow: hidden;
  transition:
    box-shadow 0.25s ease-in-out,
    transform 0.25s ease-in-out;
}

.book-card:hover {
  box-shadow: 0 0 24px 0 rgba(82, 156, 219, 0.3);
}

.book-card__figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.book-card__image {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease-in-out;
}

.book-card__figure:hover .book-card__image {
  transform: scale(1.1);
}

.book-card__content {
  padding: 0 2rem 2.4rem;
  display: flex;
  flex-direction: column;
  row-gap: 1.6rem;
}

.book-card__title {
  display: inline-block;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-top: 1.2rem;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
}

.book-card__title:hover {
  opacity: 0.75;
}

.book-card__subtitle {
  color: var(--color-text-subtle);
  font-size: var(--font-size-md);
  font-weight: 500;
}

.book-card__desc {
  font-size: var(--font-size-md);
  font-weight: 400;
  color: var(--color-text-base);
}

.book-card__languages {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.book-card__languages-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-subtle);
}

.book-card__languages-group {
  display: inline-flex;
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.book-card__lang-btn {
  padding: 0.6rem 1.4rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
  background: transparent;
  white-space: nowrap;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
}

.book-card__lang-btn + .book-card__lang-btn {
  border-left: 1px solid var(--color-border-primary);
}

.book-card__lang-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ══════════════════════════════════════════
   BLOG SECTION
   ══════════════════════════════════════════ */
.blog-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-header__title {
  color: var(--color-text-base);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.blog-header__subtitle {
  font-size: 1.4rem;
  color: var(--color-text-subtle);
  line-height: 1.65;
}

/* Grid — mobile: single column */
.blog-grid {
  max-width: 120rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-grid__right {
  display: contents;
}

.blog-card {
  background: var(--color-surface-base);
  border: 0.5px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 2.4rem 0 rgba(82, 156, 219, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.blog-card__img-wrap {
  width: 100%;
  height: 22rem;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted-dark);
}

.blog-card__meta-divider {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.blog-card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-base);
  line-height: 1.35;
}

.blog-card__excerpt {
  font-size: var(--font-size-md);
  color: var(--color-text-subtle);
  line-height: 1.7;
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border: 1.5px solid var(--color-text-base);
  border-radius: 10rem;
  padding: 0.6rem 0.8rem 0.6rem 1.8rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text-base);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  margin-top: 0.6rem;
  white-space: nowrap;
}

.blog-btn:hover {
  background: var(--blog-btn-bg);
  color: var(--color-text-inverse);
  border-color: var(--blog-btn-bg);
}

.blog-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--blog-btn-bg);
  margin-left: 1rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.blog-btn:hover .blog-btn__icon {
  background: rgba(255, 255, 255, 0.2);
}

.blog-btn__icon svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tablet ≥ 768px */
@media (min-width: 768px) {
  .blog-header {
    text-align: center;
  }

  .blog-grid {
    gap: var(--section-gap);
    padding-bottom: 3rem;
  }

  .blog-card--featured .blog-card__img-wrap {
    height: 36rem;
  }

  .blog-card--featured .blog-card__body {
    padding: 3rem 3.2rem;
  }

  .blog-card--featured .blog-card__title {
    font-size: 2.4rem;
  }

  .blog-card--side {
    flex-direction: row;
    align-items: stretch;
  }

  .blog-card--side .blog-card__img-wrap {
    width: 30rem;
    height: auto;
    min-height: 22rem;
    flex-shrink: 0;
  }

  .blog-card--side .blog-card__body {
    flex: 1;
    padding: 3rem 3.2rem;
    justify-content: center;
  }

  .blog-card--side .blog-card__title {
    font-size: 2rem;
  }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    gap: var(--section-gap);
  }

  .blog-grid__right {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    grid-column: 2;
    grid-row: 1;
  }

  .blog-card--featured {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
  }

  .blog-card--featured .blog-card__img-wrap {
    flex: 1;
    height: auto;
    min-height: 26rem;
  }

  .blog-card--featured .blog-card__body {
    padding: 3.2rem;
    flex-shrink: 0;
  }

  .blog-card--side {
    flex: 1;
    min-height: 0;
  }

  .blog-card--side .blog-card__img-wrap {
    width: 22rem;
    height: 100%;
  }

  .blog-card--side .blog-card__body {
    padding: 2.8rem;
  }

  .blog-card--side .blog-card__title {
    font-size: var(--font-size-lg);
  }

  .blog-card--side .blog-card__excerpt {
    font-size: 1.4rem;
  }
}

/* ══════════════════════════════════════════
   COMMUNITY SECTION
   ══════════════════════════════════════════ */
.community .hcard {
  background: linear-gradient(135deg, #38bdf8, #006cab);
  gap: 2.4rem;
}

.community .hcard:last-child {
  background: linear-gradient(135deg, #0369a1, #0c0e2c);
}

.community .hcard__heading {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-inverse);
  line-height: 1.4;
}

.community .hcard__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-inverse);
  line-height: 1.55;
}

.community .hcard__figure img {
  object-fit: contain;
  display: block;
}

/* mobile — stack vertically */
@media (max-width: 599px) {
  .community .hcard {
    flex-direction: column;
    align-items: center;
    padding: 3.2rem 2.4rem;
  }

  .community .hcard__figure {
    width: auto;
    height: 18rem;
  }

  .community .hcard__body {
    gap: 2.4rem;
  }

  .community .hcard__text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
  }

  .community .hcard__desc {
    text-align: center;
  }

  .hcard__action-st2 {
    align-self: center;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background-color: var(--color-surface-dark);
  color: var(--color-text-muted);
  padding: var(--section-py) var(--section-px) 0;
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr; /* mobile: single col */
  gap: 3.2rem;
  padding-bottom: 4rem;
}

@media (min-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 3.6rem;
  }
}

@media (min-width: 1024px) {
  .footer__container {
    grid-template-columns: 1.6fr 1.4fr 1fr 1.4fr;
    gap: 4rem;
    padding-bottom: 5.2rem;
  }
}

.footer__brand-logo {
  width: 9rem;
  height: 6rem;
  margin-bottom: 2rem;
}

.footer__brand-logo img {
  max-width: 100%;
  height: auto;
}

.footer__brand-desc {
  font-size: var(--font-size-sm);
  line-height: 1.75;
  margin-bottom: 2.4rem;
}

.footer__brand-tel {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.footer__brand-tel-icon {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  border: 2px solid var(--color-border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__brand-tel-icon svg {
  width: 2.6rem;
  height: 2.6rem;
  stroke: currentColor;
}

.footer__brand-tel-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer__brand-tel-number {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-inverse);
  letter-spacing: 0.5px;
}

.footer__brand-tel-label {
  font-size: var(--font-size-sm);
}

.footer__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: 2rem;
  letter-spacing: 0.3px;
}

.footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__nav-list a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: color 0.2s ease-in-out;
}

.footer__nav-list a::before {
  content: "›";
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.footer__nav-list a:hover {
  color: color-mix(in srgb, var(--color-primary) 70%, #ffffff);
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.footer__contact-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-inverse);
}

.footer__contact-value {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.footer__contact-email {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: color 0.2s ease-in-out;
}

.footer__contact-email:hover {
  color: color-mix(in srgb, var(--color-primary) 70%, #ffffff);
}

.footer__contact-socials {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}

.footer__contact-social {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background-color: var(--color-divider-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease-in-out;
}

.footer__contact-social:hover {
  background-color: var(--color-primary);
}

.footer__contact-social i {
  font-size: var(--font-size-md);
  color: var(--color-text-inverse);
}

.footer__line-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: fit-content;
}

.footer__line-qrcode {
  background-color: var(--color-surface-base);
  border-radius: var(--radius-sm);
  width: 14rem;
  height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer__line-qrcode img {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
}

.footer__bottom {
  border-top: 1px solid var(--color-divider);
  padding: 2rem 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 1.4rem;
}

/* ── Woocommerce ─────────────────────────────── */

/* ── Footer nav — WordPress wp_nav_menu override ─────────────────────────── */
.footer__nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__nav-list li a {
  text-decoration: none;
}
