/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — page-specific styles only.
   Header, footer, buttons (.btn-primary/.view-all), colors,
   .eyebrow, .section-title, .section, .section-header and .reveal
   all come from the shared ../css/styles.css (same file the
   homepage uses), so header, footer, margins and button design
   stay identical to the homepage without duplicating them here.
   ═══════════════════════════════════════════════════════════ */

/* The current nav item ("เกี่ยวกับเรา") active state now comes from the shared
   .nav-item.current rule in css/styles.css — navy text + persistent underline,
   identical to every other page. (No page-specific override here anymore.) */

/* Shared sub-heading used across the about sections */
.about-h3 {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw,28px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 18px;
}
.about-h3 span { color: var(--cyan); font-weight: 400; }

.about-block p { color: #4a5160; font-size: 18px; line-height: 1.85; }

/* ── HTML anchors: offset for the fixed header when jumping to a section ── */
.about-block, .about-hero { scroll-margin-top: 130px; }

/* ═══════════════ ABOUT HERO ═══════════════ */
.about-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 88px 64px 72px;
  background:
    radial-gradient(ellipse 55% 60% at 14% 18%, rgba(45, 133, 194, .14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 92% 82%, rgba(35, 57, 105, .10) 0%, transparent 65%),
    var(--paper);
}
.about-hero-graphic {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  right: -300px;
  top: 46%;
  transform: translateY(-50%);
  width: 1000px;
  aspect-ratio: 1 / 1;
  background: url('../images/Jmac Element_3 hexagon copy.png') right center / contain no-repeat;
  opacity: .85;
}
.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.about-hero-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw,56px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--navy);
  margin: 16px 0 10px;
}
.about-hero-title span { color: var(--cyan); }
.about-hero-sub {
  font-family: var(--display);
  font-size: clamp(18px, 1.9vw,22px);
  font-weight: 600;
  color: var(--cyan-deep);
  margin: 0 0 22px;
}
.about-hero-lede p {
  color: #45505f;
  font-size: 18px;
  line-height: 1.9;
  margin: 0 0 14px;
}
.about-hero-lede p:last-child { margin-bottom: 0; }

/* ── Quick-nav tiles ──
   Structure & styling (.about-big / -frame / -media / -cta / -title) are
   inherited verbatim from the shared ../css/styles.css — same cut-corner
   frames, white corner CTA and hover as the homepage. Only the wrapping
   grid needs positioning inside the hero. */
.about-hero .about-top-grid {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  margin-bottom: 0;
}
/* Tile caption — even size, not below 16px */
.about-hero .about-big-title { font-size: 18px; }

/* ═══════════════ COMPANY PROFILE ═══════════════ */
.company-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 72px;
}

/* Definition-list "table" — reused for JMAC Japan HQ too */
.company-table {
  border-top: 2px solid var(--navy);
}
.company-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.company-row dt {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.6;
}
.company-row dd {
  color: #4a5160;
  font-size: 18px;
  line-height: 1.7;
}
.company-services {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.company-services li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  color: #4a5160;
}
.company-services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.company-media {
  position: sticky;
  top: 130px;
}
/* Cut-corner frame — 40px notch, identical to the What We Value image so the
   diagonal cut is exactly the same size on both. */
.company-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

/* Philosophy intro */
.philo-intro { max-width: 900px; margin-bottom: 40px; }
.philo-intro p { margin: 0 0 14px; line-height: 1.9; }

/* Trust cards — 3 columns (ปรัชญาการทำงาน "3 circles" reimagined as cards) */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan);
  padding: 34px 28px;
  box-shadow: 0 12px 30px rgba(15, 20, 25, .05);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(35, 57, 105, .12);
}
.trust-card-hex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  font-size: 26px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.trust-card h4 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin: 0 0 12px;
}
.trust-card p { font-size: 18px; line-height: 1.8; color: #5a6270; margin: 0; }

/* ═══════════════ IQH ═══════════════ */
.iqh-bg {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 50% at 12% 20%, rgba(45, 133, 194, .08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 90% 85%, rgba(35, 57, 105, .07) 0%, transparent 65%),
    var(--paper);
}
.iqh-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}
/* ── Roomier vertical rhythm from the IQH section onward (less dense),
   leaving #greetings (the President message) at its original spacing. ── */
