/* R108_AAA_EXPERIENCE_PAGES_V60_ACTIVE */
.experience-page {
  min-height: 100vh;
  background: var(--landing-background, #f4f5f7);
  color: var(--landing-text, #374151);
}

.experience-page .experience-topbar .menu {
  max-width: 540px;
}

.experience-page .experience-topbar .menu a {
  min-width: 110px;
  text-align: center;
}

.experience-hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 15%, rgba(201,156,95,.35), transparent 28%),
    linear-gradient(135deg, #102f36 0%, #1c4d53 100%);
  color: #fff;
}

/* R108_CCC_EXPERIENCE_HERO_GRADIENT_V47_ACTIVE
   พื้นที่ข้อความด้านซ้ายคงความทึบเพื่อให้อ่านง่าย
   ไล่ฟิลเตอร์ให้มุมขวาบนสว่างเพื่อเห็นภาพพื้นหลังชัดขึ้น */
.experience-hero.has-image {
  background-image:
    linear-gradient(90deg,
      rgba(10,32,37,.90) 0%,
      rgba(11,35,40,.82) 38%,
      rgba(12,39,44,.48) 62%,
      rgba(12,39,44,.16) 82%,
      rgba(12,39,44,.05) 100%
    ),
    linear-gradient(180deg,
      rgba(10,32,37,.02) 0%,
      rgba(10,32,37,.08) 48%,
      rgba(10,32,37,.22) 100%
    ),
    var(--experience-hero-image);
  background-position: center;
  background-size: cover;
}

.experience-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -180px auto;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.experience-hero-inner {
  display: flex;
  min-height: 570px;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 34px 76px;
}

.experience-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
}

.experience-breadcrumb a {
  text-decoration: none;
}

.experience-breadcrumb strong {
  color: #fff;
  font-weight: 500;
}

.experience-hero-copy {
  width: min(720px, 100%);
}

