/** Shopify CDN: Minification failed

Line 720:10 Unexpected "{"
Line 720:19 Expected ":"

**/
.image-with-text .grid {
  margin-bottom: 0;
}

.image-with-text .grid__item {
  position: relative;
}

@media screen and (min-width: 750px) {
  .image-with-text__grid--reverse {
    flex-direction: row-reverse;
  }
}

.image-with-text__media {
  min-height: 100%;
  overflow: visible;
}

.image-with-text__media--small {
  height: 19.4rem;
}

.image-with-text__media--medium {
  height: 29.6rem;
}

.image-with-text__media--large {
  height: 43.5rem;
}

@media screen and (min-width: 750px) {
  .image-with-text__media--small {
    height: 31.4rem;
  }

  .image-with-text__media--medium {
    height: 46rem;
  }

  .image-with-text__media--large {
    height: 69.5rem;
  }
}

.image-with-text__media--placeholder {
  position: relative;
  overflow: hidden;
}

.image-with-text__media--placeholder:after {
  content: '';
  position: absolute;
  background: rgba(var(--color-foreground), 0.04);
}

.image-with-text__media--placeholder.image-with-text__media--adapt {
  height: 20rem;
}

@media screen and (min-width: 750px) {
  .image-with-text__media--placeholder.image-with-text__media--adapt {
    height: 30rem;
  }
}

.image-with-text__media--placeholder > svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.image-with-text__media--placeholder:is(.animate--ambient, .animate--zoom-in) > .svg-wrapper {
  top: 0;
  left: 0;
  transform: translate(0);
}

.image-with-text__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-self: center;
  padding: 4rem calc(4rem / var(--font-body-scale)) 5rem;
  position: relative;
  z-index: 1;
}

.image-with-text .grid__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.image-with-text:not(.image-with-text--overlap) .image-with-text__media-item:after {
  border-radius: var(--media-radius);
  box-shadow: var(--media-shadow-horizontal-offset) var(--media-shadow-vertical-offset) var(--media-shadow-blur-radius)
    rgba(var(--color-shadow), var(--media-shadow-opacity));
}

.image-with-text:not(.image-with-text--overlap) .image-with-text__text-item:after {
  border-radius: var(--text-boxes-radius);
  box-shadow: var(--text-boxes-shadow-horizontal-offset) var(--text-boxes-shadow-vertical-offset)
    var(--text-boxes-shadow-blur-radius) rgba(var(--color-shadow), var(--text-boxes-shadow-opacity));
}

.image-with-text .image-with-text__media-item > * {
  border-radius: var(--media-radius);
  overflow: hidden;
  box-shadow: var(--media-shadow-horizontal-offset) var(--media-shadow-vertical-offset) var(--media-shadow-blur-radius)
    rgba(var(--color-shadow), var(--media-shadow-opacity));
}

.image-with-text .global-media-settings {
  overflow: hidden !important;
}

.image-with-text .image-with-text__text-item > * {
  border-radius: var(--text-boxes-radius);
  overflow: hidden;
  box-shadow: var(--text-boxes-shadow-horizontal-offset) var(--text-boxes-shadow-vertical-offset)
    var(--text-boxes-shadow-blur-radius) rgba(var(--color-shadow), var(--text-boxes-shadow-opacity));
}

.image-with-text:not(.image-with-text--overlap) .image-with-text__media-item > *,
.image-with-text:not(.image-with-text--overlap) .image-with-text__text-item > * {
  box-shadow: none;
}

