/* Basic shared styles (small layer over Tailwind if needed) */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  --color-primary: #670D25;
  --color-primary-hover: #5D0C21;
  --color-primary-rgb: 103, 13, 37;
  --color-secondary-blue: #447BA9;
  --color-secondary-blue-hover: #3D6F98;
  --color-secondary-blue-rgb: 68, 123, 169;
  --color-secondary-gold: #DEC679;
  --color-secondary-gold-hover: #C8B26D;
  --color-secondary-gold-rgb: 222, 198, 121;
  --color-secondary-blue-soft: rgba(68, 123, 169, 0.12);
  --color-secondary-gold-soft: rgba(222, 198, 121, 0.2);
  --color-on-primary: #ffffff;
  --color-on-secondary-blue: #ffffff;
  --color-on-secondary-gold: #0f172a;
  --ink: #0f172a;
  --muted: #4b5563;
  --accent: var(--color-secondary-blue);
  --accent-dark: var(--color-primary);
  --mist: #e2e8f0;
  --card: #ffffff;
  --bg-page: #f8fafc;
  --bg-page-soft: #f1f5f9;
}

body {
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-page);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.005em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1,
h1.text-slate-900 {
  color: var(--color-primary);
}

h3,
.section-title {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

p {
  font-weight: 400;
  line-height: 1.7;
}

.site-bg {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(var(--color-primary-rgb), 0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(var(--color-secondary-blue-rgb), 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-page) 0%, var(--bg-page-soft) 100%);
}

/* .page-hero {
  background: linear-gradient(
    180deg,
    rgba(var(--color-primary-rgb), 0.2) 0%,
    rgba(var(--color-primary-rgb), 0.48) 100%
  );
} */

.brand-anchor-section {
  width: 100%;
  background: var(--color-primary);
  padding-top: clamp(5rem, 8vw, 6.25rem);
  padding-bottom: clamp(5rem, 8vw, 6.25rem);
}

.brand-anchor-content {
  max-width: 52rem;
}

.brand-anchor-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-anchor-text {
  margin-top: 1.05rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.75;
  max-width: 64ch;
}

.brand-anchor-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.8rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.brand-anchor-cta:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.brand-anchor-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--color-secondary-blue-rgb), 0.28);
  box-shadow: 0 18px 40px rgba(var(--color-primary-rgb), 0.08);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}



.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-accent {
  background: var(--color-secondary-blue-soft);
  color: var(--color-secondary-blue-hover);
  border: 1px solid rgba(var(--color-secondary-blue-rgb), 0.35);
}

.badge-alert {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.tab-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  background: white;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.24);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.45s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(var(--color-primary-rgb), 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--color-primary-hover);
  box-shadow: 0 16px 28px rgba(var(--color-primary-rgb), 0.28);
}

.btn-primary:focus-visible {
  outline: 2px solid rgba(var(--color-secondary-blue-rgb), 0.6);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  min-width: 120px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--color-secondary-blue);
  color: var(--color-on-secondary-blue);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(var(--color-secondary-blue-rgb), 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--color-secondary-blue-hover);
  box-shadow: 0 14px 26px rgba(var(--color-secondary-blue-rgb), 0.3);
}

.btn-secondary:focus-visible {
  outline: 2px solid rgba(var(--color-secondary-blue-rgb), 0.55);
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(var(--color-secondary-blue-rgb), 0.14);
  color: var(--color-secondary-blue-hover);
  border-color: rgba(var(--color-secondary-blue-rgb), 0.35);
}

.icon-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--muted);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-toggle .icon {
  width: 18px;
  height: 18px;
}

.icon-toggle .icon-sun {
  display: none;
}

.icon-toggle.is-dark .icon-sun {
  display: block;
}

.icon-toggle.is-dark .icon-moon {
  display: none;
}

.icon-toggle:hover {
  background: rgba(var(--color-secondary-blue-rgb), 0.14);
  color: var(--color-secondary-blue-hover);
  border-color: rgba(var(--color-secondary-blue-rgb), 0.35);
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--color-secondary-blue-hover);
}

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 20;
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  display: block;
}

.dropdown-panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

.dropdown-panel a:hover {
  background: rgba(var(--color-secondary-blue-rgb), 0.14);
  color: var(--color-secondary-blue-hover);
}

.dropdown-nav {
  position: relative;
}

