/* หน้า /platform — โทนเดียวกับ pages-products (ec-shop) */

.ec-page .pf-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.pf-header-mid {
  min-width: 0;
}

.pf-header-shop-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  background: #f8fafc;
  color: var(--ec-navy, #0f2744);
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.pf-header-shop-link:hover {
  border-color: #94a3b8;
  background: #fff;
  color: var(--ec-navy2, #132a4a);
}

.pf-header-shop-link .fa-arrow-right {
  opacity: 0.7;
  font-size: 13px;
}

@media (max-width: 720px) {
  .ec-header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pf-header-shop-link {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- hero ---------- */
.pf-hero {
  position: relative;
  overflow: hidden;
  background: url('/assets/hero-bg-custom.png') center/cover no-repeat #0a1628;
  color: #fff;
  border-radius: 4px;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 40px);
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.12);
}

.pf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(
    100deg,
    rgba(4, 16, 30, 0.65) 0%,
    rgba(15, 39, 68, 0.35) 55%,
    rgba(4, 16, 30, 0.1) 100%
  );
  pointer-events: none;
}

.pf-hero > * {
  position: relative;
  z-index: 1;
}

.pf-hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.pf-hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pf-hero-lead {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52em;
  margin: 0;
}

/* ---------- sections ---------- */
.pf-section {
  margin-bottom: 32px;
}

.pf-section--visuals {
  margin-top: 0;
}

.pf-hero + .pf-section--visuals {
  margin-top: -4px;
}

.pf-section-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ec-text, #0f172a);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.pf-section-intro {
  font-size: 14px;
  color: var(--ec-muted, #64748b);
  line-height: 1.7;
  max-width: 60em;
  margin: 0 0 20px;
}

/* ---------- feature grid (3 cards per row on desktop) ---------- */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- promo visuals — รูปเต็มกรอบ (cover) + หัวข้อทับด้านล่าง ---------- */
.pf-visuals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 768px) {
  .pf-visuals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pf-visual {
  position: relative;
  margin: 0;
  width: 100%;
  background: #0a1628;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  display: block;
}

a.pf-visual {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.pf-visual:focus-visible {
  outline: 2px solid var(--ec-navy, #0f2744);
  outline-offset: 2px;
}

/* กรอบเท่ากันทุกใบ — รูปขยายเต็มพื้นที่ด้วย cover */
.pf-visual-media {
  width: 100%;
  aspect-ratio: 1024 / 819;
  background: #0a1628;
  position: relative;
  overflow: hidden;
}

.pf-visual-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-visual-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 18px 14px 14px;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  border: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.55) 35%, rgba(10, 22, 40, 0.92) 100%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.pf-visual-cap-line1 {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}

.pf-visual-cap-line2 {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 6px;
  opacity: 0.9;
  line-height: 1.4;
}

.pf-card {
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  padding: 20px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
  box-sizing: border-box;
  min-height: 0;
}

a.pf-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.pf-card:focus-visible {
  outline: 2px solid var(--ec-navy, #0f2744);
  outline-offset: 2px;
}

.pf-card-body {
  flex: 1;
  min-width: 0;
}

.pf-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-3px);
}

.pf-card-ic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #eff6ff;
  color: var(--ec-navy, #0f2744);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pf-card-body h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ec-text, #0f172a);
  margin: 0 0 6px;
  line-height: 1.35;
}

.pf-card-body p {
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* ---------- list band ---------- */
.pf-band {
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  padding: 22px 20px;
}

.pf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pf-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

.pf-list li i {
  color: var(--ec-navy, #0f2744);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---------- CTA ---------- */
.pf-cta {
  margin-top: 8px;
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  text-align: center;
}

.pf-cta h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ec-navy, #0f2744);
  margin: 0 0 8px;
}

.pf-cta p {
  font-size: 14px;
  color: var(--ec-muted, #64748b);
  margin: 0 0 18px;
  line-height: 1.65;
}

.pf-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pf-btn--primary {
  background: var(--ec-navy, #0f2744);
  color: #fff;
  border-color: var(--ec-navy, #0f2744);
}

.pf-btn--primary:hover {
  background: var(--ec-navy2, #132a4a);
  border-color: var(--ec-navy2, #132a4a);
  color: #fff;
}

.pf-btn--outline {
  background: #fff;
  color: var(--ec-navy, #0f2744);
  border-color: var(--ec-line, #e2e8f0);
}

.pf-btn--outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--ec-navy2, #132a4a);
}

/* ---------- motion: hero + scroll reveal + hover ---------- */
@keyframes pf-hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pf-hero-animate > .pf-hero-eyebrow {
  animation: pf-hero-fade-up 0.56s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.06s;
}

.pf-hero-animate > h1 {
  animation: pf-hero-fade-up 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.12s;
}

.pf-hero-animate > .pf-hero-lead {
  animation: pf-hero-fade-up 0.68s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.2s;
}

.pf-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--pf-reveal-delay, 0s);
  will-change: opacity, transform;
}

.pf-reveal.pf-reveal--visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.pf-section .pf-section-intro.pf-reveal {
  --pf-reveal-delay: 0.07s;
}

.pf-visuals-grid > .pf-reveal:nth-child(1) {
  --pf-reveal-delay: 0.06s;
}
.pf-visuals-grid > .pf-reveal:nth-child(2) {
  --pf-reveal-delay: 0.12s;
}
.pf-grid > .pf-reveal:nth-child(1) {
  --pf-reveal-delay: 0.03s;
}
.pf-grid > .pf-reveal:nth-child(2) {
  --pf-reveal-delay: 0.07s;
}
.pf-grid > .pf-reveal:nth-child(3) {
  --pf-reveal-delay: 0.11s;
}
.pf-grid > .pf-reveal:nth-child(4) {
  --pf-reveal-delay: 0.15s;
}
.pf-grid > .pf-reveal:nth-child(5) {
  --pf-reveal-delay: 0.19s;
}
.pf-grid > .pf-reveal:nth-child(6) {
  --pf-reveal-delay: 0.23s;
}

.pf-section:has(#pf-for-title) .pf-section-intro.pf-reveal {
  --pf-reveal-delay: 0.08s;
}

.pf-section:has(#pf-for-title) .pf-band.pf-reveal {
  --pf-reveal-delay: 0.14s;
}

.pf-visual:hover .pf-visual-media img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .pf-hero-animate > .pf-hero-eyebrow,
  .pf-hero-animate > h1,
  .pf-hero-animate > .pf-hero-lead {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .pf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .pf-visual:hover .pf-visual-media img {
    transform: none;
  }

  .pf-visual-media img {
    transition: none;
  }

  .pf-card {
    transition: box-shadow 0.2s, border-color 0.2s;
  }

  .pf-card:hover {
    transform: none;
  }
}

.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;
}

/* ---------- หน้า About / News / Contact (เนื้อหาใน pf-main) ---------- */
.pf-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
  align-items: center;
  margin-bottom: 32px;
}

.pf-split:last-child {
  margin-bottom: 0;
}

.pf-split__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--ec-line, #e2e8f0);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  object-fit: cover;
}

.pf-split__title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ec-text, #0f172a);
  margin: 0 0 10px;
  line-height: 1.3;
  text-align: left;
}

.pf-split__text {
  font-size: 14px;
  color: var(--ec-muted, #64748b);
  line-height: 1.75;
  margin: 0;
}

.pf-split--media-left .pf-split__media {
  order: -1;
}

.pf-about-features {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pf-about-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.pf-about-features .pf-about-fi {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #eff6ff;
  color: var(--ec-navy, #0f2744);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pf-about-features strong {
  display: block;
  color: var(--ec-text, #0f172a);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.pf-about-features span {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

.pf-timeline {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.pf-timeline__item {
  display: flex;
  gap: 16px;
  text-align: left;
}

.pf-timeline__yr {
  flex-shrink: 0;
  width: 76px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ec-navy, #0f2744);
  padding-top: 2px;
}

.pf-timeline__body {
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  padding: 16px 18px;
  flex: 1;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.pf-timeline__body h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ec-text, #0f172a);
  margin: 0 0 6px;
}

.pf-timeline__body p {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.pf-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pf-news-card {
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-news-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transform: translateY(-3px);
}

.pf-news-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0a1628;
  display: block;
}

.pf-news-card__body {
  padding: 16px 16px 18px;
}

.pf-news-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ec-navy, #0f2744);
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.pf-news-card__body h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ec-text, #0f172a);
  margin: 0 0 8px;
  line-height: 1.35;
}

.pf-news-card__body p {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 8px;
}

.pf-news-card__date {
  font-size: 12px;
  color: #94a3b8;
}

.pf-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.pf-panel {
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  padding: clamp(22px, 4vw, 28px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.pf-panel h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ec-navy, #0f2744);
  margin: 0 0 14px;
}

.pf-panel + .pf-panel {
  margin-top: 0;
}

.pf-contact-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.pf-contact-lines li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.pf-contact-lines i {
  width: 22px;
  color: var(--ec-navy, #0f2744);
  margin-top: 2px;
  text-align: center;
  flex-shrink: 0;
}

.pf-contact-map {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  min-height: 200px;
  background: #0a1628;
  margin-top: 12px;
  border: 1px solid var(--ec-line, #e2e8f0);
}

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

.pf-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pf-form label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ec-muted, #64748b);
}

.pf-form input,
.pf-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Prompt', sans-serif;
  font-weight: 400;
  color: var(--ec-text, #0f172a);
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
  background: #fff;
}

.pf-form textarea {
  min-height: 140px;
  resize: vertical;
}

.pf-form input:focus,
.pf-form textarea:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.pf-flash-ok {
  font-size: 14px;
  color: #059669;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  margin-bottom: 14px;
}

.pf-field-error {
  display: block;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 992px) {
  .pf-split {
    grid-template-columns: 1fr;
  }

  .pf-split .pf-split__media {
    order: -1;
  }

  .pf-split--media-left .pf-split__media {
    order: -1;
  }

  .pf-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pf-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pf-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pf-timeline__item {
    flex-direction: column;
    gap: 8px;
  }

  .pf-timeline__yr {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-news-card {
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .pf-news-card:hover {
    transform: none;
  }

  .pf-fortune-tile:hover .pf-fortune-tile__media img {
    transform: none;
  }

  .pf-fortune-tile:hover {
    transform: none;
  }

  .pf-fortune-tile:hover .pf-fortune-tile__go i {
    transform: none;
  }
}

/* ---------- หน้า /fortune — สไลด์การ์ดภาพ ---------- */
.pf-fortune-slider {
  position: relative;
  margin-top: 8px;
  padding: 0 44px;
}

.pf-fortune-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.pf-fortune-slider__viewport::-webkit-scrollbar {
  height: 6px;
}

.pf-fortune-slider__viewport::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

.pf-fortune-slider__track {
  display: flex;
  gap: 16px;
  padding: 4px 2px 10px;
  width: max-content;
  min-width: 100%;
}

.pf-fortune-slider__slide {
  flex: 0 0 auto;
  width: min(300px, calc(100vw - 108px));
  scroll-snap-align: start;
}

@media (min-width: 520px) {
  .pf-fortune-slider__slide {
    width: min(312px, calc(100vw - 120px));
  }
}

@media (min-width: 900px) {
  .pf-fortune-slider__slide {
    width: 304px;
  }

  .pf-fortune-slider__viewport {
    scroll-snap-type: x proximity;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pf-fortune-slider__viewport {
    scroll-behavior: smooth;
  }
}

.pf-fortune-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  background: #fff;
  color: var(--ec-navy, #0f2744);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.pf-fortune-slider__btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.pf-fortune-slider__btn:focus-visible {
  outline: 2px solid var(--ec-navy, #0f2744);
  outline-offset: 2px;
}

.pf-fortune-slider__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pf-fortune-slider__btn--prev {
  left: 0;
}

.pf-fortune-slider__btn--next {
  right: 0;
}

.pf-fortune-slider__hint {
  font-size: 12px;
  color: var(--ec-muted, #64748b);
  margin: 10px 0 0;
  text-align: center;
}

@media (max-width: 480px) {
  .pf-fortune-slider {
    padding: 0 40px;
  }

  .pf-fortune-slider__btn {
    width: 36px;
    height: 36px;
  }
}

.pf-fortune-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 0;
  height: 100%;
}

.pf-fortune-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.pf-fortune-tile:focus-visible {
  outline: 2px solid var(--ec-navy, #0f2744);
  outline-offset: 2px;
}

.pf-fortune-tile__media {
  aspect-ratio: 16 / 10;
  background: #0a1628;
  overflow: hidden;
  flex-shrink: 0;
}

.pf-fortune-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ดวงรายวัน / เซียมซี / ไพ่ — เลื่อนโฟกัสภาพลง */
.pf-fortune-tile__media--shift-down {
  display: flex;
  align-items: flex-end;
}

.pf-fortune-tile__media--shift-down img {
  height: 112%;
  width: 100%;
  object-fit: cover;
  object-position: center 88%;
  align-self: flex-end;
}

/* ดวงรายวัน — ขยับภาพลงเพิ่ม (calendar/คะแนนด้านล่างของ artwork) */
.pf-fortune-tile__media--shift-down-daily {
  display: flex;
  align-items: flex-end;
}

.pf-fortune-tile__media--shift-down-daily img {
  height: 125%;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  align-self: flex-end;
}

.pf-fortune-tile:hover .pf-fortune-tile__media img {
  transform: scale(1.04);
}

.pf-fortune-tile__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pf-fortune-tile__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ec-navy, #0f2744);
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 4px;
}

.pf-fortune-tile__chip i {
  font-size: 9px;
  opacity: 0.85;
}

.pf-fortune-tile__body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ec-text, #0f172a);
  margin: 0;
  line-height: 1.35;
}

.pf-fortune-tile__body p {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.pf-fortune-tile__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ec-navy, #0f2744);
  margin-top: 4px;
}

.pf-fortune-tile__go i {
  font-size: 12px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.pf-fortune-tile:hover .pf-fortune-tile__go i {
  transform: translateX(3px);
}

/* พื้นหลังกระดาษยับ — บล็อกเซียมซี */
.pf-hub-siamsi-strip {
  margin-top: 8px;
  border-radius: 4px;
  border: 1px solid rgba(30, 41, 59, 0.12);
  background-color: #ebe5db;
  background-image:
    linear-gradient(180deg, rgba(255, 252, 248, 0.93) 0%, rgba(237, 232, 223, 0.9) 100%),
    url('/assets/fortune-slip-crumpled-paper.png');
  background-size:
    auto,
    cover;
  background-position:
    0 0,
    center;
  background-repeat: no-repeat;
  padding: clamp(22px, 4vw, 36px) clamp(18px, 3vw, 28px);
  text-align: center;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.pf-hub-siamsi-strip p {
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
  margin: 0 auto 16px;
  max-width: 38em;
}

.pf-hub-siamsi-strip .pf-cta-actions {
  justify-content: center;
}