#philosophy, #history { padding-top: 104px; padding-bottom: 104px; }
.iqh-value-card {
  background: var(--cyan);
  border: 1px solid transparent;
  padding: 40px 32px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
/* Hover — flow into the brand gradient (#2295C4 → #033570); text stays white
   in both states so the solid-to-gradient transition reads as one smooth fill. */
.iqh-value-card:hover {
  background: linear-gradient(160deg, #2295C4 0%, #033570 100%);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(3, 53, 112, .28);
}
.iqh-letter {
  font-family: var(--display);
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: block;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.iqh-value-card h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.55;
  margin: 0 0 14px;
}
.iqh-value-card p { font-size: 18px; line-height: 1.8; color: rgba(255, 255, 255, .9); margin: 0; }

.iqh-supporters {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: stretch;               /* image fills the text-box height */
  background: #fff;
  border: 1px solid var(--border);
  padding: 60px;                       /* equal padding on all sides */
  box-shadow: 0 14px 34px rgba(15, 20, 25, .05);
}
.iqh-supporters p { margin: 0 0 14px; }
/* Image sized to fill the full height of the text beside it (flush top &
   bottom), with the same 40px cut corner as the Company Profile image. */
.iqh-sup-media { align-self: stretch; }
.iqh-sup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}
.iqh-advisors {
  margin: 4px 0 16px;
  padding-left: 22px;
}
.iqh-advisors li { color: #4a5160; font-size: 18px; line-height: 1.8; }
.iqh-notes {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--border-2);
}
.iqh-notes p {
  font-size: 18px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0 0 10px;
}
.iqh-notes p:last-child { margin-bottom: 0; }
.iqh-notes span {
  font-weight: 600;
  color: var(--navy);
  margin-right: 4px;
}

/* ═══════════════ PRESIDENT MESSAGE ═══════════════ */
/* Constrain the message to a comfortable reading measure (no more full-width
   long lines) and center the photo + text block within the section. */
.greet-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 720px);
  gap: 56px;
  align-items: start;
  justify-content: center;
}
.greet-aside { position: sticky; top: 130px; }
.greet-photo {
  margin-bottom: 22px;
}
/* Cut-corner frame — same 22px bottom-right notch as the homepage image tiles */
.greet-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.greet-name {
  border-top: 2px solid var(--cyan);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.greet-name-org { font-size: 18px; color: #6b7280; line-height: 1.6; }
.greet-name strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.greet-name-role { font-size: 18px; color: var(--cyan-deep); font-weight: 600; }
.greet-body p { margin: 0 0 18px; }
.greet-body p:first-child {
  font-size: 20px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.85;
}

/* ═══════════════ HISTORY / TIMELINE — left-aligned layout ═══════════════ */
#history {
  /* Tighten the gap before the next (Global Network) section */
  padding-bottom: 32px;
}

/* Centered + narrowed from 960px so lines wrap at a shorter, balanced
   measure instead of very long centered lines. */
/* 1096px = .greet-grid's own content width (320px image col + 56px gap +
   720px text col), so both sections' text blocks line up when scrolling.
   The narrower 820px used before made short lines that tore English/brand
   phrases like "JMA Consultants Inc." across line breaks too often. */
.history-intro { max-width: 1096px; margin: 0 auto 84px; text-align: center; }
.history-intro p { margin: 0 0 14px; }

/* ── Horizontal scrollable timeline ── */
.htl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.history-tl-title { margin: 0; }
.htl-controls { display: flex; gap: 12px; flex-shrink: 0; }
/* Cut-corner arrow buttons — solid navy fill at rest, switching to the same
   brand gradient as the IQH value cards' hover state on hover. The fill
   lives on ::before (clipped to the notch polygon) rather than the element's
   own background, so the white icon can sit above it at z-index:1 — a solid
   clip-path fill also sidesteps the border-following-the-notch problem
   entirely, since there's no border/outline to clip here. */
.htl-nav {
  position: relative;
  width: 62px;
  height: 44px;
  border: 0;
  background-color: transparent;
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: color .25s var(--ease);
}
.htl-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  z-index: -1;
  transition: background .25s var(--ease);
}
.htl-nav i { position: relative; z-index: 1; font-size: 24px; line-height: 1; }
.htl-nav:hover::before { background: linear-gradient(160deg, #2295C4 0%, #033570 100%); }

.htl { position: relative; }
.htl-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 0;
  cursor: grab;
  /* Hidden scrollbar — still scrollable by mouse wheel / drag / trackpad */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.htl-viewport:active { cursor: grabbing; }
.htl-viewport::-webkit-scrollbar { width: 0; height: 0; display: none; }

.htl-track {
  position: relative;
  display: flex;
  width: max-content;
  min-height: 430px;
  padding: 0 20px;
}
/* the branded axis line running the full width */
.htl-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--navy), var(--cyan));
}
.htl-item {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
}
/* node dot on the axis */
.htl-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  z-index: 2;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
/* connector stem between axis and card */
.htl-stem {
  position: absolute;
  left: 50%;
  width: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  z-index: 1;
}
.htl-item.up .htl-stem { bottom: 50%; height: 48px; }
.htl-item.down .htl-stem { top: 50%; height: 48px; }
/* the floating card (no image — text only), cut-corner brand frame */
.htl-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 264px;
  padding: 18px 20px;
  /* Each card is a SLICE of one big navy→cyan gradient spanning the whole
     timeline: the gradient image is sized to the full track width and shifted
     by this card's own x-offset. So the first card reads brand navy (#233969)
     and the colour flows to cyan JMAC (#2596BE) on the last card. */
  background-image: linear-gradient(90deg, var(--navy) 0%, var(--cyan) 100%);
  background-repeat: no-repeat;
  background-size: var(--htl-track-w, 2400px) 100%;
  background-position: calc(-1 * var(--htl-card-x, 0px)) center;
  /* cut corner — same 14px diagonal notch as the homepage buttons */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 14px 32px rgba(35, 57, 105, .18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.htl-item.up .htl-card { bottom: calc(50% + 48px); }
.htl-item.down .htl-card { top: calc(50% + 48px); }
.htl-card p { margin: 0; font-size: 17px; line-height: 1.65; color: #fff; }
/* No hover effect on the timeline cards (no lift) */
/* the year label sitting on the axis (opposite side to the card) */
.htl-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  white-space: nowrap;
  z-index: 2;
}
.htl-item.up .htl-year { top: calc(50% + 18px); }
.htl-item.down .htl-year { bottom: calc(50% + 18px); }

/* ═══════════════ JMA GROUP ═══════════════ */
/* Roomier top/bottom so the Global Network block doesn't feel crowded. */
#jma-group { padding-top: 96px; padding-bottom: 104px; }
/* 2-column layout — break-inside:avoid keeps each paragraph whole in one
   column instead of splitting/tearing its text across the column break.
   No max-width: it fills the section's full width the same way .jg-stat
   below it does (also unconstrained), so the two line up exactly. */
/* Centred intro paragraph */
.jmagroup-intro {
  max-width: 1100px;
  margin: 0 auto 48px;
  text-align: center;
  text-wrap: pretty;
}
.jmagroup-intro p { margin: 0; }

/* Plain stats on the white section background — small label on top, big
   brand-coloured number below (one cyan, one navy). No brackets. */
.jg-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 720px;
  margin: 0 auto 56px;
}
.jg-stat2 { text-align: center; }
.jg-stat2-label {
  display: block;
  font-size: 17px;
  color: var(--gray-600, #5b6472);
  margin-bottom: 10px;
}
.jg-stat2-num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}
.jg-stat2-num--navy { color: var(--navy); }
.jg-stat2-num sup {
  font-size: .34em;
  vertical-align: super;
  margin-left: 3px;
  color: inherit;
  font-weight: 700;
}