.dropdown-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.65rem;
}

.nav-link-dropdown {
  padding-right: 0.15rem;
}

.dropdown-caret {
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-nav:hover .dropdown-caret,
.dropdown-nav:focus-within .dropdown-caret {
  opacity: 1;
  transform: rotate(180deg);
}

.dropdown-panel-nav {
  left: 0;
  right: auto;
  top: calc(100% + 0.4rem);
  min-width: 240px;
  padding: 0.38rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(var(--color-secondary-blue-rgb), 0.25);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(7px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.dropdown-nav:hover .dropdown-panel-nav,
.dropdown-nav:focus-within .dropdown-panel-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  border-radius: 0.6rem;
  padding: 0.58rem 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(var(--color-secondary-blue-rgb), 0.14);
  color: var(--color-secondary-blue-hover);
  transform: translateX(1px);
}

.dropdown-item.is-active {
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
}

main a:not(.btn-primary):not(.btn-secondary):not(.btn-ghost):not(.nav-link):not(.footer-link) {
  color: var(--color-secondary-blue);
  transition: color 0.2s ease;
}

main a:not(.btn-primary):not(.btn-secondary):not(.btn-ghost):not(.nav-link):not(.footer-link):hover {
  color: var(--color-secondary-blue-hover);
}

main a.venue-link-white,
main a.venue-link-white:hover,
main a.venue-link-white:focus-visible {
  color: #ffffff !important;
}

.event-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(var(--color-secondary-blue-rgb), 0.28);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(var(--color-primary-rgb), 0.08);
}

.footer-block {
  background: rgba(var(--color-primary-rgb), 0.24);
  border: 1px solid rgba(var(--color-secondary-gold-rgb), 0.22);
  border-radius: 1rem;
  padding: 1.25rem;
}

/* Footer social icons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.92);
  text-align: center;
  line-height: 48px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social a .icon {
  position: relative;
  color: var(--color-primary);
  transition: color 0.4s ease, transform 0.4s ease;
  z-index: 3;
}

.footer-social a:hover .icon {
  color: #ffffff;
  transform: rotateY(360deg);
}

.footer-social a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  transition: top 0.4s ease;
  z-index: 2;
}

.footer-social a:hover::before {
  top: 0;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background-color: rgba(var(--color-secondary-gold-rgb), 0.2);
  border-color: rgba(var(--color-secondary-gold-rgb), 0.45);
}

.footer-social li:nth-child(1) a::before {
  background: var(--color-primary);
}

.footer-social li:nth-child(2) a::before {
  background: var(--color-secondary-blue);
}

.footer-social li:nth-child(3) a::before {
  background: var(--color-primary-hover);
}

.footer-social li:nth-child(4) a::before {
  background: var(--color-secondary-blue-hover);
}

.hero-slider {
  position: relative;
  min-height: 550px;
  height: 550px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-control {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.25));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.slider-control:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.3);
  border-color: rgba(255, 255, 255, 0.45);
}

.slider-control .icon-pause {
  display: none;
}

.slider-control.is-playing .icon-pause {
  display: block;
}

.slider-control.is-playing .icon-play {
  display: none;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(var(--color-secondary-blue-rgb), 0.24);
}

body.dark.site-bg {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(var(--color-secondary-gold-rgb), 0.1), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(var(--color-secondary-blue-rgb), 0.16), transparent 55%),
    linear-gradient(180deg, #120816 0%, #0f172a 100%);
}

body.dark {
  color: #e2e8f0;
}

body.dark .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(var(--color-secondary-gold-rgb), 0.35);
}

body.dark .nav-link {
  color: #f8fafc;
}

body.dark .nav-link:hover,
body.dark .nav-link.active {
  color: var(--color-secondary-gold);
}

body.dark .dropdown-panel a {
  color: #e2e8f0;
}

body.dark .dropdown-panel a:hover {
  color: #f8fafc;
  background: rgba(var(--color-secondary-gold-rgb), 0.34);
}

body.dark .glass-card,
body.dark .event-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: none;
}

body.dark .dropdown-panel {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.25);
}

body.dark .dropdown-panel-nav {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.45);
}

body.dark .dropdown-item {
  color: #e2e8f0;
}

body.dark .dropdown-item:hover {
  background: rgba(var(--color-secondary-gold-rgb), 0.22);
  color: #f8fafc;
}

body.dark .dropdown-item.is-active {
  background: rgba(var(--color-secondary-gold-rgb), 0.28);
  color: #f8fafc;
}

body.dark .btn-ghost {
  color: #cbd5f5;
  border-color: rgba(148, 163, 184, 0.35);
}

body.dark .btn-ghost:hover {
  background: rgba(var(--color-secondary-blue-rgb), 0.22);
  color: #f8fafc;
  border-color: rgba(var(--color-secondary-blue-rgb), 0.45);
}

body.dark .nav-link.active::after {
  background: var(--color-secondary-gold);
}

body.dark .text-slate-900 { color: #f8fafc !important; }
body.dark .text-slate-700 { color: #e2e8f0 !important; }
body.dark .text-slate-600 { color: #cbd5f5 !important; }
body.dark .text-slate-500 { color: #94a3b8 !important; }
body.dark .border-slate-200 { border-color: rgba(148, 163, 184, 0.2) !important; }
body.dark .bg-white { background-color: #0f172a !important; }
body.dark .bg-slate-50 { background-color: rgba(15, 23, 42, 0.84) !important; }
body.dark .bg-slate-100 { background-color: rgba(15, 23, 42, 0.9) !important; }
body.dark .bg-slate-50.border-slate-200 {
  border-color: rgba(var(--color-secondary-blue-rgb), 0.35) !important;
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

.float-slow {
  animation: float 8s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Brand utility overrides for existing Tailwind classes used in templates. */
.text-teal-600 { color: var(--color-primary) !important; }

.text-teal-700 { color: var(--color-secondary-blue) !important; }

.text-teal-900 { color: var(--color-secondary-blue-hover) !important; }

.text-teal-900\/80 { color: rgba(var(--color-secondary-blue-rgb), 0.8) !important; }

.text-teal-900\/70 { color: rgba(var(--color-secondary-blue-rgb), 0.7) !important; }

.bg-teal-400,
.bg-teal-500 { background-color: var(--color-secondary-blue) !important; }

.bg-teal-600 { background-color: var(--color-primary) !important; }

.bg-teal-700 { background-color: var(--color-primary-hover) !important; }

.hover\:bg-teal-700:hover { background-color: var(--color-primary-hover) !important; }

.border-teal-200 { border-color: rgba(var(--color-secondary-blue-rgb), 0.42) !important; }

.bg-teal-50 { background-color: var(--color-secondary-blue-soft) !important; }

.text-amber-900 { color: var(--color-on-secondary-gold) !important; }

.text-amber-900\/80 { color: rgba(15, 23, 42, 0.8) !important; }

.bg-amber-50 { background-color: var(--color-secondary-gold-soft) !important; }

.border-amber-200 { border-color: rgba(var(--color-secondary-gold-rgb), 0.6) !important; }

.bg-slate-900 { background-color: var(--color-primary) !important; }

.hover\:bg-slate-800:hover { background-color: var(--color-primary-hover) !important; }

.session-tag {
  color: var(--color-secondary-blue) !important;
  font-weight: 600;
}

.session-time {
  color: var(--color-secondary-blue) !important;
  font-weight: 600;
}

/* Program page */
.program-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.program-tab-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 108px;
  gap: 0.1rem;
}

