/* ============================================================
   Vinayaka Chavithi · Glass OS theme
   Frosted glass + ethnic festival palette (marigold / rose / teal / indigo)
   ============================================================ */

.festival-theme {
  --g-indigo: #2b1b6f;
  --g-violet: #7c3aed;
  --g-rose: #e11d48;
  --g-marigold: #f59e0b;
  --g-amber: #fbbf24;
  --g-teal: #14b8a6;
  --g-cream: #fff7ed;
  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
  --ink: #1e1b4b;
  --muted: #64748b;
  background: transparent !important;
}

.festival-theme body,
body.festival-theme {
  color: var(--ink);
}

/* Animated glass atmosphere */
.glass-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(245, 158, 11, 0.35), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(124, 58, 237, 0.28), transparent 48%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(225, 29, 72, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(20, 184, 166, 0.2), transparent 50%),
    linear-gradient(160deg, #fff7ed 0%, #f5f3ff 45%, #fff1f2 100%);
}

.glass-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.65;
  mix-blend-mode: multiply;
  will-change: transform;
}

.glass-bg .orb-1 {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  left: -8%;
  top: 12%;
  background: radial-gradient(circle, #fbbf24 0%, #f97316 50%, transparent 70%);
  animation: orbFloatA 18s ease-in-out infinite;
}

.glass-bg .orb-2 {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  right: -6%;
  top: 8%;
  background: radial-gradient(circle, #a78bfa 0%, #7c3aed 45%, transparent 70%);
  animation: orbFloatB 22s ease-in-out infinite;
}

.glass-bg .orb-3 {
  width: min(46vw, 400px);
  height: min(46vw, 400px);
  left: 25%;
  bottom: -12%;
  background: radial-gradient(circle, #fb7185 0%, #e11d48 40%, transparent 70%);
  animation: orbFloatC 20s ease-in-out infinite;
}

.glass-bg .orb-4 {
  width: min(34vw, 300px);
  height: min(34vw, 300px);
  right: 18%;
  bottom: 18%;
  background: radial-gradient(circle, #5eead4 0%, #14b8a6 50%, transparent 70%);
  animation: orbFloatA 26s ease-in-out infinite reverse;
}

.glass-bg .mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, black 15%, transparent 72%);
  opacity: 0.35;
  animation: meshDrift 28s linear infinite;
}

@keyframes orbFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 6%) scale(1.08); }
  66% { transform: translate(-4%, 3%) scale(0.96); }
}

@keyframes orbFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7%, 9%) scale(1.1); }
}

@keyframes orbFloatC {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(6%, -5%) rotate(8deg); }
}

@keyframes meshDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 44px 44px, 44px 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-bg .orb,
  .glass-bg .mesh {
    animation: none !important;
  }
}

/* Glass surfaces */
.festival-theme .card,
.festival-theme .course-card,
.festival-theme .faculty-spotlight-card,
.festival-theme .trust-item,
.festival-theme .faq details,
.festival-theme .app-banner,
.festival-theme .sale-popup-card,
.festival-theme .pay-popup-panel,
.festival-theme .bottombar,
.festival-theme .form-next-card {
  background: var(--glass-strong) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow:
    0 20px 50px rgba(43, 27, 111, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
}

/* Top bar — translucent glass indigo */
.festival-topbar {
  background: rgba(43, 27, 111, 0.55) !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15) !important;
}

