/* ============================================================
   Vinayaka Chavithi · Glass OS + TRUE RLC logo colors
   Extracted from logo: Bright Blue #0070C0 · Gold #F8C000 · Red #F80000
   Light, bright glass surfaces — not dark/dull
   ============================================================ */

.festival-theme {
  --rlc-blue: #0070c0;
  --rlc-blue-soft: #3aa0e0;
  --rlc-blue-pale: #e8f4fc;
  --rlc-gold: #f8c000;
  --rlc-gold-soft: #ffd84d;
  --rlc-gold-pale: #fff8e0;
  --rlc-red: #f80000;
  --rlc-red-soft: #ff4d4d;
  --rlc-cream: #fffdf8;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --ink: #0a3a5c;
  --muted: #5a7a90;
  background: transparent !important;
}

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

/* Light bright glass atmosphere */
.glass-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 5% -5%, rgba(248, 192, 0, 0.45), transparent 52%),
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(0, 112, 192, 0.28), transparent 50%),
    radial-gradient(ellipse 70% 45% at 40% 100%, rgba(248, 0, 0, 0.16), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #eef7ff 40%, #fff9e8 100%);
}

.glass-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.55;
  will-change: transform;
}

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

.glass-bg .orb-2 {
  width: min(44vw, 400px);
  height: min(44vw, 400px);
  right: -8%;
  top: 5%;
  background: radial-gradient(circle, #5eb8f0 0%, #0070c0 50%, transparent 70%);
  animation: orbFloatB 22s ease-in-out infinite;
}

.glass-bg .orb-3 {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  left: 30%;
  bottom: -14%;
  background: radial-gradient(circle, #ff6b6b 0%, #f80000 45%, transparent 70%);
  animation: orbFloatC 20s ease-in-out infinite;
}

.glass-bg .orb-4 {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  right: 20%;
  bottom: 15%;
  background: radial-gradient(circle, #ffe07a 0%, #f8c000 55%, 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.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 28%, black 18%, transparent 75%);
  opacity: 0.45;
  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;
  }
}

/* Bright 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: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    0 18px 48px rgba(0, 112, 192, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
}

/* Top bar — bright blue glass */
.festival-topbar {
  background: rgba(0, 112, 192, 0.78) !important;
  border-bottom: 2px solid rgba(248, 192, 0, 0.7) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 10px 36px rgba(0, 112, 192, 0.22) !important;
}

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

.festival-theme .pill {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

.festival-theme .pill.gold {
  background: linear-gradient(135deg, #ffd84d, #f8c000) !important;
  color: #0a3a5c !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(248, 192, 0, 0.4);
}

/* Hero — festive glass with Lord Ganesh */
.fest-hero {
  padding: 24px 0 28px;
}

.fest-hero-inner {
  position: relative;
  padding: 22px;
  border-radius: 32px;
  background:
    linear-gradient(
      145deg,
      rgba(0, 112, 192, 0.88),
      rgba(0, 140, 220, 0.72) 40%,
      rgba(248, 192, 0, 0.58) 72%,
      rgba(248, 0, 0, 0.42)
    ) !important;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 28px 70px rgba(0, 112, 192, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(28px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(170%) !important;
  overflow: hidden;
}

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

.fest-hero-inner::before {
  width: 240px;
  height: 240px;
  left: -50px;
  top: -70px;
  background: rgba(255, 216, 77, 0.55);
}

.fest-hero-inner::after {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: -90px;
  background: rgba(255, 80, 80, 0.35);
}

.fest-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.ganesh-panel {
  position: relative;
  justify-self: center;
  width: min(280px, 72vw);
}

.ganesh-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(248, 192, 0, 0.55), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(0, 112, 192, 0.35), transparent 50%),
    radial-gradient(circle at 70% 75%, rgba(248, 0, 0, 0.28), transparent 48%);
  filter: blur(8px);
  z-index: 0;
  animation: ganeshGlow 4.5s ease-in-out infinite;
}

@keyframes ganeshGlow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.ganesh-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 18px 40px rgba(0, 60, 120, 0.28),
    0 0 0 6px rgba(248, 192, 0, 0.35);
  background: linear-gradient(160deg, #0070c0, #f8c000 55%, #f80000);
}

.fest-hero-copy {
  text-align: center;
}

.fest-kicker {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #fff3b0;
}

.fest-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 4.8vw, 2.55rem);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 60, 120, 0.25);
}

.fest-name-te {
  margin: 8px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff8d0;
}

.fest-tagline {
  margin: 0 auto 8px;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.95);
}