.program-tab-day {
  font-weight: 600;
  line-height: 1.2;
}

.program-tab-date {
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--color-secondary-blue-rgb), 0.8);
}

.tab-btn.active .program-tab-date {
  color: rgba(255, 255, 255, 0.9);
}

.program-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.program-day-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-secondary-blue);
}

.program-day-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
}

.program-day-summary {
  margin: 0.6rem 0 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.program-timeline {
  position: relative;
  display: grid;
  gap: 0.95rem;
}

.program-entry {
  position: relative;
  display: grid;
  gap: 0.85rem 1rem;
}

.program-entry-time {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary-blue);
  letter-spacing: 0.01em;
}

.program-entry-card {
  border-radius: 1rem;
  border: 1px solid rgba(var(--color-secondary-blue-rgb), 0.25);
  background: #ffffff;
  padding: 1rem 1.1rem;
}

.program-entry--session .program-entry-card {
  border-left: 4px solid rgba(var(--color-secondary-blue-rgb), 0.65);
}

.program-entry--highlight .program-entry-card {
  border-left: 4px solid rgba(var(--color-primary-rgb), 0.8);
}

.program-entry--break .program-entry-card {
  border-left: 4px solid rgba(var(--color-secondary-gold-rgb), 0.95);
}

.program-entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.program-entry-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.program-entry--highlight .program-entry-title {
  color: var(--color-primary);
}