.jg-hq { margin-top: 72px; }
/* Clean full-width title bar for the Japan HQ block — light band, cyan accent
   rule, muted subtitle after the "|". Replaces the plain cramped heading. */
.jg-hq .about-h3 {
  background: var(--navy-soft);
  padding: 24px 30px;
  margin: 0 0 40px;
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--navy);
}
.jg-hq .about-h3 span {
  display: block;
  margin-top: 8px;
  font-size: 19px;
  font-weight: 400;
  color: var(--cyan);
}
/* Stack the profile table and affiliates instead of squeezing them side by
   side — each gets the full width and room to breathe. */
.jg-hq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 0;
}
/* ── บริษัทในเครือ — JMA Group hexagon hub-and-spoke diagram ──
   No card frame. The JMAC logo sits in the centre; 8 affiliates radiate
   around a circle as brand hexagons, each linked by a thin spoke. Nodes are
   positioned by rotating an arm to its angle (--a), placing the node at the
   arm's end, then un-rotating it so the label stays upright. Falls back to a
   grid on mobile. */
.jg-affiliates {
  background: transparent;
  border: 0;
  padding: 0;
}
/* Heading matches the timeline title (.history-tl-title): same display size,
   navy, flush-left — keeping the original word "บริษัทในเครือ". */
