/* ===============================
   ACTIVES - HUB Main CSS
   Global Font + UI Effects
   รองรับภาษาไทย + อังกฤษ
================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai+Looped:wght@100;200;300;400;500;600;700&family=Noto+Sans+Thai:wght@100..900&display=swap');

:root {
  --font-en: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-th: 'Noto Sans Thai', 'IBM Plex Sans Thai Looped', sans-serif;
  --font-sans: 'Noto Sans Thai', 'IBM Plex Sans Thai Looped', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* ===============================
   Base Font
================================ */
html {
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0;
}

/* Thai */
html[lang="th"],
html[lang="th"] body {
  font-family: var(--font-th);
  line-height: 1.78;
  letter-spacing: 0;
}

/* English */
html[lang="en"],
html[lang="en"] body {
  font-family: var(--font-en);
  line-height: 1.65;
  letter-spacing: -0.012em;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Thai Heading */
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4,
html[lang="th"] h5,
html[lang="th"] h6 {
  font-family: var(--font-th);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.005em;
}

/* English Heading */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
  font-family: var(--font-en);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

/* Text Elements */
p,
li,
span,
a,
button,
input,
select,
textarea,
label {
  font-family: inherit;
}

/* Form elements */
input,
select,
textarea,
button {
  font-family: inherit;
}

/* Numbers */
.font-number,
[id$="Count"],
[id$="Seats"] {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
}

/* Text selection */
::selection {
  background: rgba(16, 185, 129, .22);
  color: inherit;
}

/* ===============================
   Utility
================================ */
.glass {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.dark .glass {
  background: rgba(15, 23, 42, .72);
}

.gradient-text {
  background: linear-gradient(90deg, #059669, #0e7490);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-grid {
  background-image:
    radial-gradient(circle at 18% 18%, rgba(16, 185, 129, .16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, .13), transparent 28%),
    linear-gradient(to right, rgba(15, 23, 42, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .04) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

.hero-orb {
  background:
    radial-gradient(circle at 20% 25%, rgba(16, 185, 129, .28), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, .25), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, .16), transparent 34%);
}

/* ===============================
   Line Clamp
================================ */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

/* ===============================
   Section Reveal
================================ */
.section-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Noise Overlay
================================ */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .28;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

/* ===============================
   Navigation
================================ */
.nav-dropdown-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

[data-nav-link].is-active {
  color: #047857;
  background: linear-gradient(90deg, #ecfdf5, #ecfeff);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .14);
}

.dark [data-nav-link].is-active {
  color: #a7f3d0;
  background: linear-gradient(90deg, rgba(16, 185, 129, .14), rgba(6, 182, 212, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

/* ===============================
   Hero Slider
================================ */
.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity .65s ease, transform .65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-dot.is-active {
  width: 2.25rem;
  background: linear-gradient(90deg, #059669, #0891b2);
  opacity: 1;
}

/* ===============================
   Cards
================================ */
.soft-card,
.page-card,
.premium-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.soft-card:hover,
.page-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .12);
  border-color: rgba(16, 185, 129, .28);
}

.premium-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.premium-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, .36);
  box-shadow: 0 32px 90px rgba(15, 23, 42, .14);
}

.dark .premium-card {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

/* ===============================
   Section Kicker
================================ */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .5rem .9rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(4, 120, 87);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .18);
}

.dark .section-kicker {
  color: rgb(110, 231, 183);
  background: rgba(16, 185, 129, .1);
  border-color: rgba(110, 231, 183, .16);
}

/* ===============================
   Partner Marquee
================================ */
.partner-marquee-track {
  animation: partnerMarquee 42s linear infinite;
}

.partner-marquee-track:hover {
  animation-play-state: paused;
}

.partner-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(226, 232, 240, .85);
  box-shadow: 0 14px 45px rgba(15, 23, 42, .08);
  backdrop-filter: blur(16px);
  opacity: .88;
  filter: grayscale(.12);
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease, filter .25s ease;
}

.partner-logo-item:hover {
  transform: translateY(-3px) scale(1.02);
  opacity: 1;
  filter: grayscale(0);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .14);
}

.partner-logo-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .12));
}