.program-entry-details {
  margin: 0.62rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.24rem;
}

.program-entry-details li {
  position: relative;
  padding-left: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.program-entry-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--color-secondary-blue-rgb), 0.8);
}

.program-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.program-chip--primary {
  color: #ffffff;
  background: var(--color-primary);
}

.program-chip--gold {
  color: var(--color-on-secondary-gold);
  background: rgba(var(--color-secondary-gold-rgb), 0.9);
}

.program-note {
  border: 1px solid rgba(var(--color-primary-rgb), 0.32);
  background: rgba(var(--color-primary-rgb), 0.08);
}

.program-note-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.program-note-text {
  margin: 0.45rem 0 0;
  color: rgba(var(--color-primary-rgb), 0.92);
  font-size: 0.92rem;
  line-height: 1.65;
}

.schedule-overview-card {
  padding: 0;
  overflow: hidden;
}

.schedule-overview-head {
  position: relative;
}

.schedule-overview-head::after {
  content: "";
  display: block;
  margin-top: 0.95rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-secondary-blue), var(--color-secondary-gold));
}

.schedule-overview-wrap {
  overflow-x: auto;
}

.schedule-overview-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.schedule-day-row th {
  background: var(--color-primary);
  color: #ffffff;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.schedule-item-row td {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-primary);
  font-size: 1rem;
  padding: 0.86rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  vertical-align: middle;
}

.schedule-col-time {
  width: 16%;
  white-space: nowrap;
  font-weight: 500;
}

.schedule-col-title {
  width: 34%;
  font-weight: 700;
}

.schedule-col-venue {
  width: 25%;
}

.schedule-col-place {
  width: 25%;
}

@media (min-width: 768px) {
  .program-timeline::before {
    content: "";
    position: absolute;
    left: 133px;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 1px;
    background: rgba(var(--color-secondary-blue-rgb), 0.28);
  }

  .program-entry {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: flex-start;
  }

  .program-entry::before {
    content: "";
    position: absolute;
    left: 127px;
    top: 0.48rem;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: var(--color-secondary-blue);
    box-shadow: 0 0 0 3px rgba(var(--color-secondary-blue-rgb), 0.2);
  }

  .program-entry--break::before {
    background: var(--color-secondary-gold);
    box-shadow: 0 0 0 3px rgba(var(--color-secondary-gold-rgb), 0.26);
  }

  .program-entry--highlight::before {
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
  }
}

@media (max-width: 767px) {
  .program-tab-list {
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .program-tab-btn {
    align-items: center;
    min-width: 102px;
    text-align: center;
  }
}

body.dark .program-tab-date {
  color: rgba(226, 232, 240, 0.82);
}

body.dark .program-day-summary {
  color: #cbd5f5;
}

body.dark .program-entry-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.3);
}

body.dark .program-entry-title {
  color: #f8fafc;
}

body.dark .program-entry--highlight .program-entry-title {
  color: #ffffff;
}

body.dark .program-entry-details li {
  color: #cbd5f5;
}

body.dark .program-note {
  background: rgba(var(--color-primary-rgb), 0.18);
  border-color: rgba(var(--color-secondary-gold-rgb), 0.42);
}

body.dark .program-note-title,
body.dark .program-note-text {
  color: #f8fafc;
}

body.dark .schedule-day-row th {
  border-color: rgba(148, 163, 184, 0.35);
}

body.dark .schedule-item-row td {
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.35);
}

body.dark .schedule-col-time {
  color: var(--color-secondary-gold);
}

.accreditation-panel .bg-slate-50 {
  background: var(--color-secondary-gold-soft) !important;
  border-color: rgba(var(--color-secondary-gold-rgb), 0.58) !important;
}

.accreditation-panel .text-slate-500 {
  color: rgba(var(--color-primary-rgb), 0.74) !important;
}

.accreditation-panel .accreditation-metric {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--color-secondary-gold);
  color: var(--color-on-secondary-gold) !important;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}