@media screen and (max-width: 749px) {
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media-item:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__media,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media img,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media .placeholder-svg {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__text-item:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__content {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .image-with-text.collapse-borders:not(.image-with-text--overlap) .image-with-text__content {
    border-top: 0;
  }
}

.image-with-text__content--mobile-right > * {
  align-self: flex-end;
  text-align: right;
}

.image-with-text__content--mobile-center > * {
  align-self: center;
  text-align: center;
}

.image-with-text--overlap .image-with-text__content {
  width: 90%;
  margin: -3rem auto 0;
}

@media screen and (min-width: 750px) {
  .image-with-text__grid--reverse .image-with-text__content {
    margin-left: auto;
  }

  .image-with-text__content--bottom {
    justify-content: flex-end;
    align-self: flex-end;
  }

  .image-with-text__content--top {
    justify-content: flex-start;
    align-self: flex-start;
  }

  .image-with-text__content--desktop-right > * {
    align-self: flex-end;
    text-align: right;
  }

  .image-with-text__content--desktop-left > * {
    align-self: flex-start;
    text-align: left;
  }

  .image-with-text__content--desktop-center > * {
    align-self: center;
    text-align: center;
  }

  .image-with-text--overlap .image-with-text__text-item {
    display: flex;
    padding: 3rem 0;
  }

  .image-with-text--overlap .image-with-text__content {
    height: auto;
    width: calc(100% + 4rem);
    min-width: calc(100% + 4rem);
    margin-top: 0;
    margin-left: -4rem;
  }

  .image-with-text--overlap .image-with-text__grid--reverse .image-with-text__content {
    margin-left: 0;
    margin-right: -4rem;
  }

  .image-with-text--overlap .image-with-text__grid--reverse .image-with-text__text-item {
    justify-content: flex-end;
  }

  .image-with-text--overlap .image-with-text__media-item--top {
    align-self: flex-start;
  }

  .image-with-text--overlap .image-with-text__media-item--middle {
    align-self: center;
  }

  .image-with-text--overlap .image-with-text__media-item--bottom {
    align-self: flex-end;
  }

  .image-with-text__media-item--small,
  .image-with-text__media-item--large + .image-with-text__text-item {
    flex-grow: 0;
  }

  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .grid:not(.image-with-text__grid--reverse)
    .image-with-text__media-item:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .grid:not(.image-with-text__grid--reverse)
    .image-with-text__media,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .grid:not(.image-with-text__grid--reverse)
    .image-with-text__media
    img,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .grid:not(.image-with-text__grid--reverse)
    .image-with-text__media
    .placeholder-svg,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .image-with-text__grid--reverse
    .image-with-text__text-item:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .image-with-text__grid--reverse
    .image-with-text__content,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .image-with-text__grid--reverse
    .image-with-text__content:after {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .grid:not(.image-with-text__grid--reverse)
    .image-with-text__text-item:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .grid:not(.image-with-text__grid--reverse)
    .image-with-text__content,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .grid:not(.image-with-text__grid--reverse)
    .image-with-text__content:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .image-with-text__grid--reverse
    .image-with-text__media-item:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .image-with-text__grid--reverse
    .image-with-text__media,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .image-with-text__grid--reverse
    .image-with-text__media
    img,
  .image-with-text.collapse-corners:not(.image-with-text--overlap)
    .image-with-text__grid--reverse
    .image-with-text__media
    .placeholder-svg {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .image-with-text.collapse-borders:not(.image-with-text--overlap)
    .grid:not(.image-with-text__grid--reverse)
    .image-with-text__content {
    border-left: 0;
  }

  .image-with-text.collapse-borders:not(.image-with-text--overlap)
    .image-with-text__grid--reverse
    .image-with-text__content {
    border-right: 0;
  }
}

.image-with-text:not(.collapse-corners, .image-with-text--overlap) .image-with-text__media-item {
  z-index: 2;
}

/* Needed for gradient continuity with or without animation so that transparent PNG images come up as we would expect */
.image-with-text.image-with-text--overlap .backround-transparent,
.image-with-text:not(.image-with-text--overlap) .background-transparent {
  background: transparent;
}

/* Needed for gradient continuity with or without animation, the transform scopes the gradient to its container which happens already when animation are turned on */
.image-with-text .gradient {
  transform: perspective(0);
}

.image-with-text__content {
  border-radius: var(--text-boxes-radius);
  box-shadow: var(--text-boxes-shadow-horizontal-offset) var(--text-boxes-shadow-vertical-offset)
    var(--text-boxes-shadow-blur-radius) rgba(var(--color-shadow), var(--text-boxes-shadow-opacity));
  word-break: break-word;
}

@media screen and (min-width: 990px) {
  .image-with-text__content {
    padding: 6rem 7rem 7rem;
  }
}

.image-with-text__content > * + * {
  margin-top: 2rem;
}

.image-with-text__content > .image-with-text__text:empty ~ a {
  margin-top: 2rem;
}

.image-with-text__content > :first-child:is(.image-with-text__heading),
.image-with-text__text--caption + .image-with-text__heading,
.image-with-text__text--caption:first-child {
  margin-top: 0;
}

.image-with-text__content :last-child:is(.image-with-text__heading),
.image-with-text__text--caption {
  margin-bottom: 0;
}

.image-with-text__content .button + .image-with-text__text {
  margin-top: 2rem;
}

.image-with-text__content .image-with-text__text + .button {
  margin-top: 3rem;
}

.image-with-text__heading {
  margin-bottom: 0;
}

.image-with-text__text p {
  margin-top: 0;
  margin-bottom: 1rem;
}

@media screen and (max-width: 749px) {
  .collapse-padding .image-with-text__grid .image-with-text__content {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (min-width: 750px) {
  .collapse-padding
    .image-with-text__grid:not(.image-with-text__grid--reverse)
    .image-with-text__content:not(.image-with-text__content--desktop-center) {
    padding-right: 0;
  }

  .collapse-padding
    .image-with-text__grid--reverse
    .image-with-text__content:not(.image-with-text__content--desktop-center) {
    padding-left: 0;
  }
}

/* check for flexbox gap in older Safari versions */
@supports not (inset: 10px) {
  .image-with-text .grid {
    margin-left: 0;
  }
}

/*
  Multirow
  note: consider removing from this stylesheet if multirow-specific styles increase signficantly
*/
.multirow__inner {
  display: flex;
  flex-direction: column;
  row-gap: var(--grid-mobile-vertical-spacing);
}

@media screen and (min-width: 750px) {
  .multirow__inner {
    row-gap: var(--grid-desktop-vertical-spacing);
  }
}

/* =========================
 * Raise image on Image-with-text (desktop only)
 * ทำให้รูป “ขยับขึ้น” แบบนุ่มๆ บนจอใหญ่
 * ปรับค่า OFFSET ตามชอบได้
 * ========================= */
:root{
  --iwt-raise-offset: 40px; /* ปรับได้ 40–100px ตามดีไซน์ */
}

@media screen and (min-width: 990px){
  /* ให้ media ไม่โดนตัดขอบเวลาเลื่อนขึ้น */
  .image-with-text .image-with-text__media{
    overflow: visible;
  }

  /* ยกตัว container ของรูปขึ้น */
  .image-with-text .image-with-text__media-item{
    position: relative;
    transform: translateY(calc(-1 * var(--iwt-raise-offset)));
  }

  /* ถ้ารูป/กรอบโดนโค้งหรือตัดเงา ลองปลด radius/เงาออกได้ (เลือกใช้ถ้าจำเป็น) */
  /* 
  .image-with-text .image-with-text__media-item > *{
    border-radius: var(--media-radius);
    overflow: visible;
  }
  */
}

/* จอ 750–989px ขยับขึ้นน้อยลงนิดหน่อยให้สมดุล */
@media screen and (min-width: 750px) and (max-width: 989px){
  .image-with-text .image-with-text__media-item{
    transform: translateY(-32px);
  }
}

/* =========================
 * Resize & Adjust image size
 * ========================= */
@media screen and (min-width: 750px){
  .image-with-text .image-with-text__media-item img{
    transform: scale(0.75); /* ปรับขนาดรูปเล็กลง เหลือ 85% */
    transform-origin: center center; /* ย่อจากจุดกลางภาพ */
  }
}

/* มือถือไม่ต้องย่อเยอะ เพื่อไม่ให้เล็กเกิน */
@media screen and (max-width: 749px){
  .image-with-text .image-with-text__media-item img{
    transform: scale(0.95);
  }
}

/* =========================
 * Move image slightly to the left
 * ========================= */
@media screen and (min-width: 750px){
  .image-with-text .image-with-text__media-item{
    transform: translate(-60px, -10px); /* ← X = ซ้าย , Y = ขึ้น */
  }
}

/* =========================
 * Glow Aura Effect under image
 * ========================= */
.image-with-text .image-with-text__media-item {
  position: relative;
}


/* ให้รูปอยู่เหนือ aura */
.image-with-text .image-with-text__media-item img {
  position: relative;
  z-index: 1;
}

/* =====================================================
   IWT — Centered Aura + Breathing animation under image
   ===================================================== */
:root{
  /* ===== Aura Glow Behind Arrow ===== */
  /* ให้โทนสอดคล้องกับปุ่ม (จาก #9F8CFF → #5B4BFF) */
  --iwt-aura-size: 24vmin;                 /* ขนาดวงแสง (ขยายขึ้นเล็กน้อยให้ดูสมดุลกับ arrow) */
  --iwt-aura-shift-y: 8%;                  /* ขยับลงเล็กน้อยให้ดูเหมือนพุ่งจากใต้ลูกศร */
  --iwt-aura-blur: 46px;                   /* ฟุ้งนุ่มขึ้นเล็กน้อย */
  
  /* ไล่สี aura ใหม่ให้สอดกับ gradient ปุ่ม */
  --iwt-aura-color-strong: radial-gradient(circle,
      rgba(159, 140, 255, 0.55) 0%,        /* ด้านใน: ม่วงอ่อนแบบปุ่มด้านบน */
      rgba(91, 75, 255, 0.35) 40%,         /* กลาง: ม่วงเข้ม */
      rgba(91, 75, 255, 0.08) 70%          /* ขอบนอก: ซีดจางลง */
  );

  /* สำหรับ fallback เวลา gradient ใช้ไม่ได้ (บราวเซอร์เก่า) */
  --iwt-aura-color-soft: rgba(91, 75, 255, 0.15);
}


.image-with-text .image-with-text__media{
  overflow: visible; /* กันโดนตัดขอบ */
}

.image-with-text .image-with-text__media-item{
  position: relative; /* ให้ pseudo วางอิงได้ */
}

/* ✅ Fixed Aura Glow (ไม่เลื่อนเวลา resize) */
.image-with-text .image-with-text__media {
  position: relative;
  overflow: visible;
}

.image-with-text .image-with-text__media::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, calc(-50% - 12%)); /* ✅ ขยับขึ้นให้อยู่กลาง */
  margin-top: -110px;    /* ขยับขึ้น */
  margin-left: -100px;    /* ขยับไปทางขวา */
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(159,140,255,0.55) 0%,
    rgba(91,75,255,0.35) 40%,
    rgba(91,75,255,0.08) 70%
  );
  filter: blur(46px);
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: iwt-aura-breathe 4s ease-in-out infinite;
}


/* breathing animation เดิมใช้ได้เลย */
@keyframes iwt-aura-breathe{
  0%,100% { transform: translate(-50%, calc(-50% + 8%)) scale(0.92); opacity:.85; }
  50%     { transform: translate(-50%, calc(-50% + 8%)) scale(1.08); opacity:1; }
}



/* ให้รูปอยู่เหนือแสง */
.image-with-text .image-with-text__media-item > *{
  position: relative;
  z-index: 1;
}

/* Breathing animation */
@keyframes iwt-aura-breathe{
  0%, 100% {
    transform: translateY(var(--iwt-aura-shift-y)) scale(0.92);
    opacity: .85;
  }
  50% {
    transform: translateY(var(--iwt-aura-shift-y)) scale(1.08);
    opacity: 1;
  }
}

/* ——— ปรับขนาดสำหรับจอเล็กให้สมดุล ——— */
@media (max-width: 749px){
  :root{
    --iwt-aura-size: 62vw;   /* เล็กลงบนมือถือ */
    --iwt-aura-blur: 64px;
  }
}

/* ===== IWT Arrow – overlay container ===== */
.iwt-arrow-wrap{ position: relative; }
.iwt-arrow-wrap .iwt-arrow-img{ display:block; width:100%; height:auto; opacity:0.95; }
.iwt-arrow-wrap .iwt-arrow-svg{
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none; /* ไม่บังการคลิกปุ่ม */
}

/* ===== Base stroke (เส้นหลักของลูกศร) ===== */
.iwt-stroke-base{
  fill:none;
  stroke:#6E59D9;              /* ม่วงเข้ม */
  stroke-width:22;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:url(#iwt-glow);
  opacity:0.95;
}

/* ===== หัวลูกศร ===== */
.iwt-stroke-head{
  fill:#6E59D9;
  filter:url(#iwt-glow);
}

/* ===== Runner (แสงวิ่งรอบเส้น) ===== */
.iwt-stroke-runner,
.iwt-stroke-runner-soft{
  fill:none;
  stroke:#A78BFA;              /* ม่วงสว่าง */
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:url(#iwt-glow);
}

/* เส้นหลักของ runner */
.iwt-stroke-runner{
  stroke-width:28;
  stroke-dasharray: 120 620;    /* ความยาวขีด/ช่องว่าง ปรับให้จังหวะสวย */
  animation: iwt-run 3.2s linear infinite;
  opacity: .9;
}

/* ซ้อนนุ่มๆ ให้ดูเป็น aura */
.iwt-stroke-runner-soft{
  stroke-width:40;
  stroke-dasharray: 120 620;
  animation: iwt-run 3.2s linear infinite;
  opacity:.25;
}

/* วิ่งไปรอบเส้น */
@keyframes iwt-run{
  from{ stroke-dashoffset: 0; }
  to  { stroke-dashoffset: -740; } /* ปรับตามความยาว path */
}

/* — จอเล็ก ลดความหนา/แรงแสง — */
@media (max-width: 749px){
  .iwt-stroke-base{ stroke-width:16; }
  .iwt-stroke-runner{ stroke-width:22; }
  .iwt-stroke-runner-soft{ stroke-width:32; }
}




/* === Shimmer that stays inside the PNG alpha (no background bleed) === */
/* ปรับสี/ความแรง/ความเร็วได้ที่ตัวแปร */
.image-with-text{
  --spark-rgb: 160,120,255; /* สีแสง โทนม่วง */
  --spark-opacity: .45;     /* ความเข้มพื้นฐานของวิ้ง */
  --spark-speed: 3.2s;      /* ความเร็ววิ้งผ่าน */
  --breathe-speed: 6s;      /* จังหวะหายใจ */
}

.image-with-text .image-with-text__media{ position: relative; }

/* แถบวิ้งจะถูก "mask" ด้วยรูป PNG เดิม จึงอยู่ในทรงลูกศรเท่านั้น */
.image-with-text .arrow-sparkle{
  position: absolute; inset: 0; pointer-events: none;

  /* ใช้ PNG เป็น mask */
  -webkit-mask-image: var(--arrow-url);
  mask-image: var(--arrow-url);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;

  /* ทำเส้นวิ้ง + core glow ภายในลูกศร */
  background:
    /* core glow กลางตัวลูกศร */
    radial-gradient(closest-side, rgba(var(--spark-rgb), .5), rgba(var(--spark-rgb), 0) 70%) 50% 50% / 180% 180% no-repeat,
    /* แถบไฮไลท์เฉียงที่วิ่งผ่าน */
    linear-gradient(110deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.9) 50%,
      rgba(255,255,255,0) 100%) 0 0 / 20% 100% no-repeat;

  filter: blur(8px);         /* ทำให้แสงนุ่ม */
  opacity: var(--spark-opacity);
  mix-blend-mode: screen;    /* รวมกับสีลูกศรให้สว่างนวล */
  animation:
    arrow-sweep var(--spark-speed) cubic-bezier(.4,.0,.2,1) infinite,
    arrow-breathe var(--breathe-speed) ease-in-out infinite;
}


/* หายใจเบา ๆ ให้แสงพุ่งขึ้นลง */
@keyframes arrow-breathe{
  0%,100% { opacity: calc(var(--spark-opacity) * .9); }
  50%     { opacity: calc(var(--spark-opacity) * 1.4); }
}

/* จอเล็ก ลดความแรงลงเล็กน้อย */
@media (max-width: 749px){
  .image-with-text{ --spark-opacity: .35; }
}


/* Hide base IMG only in this section */
.section-{{ section.id }} .image-with-text__media img {
  display: none !important;
}


.image-with-text .arrow-sparkle {
  opacity: 1; /* จากเดิม .45 เพิ่มให้ชัด */
  filter: blur(4px) brightness(1.3); /* ทำให้แสงเข้มและขอบชัดขึ้น */
}



/* — core สีลูกศร & สีไฟ: ให้สีเดียวกับปุ่ม — */
.image-with-text{
  /* ถ้าธีมมีตัวแปรสีปุ่มอยู่แล้ว จะดึงมาใช้เลย
     ถ้าไม่มี ใช้ default (#9F8CFF -> #5B4BFF) */
  --arrow-from: var(--btn-from, #9F8CFF);
  --arrow-to:   var(--btn-to,   #5B4BFF);

  --glow-rgb: 162,148,249;   /* สี glow รอบๆ (RGB) */
  --spark-rgb: 160,120,255;  /* สีแสงวิ้ง */
  --spark-speed: 3.6s;       /* ความเร็ววิ้ง */
}

/* เลเยอร์ overlay ของลูกศร (ถูก mask ด้วย PNG) */
.image-with-text .arrow-sparkle{
  position: absolute; inset: 0; pointer-events: none;

  /* ใช้ PNG เป็น mask ของทั้งก้อน */
  -webkit-mask-image: var(--arrow-url);
  mask-image: var(--arrow-url);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;

  /* ชั้นที่ 1 = base gradient (สีลูกศร), ชั้นที่ 2 = aura, ชั้นที่ 3 = เส้นไฮไลท์ที่วิ่ง */
  background:
    /* base gradient ของลูกศร (เหมือนปุ่ม) */
    linear-gradient(180deg, var(--arrow-from), var(--arrow-to)) 0 0 / 100% 100% no-repeat,
    /* aura ภายในทรงลูกศร */
    radial-gradient(closest-side, rgba(var(--spark-rgb), .28), rgba(var(--spark-rgb), 0) 72%) 50% 52% / 160% 160% no-repeat,
    /* เส้นไฮไลท์ที่วิ่งผ่าน (จะขยับด้วย keyframes ด้านล่าง) */
    linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 100%) -40% 0 / 18% 100% no-repeat;

  /* Glow เบา ๆ รอบตัว */
  filter:
    drop-shadow(0 0 8px rgba(var(--spark-rgb), .25))
    drop-shadow(0 0 18px rgba(var(--spark-rgb), .25));

  /* ให้สีชัด ไม่ซีด */
  mix-blend-mode: normal;
  opacity: 1 !important;

  /* ✅ คงไว้เฉพาะ sweep — ตัด breathing ออก */
  animation: arrow-sweep var(--spark-speed) cubic-bezier(.25,.1,.25,1) infinite !important;

  /* กัน CSS อื่น ๆ มาทับ transform/opacity */
  transform: none !important;
}

/* ถ้าอยากให้ไล่สีแนวนอน เปลี่ยน 180deg เป็น 90deg ได้ */







/* โค๊ดนี้เอาไว้ใช้สำหรับปุ่มนะ button อ่ะ ดูรายละเอียด

/* === Fix washed-out + vivid gradient button + smooth full-shine === */
.image-with-text .button.button--primary{
  /* รีเซ็ตที่ทำให้จางจากธีม */
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background: none !important;
  border: 0 !important;

  /* สีคมชัด */
  --btn-from: #9F8CFF;
  --btn-to:   #5B4BFF;
  --glow-rgb: 166,140,255;

  /* ตัวแปรเอฟเฟกต์วิ้ง */
  --shine-width: 62%;
  --shine-angle: 16deg;
  --shine-blur: 10px;

  background-image: linear-gradient(180deg, var(--btn-from), var(--btn-to)) !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  font-weight: 800;

  border-radius: 9999px;
  padding: 1rem 2rem;

  box-shadow:
    0 0 18px rgba(var(--glow-rgb), .50),
    0 12px 26px rgba(0,0,0,.35),
    inset 0 1px 2px rgba(255,255,255,.35) !important;

  transition:
    transform .18s ease,
    box-shadow .25s ease,
    filter .25s ease;

  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* glow รอบปุ่ม */
.image-with-text .button.button--primary::before{
  content:"";
  position:absolute; inset:-3px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 55%,
              rgba(var(--glow-rgb), .65) 0%,
              rgba(var(--glow-rgb), .25) 35%,
              rgba(var(--glow-rgb), 0) 70%);
  filter: blur(10px);
  opacity:.9;
  z-index:-1;
  transition: opacity .25s ease, filter .25s ease;
}

/* เส้นวิ้งสมูทเต็มปุ่ม (ขยับด้วย left เพื่อไม่ชน transform อื่น) */
.image-with-text .button.button--primary::after{
  content:"";
  position:absolute;
  top:-18%; bottom:-18%;
  left:-220%;                         /* เริ่มนอกซ้ายไกล ๆ */
  width: var(--shine-width);
  border-radius: inherit;

  /* หมุนเฉย ๆ ห้ามแปลด้วย translate อีก เพื่อไม่ทับแอนิเมชัน */
  transform: rotate(var(--shine-angle));

  background: linear-gradient(90deg,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,.12) 30%,
    rgba(255,255,255,.60) 50%,
    rgba(255,255,255,.12) 70%,
    rgba(255,255,255,0)  100%);
  filter: blur(var(--shine-blur));
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  will-change: left, opacity;
}

/* Hover */
.image-with-text .button.button--primary:hover{
  transform: translateY(-2px);
  box-shadow:
    0 0 24px rgba(var(--glow-rgb), .70),
    0 16px 30px rgba(0,0,0,.40),
    inset 0 1px 2px rgba(255,255,255,.45) !important;
}
.image-with-text .button.button--primary:hover::before{
  opacity: 1;
  filter: blur(12px);
}
.image-with-text .button.button--primary:hover::after{
  opacity:.95;
  animation: btn-shine-smooth-left 1.1s cubic-bezier(.22,.61,.36,1) forwards;
}

/* Active */
.image-with-text .button.button--primary:active{
  transform: translateY(0);
  box-shadow:
    0 0 16px rgba(var(--glow-rgb), .45),
    0 10px 20px rgba(0,0,0,.35),
    inset 0 1px 2px rgba(255,255,255,.30) !important;
}

/* Shine Animation – smooth & full sweep (วิ่งด้วย left) */
@keyframes btn-shine-smooth-left{
  0%   { left: -220%; opacity: 0; }
  10%  { opacity: .95; }
  90%  { opacity: .95; }
  100% { left: 220%;  opacity: 0; }
}

/* เคารพผู้ใช้ที่ลดแอนิเมชัน */
@media (prefers-reduced-motion: reduce){
  .image-with-text .button.button--primary,
  .image-with-text .button.button--primary::before,
  .image-with-text .button.button--primary::after{
    transition: none !important;
    animation: none !important;
  }
}







/* ===== อันนี้เกี่ยวกับads bar ซ้ายขวาเลย ===== */

/* ===== อันนี้เกี่ยวกับads bar ซ้ายขวาเลย ===== */

/* ===== Side Ads (aura + tooltip, no shine) ===== */
.iwt-ads-wrap{ position:relative; }
.iwt-main{ position:relative; z-index:1; }

.iwt-ad{
  position:absolute; top:0; width:var(--ad-w,200px);
  display:none; z-index:5; pointer-events:auto;

  /* brand tones — เปลี่ยนเป็นเหลืองทอง */
  --btn-from:#FFD84D;
  --btn-to:#FFC107;
  --glow-rgb:255,200,80;

  /* aura control */
  --radius:16px;
  --halo-spread:1px;
  --halo-blur:2px;
}

@media (min-width:1200px){
  .iwt-ad{ display:block; }
  .iwt-ad--left{
    left:max(0px, calc((100vw - var(--site-max, var(--page-width, 1200px))) / 2
         - var(--ad-w,200px) - var(--ad-gap,24px)));
  }
  .iwt-ad--right{
    right:max(0px, calc((100vw - var(--site-max, var(--page-width, 1200px))) / 2
         - var(--ad-w,200px) - var(--ad-gap,24px)));
  }
}

/* clickable area */
.iwt-ad a{
  display:block; width:100%; height:100%;
  position:relative;
  border-radius:var(--radius);
}

/* image + shadow base */
.iwt-ad img{
  display:block; width:100%; height:auto; border-radius:var(--radius);
  position:relative; z-index:1;
  transform:scale(1) translateY(0);
  transition:
    transform .6s cubic-bezier(.16,1,.3,1),
    filter .3s ease,
    box-shadow .3s ease;
  box-shadow:
    0 10px 26px rgba(0,0,0,.42),
    0 2px 0 rgba(0,0,0,.15) inset;
}

/* ===== Aura Glow (เฉพาะตอน hover) — ปรับเป็นเหลือง ===== */
.iwt-ad::before{
  content:"";
  position:absolute;
  inset:calc(-1 * var(--halo-spread));
  border-radius:calc(var(--radius) + var(--halo-spread));
  z-index:0; pointer-events:none; opacity:0;
  transform:scale(1);
  transition:opacity .22s ease, filter .22s ease, transform .6s cubic-bezier(.16,1,.3,1);
  background:
    radial-gradient(120% 120% at 50% 50%,
      rgba(255,216,80,.95) 0%,
      rgba(255,216,80,.55) 22%,
      rgba(255,187,0,.35) 50%,
      rgba(255,187,0,.15) 72%,
      transparent 90%),
    linear-gradient(180deg, var(--btn-from), var(--btn-to));
  background-blend-mode:screen;
  filter:blur(var(--halo-blur));
}

.iwt-ad:hover::before{
  opacity:.9;
  transform:scale(1.04);
  filter:blur(calc(var(--halo-blur) + 4px));
}

/* Hover: zoom & highlight */
.iwt-ad:hover img{
  transform:scale(1.035) translateY(-2px);
  filter:brightness(1.03) contrast(1.06) saturate(1.06);
  box-shadow:
    0 14px 30px rgba(0,0,0,.45),
    0 0 28px rgba(var(--glow-rgb), .28); /* ตอนนี้ glow-rgb เป็นโทนเหลืองแล้ว */
}

/* Tooltip */
.iwt-ad .iwt-tip{
  position:absolute; left:0; top:0;
  transform:translate(calc(var(--mx,0px) + 14px), calc(var(--my,0px) + 14px));
  background:var(--tip-bg,#1f1f2b);
  color:var(--tip-color,#fff);
  font-size:var(--tip-size,14px);
  padding:.45rem .65rem;
  border-radius:var(--tip-radius,12px);
  white-space:nowrap; pointer-events:none; opacity:0;
  transition:opacity .12s ease, transform .12s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
  z-index:3;
}
.iwt-ad .iwt-tip.show{ opacity:1; }

/* reduce motion */
@media (prefers-reduced-motion:reduce){
  .iwt-ad img,
  .iwt-ad::before,
  .iwt-ad .iwt-tip{
    transition:none !important;
    animation:none !important;
  }
}




/* =========================================
   HERO ALIGN TWEAK
   ดันกล่องข้อความ hero ไปทางซ้ายเล็กน้อย
   ให้เส้นซ้ายของ heading ใกล้เคียงกับเส้นซ้ายของการ์ดบทความ
   ========================================= */

/* desktop เท่านั้น */
@media (min-width: 990px) {
  .image-with-text__text-item {
    /* reset ของรอบก่อนที่ทำให้มันหด */
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;

    /* ใช้ position เพื่อเลื่อน */
    position: relative;
    left: 1rem; /* ปรับเลขนี้เอาให้ตรงสายตา: -2rem ~= -32px */
  }
}

/* tablet ก็ดันนิดหน่อย แต่ไม่เท่า desktop */
@media (min-width: 750px) and (max-width: 989px) {
  .image-with-text__text-item {
    position: relative;
    left: -1rem; /* ดันเบากว่า */
  }
}

/* mobile ไม่ต้องขยับ ปล่อยให้อยู่กลางเหมือนเดิม */
@media (max-width: 749px) {
  .image-with-text__text-item {
    position: relative;
    left: 0;
  }
}
