@font-face {
  font-family: "Aparajita";
  src: url("../font/aparaj-webfont.woff") format("woff");
  font-style: normal;
}
@font-face {
  font-family: "AparajitaLocal";
  src: url("/The_Spirit/th/assets/font/aparaj-webfont.woff") format("woff");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

/* ---------- ไทย: TATSana Chon-Reg ---------- */
@font-face {
  font-family: "TATSanaChonLig";
  src: url("../font/TATSana Chon-Reg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --experiences-bg: #f6f1ea;
  --experiences-surface: rgba(255, 252, 247, 0.88);
  --experiences-card: #fffdf9;
  --experiences-ink: #1f1712;
  --experiences-muted: #655247;
  --experiences-accent: #8a5a2b;
  --experiences-accent-deep: #5e3514;
  --experiences-line: rgba(94, 53, 20, 0.12);
  --experiences-shadow: 0 18px 50px rgba(50, 28, 12, 0.12);
  --experiences-shadow-soft: 0 10px 25px rgba(50, 28, 12, 0.08);
  --experiences-radius-xl: 4px;
  --experiences-radius-lg: 2px;
  --experiences-radius-md: 2px;
  --experiences-gutter: clamp(20px, 3.2vw, 34px);
  --experiences-container: min(1180px, calc(100% - (var(--experiences-gutter) * 2)));
}

body.popup-open {
  overflow: hidden;
}

.experiences-page {
  background:
    radial-gradient(circle at top left, rgba(211, 181, 146, 0.32), transparent 34%),
    linear-gradient(180deg, #f9f6f2 0%, #f4ede4 38%, #f8f5f0 100%);
  padding-bottom: 88px;
}

.experiences-breadcrumb,
.EXPERIENCES_INTRO,
.EXPERIENCES_SECTION {
  width: var(--experiences-container);
  margin: 0 auto;
}

.experiences-breadcrumb {
  padding: 28px 0 0;
}

.experiences-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--experiences-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.experiences-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  opacity: 0.5;
}

.experiences-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: clamp(460px, 58vw, 620px);
  overflow: hidden;
}
.hero-section img.hero_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(18, 13, 9, 0.28) 0%, rgba(18, 13, 9, 0.12) 36%, rgba(18, 13, 9, 0.5) 100%),
    linear-gradient(90deg, rgba(18, 13, 9, 0.52) 0%, rgba(18, 13, 9, 0.06) 58%);
  z-index: 2;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  color: #fff;
  text-align: center;
  z-index: 3;
  width: var(--experiences-container);
}

.hero-copy-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.hero-kicker,
.experiences-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.experiences-eyebrow1{
  color: #c28559;
}

.hero-kicker::before,
.experiences-eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

.EXPERIENCES_BX_line {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 24px 24px 28px;
  line-height: 1.7;
  font-weight: 100 !important;
  cursor: pointer;
  white-space: normal;
}

.EXPERIENCES_BX .title {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
.EXPERIENCES_CATEGORY_TAG {
  margin: 0;
  color: var(--experiences-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.P_EXPERIENCES_CLAS {
  color: var(--experiences-muted);
  font-size: 15px !important;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popup-text .P_EXPERIENCES_CLAS {
  display: block !important;
  margin-top: 10px;
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fullscreen Popup แบบ 2 คอลัมน์ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  background: rgba(16, 11, 8, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.popup-content {
  position: relative;
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  display: flex;
  background: #fffaf4;
  border-radius: var(--experiences-radius-xl);
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
}

.popup-media {
  position: relative;
  flex: 0 0 54%;
  min-width: 54%;
  margin: 0;
  overflow: hidden;
  background: #efe3d2;
}

.popup-content img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: all 0.3s ease;
}
.popup-text {
  flex: 1 1 auto;
  width: auto;
  padding: 44px 82px 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  color: var(--experiences-ink);
  font-size: 18px;
  line-height: 1.75;
  white-space: normal;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  cursor: pointer;
  color: var(--experiences-ink);
  font-weight: 400;
  z-index: 20;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 250, 244, 0.9);
  box-shadow: var(--experiences-shadow-soft);
}

.popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--experiences-ink);
  cursor: pointer;
  user-select: none;
  z-index: 20;
  background-color: rgba(255, 250, 244, 0.9);
  border-radius: 2px;
  border: 0;
  box-shadow: var(--experiences-shadow-soft);
}
.popup-arrow.left {
  left: 18px;
}
.popup-arrow.right {
  right: 18px;
}
.hero-text-experiences {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", "Noto Serif Thai", serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 2px 10px 30px rgba(0, 0, 0, 0.28);
}

.hero-supporting-text {
  max-width: 620px;
  margin: 18px auto 0;
  color: #fff;
  text-align: center;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.EXPERIENCES_INTRO {
  padding: 40px 0 0;
}

.experiences-intro-card {
  padding: 42px clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--experiences-radius-xl);
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(247, 238, 228, 0.96));
  box-shadow: var(--experiences-shadow);
}

.experiences-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.55fr);
  gap: 24px;
  align-items: end;
}