.partner-logo-item span {
  max-width: 230px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
  white-space: normal;
}

.dark .partner-logo-item {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .25);
}

.dark .partner-logo-item span {
  color: #f8fafc;
}

.dark .partner-logo-item img {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35));
}

@keyframes partnerMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
/* ===============================
   Team
================================ */
.team-card {
  isolation: isolate;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .14), transparent 20%),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .10), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 38%);
  opacity: .75;
}

.team-card img {
  user-select: none;
}

.team-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, .55);
  transition: width .28s ease, background .28s ease, transform .28s ease, opacity .28s ease;
  opacity: .7;
}

.team-dot:hover {
  transform: scale(1.2);
  opacity: 1;
}

.team-dot.is-active {
  width: 2.25rem;
  background: linear-gradient(90deg, #059669, #0891b2);
  opacity: 1;
  animation: teamDotPulse 1.4s ease-in-out infinite;
}

.team-profile-card {
  animation: teamFadeUp .55s ease both;
}

/* ===============================
   Activity
================================ */
.activity-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #059669, #0891b2);
  box-shadow: 0 14px 30px rgba(5, 150, 105, .28);
  border-color: transparent;
}

.activity-item {
  animation: activityFade .35s ease both;
}

/* ===============================
   Modal
================================ */
#registerModal,
#activityModal {
  animation: modalFadeIn 180ms ease;
}

#registerModal > div,
#activityModal > div {
  animation: modalScaleIn 220ms ease;
}

/* ===============================
   SDG / Scopus
================================ */
.sdg-chip {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .10);
  padding: .5rem 1rem;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(203 213 225);
  transition: all .25s ease;
}

.sdg-chip:hover {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  transform: translateY(-1px);
}

.scopus-filter.is-active {
  background: #fff !important;
  color: rgb(15 23 42) !important;
  border-color: rgba(255, 255, 255, .35) !important;
  box-shadow: 0 12px 30px rgba(255, 255, 255, .10);
}

/* ===============================
   Animations
================================ */
.stagger-in {
  opacity: 0;
  transform: translateY(18px);
  animation: slideUp .75s ease forwards;
}

.stagger-in:nth-child(2) { animation-delay: .08s; }
.stagger-in:nth-child(3) { animation-delay: .16s; }
.stagger-in:nth-child(4) { animation-delay: .24s; }
.stagger-in:nth-child(5) { animation-delay: .32s; }
.stagger-in:nth-child(6) { animation-delay: .40s; }

@keyframes partnerMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes teamDotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .32);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

@keyframes teamFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes activityFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===============================
   Responsive
================================ */
@media (max-width: 640px) {
  body {
    line-height: 1.7;
  }

  html[lang="th"] body {
    line-height: 1.78;
  }

  .partner-marquee-track {
    gap: 2rem;
    animation-duration: 42s;
  }

  .partner-logo-item img {
    width: 48px;
    height: 48px;
  }

  .partner-logo-item span {
    max-width: 160px;
    font-size: 12px;
  }

  .section-kicker {
    font-size: .66rem;
    letter-spacing: .12em;
  }
}
.partner-marquee-track {
  animation: partnerMarquee 42s linear infinite;
}

.partner-marquee-track:hover {
  animation-play-state: paused;
}

.partner-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(226, 232, 240, .85);
  box-shadow: 0 14px 45px rgba(15, 23, 42, .08);
  backdrop-filter: blur(16px);
  opacity: .88;
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}

.partner-logo-item:hover {
  transform: translateY(-3px) scale(1.02);
  opacity: 1;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .14);
}

.partner-logo-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .12));
}

.partner-logo-item span {
  max-width: 230px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
  white-space: normal;
}

.dark .partner-logo-item {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .25);
}

.dark .partner-logo-item span {
  color: #f8fafc;
}

@keyframes partnerMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}



@keyframes authPanelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.activity-page-btn {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgb(226 232 240);
  background: rgba(255, 255, 255, .9);
  color: rgb(71 85 105);
  font-size: 13px;
  font-weight: 900;
  transition: all .25s ease;
}