.experience-eyebrow {
  margin: 0 0 16px;
  color: #e9c995;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.experience-eyebrow.dark {
  color: var(--primary, #14353b);
}

.experience-hero h1,
.experience-story-copy h2,
.experience-section-heading h2,
.experience-feature-copy h2 {
  margin: 0;
  font-family: "Prompt", "Noto Sans Thai", sans-serif;
  font-weight: 500;
}

.experience-hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.experience-hero-copy > p:not(.experience-eyebrow) {
  max-width: 680px;
  margin: 25px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 17px;
  line-height: 1.9;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.experience-tags span {
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  padding: 8px 13px;
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.experience-story-section,
.experience-highlights-section,
.experience-feature-section {
  padding-block: 92px;
}

.experience-story-section {
  background: var(--landing-surface, #fff);
}

.experience-story-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.experience-story-copy h2,
.experience-section-heading h2,
.experience-feature-copy h2 {
  color: var(--landing-heading, #111827);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.experience-story-copy > p:not(.experience-eyebrow),
.experience-feature-copy > p:not(.experience-eyebrow) {
  margin: 24px 0 0;
  color: var(--landing-text, #374151);
  font-size: 15px;
  line-height: 2;
}

.experience-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  border-bottom: 1px solid rgba(20,53,59,.28);
  padding-bottom: 5px;
  color: var(--primary, #14353b);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.experience-story-image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  margin: 0;
  background: #dfe7e5;
  box-shadow: 28px 28px 0 rgba(20,53,59,.08);
}

.experience-story-image::before {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.56);
  pointer-events: none;
}

.experience-story-image img,
.experience-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-story-image img {
  position: absolute;
  inset: 0;
}

.experience-story-image.is-placeholder,
.experience-feature-media.is-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe5e3, #b9ccc8);
  color: var(--primary, #14353b);
  font-weight: 600;
  letter-spacing: .12em;
}

.experience-highlights-section {
  background: #eef1f0;
}

.experience-section-heading {
  width: min(760px, 100%);
  margin-bottom: 42px;
}

.experience-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.experience-card {
  position: relative;
  display: flex;
  min-height: 290px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(20,53,59,.12);
  background: var(--landing-surface, #fff);
  transition: transform .22s ease, box-shadow .22s ease;
}

.experience-card-content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 34px 30px;
}

.experience-card:not(.has-media) .experience-card-content {
  min-height: 290px;
  box-sizing: border-box;
}

.experience-card-gallery {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  overflow: hidden;
  background: #dfe7e5;
}

.experience-card-gallery.count-1 {
  grid-template-columns: 1fr;
}

.experience-card-gallery.count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.experience-card-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d9e2df;
}

.experience-card-gallery.count-1 a {
  aspect-ratio: 16 / 10;
}

.experience-card-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}

.experience-card-gallery a:hover img {
  transform: scale(1.045);
  filter: brightness(.94);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(18,48,53,.12);
}

.experience-card::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(20,53,59,.1);
  border-radius: 50%;
}

.experience-card-number {
  display: block;
  margin-bottom: 50px;
  color: var(--accent, #c99c5f);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
}

.experience-card.has-media .experience-card-number {
  margin-bottom: 26px;
}

.experience-card h3 {
  margin: 0;
  color: var(--landing-heading, #111827);
  font-family: "Prompt", "Noto Sans Thai", sans-serif;
  font-size: 22px;
  font-weight: 500;
}

.experience-card p {
  margin: 17px 0 0;
  color: var(--landing-text, #374151);
  font-size: 14px;
  line-height: 1.9;
}

.experience-feature-section {
  background: var(--landing-surface, #fff);
}

.experience-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  min-height: 540px;
  background: #14353b;
  color: #fff;
}

.experience-feature-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.experience-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(20,53,59,.38));
}

.experience-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 76px);
}

.experience-feature-copy h2,
.experience-feature-copy > p:not(.experience-eyebrow) {
  color: #fff;
}

.experience-feature-copy > p:not(.experience-eyebrow) {
  color: rgba(255,255,255,.76);
}

.experience-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.experience-feature-copy .button.light {
  border-color: rgba(255,255,255,.4);
  background: transparent;
  color: #fff;
}

.experience-footer {
  border-top: 1px solid rgba(255,255,255,.1);
  background: #102f36;
  color: #fff;
}

.experience-footer-inner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.experience-footer strong {
  font-size: 18px;
  font-weight: 500;
}

.experience-footer p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.experience-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.experience-footer nav a {
  color: rgba(255,255,255,.76);
  font-size: 12px;
  text-decoration: none;
}

.experience-footer nav a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .experience-page .experience-topbar .menu {
    max-width: none;
  }

  .experience-page .experience-topbar .menu a {
    min-width: 0;
  }

  .experience-story-grid,
  .experience-feature-card {
    grid-template-columns: 1fr;
  }

  .experience-story-image {
    min-height: 460px;
  }

  .experience-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-card:last-child {
    grid-column: 1 / -1;
  }

  .experience-feature-media {
    min-height: 430px;
  }
}

@media (max-width: 680px) {
  .experience-hero,
  .experience-hero-inner {
    min-height: 530px;
  }

  .experience-hero.has-image {
    background-image:
      linear-gradient(180deg,
        rgba(10,32,37,.16) 0%,
        rgba(10,32,37,.28) 36%,
        rgba(10,32,37,.72) 68%,
        rgba(10,32,37,.94) 100%
      ),
      var(--experience-hero-image);
    background-position: center;
  }

  .experience-hero-inner {
    padding-block: 24px 46px;
  }

  .experience-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .experience-hero-copy > p:not(.experience-eyebrow) {
    font-size: 14px;
    line-height: 1.8;
  }

  .experience-tags {
    gap: 7px;
    margin-top: 22px;
  }

  .experience-tags span {
    padding: 7px 10px;
    font-size: 11px;
  }

  .experience-story-section,
  .experience-highlights-section,
  .experience-feature-section {
    padding-block: 58px;
  }

  .experience-story-grid {
    gap: 42px;
  }

  .experience-story-copy h2,
  .experience-section-heading h2,
  .experience-feature-copy h2 {
    font-size: 31px;
  }

  .experience-story-image {
    min-height: 330px;
    box-shadow: 14px 14px 0 rgba(20,53,59,.08);
  }

  .experience-card-grid {
    grid-template-columns: 1fr;
  }

  .experience-card,
  .experience-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .experience-card-content {
    padding: 27px 23px 30px;
  }

  .experience-card-number {
    margin-bottom: 34px;
  }

  .experience-card.has-media .experience-card-number {
    margin-bottom: 22px;
  }

  .experience-feature-card {
    width: 100%;
  }

  .experience-feature-media {
    min-height: 320px;
  }

  .experience-feature-copy {
    padding: 38px 24px 44px;
  }

  .experience-contact-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .experience-footer-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 38px;
  }

  .experience-footer nav {
    gap: 14px 20px;
  }
}

