:root {
  --section-py: 5rem;
}

/* ── Page Container ────────────────────────── */
/* ไม่มี padding ที่นี่ — padding มาจาก .padd บน <section>
   ผ่าน --section-px แล้ว เพื่อไม่ให้ซ้อนกันสองชั้น */
.page-container {
  max-width: 120rem;
  margin-inline: auto;
  width: 100%;
}

/* ── Page Layot ─────────────────────────────── */
.page-layout .page-content p,
.page-layout .page-content ul,
.page-layout .page-content ol {
  margin-bottom: 2.4rem;
  line-height: 1.7;
}

.page-layout .page-content ul,
.page-layout .page-content ol {
  padding-left: 4rem;
}

.page-layout .page-content h2,
.page-layout .page-content h3,
.page-layout .page-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-layout .page-content li {
  list-style: revert;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.page-layout .page-content strong {
  color: #333333;
}
/* ── Page Grid ─────────────────────────────── */
.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--section-gap); /* ใช้ token เดียวกับ index.html */
}

@media (min-width: 768px) {
  .page-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-grid {
    gap: calc(var(--section-gap) * 2);
  }
}

/* ── Eyebrow ───────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
  font-style: italic;
}

/* ── Torn-paper edges ──────────────────────── */
.top-rotten-curve {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 20px;
  background: url(../images/rotten-curve-4.png) center bottom no-repeat;
  background-size: 200% 100%;
  z-index: 5;
}

.bottom-rotten-curve {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20px;
  background: url(../images/rotten-curve-5.png) center top no-repeat;
  background-size: 200% 100%;
  z-index: 5;
}

@media (min-width: 768px) {
  .top-rotten-curve,
  .bottom-rotten-curve {
    background-size: 100% 100%;
  }
}

/* ══════════════════════════════════════════
   QUOTE SECTION
   ══════════════════════════════════════════ */
.quote__inner {
  margin: 0 auto;
  padding: 1.6rem 0 0;
}

.quote-block--highlight {
  text-align: center;
  font-style: italic;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.quote-block--highlight__header {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: 24rem;
  margin-bottom: 2.4rem;
}

.quote-block--highlight__header-line {
  flex: 1;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.quote-block--highlight__header-icon {
  width: 2.4rem;
  height: 2.4rem;
  stroke: url(#grad) var(--color-primary-400);
  opacity: 0.8;
  flex-shrink: 0;
}

.quote-block--highlight__line {
  color: color-mix(in srgb, var(--color-text-inverse) 85%, #000);
  line-height: 1.7;
}

.quote-block--highlight__line--sm {
  font-size: 1.5rem;
  opacity: 0.85;
}

.quote-block--highlight__line--md {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--color-text-inverse);
}

.quote-block--highlight__line--lg {
  font-size: 2.2rem;
  font-weight: 600;
}

.quote-block--highlight__line--xl {
  font-size: 2.6rem;
  font-weight: 600;
  margin-top: 0.8rem;
}

.quote-block--highlight__line--accent {
  color: var(--color-primary-400);
}

.quote-block--highlight__line--gradient {
  color: var(--color-primary-400);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quote-block--highlight__divider {
  width: 4rem;
  height: 1px;
  background-color: var(--color-border-primary);
  margin: 1.6rem auto;
}

.quote-block--highlight__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24rem;
  margin-top: 2.4rem;
}

.quote-block--highlight__footer-line {
  flex: 1;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

/* Desktop: left-aligned quote */
@media (min-width: 1024px) {
  .quote-block--highlight {
    text-align: left;
    align-items: flex-start;
    border-left: 1px solid var(--color-border-muted);
    padding-left: 8rem;
  }

  .quote__inner {
    min-width: 50rem;
  }

  .quote-block--highlight__header,
  .quote-block--highlight__footer {
    width: 100%;
    justify-content: flex-start;
  }

  .quote-block--highlight__divider {
    margin: 1.6rem 0;
  }
}

@media (min-width: 1280px) {
  .quote-block--highlight__line--sm {
    font-size: 1.7rem;
  }
  .quote-block--highlight__line--md {
    font-size: 1.9rem;
  }
  .quote-block--highlight__line--lg {
    font-size: 2.6rem;
  }
  .quote-block--highlight__line--xl {
    font-size: 3.4rem;
  }
}

/* ══════════════════════════════════════════
   PAGE BANNER
   ══════════════════════════════════════════ */
.page-banner {
  position: relative;
  color: #ffffff;
  background-color: var(--color-surface-dark);
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 5.5rem;
  overflow: hidden;
  z-index: 0;
}

@media (min-width: 600px) {
  .page-banner {
    min-height: 22rem;
  }
}

@media (min-width: 768px) {
  .page-banner {
    min-height: 26rem;
  }
}

.page-banner .image-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}

.page-banner .image-layer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(12, 14, 44, 0.9) 0%,
    rgba(12, 14, 44, 0.2) 100%
  );
  z-index: 2;
}

.page-banner__title,
.breadcrumb {
  position: relative;
  z-index: 10;
}

.page-banner__title {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 500;
  color: var(--color-text-inverse);
  margin-bottom: 0.8rem;
}

.breadcrumb {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-base);
}