.jg-affiliates h4 {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--navy);
  text-align: left;
  margin: 0 0 18px;
}
.jg-affiliates h4 span { color: var(--cyan); font-weight: 400; }

.jma-hub {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 1;
  margin: 8px auto 0;
  --r: 262px;                 /* spoke length / node distance from centre */
}
/* Centre — JMAC logo on a soft light disc */
.jma-hub-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 168px; height: 168px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: radial-gradient(circle at 50% 42%, #fff 0%, #eef1f5 72%, #e4e8ee 100%);
  box-shadow: 0 8px 22px rgba(35,57,105,.10);
  z-index: 3;
}
.jma-hub-center img { width: 128px; height: auto; display: block; }

.jma-arm {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform: rotate(var(--a));
}
.jma-spoke {
  position: absolute;
  left: 0; top: -1px;
  width: var(--r);
  height: 2px;
  background: linear-gradient(90deg, rgba(35,57,105,.10), rgba(34,149,196,.5));
  z-index: 0;
}
/* Each affiliate is a brand hexagon (pointy-top: flat left/right sides give
   the middle band full width for the acronym + name). */
.jma-node {
  position: absolute;
  left: var(--r); top: 0;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  width: 158px;
  aspect-ratio: 1 / 1.12;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(155deg, #2295C4 0%, #1E86B4 100%);
  z-index: 2;
}
.jma-ab {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .3px;
  margin-bottom: 5px;
}
.jma-nm {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(255,255,255,.92);
}
/* Alternate hexagon fill (cyan / navy) for the brand rhythm */
.jma-arm:nth-child(even) .jma-node {
  background: linear-gradient(155deg, #2b4a86 0%, #233969 100%);
}

/* ═══════════════ CTA BAND ═══════════════ */
.about-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 80px 64px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan-deep) 100%);
}
.about-cta-hex {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  aspect-ratio: 2114 / 2250;
  background: url('../images/Jmac Element-05.png') center / contain no-repeat;
  opacity: .25;
  pointer-events: none;
  z-index: -1;
}
.about-cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.about-cta h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw,36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 14px;
}
.about-cta p {
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
  line-height: 1.7;
  margin: 0 0 30px;
}
.about-cta .btn-primary {
  /* fit the content instead of the shared 240px min-width so it isn't stretched */
  min-width: 0;
  width: fit-content;
  gap: 16px;
  padding: 0 26px;
  margin: 0 auto;
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
/* Hover: solid white fill → white outline (transparent middle so the
   navy→cyan band shows through) with white text; the arrow slides too
   (shared .btn-primary:hover::after rule, left untouched).
   The button has a diagonal cut corner, so a plain `border` gets clipped
   at the notch — instead the outline is drawn with a 5-layer
   background-image (top, left, right, bottom, + a 14×14 SVG diagonal pinned
   bottom-right) so the corner reads as one continuous white line. */
.about-cta .btn-primary:hover {
  background-color: transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><line x1='0' y1='14' x2='14' y2='0' stroke='rgb(255,255,255)' stroke-width='1'/></svg>");
  background-position: 0 0, 0 0, 100% 0, 0 100%, 100% 100%;
  background-size:
    100% 1px,
    1px 100%,
    1px calc(100% - 14px),
    calc(100% - 14px) 1px,
    14px 14px;
  background-repeat: no-repeat;
  color: #fff;
  border-color: transparent;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
  .about-hero { padding: 72px 32px 56px; }
  .about-hero .about-top-grid { margin-top: 44px; }
  .about-hero-graphic { width: 660px; right: -160px; opacity: .5; }
  .company-grid { grid-template-columns: 1fr; gap: 36px; }
  .company-media { position: static; order: -1; }
  .trust-cards { grid-template-columns: 1fr; }
  .iqh-value-grid { grid-template-columns: 1fr; }
  /* Supporters: stack text over image; image takes a normal aspect instead
     of matching the (now full-width) text height. */
  .iqh-supporters { grid-template-columns: 1fr; gap: 32px; padding: 34px 28px; align-items: start; }
  .iqh-sup-media { position: static; max-width: 520px; }
  .iqh-sup-media img { height: auto; aspect-ratio: 16 / 10; }
  .greet-grid { grid-template-columns: 1fr; gap: 36px; }
  .greet-aside { position: static; max-width: 380px; }
  .jg-hq-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-cta { padding: 64px 32px; }
  /* keep the roomier rhythm sensible on tablets */
  #philosophy, #history, #jma-group { padding-top: 80px; padding-bottom: 80px; }
}

@media (max-width: 700px) {
  .about-hero { padding: 56px 20px 44px; }
  .about-hero .about-top-grid { margin-top: 36px; }
  /* Let the philosophy paragraphs flow naturally in the narrow column,
     rather than keeping the desktop-tuned clause breaks. */
  .philo-intro br { display: none; }
  .about-hero-graphic { width: 380px; right: -110px; opacity: .4; }
  .company-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 4px; }
  .company-row dt { font-size: 18px; }
  .jg-stats { grid-template-columns: 1fr; gap: 30px; }
  .htl-head { flex-wrap: wrap; gap: 14px; }
  .htl-track { min-height: 500px; padding: 0 10px; }
  /* One card per screen: size each item to the viewport and snap to it on
     swipe, instead of the fixed 244px item width that left cards half-cut
     at the viewport edge. */
  .htl-viewport { scroll-snap-type: x mandatory; }
  .htl-item {
    flex-basis: calc(100vw - 40px);
    width: calc(100vw - 40px);
    scroll-snap-align: center;
  }
  .htl-card { width: 100%; max-width: 260px; padding: 15px 16px; }
  .htl-card p { font-size: 15px; }
  .htl-nav { width: 56px; height: 42px; }
  .about-cta { padding: 52px 20px; }
}

/* Below the circle's comfortable min size, drop the hub-and-spoke geometry
   and lay the affiliates out as a simple grid with the centre node on top. */
@media (max-width: 760px) {
  .jma-hub { width: 100%; aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 4px; place-items: center; }
  .jma-hub-center { position: static; transform: none; grid-column: 1 / -1; margin: 0 auto 8px; }
  .jma-arm { position: static; transform: none; width: 100%; height: auto; display: flex; justify-content: center; }
  .jma-spoke { display: none; }
  .jma-node { position: static; transform: none; width: 100%; max-width: 190px; }
}
@media (max-width: 380px) {
  .jma-hub { grid-template-columns: 1fr; }
  .jma-node { max-width: 200px; }
}

/* ═══════════════════════════════════════════════════════════
   20260717 client feedback (sheet):
   เพิ่มขนาดฟอนต์พื้นฐานทั้งหน้าให้ใหญ่ขึ้น (16px → 18px)
   ═══════════════════════════════════════════════════════════ */
body { font-size: 18px; }