/* R108_CCC_EXPERIENCE_PAGES_V44_ADMIN_SYNC */
.experience-preview-note {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 9px 16px;
  background: #febb02;
  color: #172033;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}


/* R108_AAA_EXPERIENCE_PAGES_V60_NAV */
.experience-page .r108-page-nav .button { white-space: nowrap; }
.experience-page .r108-page-nav .button.accent { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
@media (max-width: 900px) and (min-width: 561px) {
  .experience-page .nav { flex-wrap: wrap; padding-block: 8px; }
  .experience-page .r108-page-nav { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
}

/* R108_AAA_EXPERIENCE_CARD_RADIUS_SYNC_V64_ACTIVE
   ใช้ค่าความโค้งเดียวกับการ์ดหน้า index.php จาก Landing Builder */
html body.experience-page {
  --r108-builder-radius: var(--landing-card-radius, 24px);
}

html body.experience-page :is(
  .experience-card,
  .experience-feature-card,
  .experience-story-image
) {
  border-radius: var(--r108-builder-radius) !important;
  overflow: hidden !important;
}

/* รูปหลายรูปภายในการ์ดให้ถูกตัดตามกรอบการ์ดด้านนอก ไม่โค้งแยกทีละรูป */
html body.experience-page .experience-card-gallery,
html body.experience-page .experience-card-gallery a,
html body.experience-page .experience-feature-media {
  border-radius: 0 !important;
}

/* เส้นกรอบด้านในของภาพเรื่องราวปรับตามค่าความโค้งเดียวกัน */
html body.experience-page .experience-story-image::before {
  border-radius: max(0px, calc(var(--r108-builder-radius) - 10px)) !important;
}

/* R108_AAA_EXPERIENCE_MODULE_RADIUS_SYNC_V65_ACTIVE
   โมดูลหน้า คาเฟ่ / ร้านอาหาร / บริการของเรา ใช้ค่าเดียวกับ card_radius */
html body.experience-page {
  --r108-module-radius: var(--r108-builder-radius, var(--landing-card-radius, 24px));
}

html body.experience-page :is(
  .experience-hero,
  .experience-story-section,
  .experience-highlights-section,
  .experience-feature-section,
  .experience-feature-card,
  .experience-story-image,
  .experience-card
) {
  border-radius: var(--r108-module-radius) !important;
}

/* โมดูลพื้นหลังต้องตัดภาพ/สีตามความโค้งเดียวกัน */
html body.experience-page :is(
  .experience-hero,
  .experience-story-section,
  .experience-highlights-section,
  .experience-feature-section,
  .experience-feature-card,
  .experience-story-image,
  .experience-card
) {
  overflow: hidden !important;
}

/* กรอบภาพเด่นด้านในโมดูลให้ใช้ค่าเดียวกัน ไม่กลับไปเป็น 0px */
html body.experience-page .experience-feature-media {
  border-radius: var(--r108-module-radius) 0 0 var(--r108-module-radius) !important;
  overflow: hidden !important;
}

@media (max-width: 980px) {
  html body.experience-page .experience-feature-media {
    border-radius: var(--r108-module-radius) var(--r108-module-radius) 0 0 !important;
  }
}

@media (max-width: 680px) {
  html body.experience-page :is(
    .experience-hero,
    .experience-story-section,
    .experience-highlights-section,
    .experience-feature-section,
    .experience-feature-card,
    .experience-story-image,
    .experience-card
  ) {
    border-radius: var(--r108-module-radius) !important;
  }
}

/* R108_AAA_EXPERIENCE_CARD_LAYOUT_V68_ACTIVE
   ลบหมายเลขการ์ดและขยับหัวข้อขึ้นด้านบน */
html body.experience-page .experience-card-number {
  display: none !important;
}

html body.experience-page .experience-card-content {
  padding: 21px 22px 25px !important;
}

html body.experience-page .experience-card.has-media .experience-card-content {
  padding-top: 20px !important;
}

html body.experience-page .experience-card h3 {
  margin: 0 !important;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
}

html body.experience-page .experience-card p {
  margin-top: 10px !important;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  html body.experience-page .experience-card-content,
  html body.experience-page .experience-card.has-media .experience-card-content {
    padding: 18px 18px 22px !important;
  }

  html body.experience-page .experience-card h3 {
    font-size: 18px;
  }
}