.breadcrumb a {
  color: var(--color-text-inverse);
}
.breadcrumb a:hover {
  color: var(--color-primary-400);
}
.breadcrumb__sep {
  color: var(--color-text-muted);
}
.breadcrumb__current {
  color: var(--color-primary-400);
}

/* ══════════════════════════════════════════
   ABOUT SECTION (page)
   ══════════════════════════════════════════ */
/* .page-about ใช้ padding จาก .padd (--section-py / --section-px) */

.page-about .about-content {
  order: 1;
}

.page-about .about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  order: 2;
}

.page-about .about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 0.8rem 2.4rem var(--color-shadow-md);
}

.page-about .about-img:last-child {
  margin-top: 2.4rem;
}

@media (min-width: 768px) {
  .page-about-content {
    align-self: start;
  }

  .page-about .about-content {
    align-self: start;
    order: 1;
  }

  .page-about .about-images {
    order: unset;
  }

  .page-about .about-img:last-child {
    margin-top: 0;
  }

  .page-about .about-img:first-child {
    margin-top: 4rem;
  }
}

/* ══════════════════════════════════════════
   VISION / MISSION / VALUES
   ══════════════════════════════════════════ */
.vision-statement {
  position: relative;
  background-color: var(--color-surface-dark);
  padding: var(--section-py) var(--section-px);
  overflow: hidden;
  z-index: 0;
}

.vision-statement .image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.vision-statement .image-layer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(8, 18, 38, 0.6) 0%,
    rgba(10, 22, 44, 0.7) 100%
  );
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .vision-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: stretch;
    gap: 1rem;
  }
}

.vision-statement__header {
  text-align: center;
}

@media (min-width: 1024px) {
  .vision-statement__header {
    text-align: left;
  }
}

.vision-statement__title {
  color: var(--color-text-inverse);
  font-size: clamp(2rem, 2vw + 1rem, 4rem);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1.6rem;
}

.vision-statement__title span {
  display: block;
  font-size: clamp(2.4rem, 3vw + 1rem, 5rem);
}

/* ══════════════════════════════════════════
   OUR STORY
   ══════════════════════════════════════════ */
/* .page-our-story ใช้ padding จาก .padd */

.page-our-story-block {
  margin-bottom: 4rem;
}

.page-our-story-block:last-child {
  margin-bottom: 0;
}

.page-our-story__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-base);
  margin-bottom: 1.6rem;
}

.page-our-story__body {
  font-size: var(--font-size-md);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.page-our-story-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-our-story-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  color: var(--color-text-subtle);
}

.page-our-story-list__item::before {
  content: "";
  flex-shrink: 0;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.65rem;
  border-radius: 50%;
  background: var(--color-text-muted);
}

.page-our-story-divider {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: 4rem 0;
}