.activity-page-btn:hover {
  transform: translateY(-2px);
  background: rgb(241 245 249);
  color: rgb(15 23 42);
}

.activity-page-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #059669, #0891b2);
  color: #fff;
  box-shadow: 0 14px 32px rgba(5, 150, 105, .28);
}

.activity-page-dots {
  display: inline-flex;
  height: 42px;
  min-width: 28px;
  align-items: center;
  justify-content: center;
  color: rgb(148 163 184);
  font-weight: 900;
}

.dark .activity-page-btn {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  color: rgb(203 213 225);
}

.dark .activity-page-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.footer-pro-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 16px;
  padding: 10px 12px;
  color: rgb(203, 213, 225);
  transition: color .25s ease, transform .25s ease, background .25s ease;
}

.footer-pro-link i {
  color: rgb(110, 231, 183);
  transition: transform .25s ease;
}

.footer-pro-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  transform: translateX(4px);
}

.footer-pro-link:hover i {
  transform: translateX(5px);
}

.footer-pro-contact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .055);
  padding: 14px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.footer-pro-contact > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .10);
  color: rgb(103, 232, 249);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.footer-pro-contact strong {
  font-weight: 800;
  line-height: 1.7;
}

.footer-pro-contact:hover {
  color: #ffffff;
  transform: translateY(-3px);
  border-color: rgba(110, 231, 183, .28);
  background: rgba(255, 255, 255, .09);
}

.footer-social-btn {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .09);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    0 16px 38px rgba(0, 0, 0, .22);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.footer-social-btn:hover {
  color: #ffffff;
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    0 24px 56px rgba(0, 0, 0, .30);
}
/* ===============================
   Responsive Auth Modal
================================ */
.auth-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, .45) transparent;
  -webkit-overflow-scrolling: touch;
}

.auth-scroll-area::-webkit-scrollbar {
  width: 8px;
}

.auth-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.auth-scroll-area::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(to bottom, #10b981, #06b6d4);
}

.auth-panel {
  animation: authPanelFade .28s ease both;
}

.auth-tab.active,
.auth-tab.is-active {
  background: linear-gradient(135deg, #059669, #0891b2);
  color: #fff;
  box-shadow: 0 12px 30px rgba(5, 150, 105, .25);
}

@keyframes authPanelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* reCAPTCHA responsive */
.recaptcha-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  min-height: 78px;
}

.recaptcha-wrap .g-recaptcha {
  transform-origin: left top;
}

@media (max-width: 380px) {
  .recaptcha-wrap {
    min-height: 70px;
  }

  .recaptcha-wrap .g-recaptcha {
    transform: scale(.88);
    width: 304px;
    height: 70px;
  }
}

@media (max-width: 340px) {
  .recaptcha-wrap {
    min-height: 62px;
  }

  .recaptcha-wrap .g-recaptcha {
    transform: scale(.78);
    width: 304px;
    height: 62px;
  }
}
/* ===============================
   Professional Auth Modal
================================ */
#loginModal {
  animation: modalFadeIn 180ms ease;
}

#loginModal > div {
  animation: modalScaleIn 220ms ease;
}

.auth-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, .45) transparent;
}

.auth-scroll-area::-webkit-scrollbar {
  width: 8px;
}

.auth-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.auth-scroll-area::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(to bottom, #10b981, #06b6d4);
}

.auth-panel {
  animation: authPanelFade .26s ease both;
}

.auth-tab {
  color: rgb(100 116 139);
}

.dark .auth-tab {
  color: rgb(203 213 225);
}

.auth-tab.bg-white,
.auth-tab.active,
.auth-tab.is-active {
  background: #ffffff;
  color: rgb(15 23 42);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.dark .auth-tab.bg-white,
.dark .auth-tab.active,
.dark .auth-tab.is-active {
  background: #ffffff;
  color: rgb(15 23 42);
}

@keyframes authPanelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  #loginModal > div {
    border-radius: 1.5rem;
    max-height: 96dvh;
  }

  #loginModal .auth-scroll-area {
    padding: 1.25rem;
    padding-top: 3.75rem;
  }
}