/* =============================================================================
   Orbit Carousel — แครูเซลวงโคจร (คณะสาธารณสุขศาสตร์ มรภ.เชียงราย)
   ดัดแปลงจาก "Dish Orbit Carousel" (21st.dev) เป็น CSS ธรรมดา ใช้คู่กับ js/orbit-carousel.js
   มาร์กอัปอยู่ที่ resources/views/components/orbit-carousel.blade.php
   ============================================================================= */

.orb {
  --orb-fg: #fff;
  --orb-fg-2: rgba(255, 255, 255, .76);
  --orb-fg-3: rgba(255, 255, 255, .52);
  --orb-line: rgba(255, 255, 255, .14);
  --orb-pink: #ff8fbd;
  --orb-card-bg: rgba(255, 255, 255, .07);
  --orb-chip: rgba(255, 255, 255, .1);
  --orb-thumb-on: rgba(255, 255, 255, .09);
  --orb-plate: 440px;
  --orb-t1: clamp(1.2rem, 2vw, 1.8rem);
  --orb-t2: clamp(2rem, 3.6vw, 3.25rem);
  --orb-radius: clamp(22px, 2.6vw, 34px);
  --orb-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--orb-fg);
  font-family: var(--sans, 'Urbanist', 'Anuphan', system-ui, sans-serif);
  -webkit-tap-highlight-color: transparent;
}
.orb *, .orb *::before, .orb *::after { box-sizing: border-box; }
.orb:focus { outline: none; }
.orb:focus-visible { outline: 2px solid var(--orb-pink); outline-offset: -4px; }
.orb button { font: inherit; }
.orb :focus-visible { outline: 2px solid var(--orb-pink); outline-offset: 3px; }