.festival-topbar .brand-text {
  background: linear-gradient(90deg, #fbbf24, #fb7185) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.festival-theme .pill {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.festival-theme .pill.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #1e1b4b !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* Hero — glass prism card */
.fest-hero {
  padding: 24px 0 28px;
  text-align: center;
}

.fest-hero-inner {
  position: relative;
  padding: 32px 22px;
  border-radius: 32px;
  background:
    linear-gradient(
      145deg,
      rgba(43, 27, 111, 0.55),
      rgba(124, 58, 237, 0.35) 45%,
      rgba(225, 29, 72, 0.28)
    ) !important;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    0 30px 80px rgba(43, 27, 111, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
  overflow: hidden;
}

.fest-hero-inner::before,
.fest-hero-inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.fest-hero-inner::before {
  width: 220px;
  height: 220px;
  left: -40px;
  top: -60px;
  background: rgba(251, 191, 36, 0.45);
}

.fest-hero-inner::after {
  width: 260px;
  height: 260px;
  right: -50px;
  bottom: -80px;
  background: rgba(20, 184, 166, 0.35);
}

.fest-kicker {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #fde68a;
  position: relative;
  z-index: 1;
}

.fest-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.fest-name-te {
  margin: 8px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fde68a, #fb7185, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}

.fest-tagline {
  margin: 0 auto 8px;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.fest-tagline.te {
  margin-bottom: 18px;
  color: rgba(253, 230, 138, 0.85);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.fest-timer-wrap {
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.fest-timer {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  color: #fde68a;
}

.fest-timer-label {
  margin: 8px 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.fest-hero .btn-primary {
  position: relative;
  z-index: 1;
}

/* Faculty spotlight — highlighted profile */
.faculty-spotlight {
  padding: 8px 0 28px;
}

.faculty-spotlight-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  justify-items: center;
  text-align: center;
  border-radius: 32px !important;
  padding: 22px 18px 24px !important;
  position: relative;
  overflow: hidden;
}

.faculty-spotlight-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -80px;
  right: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 70%);
  pointer-events: none;
}

.faculty-spotlight-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
  pointer-events: none;
}

.faculty-photo-ring {
  width: min(200px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #f59e0b, #e11d48, #7c3aed, #14b8a6);
  box-shadow:
    0 20px 50px rgba(225, 29, 72, 0.28),
    0 0 0 8px rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 1;
}

.faculty-spotlight-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #fff;
}

.faculty-spotlight-copy {
  position: relative;
  z-index: 1;
  max-width: 52ch;
}

.faculty-chip {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #2b1b6f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.faculty-spotlight-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #7c3aed, #e11d48, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faculty-spotlight-bio {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 800px) {
  .faculty-spotlight-card {
    grid-template-columns: 220px 1fr;
    text-align: left;
    justify-items: stretch;
    align-items: center;
    padding: 26px 28px !important;
    gap: 24px;
  }

  .faculty-photo-ring {
    width: 200px;
  }
}

.section-title.center,
.section-sub.center {
  text-align: center;
}

.festival-theme .section-title {
  letter-spacing: -0.02em;
}

.festival-theme .te-inline {
  background: linear-gradient(90deg, #e11d48, #7c3aed) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.section-sub {
  margin: -4px auto 20px;
  max-width: 48ch;
  color: var(--muted);
  font-weight: 600;
}

/* Course cards — glass tiles */
.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .course-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .course-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.course-card {
  border-radius: 26px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 60px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.course-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2b1b6f, #7c3aed 40%, #e11d48 75%, #f59e0b);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  position: relative;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #2b1b6f;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.course-body {
  padding: 14px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.course-body h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.course-te {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e11d48;
}

.course-blurb {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.course-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.course-price-now {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(120deg, #e11d48, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.course-price-was {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 700;
}

.course-off {
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.course-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.trust-strip {
  padding: 8px 0 24px;
}

.trust-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.trust-item {
  border-radius: 20px !important;
  padding: 16px !important;
}

.trust-item strong {
  display: block;
  background: linear-gradient(90deg, #7c3aed, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.selected-course-chip {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #2b1b6f;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

/* Buttons — Glass OS colorful */
.festival-theme .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #e11d48 50%, #7c3aed) !important;
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.28) !important;
  border-radius: 16px !important;
}

.festival-theme .btn-wa {
  background: linear-gradient(135deg, #34d399, #14b8a6) !important;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.28) !important;
}

.festival-theme .btn-outline {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
}

.festival-theme .app-banner-cta {
  background: linear-gradient(135deg, #7c3aed, #e11d48) !important;
}

.festival-theme .sale-popup-badge {
  background: linear-gradient(135deg, #f59e0b, #e11d48, #7c3aed) !important;
}

.festival-theme .sale-popup-timer {
  background: linear-gradient(120deg, #e11d48, #f59e0b) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.festival-theme .pay-popup-amount {
  background: linear-gradient(120deg, #e11d48, #7c3aed) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.festival-theme .float-wa {
  background: linear-gradient(145deg, #34d399, #14b8a6) !important;
  border: 2px solid rgba(255, 255, 255, 0.75) !important;
}

.festival-theme .wizard-dot.active {
  background: linear-gradient(135deg, #f59e0b, #7c3aed) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18) !important;
}