/* ===== Welcome split-text animation (scoped) ===== */
.welcome-message {
  max-width: 70ch;
}

/* Use a consistent “institutional” look: bold but not flashy */
.welcome-message .split-text-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;

  /* Reduced, editorial-style size */
  font-size: 0.95rem;           /* desktop */
  font-weight: 600;
  line-height: 1.4;

  /* Slight emphasis without headline dominance */
  color: var(--ink);
  letter-spacing: 0.01em;

  overflow: hidden;
}

/* Slight bump only on very large screens */
@media (min-width: 1024px) {
  .welcome-message .split-text-container {
    font-size: 1rem;
  }
}

/* Dark mode */
body.dark .welcome-message .split-text-container {
  color: #e2e8f0;
}
/* ===== Welcome split-text animation (scroll-triggered) ===== */

/* Default state (hidden until section becomes visible) */
.welcome-message .text-part {
  display: inline-block;
  will-change: transform, opacity;

  opacity: 0;
  transform: translateX(0);
}

/* Animate ONLY when JS adds .is-visible to .welcome-message */
.welcome-message.is-visible .text-part {
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: forwards;
}

/* Left part */
.welcome-message.is-visible .text-part.left {
  animation-name: slide-in-left;
}

/* Right part (slight stagger) */
.welcome-message.is-visible .text-part.right {
  animation-name: slide-in-right;
  animation-delay: 120ms;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .welcome-message .text-part {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Animations */
@keyframes slide-in-left {
  0% { transform: translateX(-130%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
  0% { transform: translateX(130%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Signature styling */
.welcome-message .signature {
  padding-top: 0.25rem;
  font-weight: 700;
  color: var(--ink);
}

body.dark .welcome-message .signature {
  color: #f8fafc;
}

/* Scroll reveal for signature block (repeat on scroll) */
.scroll-fade {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp 0.6s ease both;
}

/* Desktop-only slide-in from right for accreditation block */
@media (min-width: 1024px) {
  .scroll-slide {
    opacity: 0;
    transform: translateX(24px);
    will-change: opacity, transform;
  }

  .scroll-slide.is-visible {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.6s ease both;
  }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}




/* ===== Registration Steps (scroll reveal + stagger) ===== */

.steps-list { position: relative; }

/* Base card */
.step-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;

  /* hidden state for animation */
  opacity: 0;
  transform: translateY(14px);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* Left accent rail */
.step-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(var(--color-secondary-blue-rgb), 0.95), rgba(var(--color-secondary-blue-rgb), 0.62));
}

/* Subtle glow */
.step-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(var(--color-secondary-blue-rgb), 0.16), transparent 60%);
  pointer-events: none;
}

/* Card header */
.step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-blue-hover);
  background: var(--color-secondary-blue-soft);
  border: 1px solid rgba(var(--color-secondary-blue-rgb), 0.45);
  white-space: nowrap;
}

.step-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  font-size: 1rem;
}

.step-desc {
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* Reveal animation (activated by JS) */
.step-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: stepFadeUp 600ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Desktop hover polish */
@media (hover: hover) and (pointer: fine) {
  .step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.10);
    border-color: rgba(var(--color-secondary-blue-rgb), 0.45);
  }
}

/* Dark mode compatibility */
body.dark .step-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: none;
}
body.dark .step-title { color: #f8fafc; }
body.dark .step-desc { color: #cbd5f5; }

@media (prefers-reduced-motion: reduce) {
  .step-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@keyframes stepFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Guided tour (registration) ===== */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 80;
}

.tour-tooltip {
  position: fixed;
  max-width: 320px;
  width: calc(100% - 2rem);
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  z-index: 90;
  height: auto;
  overflow: visible;
  transition: top 150ms ease, left 150ms ease;
}

.tour-tooltip h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.tour-tooltip p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.tour-body {
  max-height: 40vh;
  overflow-y: auto;
}

/* Registration content polish */
.registration-details {
  position: relative;
  overflow: hidden;
}

.registration-details::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--color-secondary-blue-rgb), 0.2), transparent 65%);
  pointer-events: none;
}

.registration-details h2 {
  color: var(--ink);
}

.registration-details .rounded-xl {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .registration-details .rounded-xl:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  }
}

.registration-details .text-sm.uppercase {
  letter-spacing: 0.14em;
}