/* ---------- โทนสี ---------- */
.orb--dark {
  background:
    radial-gradient(58% 80% at 0% 0%, rgba(253, 83, 146, .30), transparent 62%),
    radial-gradient(52% 74% at 100% 100%, rgba(248, 111, 100, .22), transparent 62%),
    radial-gradient(38% 60% at 70% 6%, rgba(156, 76, 255, .10), transparent 70%),
    linear-gradient(135deg, #14080f 0%, #210d19 38%, #2f1026 68%, #3c1431 100%);
}
.orb--light {
  --orb-fg: var(--ink, #1d1d1b);
  --orb-fg-2: var(--muted, #6e6a6c);
  --orb-fg-3: #9c9296;
  --orb-line: rgba(194, 47, 104, .14);
  --orb-pink: var(--pink, #fd5392);
  --orb-card-bg: rgba(255, 255, 255, .74);
  --orb-chip: rgba(253, 83, 146, .09);
  --orb-thumb-on: #fff;
  background:
    radial-gradient(50% 70% at 30% 62%, rgba(253, 83, 146, .14), transparent 70%),
    radial-gradient(44% 60% at 100% 0%, rgba(248, 111, 100, .14), transparent 70%),
    linear-gradient(140deg, #fff9fb 0%, #ffeff5 55%, #ffe4ef 100%);
}

/* ---------- รูปแบบกรอบ ---------- */
.orb--hero { margin: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0; border-radius: var(--orb-radius); }
.orb--panel { border-radius: var(--orb-radius); }
.orb--hero::after, .orb--panel::after { content: ''; position: absolute; inset: 10px; z-index: 0; pointer-events: none; border: 1px solid var(--orb-line); border-radius: calc(var(--orb-radius) - 8px); }
.orb--light.orb--panel { box-shadow: 0 30px 70px -48px rgba(150, 30, 85, .45); }
.orb--dark.orb--panel, .orb--dark.orb--hero { box-shadow: 0 40px 90px -50px rgba(60, 10, 40, .8); }

/* ---------- พื้นหลัง ---------- */
.orb-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; }
.orb-glow { position: absolute; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.orb-glow--a { width: 62%; left: -16%; top: -42%; background: radial-gradient(circle, rgba(253, 83, 146, .34), transparent 62%); animation: orbDrift 16s ease-in-out infinite alternate; }
.orb-glow--b { width: 60%; right: -18%; bottom: -46%; background: radial-gradient(circle, rgba(248, 111, 100, .26), transparent 62%); animation: orbDrift 20s ease-in-out infinite alternate-reverse; }
.orb--light .orb-glow--a { background: radial-gradient(circle, rgba(253, 83, 146, .16), transparent 62%); }
.orb--light .orb-glow--b { background: radial-gradient(circle, rgba(248, 111, 100, .14), transparent 62%); }
@keyframes orbDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(7%, 9%, 0) scale(1.12); } }
.orb-grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.orb--dark .orb-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(60% 70% at 72% 40%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 72% 40%, #000, transparent 75%); }
/* ภาพของสไลด์แบบเบลอ (backdrop) */
.orb-bd { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s, visibility 1s; }
.orb-bd.is-active { opacity: 1; visibility: visible; }
.orb-bd::before { content: ''; position: absolute; left: -12%; top: -14%; width: 64%; height: 128%; background: var(--orb-img) center / contain no-repeat; filter: blur(46px) saturate(1.4); opacity: .3; transform: translateZ(0); }

/* ---------- โครงหลัก ---------- */
.orb-inner { position: relative; z-index: 1; max-width: 1320px; margin-inline: auto; padding: clamp(34px, 4.6vw, 60px) clamp(16px, 3.2vw, 44px) clamp(20px, 2.6vw, 30px); }
.orb--hero .orb-inner { max-width: 1440px; }
.orb-stage { position: relative; display: grid; grid-template-columns: 22px minmax(0, .92fr) minmax(0, 1.08fr) minmax(250px, 292px); grid-template-areas: "pager plates copy card"; align-items: center; column-gap: clamp(18px, 2.6vw, 42px); touch-action: pan-y; }
.orb--nocard .orb-stage { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "pager plates copy"; }

/* จุดนำทางแนวตั้ง */
.orb-pager { grid-area: pager; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.orb-dot { appearance: none; border: 0; background: none; padding: 0; width: 16px; height: 12px; display: grid; place-items: center; cursor: pointer; color: inherit; transition: height .45s cubic-bezier(.3, .7, .2, 1); }
.orb-dot i { display: block; width: 3px; height: 3px; border-radius: 3px; background: var(--orb-fg); opacity: .4; transition: height .45s cubic-bezier(.3, .7, .2, 1), opacity .3s, background .3s; }
.orb-dot:hover i { opacity: .85; }
.orb-dot.is-active { height: 30px; }
.orb-dot.is-active i { height: 26px; opacity: 1; background: var(--orb-pink); }

/* ---------- จาน + วงโคจร ---------- */
.orb-plates { grid-area: plates; position: relative; z-index: 1; width: min(100%, var(--orb-plate)); aspect-ratio: 1; justify-self: center; -webkit-user-select: none; user-select: none; }
/* แถบสีโค้งตามวงโคจร: ผืน SVG ขนาด 960×520 ของต้นฉบับ วางเทียบกับจาน (จานอยู่ที่ x130 y82 ขนาด 245) */
.orb-arc { position: absolute; left: -53.06%; top: -33.47%; width: 391.84%; height: 212.24%; z-index: -1; overflow: visible; pointer-events: none; }
.orb-arc path { opacity: .34; transition: fill 1s; }
.orb--dark .orb-arc path { opacity: .24; }
.orb--gsap .orb-arc path, .orb--gsap .orb-orbit, .orb--gsap .orb-hd, .orb--gsap .orb-body, .orb--gsap .orb-bd { transition: none; }
.orb-plates::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; border: 1px dashed rgba(253, 83, 146, .38); animation: orbSpin 50s linear infinite; pointer-events: none; }
.orb--dark .orb-plates::after { border-color: rgba(255, 175, 208, .28); }
.orb--round .orb-plates::after { inset: -6%; }
.orb--cutout .orb-plates::after { left: 0; right: 0; bottom: -2%; aspect-ratio: 1; }
@keyframes orbSpin { to { transform: rotate(360deg); } }

/* จุดหมุนของวงโคจรอยู่สูงเหนือจาน (69%, -217%) ตามต้นฉบับ */
.orb-orbit { position: absolute; inset: 0; z-index: 1; transform-origin: 69% -217%; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; will-change: transform; }
.orb-orbit.is-active { opacity: 1; visibility: visible; }
.orb-orbit img { display: block; width: 100%; height: 100%; max-width: none; -webkit-user-drag: none; user-select: none; }

/* ภาพวงกลม (round) */
.orb--round .orb-orbit img { object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 clamp(6px, .8vw, 10px) rgba(255, 255, 255, .07), 0 0 0 calc(clamp(6px, .8vw, 10px) + 1px) rgba(255, 255, 255, .16), 0 44px 70px -30px rgba(0, 0, 0, .75); }
.orb--light.orb--round .orb-orbit img { box-shadow: 0 0 0 clamp(6px, .8vw, 10px) #fff, 0 0 0 calc(clamp(6px, .8vw, 10px) + 1px) rgba(253, 83, 146, .2), 0 40px 70px -34px rgba(150, 30, 85, .5); }

/* ภาพไดคัท (cutout) บนจานวงกลม */
.orb-disc { position: absolute; left: 6%; right: 6%; bottom: 3%; aspect-ratio: 1; z-index: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .42), transparent 46%), linear-gradient(140deg, #ff6aa5 0%, #fd5392 45%, #f86f64 100%); }
.orb--dark .orb-disc { box-shadow: 0 0 0 clamp(10px, 1.2vw, 16px) rgba(255, 143, 189, .07), 0 0 0 calc(clamp(10px, 1.2vw, 16px) + 1px) rgba(255, 255, 255, .1), 0 60px 130px -30px rgba(253, 83, 146, .75); }
.orb--light .orb-disc { box-shadow: 0 0 0 clamp(10px, 1.2vw, 16px) rgba(255, 255, 255, .7), 0 40px 80px -34px rgba(253, 83, 146, .8); }
.orb--cutout .orb-orbit img { object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 22px 26px rgba(40, 0, 20, .28)); }

/* ---------- ข้อความ ---------- */
.orb-copy { grid-area: copy; position: relative; z-index: 2; min-width: 0; }
.orb-heads { display: grid; }
.orb-hd { grid-area: 1 / 1; align-self: center; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.orb-hd.is-active { opacity: 1; visibility: visible; }
.orb-eye { display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; margin: 0 0 1.05rem; padding: .36rem .9rem .36rem .42rem; border: 1px solid var(--orb-line); border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; color: var(--orb-fg-2); }
.orb--light .orb-eye { background: rgba(255, 255, 255, .7); }
.orb-eye i { width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--grad, linear-gradient(45deg, #fd5392, #f86f64)); color: #fff; font-size: .74rem; letter-spacing: 0; }
.orb-eye:not(:has(i)) { padding-left: .9rem; }
.orb .orb-title { margin: 0; font: inherit; color: var(--orb-fg); }
.orb-t1, .orb-t2 { display: block; width: fit-content; max-width: 100%; padding-block: .16em .08em; text-wrap: balance; }
.orb-t1 { font-size: var(--orb-t1); font-weight: 200; line-height: 1.32; letter-spacing: 0; color: var(--orb-fg-2); }
.orb-t2 { font-size: var(--orb-t2); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; margin-top: .05em; }
.orb--dark .orb-t2 { background: linear-gradient(100deg, #fff 30%, #ffd3e4 68%, #ff9fc6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.orb-lead { margin: .9rem 0 0; max-width: 34rem; font-size: clamp(.95rem, 1.15vw, 1.05rem); line-height: 1.7; color: var(--orb-fg-2); }
.orb-acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.3rem, 2.2vw, 1.9rem); }

/* ปุ่ม */
.orb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: transform .5s var(--orb-ease), box-shadow .5s var(--orb-ease), background .3s, color .3s, border-color .3s; }
.orb-btn i { font-size: 1.05em; }
.orb-btn.is-primary { background: var(--grad, linear-gradient(45deg, #fd5392, #f86f64)); color: #fff; box-shadow: 0 18px 36px -18px rgba(253, 83, 146, .9); }
.orb-btn.is-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 24px 40px -16px rgba(253, 83, 146, 1); }
.orb-btn.is-light { background: #fff; color: var(--ink, #1d1d1b); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .6); }
.orb-btn.is-light i { color: var(--pink, #fd5392); }
.orb-btn.is-light:hover { color: var(--pink, #fd5392); transform: translateY(-2px); }
.orb-btn.is-ghost { border-color: var(--orb-line); background: rgba(255, 255, 255, .04); color: var(--orb-fg); }
.orb-btn.is-ghost:hover { border-color: var(--orb-pink); color: var(--orb-pink); transform: translateY(-2px); }

/* ---------- การ์ด ---------- */
.orb-card { grid-area: card; position: relative; z-index: 3; min-width: 0; padding: 18px 20px 20px; border: 1px solid var(--orb-line); border-radius: 22px; background: var(--orb-card-bg); -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 30px 60px -34px rgba(0, 0, 0, .6); }
.orb--light .orb-card { box-shadow: 0 1px 0 #fff inset, 0 26px 50px -32px rgba(150, 30, 85, .38); }
.orb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--orb-line); font-size: .78rem; font-weight: 500; color: var(--orb-fg-2); }
.orb-count { font-variant-numeric: tabular-nums; color: var(--orb-fg-3); }
.orb-count b { font-weight: 700; color: var(--orb-fg); }
.orb-bodies { display: grid; }
.orb-body { grid-area: 1 / 1; align-self: start; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.orb-body.is-active { opacity: 1; visibility: visible; }
.orb-rate { position: relative; height: 62px; margin: 0 0 14px 4px; }
.orb-badge { position: absolute; left: 0; top: 0; width: 46px; height: 62px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; border-radius: 10px; color: rgba(29, 29, 27, .72); font-size: 12px; }
.orb-num { position: absolute; left: 12px; top: 3px; display: flex; align-items: baseline; gap: 8px; font-size: 33px; font-weight: 700; line-height: 1.08; letter-spacing: -.03em; white-space: nowrap; color: var(--orb-fg); }
.orb-num small { order: 2; font-size: 11px; font-weight: 600; letter-spacing: .01em; line-height: 1.2; color: var(--orb-fg-2); }
.orb-name { margin: 0; font-size: 1.06rem; font-weight: 600; line-height: 1.4; color: var(--orb-fg); }
.orb-sub { margin: 3px 0 12px; font-size: .78rem; line-height: 1.5; color: var(--orb-fg-3); }
.orb-desc { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--orb-fg-2); }
.orb-rows { display: grid; gap: 9px; margin: 2px 0 0; padding: 0; list-style: none; }
.orb-rows li { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; line-height: 1.5; color: var(--orb-fg-2); overflow-wrap: anywhere; }
.orb-rows i { flex: none; margin-top: 3px; color: var(--orb-pink); }
.orb-react { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.orb-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: .45rem 1rem .45rem .9rem; border-radius: 999px; background: var(--orb-chip); color: var(--orb-fg); font-size: .84rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .3s, color .3s, transform .5s var(--orb-ease), box-shadow .5s var(--orb-ease); }
.orb-pill i { color: var(--orb-pink); transition: color .3s, transform .5s var(--orb-ease); }
.orb-pill:hover { background: var(--grad, linear-gradient(45deg, #fd5392, #f86f64)); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -16px rgba(253, 83, 146, .9); }
.orb-pill:hover i { color: #fff; transform: translate(1px, -1px); }

/* ---------- แถบภาพย่อ ---------- */
.orb-strip { display: flex; align-items: center; gap: 12px; margin-top: clamp(20px, 2.8vw, 34px); padding-top: clamp(14px, 1.8vw, 18px); border-top: 1px solid var(--orb-line); }
.orb-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.orb-arrow { appearance: none; flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--orb-line); border-radius: 50%; background: rgba(255, 255, 255, .04); color: var(--orb-fg); cursor: pointer; transition: background .3s, border-color .3s, color .3s, transform .4s var(--orb-ease); }
.orb--light .orb-arrow { background: #fff; }
.orb-arrow svg { width: 9px; height: 12px; fill: currentColor; }
.orb-arrow:hover { border-color: transparent; background: var(--grad, linear-gradient(45deg, #fd5392, #f86f64)); color: #fff; }
.orb-arrow:active { transform: scale(.94); }
.orb-win { --orb-item: 104px; position: relative; flex: 0 1 auto; min-width: var(--orb-item); width: calc(var(--orb-n) * var(--orb-item)); max-width: calc(4 * var(--orb-item)); margin: 0 4px; overflow: hidden; }
.orb-win.is-masked { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
.orb-track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.orb-th { appearance: none; flex: none; width: var(--orb-item); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 6px 9px; border: 0; border-radius: 16px; background: none; color: inherit; cursor: pointer; transition: background .45s, box-shadow .45s; }
.orb-th.is-active { background: var(--orb-thumb-on); box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .45); }
.orb-th-img { width: 56px; height: 56px; display: block; overflow: hidden; border-radius: 50%; background: rgba(255, 255, 255, .06); transition: transform .45s var(--orb-ease), box-shadow .45s; }
.orb--light .orb-th-img { background: #fff; }
.orb--cutout .orb-th-img { border-radius: 16px; background: radial-gradient(circle at 50% 70%, rgba(255, 196, 220, .5), rgba(255, 255, 255, .05) 70%); }
.orb--light.orb--cutout .orb-th-img { background: radial-gradient(circle at 50% 70%, rgba(253, 83, 146, .22), #fff 72%); }
.orb-th-img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.orb--cutout .orb-th-img img { object-fit: contain; object-position: 50% 100%; }
.orb-th.is-active .orb-th-img { transform: scale(1.06); box-shadow: 0 0 0 2px var(--orb-pink); }
.orb-th-label { max-width: 94px; font-size: .7rem; font-weight: 500; line-height: 1.32; text-align: center; color: var(--orb-fg-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.orb-th.is-active .orb-th-label, .orb-th:hover .orb-th-label { color: var(--orb-fg); }
.orb-ctrl { display: flex; align-items: center; gap: 16px; margin-left: auto; padding-left: 12px; }
.orb-count-lg { display: inline-flex; align-items: baseline; gap: 6px; font-size: .85rem; color: var(--orb-fg-3); font-variant-numeric: tabular-nums; }
.orb-count-lg b { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; color: var(--orb-fg); }
.orb-play { appearance: none; position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--orb-fg); cursor: pointer; transition: background .3s, color .3s; }
.orb--light .orb-play { background: #fff; }
.orb-play:hover { background: var(--grad, linear-gradient(45deg, #fd5392, #f86f64)); color: #fff; }
.orb-play i { font-size: 1.2rem; line-height: 1; }
.orb-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.orb-ring circle { fill: none; stroke: var(--orb-line); stroke-width: 2; }
.orb-ring .orb-ring-p { stroke: var(--orb-pink); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.orb-play:hover .orb-ring .orb-ring-p { stroke: #fff; }
.orb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.orb--single .orb-strip, .orb--single .orb-pager { display: none; }

/* ---------- ขนาดเฉพาะแต่ละจุดที่ใช้ ---------- */
.orb--hero { --orb-plate: 470px; --orb-t1: clamp(1.25rem, 2.2vw, 2rem); --orb-t2: clamp(2.1rem, 3.9vw, 3.6rem); }
.orb--courses { --orb-plate: 420px; --orb-t1: clamp(1.05rem, 1.7vw, 1.5rem); --orb-t2: clamp(1.65rem, 2.8vw, 2.5rem); }
.orb--people { --orb-plate: 340px; --orb-t1: clamp(1rem, 1.5vw, 1.3rem); --orb-t2: clamp(1.75rem, 3vw, 2.6rem); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .orb-stage { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) minmax(228px, 262px); grid-template-areas: "plates copy card"; }
  .orb--nocard .orb-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "plates copy"; }
  .orb-pager { display: none; }
  .orb-card { padding: 16px 16px 18px; }
}
@media (max-width: 991.98px) {
  .orb-stage, .orb--nocard .orb-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "plates copy" "plates card"; row-gap: 20px; }
  .orb--nocard .orb-stage { grid-template-areas: "plates copy"; }
  .orb-copy { align-self: end; }
  .orb-card { align-self: start; }
}
@media (max-width: 767.98px) {
  .orb--hero, .orb--panel { --orb-radius: 22px; }
  .orb-inner { padding: 26px 16px 16px; }
  .orb-stage, .orb--nocard .orb-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "plates" "copy" "card"; row-gap: 18px; text-align: center; }
  .orb--nocard .orb-stage { grid-template-areas: "plates" "copy"; }
  .orb-plates { width: min(74vw, 300px); }
  .orb--people .orb-plates { width: min(60vw, 240px); }
  .orb-copy, .orb-card { align-self: auto; }
  .orb-t1, .orb-t2, .orb-lead { margin-inline: auto; }
  .orb-acts { justify-content: center; }
  .orb-btn { min-height: 46px; padding: .65rem 1.25rem; }
  .orb-card { width: 100%; max-width: 480px; justify-self: center; text-align: left; padding: 16px 16px 16px; border-radius: 20px; }
  /* การ์ดแบบกะทัดรัด: ตัวเลขด้านซ้าย ชื่อด้านขวา (ตัวนับย้ายไปอยู่ที่แถบควบคุมด้านล่าง) */
  .orb-card-top { display: none; }
  .orb-body { display: grid; grid-template-columns: 78px minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .orb-rate { grid-row: 1 / span 2; height: 54px; margin: 0; }
  .orb-badge { width: 40px; height: 54px; padding-bottom: 7px; font-size: 11px; }
  .orb-num { left: 10px; font-size: 27px; gap: 6px; }
  .orb-num small { font-size: 10px; }
  .orb-name, .orb-sub { grid-column: 2; }
  .orb-name { font-size: 1rem; }
  .orb-sub { margin: 2px 0 0; }
  .orb-desc, .orb-rows, .orb-react { grid-column: 1 / -1; }
  .orb-desc, .orb-rows { margin-top: 12px; }
  .orb-react { margin-top: 14px; }
  .orb-strip { flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 14px; }
  .orb-nav { width: 100%; justify-content: center; }
  .orb-win { --orb-item: 66px; }
  .orb-th { padding: 6px 5px; border-radius: 14px; }
  .orb-th-img { width: 46px; height: 46px; }
  .orb--cutout .orb-th-img { border-radius: 13px; }
  .orb-th-label { display: none; }
  .orb-ctrl { justify-content: center; margin-left: 0; padding-left: 0; }
  .orb-count-lg b { font-size: 1.35rem; }
}
@media (max-width: 380px) {
  .orb-win { --orb-item: 58px; }
  .orb-th-img { width: 42px; height: 42px; }
  .orb-arrow { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-glow, .orb-plates::after { animation: none; }
  .orb-track, .orb-dot, .orb-dot i, .orb-th, .orb-th-img { transition: none; }
}
@media print {
  .orb-strip, .orb-pager, .orb-bg { display: none !important; }
}

/* =============================================================================
   รูปแบบย่อย — ให้แครูเซลแต่ละจุดหน้าตาไม่ซ้ำกัน
   orb--reverse  จานอยู่ขวา ข้อความ+การ์ดอยู่ซ้าย (เหวี่ยงกลับด้าน)
   orb--pills    แถบเลือกเป็นปุ่มแคปซูล
   orb--navy     โทนกรมท่า
   orb--center   จานอยู่กลาง ข้อความซ้าย การ์ดขวา
   orb--avatars  แถบเลือกเป็นรูปโปรไฟล์วงกลม
   ============================================================================= */

/* ---------- reverse ---------- */
.orb--reverse .orb-arc { left: auto; right: -53.06%; transform: scaleX(-1); }
.orb--reverse .orb-orbit { transform-origin: 31% -217%; }
@media (min-width: 768px) {
  .orb--reverse .orb-stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "copy plates" "card plates"; row-gap: 22px; }
  .orb--reverse .orb-copy { align-self: end; }
  .orb--reverse .orb-card { align-self: start; justify-self: start; width: 100%; max-width: 440px; }
}
@media (min-width: 1200px) {
  .orb--reverse .orb-stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 22px; grid-template-areas: "copy plates pager" "card plates pager"; }
}

/* ---------- หลักสูตร: พื้นสว่าง ลายตาราง หัวข้อไล่สีชมพู การ์ดขาวแนวนอน ---------- */
.orb--courses .orb-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(194, 47, 104, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(194, 47, 104, .07) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(70% 80% at 72% 45%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 72% 45%, #000, transparent 75%); }
.orb--courses .orb-t2 { background: linear-gradient(100deg, #c22f68 0%, #fd5392 45%, #f86f64 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.orb--courses .orb-card { padding: 18px 20px; background: #fff; }
.orb--courses .orb-card-top { display: none; }
.orb--courses .orb-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.orb--courses .orb-rate { grid-row: 1 / span 2; margin: 0; }
.orb--courses .orb-name, .orb--courses .orb-sub { grid-column: 2; }
.orb--courses .orb-sub { margin: 2px 0 0; }
.orb--courses .orb-desc, .orb--courses .orb-rows, .orb--courses .orb-react { grid-column: 1 / -1; }
.orb--courses .orb-react { margin-top: 14px; }

/* ---------- pills ---------- */
.orb--pills .orb-win { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.orb--pills .orb-track { flex-wrap: wrap; gap: 8px; transform: none !important; }
.orb--pills .orb-th { position: relative; overflow: hidden; width: auto; flex-direction: row; gap: 10px; padding: 5px 16px 5px 5px; border: 1px solid var(--orb-line); border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: none; }
.orb--pills .orb-th-img { width: 34px; height: 34px; border-radius: 50%; }
.orb--pills .orb-th.is-active .orb-th-img { transform: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.orb--pills .orb-th-label { display: block; max-width: none; white-space: nowrap; font-size: .84rem; font-weight: 600; -webkit-line-clamp: unset; }
.orb--pills .orb-th.is-active { border-color: transparent; background: var(--grad, linear-gradient(45deg, #fd5392, #f86f64)); box-shadow: 0 14px 28px -16px rgba(253, 83, 146, .9); }
.orb--pills .orb-th.is-active .orb-th-label { color: #fff; }
.orb--pills .orb-th.is-active::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--orb-p, 0) * 100%); background: rgba(255, 255, 255, .85); }
.orb--pills.is-paused .orb-th.is-active::after { opacity: .5; }

/* ---------- navy ---------- */
.orb--navy {
  --orb-fg: #fff;
  --orb-fg-2: rgba(222, 229, 255, .8);
  --orb-fg-3: rgba(190, 202, 240, .58);
  --orb-line: rgba(176, 194, 255, .18);
  --orb-pink: #ff8fbd;
  --orb-card-bg: rgba(255, 255, 255, .06);
  --orb-chip: rgba(255, 255, 255, .1);
  --orb-thumb-on: rgba(255, 255, 255, .08);
  background:
    radial-gradient(52% 70% at 50% -6%, rgba(104, 136, 255, .34), transparent 66%),
    radial-gradient(36% 56% at 0% 100%, rgba(253, 83, 146, .18), transparent 66%),
    radial-gradient(40% 60% at 100% 96%, rgba(72, 196, 255, .14), transparent 66%),
    linear-gradient(165deg, #090f22 0%, #0f1937 46%, #17244c 100%);
}
.orb--navy.orb--panel { box-shadow: 0 40px 90px -50px rgba(10, 20, 60, .85); }
.orb--navy .orb-glow--a { background: radial-gradient(circle, rgba(110, 140, 255, .3), transparent 62%); }
.orb--navy .orb-glow--b { background: radial-gradient(circle, rgba(253, 83, 146, .16), transparent 62%); }
.orb--navy .orb-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .5) .7px, transparent 1.2px) 0 0 / 120px 120px, radial-gradient(rgba(190, 205, 255, .35) .7px, transparent 1.2px) 60px 44px / 90px 90px; -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000, transparent 78%); mask-image: radial-gradient(70% 80% at 50% 40%, #000, transparent 78%); }
.orb--navy .orb-t2 { background: linear-gradient(100deg, #fff 30%, #dbe2ff 66%, #aebdff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.orb--navy .orb-arc path { opacity: .3; }
.orb--navy .orb-plates::before { content: ''; position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(120, 150, 255, .34), transparent 64%); pointer-events: none; }
.orb--navy .orb-plates::after { border-color: rgba(176, 194, 255, .3); }
.orb--navy.orb--round .orb-orbit img { box-shadow: 0 0 0 clamp(6px, .8vw, 10px) rgba(143, 168, 255, .1), 0 0 0 calc(clamp(6px, .8vw, 10px) + 1px) rgba(190, 205, 255, .28), 0 44px 70px -30px rgba(0, 0, 0, .8); }
.orb--navy .orb-eye { background: rgba(255, 255, 255, .06); }
.orb--navy .orb-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 30px 60px -34px rgba(0, 0, 20, .7); }

/* ---------- center ---------- */
@media (min-width: 992px) {
  .orb--center .orb-stage { grid-template-columns: minmax(0, 1fr) min(var(--orb-plate), 32vw) minmax(0, 1fr); grid-template-areas: "copy plates card"; column-gap: clamp(28px, 3.6vw, 60px); }
  .orb--center .orb-plates { width: 100%; }
  .orb--center .orb-pager { display: none; }
  .orb--center .orb-copy { text-align: right; }
  .orb--center .orb-t1, .orb--center .orb-t2, .orb--center .orb-lead { margin-left: auto; }
  .orb--center .orb-acts { justify-content: flex-end; }
  .orb--center .orb-card { justify-self: start; width: 100%; max-width: 330px; }
}
@media (min-width: 768px) {
  .orb--center .orb-strip { position: relative; justify-content: center; }
  .orb--center .orb-ctrl { position: absolute; right: 0; top: 50%; margin-top: 8px; transform: translateY(-50%); }
}

/* ---------- avatars ---------- */
.orb--avatars .orb-th, .orb--avatars .orb-th.is-active { padding: 6px 4px 4px; background: none; box-shadow: none; }
.orb--avatars .orb-th-img { width: 58px; height: 58px; }
.orb--avatars .orb-th-img img { transition: filter .4s, opacity .4s; }
.orb--avatars .orb-th:not(.is-active) .orb-th-img img { filter: grayscale(1) brightness(.92); opacity: .62; }
.orb--avatars .orb-th:hover .orb-th-img img { filter: none; opacity: 1; }
.orb--avatars .orb-th.is-active .orb-th-img { box-shadow: 0 0 0 2px var(--orb-pink), 0 0 0 6px rgba(255, 143, 189, .18); }
@media (max-width: 767.98px) {
  .orb--avatars .orb-th-img { width: 46px; height: 46px; }
}
@media (max-width: 767.98px) {
  /* มือถือ: ปุ่มแคปซูลใช้เลือกสไลด์ได้เอง ซ่อนลูกศรแล้วจัดแคปซูลไว้กึ่งกลาง */
  .orb--pills .orb-arrow { display: none; }
  .orb--pills .orb-win { flex: 1 1 100%; margin: 0; }
  .orb--pills .orb-track { justify-content: center; }
  .orb--pills .orb-th { padding: 4px 14px 4px 4px; }
  .orb--pills .orb-th-img { width: 30px; height: 30px; }
  .orb--pills .orb-th-label { font-size: .78rem; }
}

/* =============================================================================
   แบนเนอร์หน้าแรก (orb--hero): สว่างขึ้น นุ่มขึ้น และเด่นขึ้น
   ============================================================================= */
.orb--hero.orb--dark {
  --orb-card-bg: rgba(52, 14, 44, .34);
  --orb-fg-2: rgba(255, 255, 255, .88); /* พื้นสว่างขึ้น จึงเพิ่มความชัดของตัวอักษรรอง */
  --orb-fg-3: rgba(255, 255, 255, .68);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 111, 168, .34), transparent 62%),
    radial-gradient(52% 74% at 100% 100%, rgba(248, 111, 100, .28), transparent 62%),
    linear-gradient(135deg, #3c1634 0%, #4f1c45 40%, #682556 72%, #7c2b63 100%);
}
/* พื้นไล่เฉดเคลื่อนไหว (WebGL) ใต้ทุกชั้น */
[data-animated-gradient] > .ag-canvas { position: absolute; inset: -48px; z-index: 0; display: block; width: calc(100% + 96px); height: calc(100% + 96px); filter: blur(18px); pointer-events: none; }
.orb-bg.has-ag .orb-glow { opacity: .5; }
.orb--hero .orb-eye { background: rgba(44, 12, 36, .28); }
.orb--hero .orb-plates::after { display: none; }
.orb--hero .orb-t1 { font-weight: 300; text-shadow: 0 1px 10px rgba(50, 10, 40, .3); }
.orb--hero .orb-lead { text-shadow: 0 1px 8px rgba(50, 10, 40, .25); }
.orb--hero .orb-t2 { background: linear-gradient(100deg, #fff 0%, #fff 38%, #ffd6e7 50%, #fff 62%, #ffe3ef 100%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; animation: orbShimmer 7s 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes orbShimmer { 0% { background-position: 100% 0; } 55%, 100% { background-position: -60% 0; } }

/* วงแหวนเรืองแสงหมุนรอบจาน + แสงหายใจ */
.orb-halo { position: absolute; left: 0; right: 0; bottom: -3%; aspect-ratio: 1; z-index: 0; pointer-events: none; }
.orb--round .orb-halo { inset: -8%; aspect-ratio: auto; }
.orb-halo::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 111, 168, .5), rgba(255, 111, 168, 0) 62%); animation: orbGlow 5.5s ease-in-out infinite; }
.orb-halo::after { content: ''; position: absolute; inset: 2%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 160, 200, 0) 0deg, rgba(255, 190, 215, .95) 60deg, rgba(255, 160, 200, 0) 130deg, rgba(255, 140, 120, .8) 220deg, rgba(255, 160, 200, 0) 300deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); filter: drop-shadow(0 0 8px rgba(255, 111, 168, .7)); animation: orbSpin 12s linear infinite; }
@keyframes orbGlow { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }

/* ประกายแสงลอยรอบจาน */
.orb-sparks { position: absolute; inset: -4%; z-index: 1; pointer-events: none; }
.orb-sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 170, 205, .85); opacity: 0; animation: orbSpark 6.5s ease-in-out infinite; }
.orb-sparks i:nth-child(1) { left: 6%; top: 34%; animation-delay: 0s; }
.orb-sparks i:nth-child(2) { left: 18%; top: 12%; width: 4px; height: 4px; animation-delay: 1.2s; }
.orb-sparks i:nth-child(3) { left: 88%; top: 26%; animation-delay: 2.1s; }
.orb-sparks i:nth-child(4) { left: 94%; top: 58%; width: 4px; height: 4px; animation-delay: 3.4s; }
.orb-sparks i:nth-child(5) { left: 3%; top: 70%; width: 5px; height: 5px; animation-delay: 4.2s; }
.orb-sparks i:nth-child(6) { left: 72%; top: 4%; width: 4px; height: 4px; animation-delay: 5s; }
.orb-sparks i:nth-child(7) { left: 40%; top: -2%; width: 5px; height: 5px; animation-delay: .6s; }
.orb-sparks i:nth-child(8) { left: 97%; top: 84%; width: 4px; height: 4px; animation-delay: 2.8s; }
@keyframes orbSpark { 0% { opacity: 0; transform: translateY(12px) scale(.5); } 25% { opacity: 1; } 70% { opacity: .55; } 100% { opacity: 0; transform: translateY(-46px) scale(1.1); } }

/* ขยับตามเมาส์เล็กน้อย (ค่าจาก JS: --orb-px / --orb-py อยู่ระหว่าง -1 ถึง 1) */
.orb--fx .orb-disc, .orb--fx .orb-halo, .orb--fx .orb-sparks { transform: translate3d(calc(var(--orb-px, 0) * 12px), calc(var(--orb-py, 0) * 9px), 0); transition: transform 1.1s var(--orb-ease); }
.orb--fx .orb-glow--a { translate: calc(var(--orb-px, 0) * -24px) calc(var(--orb-py, 0) * -18px); transition: translate 1.4s var(--orb-ease); }
.orb--fx .orb-glow--b { translate: calc(var(--orb-px, 0) * 20px) calc(var(--orb-py, 0) * 16px); transition: translate 1.4s var(--orb-ease); }
.orb-stage { -webkit-touch-callout: none; }

/* ระหว่างรอแอนิเมชันเปิด: ซ่อนเนื้อหาไว้ก่อน (ถ้า JS ไม่ทำงาน จะแสดงเองหลัง 2.5 วินาที) */
.orb[data-orb-intro]:not(.orb--ready) .orb-stage, .orb[data-orb-intro]:not(.orb--ready) .orb-strip { opacity: 0; animation: orbReveal .6s 2.5s forwards; }
@keyframes orbReveal { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .orb-halo::before, .orb-halo::after, .orb-sparks i, .orb--hero .orb-t2 { animation: none; }
  .orb-sparks { display: none; }
  .orb[data-orb-intro]:not(.orb--ready) .orb-stage, .orb[data-orb-intro]:not(.orb--ready) .orb-strip { opacity: 1; animation: none; }
}