.EXPERIENCES_H2 {
  margin: 0;
  color: var(--experiences-ink);
  font-family: "Playfair Display", "Noto Serif Thai", serif;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.2;
  text-wrap: balance;
}

.experiences-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--experiences-muted);
  font-size: 18px;
  line-height: 1.8;
}

.experiences-summary {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
  padding: 24px;
  border-radius: var(--experiences-radius-lg);
  background: rgba(94, 53, 20, 0.06);
  border: 1px solid rgba(94, 53, 20, 0.12);
}

.experiences-summary__value {
  color: var(--experiences-accent-deep);
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.experiences-summary__label {
  color: var(--experiences-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tab {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
}

.tab-button {
  position: relative;
  padding: 11px 18px;
  min-height: 44px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(94, 53, 20, 0.12);
  color: var(--experiences-accent-deep);
  font-weight: 600;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(50, 28, 12, 0.05);
}

.tab-button.active {
  background: var(--experiences-accent-deep);
  border-color: var(--experiences-accent-deep);
  color: #fff7ef;
}

.tab-button:hover {
  transform: translateY(-1px);
}
.tab-button:focus-visible {
  outline: none;
  border-color: var(--experiences-accent-deep);
  box-shadow: 0 0 0 3px rgba(94, 53, 20, 0.16);
}

.tab-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent !important;
  opacity: 0;
  color: #d38e5c;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.tab-button.active::after {
  background-color: #fff7ef;
  color: #fff7ef;
  opacity: 1;
}
.EXPERIENCES_SECTION {
  padding-top: 34px;
}

.experiences-section-heading {
  margin-bottom: 18px;
}

.EXPERIENCES {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 0;
  padding: 0;
}

.EXPERIENCES_BX {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(94, 53, 20, 0.1);
  border-radius: var(--experiences-radius-lg);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(250, 245, 238, 0.92));
  box-shadow: var(--experiences-shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.EXPERIENCES_BX:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(50, 28, 12, 0.12);
  border-color: rgba(94, 53, 20, 0.18);
}

.EXPERIENCES_BX_media {
  position: relative;
  display: block;
  width: 100%;
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(180deg, #efe5d8, #f8f3ec);
}

.EXPERIENCES_BX_media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(18, 13, 9, 0.2));
  pointer-events: none;
}

.EXPERIENCES_BX img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 220px;
  max-height: 280px;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

.EXPERIENCES_BX:hover img {
  transform: scale(1.04);
}

.EXPERIENCES_BX div,
.EXPERIENCES_BX_line {
  position: static;
  white-space: normal;
  opacity: 1;
  color: var(--experiences-ink);
}
.H2_EXPERIENCES_CLAS {
  margin: 0;
  font-family: "Playfair Display", "Noto Serif Thai", serif;
  font-size: 28px !important;
  font-weight: 600;
  color: var(--experiences-ink);
  line-height: 1.25;
}
.H3_EXPERIENCES_CLAS {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  color: var(--experiences-muted);
  font-size: 15px !important;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 !important;
}

.experience-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--experiences-accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-card-cta::after {
  content: "\2192";
  font-size: 15px;
}

.popup-text .EXPERIENCES_BX_line,
.popup-text .P_EXPERIENCES_CLAS,
.popup-text .H3_EXPERIENCES_CLAS {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  max-height: none !important;
}

.popup-text .EXPERIENCES_CATEGORY_TAG {
  display: block;
  margin-top: 6px;
  margin-bottom: 2px;
}

.popup-text .H2_EXPERIENCES_CLAS {
  margin-top: 0;
  font-size: clamp(28px, 3vw, 40px) !important;
}

.popup-text .P_EXPERIENCES_CLAS,
.popup-text .H3_EXPERIENCES_CLAS {
  font-size: 17px !important;
}

.popup-text .P_EXPERIENCES_CLAS {
  margin-top: -2px !important;
}

.popup-text .H3_EXPERIENCES_CLAS {
  margin-top: 0 !important;
}

.popup-text .experience-card-cta {
  display: none;
}
@media screen and (max-width: 1300px) {
  :root {
    --experiences-gutter: clamp(18px, 3vw, 28px);
  }
  .hero-section {
    height: clamp(420px, 56vw, 560px);
  }
  .H2_EXPERIENCES_CLAS {
    font-size: 24px !important;
  }
}
@media screen and (max-width: 1100px) {
  :root {
    --experiences-gutter: clamp(18px, 4vw, 24px);
  }

  .hero-section {
    height: clamp(400px, 52vw, 520px);
  }
  .experiences-intro-grid {
    grid-template-columns: 1fr;
  }
  .EXPERIENCES {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popup-content {
    flex-direction: column;
    min-height: calc(100vh - 48px);
  }
  .popup-media {
    flex: 0 0 auto;
    min-width: 100%;
    min-height: 42vh;
  }
  .popup-content img {
    width: 100%;
    height: 100%;
    max-height: none;
  }
  .popup-text {
    width: 100%;
    padding: 32px 24px 28px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.7;
    height: auto;
  }
  .popup-arrow {
    display: none;
  }
  .popup-close {
    top: 16px;
    right: 16px;
  }
}
@media screen and (max-width: 768px) {
  :root {
    --experiences-gutter: clamp(12px, 4vw, 18px);
    --experiences-radius-xl: 4px;
    --experiences-radius-lg: 2px;
  }

  .experiences-page {
    padding-bottom: 64px;
  }

  .experiences-breadcrumb {
    padding-top: 18px;
  }

  .hero-section {
    height: 380px;
  }

  .hero-text {
    top: auto;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-copy-wrap {
    max-width: 100%;
  }

  .hero-kicker,
  .experiences-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .hero-text-experiences {
    font-size: clamp(30px, 9vw, 42px);
  }

  .hero-supporting-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .EXPERIENCES_INTRO {
    padding-top: 24px;
  }

  .experiences-intro-card {
    padding: 22px 16px;
  }

  .experiences-lead {
    font-size: 15px;
    line-height: 1.7;
  }

  .experiences-summary {
    padding: 14px;
  }

  .tab {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 10px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tab::-webkit-scrollbar {
    display: none;
  }
  .tab-button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 14px;
    min-height: 40px;
    font-size: 14px;
  }

  .EXPERIENCES_SECTION {
    padding-top: 24px;
  }

  .EXPERIENCES {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .EXPERIENCES_BX_line {
    gap: 10px;
    padding: 16px 16px 18px;
  }

  .EXPERIENCES_BX_media {
    margin-top: 6px;
  }

  .EXPERIENCES_BX img {
    min-height: 180px;
    max-height: 220px;
  }

  .H2_EXPERIENCES_CLAS {
    font-size: 22px !important;
    line-height: 1.2;
  }

  .P_EXPERIENCES_CLAS,
  .H3_EXPERIENCES_CLAS {
    font-size: 14px !important;
    line-height: 1.65;
  }

  .popup-overlay {
    padding: 8px;
  }

  .popup-content {
    min-height: calc(100vh - 24px);
    border-radius: 4px;
  }

  .popup-media {
    min-height: 28vh;
  }

  .popup-content img {
    height: 100%;
  }

  .popup-text {
    gap: 10px;
    padding: 18px 16px 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .popup-text .H2_EXPERIENCES_CLAS {
    font-size: 22px !important;
    line-height: 1.2;
  }

  .popup-text .P_EXPERIENCES_CLAS,
  .popup-text .H3_EXPERIENCES_CLAS {
    font-size: 14px !important;
    line-height: 1.7;
  }

  .popup-close {
    width: 38px;
    height: 38px;
    font-size: 24px;
    top: 10px;
    right: 10px;
  }
}

@media screen and (max-width: 480px) {
  .experiences-breadcrumb {
    padding-top: 14px;
  }

  .hero-section {
    height: 340px;
  }

  .hero-kicker,
  .experiences-eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .experiences-intro-grid {
    gap: 18px;
  }

  .experiences-summary__value {
    font-size: 40px;
  }

  .popup-media {
    min-height: 24vh;
  }

  .popup-text {
    padding: 16px 14px 14px;
  }
}