.fest-tagline.te {
  margin-bottom: 18px;
  color: rgba(255, 243, 176, 0.95);
  font-size: 0.92rem;
}

.fest-timer-wrap {
  margin-bottom: 18px;
}

.fest-timer {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 5.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  color: #fffef0;
  text-shadow: 0 1px 8px rgba(0, 80, 140, 0.3);
}

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

@media (min-width: 860px) {
  .fest-hero-grid {
    grid-template-columns: 280px 1fr;
    gap: 28px;
    text-align: left;
  }

  .fest-hero-copy {
    text-align: left;
  }

  .fest-tagline {
    margin-left: 0;
  }

  .ganesh-panel {
    width: 280px;
    justify-self: start;
  }
}

/* Faculty spotlight */
.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(248, 192, 0, 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(0, 112, 192, 0.22), transparent 70%);
  pointer-events: none;
}

.faculty-photo-ring {
  width: min(200px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #f8c000, #f80000, #0070c0, #f8c000);
  box-shadow:
    0 20px 50px rgba(0, 112, 192, 0.25),
    0 0 0 8px rgba(255, 255, 255, 0.55);
  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(248, 192, 0, 0.25), rgba(0, 112, 192, 0.12));
  border: 1px solid rgba(0, 112, 192, 0.3);
  color: #0070c0;
  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, #0070c0, #f80000, #f8c000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faculty-spotlight-bio {
  margin: 0;
  font-size: 0.92rem;
  color: #5a7a90;
  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;
  color: #0070c0;
}

.festival-theme .te-inline {
  background: linear-gradient(90deg, #f80000, #f8c000) !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-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(0, 112, 192, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.course-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0070c0, #f8c000 55%, #f80000);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

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

.course-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #0070c0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 192, 0, 0.5);
  backdrop-filter: blur(10px);
}

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

.course-body h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0a3a5c;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

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

.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, #f80000, #0070c0);
  -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, #f8c000, #f80000);
  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, #0070c0, #f80000);
  -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: #0070c0;
  background: rgba(248, 192, 0, 0.2);
  border: 1px solid rgba(248, 192, 0, 0.45);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

/* Buttons — bright logo tricolor */
.festival-theme .btn-primary {
  background: linear-gradient(135deg, #f8c000, #f80000 50%, #0070c0) !important;
  box-shadow: 0 14px 32px rgba(248, 0, 0, 0.25) !important;
  border-radius: 16px !important;
  color: #fff !important;
}

.festival-theme .btn-wa {
  background: linear-gradient(135deg, #25d366, #1ebe57) !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28) !important;
}

.festival-theme .btn-outline {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(0, 112, 192, 0.2) !important;
  color: #0070c0 !important;
  backdrop-filter: blur(10px);
}

.festival-theme .app-banner-cta {
  background: linear-gradient(135deg, #0070c0, #f80000) !important;
}

.festival-theme .sale-popup-badge {
  background: linear-gradient(135deg, #f8c000, #f80000, #0070c0) !important;
}

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

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

.festival-theme .float-wa {
  background: linear-gradient(145deg, #25d366, #1ebe57) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.festival-theme .wizard-dot.active {
  background: linear-gradient(135deg, #f8c000, #0070c0) !important;
  box-shadow: 0 0 0 4px rgba(0, 112, 192, 0.18) !important;
}

.festival-theme .wizard-dot.done {
  background: #0070c0 !important;
}