.registration-details ul {
  margin: 0;
  padding-left: 1rem;
}

body.dark .registration-details::before {
  background: radial-gradient(circle, rgba(var(--color-secondary-blue-rgb), 0.2), transparent 65%);
}

body.dark .registration-details .rounded-xl {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: none;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tour-highlight {
  position: relative;
  z-index: 85;
  border-radius: 0.9rem;
  box-shadow: 0 0 0 3px rgba(var(--color-secondary-blue-rgb), 0.45), 0 14px 30px rgba(15, 23, 42, 0.18);
}

body.dark .tour-tooltip {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5);
}

body.dark .tour-tooltip p {
  color: #cbd5f5;
}

@media (prefers-reduced-motion: reduce) {
  .tour-overlay,
  .tour-tooltip {
    transition: none !important;
  }
}
.site-footer {
  margin-top: auto;
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.site-footer .footer-content {
  max-width: 1200px;
  padding: 40px;
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .site-footer .footer-content {
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    padding: 64px;
  }
}

.site-footer h3 {
  font-size: 22px;
  font-weight: 700;
}

.site-footer p {
  font-size: 16px;
  line-height: 1.7;
}

.site-footer .footer-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-secondary-gold) !important;
}

.site-footer .text-white\/70,
.site-footer .text-white\/60 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-secondary-gold-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:focus-visible {
  color: var(--color-secondary-gold-hover);
  outline: 2px solid rgba(var(--color-secondary-gold-rgb), 0.7);
  outline-offset: 2px;
}

.footer-legal {
  background: #ffffff;
  color: var(--ink);
  border-top: 1px solid rgba(var(--color-secondary-blue-rgb), 0.22);
}

.footer-legal .footer-bottom {
  max-width: 1200px;
  padding: 14px 40px;
  font-size: 13px;
}

.footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-text {
  margin: 0;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.footer-legal-branding {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.5rem, 2.4vw, 2rem);
}

.footer-legal-partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
}

.footer-legal-partner-label {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(var(--color-primary-rgb), 0.72);
}

.footer-legal-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.footer-legal-logo-qitc {
  height: 56px;
  max-height: 60px;
  max-width: min(220px, 24vw);
}

.footer-legal-logo-hmc {
  height: 44px;
  max-height: 48px;
  max-width: min(190px, 20vw);
}

@media (min-width: 1024px) {
  .footer-legal .footer-bottom {
    padding: 14px 64px;
  }
}

@media (max-width: 640px) {
  .footer-legal .footer-bottom {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .footer-legal-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.9rem;
  }

  .footer-legal-branding {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.95rem;
  }

  .footer-legal-partner {
    align-items: center;
  }

  .footer-legal-partner-label {
    text-align: center;
  }

  .footer-legal-logo-qitc {
    height: 52px;
    max-height: 56px;
    max-width: 72vw;
  }

  .footer-legal-logo-hmc {
    height: 40px;
    max-height: 44px;
    max-width: 68vw;
  }
}


/* Contact form dark mode inputs */
body.dark input,
body.dark textarea,
body.dark select {
  background-color: rgba(15, 23, 42, 0.9) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}
body.dark input::placeholder,
body.dark textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}


/* =========================
   Dark mode – form visibility fix
   (Contact / any forms)
   ========================= */

/* Make labels readable */
body.dark label {
  color: #e2e8f0 !important;
}

/* Inputs / textarea / select */
body.dark input,
body.dark textarea,
body.dark select {
  background-color: rgba(15, 23, 42, 0.92) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

/* Placeholder contrast */
body.dark input::placeholder,
body.dark textarea::placeholder {
  color: rgba(226, 232, 240, 0.65) !important; /* brighter than before */
}

/* Select arrow visibility (Chrome/Edge) */
body.dark select {
  color-scheme: dark;
}

/* Focus ring visibility */
body.dark input:focus,
body.dark textarea:focus,
body.dark select:focus {
  outline: none;
  border-color: rgba(var(--color-secondary-blue-rgb), 0.8) !important;
  box-shadow: 0 0 0 3px rgba(var(--color-secondary-blue-rgb), 0.28) !important;
}

/* Optional: small background for “hint” text under fields */
body.dark .text-slate-500 {
  color: rgba(226, 232, 240, 0.55) !important;
}



.nav-link.active {
  color: var(--color-primary);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
