/* ==========================================================================
   In Loving Memory: Shri Man Mohan Mahajan - Memorial & Uthala Invitation
   Design System & Styling
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-page: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F5EFEB;
  --bg-dark-card: #1C1816;
  
  --text-main: #231E1B;
  --text-secondary: #5C524C;
  --text-muted: #887E76;
  --text-inverse: #FFFFFF;
  
  /* Sacred Gold Palette */
  --gold-primary: #C59B27;
  --gold-hover: #AA821A;
  --gold-dark: #7E5F14;
  --gold-light: #F7E7BA;
  --gold-ultralight: #FCF8EE;
  --gold-gradient: linear-gradient(135deg, #DFBA58 0%, #F5E29E 35%, #C29623 70%, #9E7412 100%);
  --gold-border: rgba(197, 155, 39, 0.35);
  --gold-border-glow: rgba(223, 186, 88, 0.6);

  /* Accents */
  --live-red: #E53935;
  --live-red-glow: rgba(229, 57, 53, 0.4);
  --sacred-maroon: #8C2D39;
  --whatsapp-green: #25D366;
  --whatsapp-dark: #1EBE5D;

  /* Typography */
  --font-heading: 'Cinzel', 'Playfair Display', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-devanagari: 'Noto Serif Devanagari', 'Rozha One', serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 8px rgba(35, 30, 27, 0.05);
  --shadow-md: 0 8px 24px rgba(35, 30, 27, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 30, 27, 0.12);
  --shadow-gold: 0 8px 30px rgba(197, 155, 39, 0.2);

  /* Animation Timings & Curves (from Emil Kowalski design principles) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --transition-fast: 160ms var(--ease-out);
  --transition-normal: 250ms var(--ease-out);
  --transition-smooth: 400ms var(--ease-out);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ----------------- Reset & Base ----------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(247, 231, 186, 0.35) 0%, transparent 60%),
    url('assets/bg_marble.jpg');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-blend-mode: soft-light;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Canvas for background falling petals */
#petalsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ----------------- Top Sticky Navigation ----------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.om-symbol {
  font-family: var(--font-devanagari);
  font-size: 1.5rem;
  color: var(--gold-primary);
  font-weight: 700;
  line-height: 1;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  color: var(--text-main);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.nav-btn:active {
  transform: scale(0.97);
}

.nav-btn:hover {
  background: var(--gold-ultralight);
  border-color: var(--gold-primary);
}

/* Audio button state toggle */
.audio-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.audio-playing {
  display: none;
}
.audio-muted {
  display: block;
}
.is-playing .audio-playing {
  display: block;
}
.is-playing .audio-muted {
  display: none;
}
.is-playing.nav-btn {
  background: #E8F5E9;
  border-color: #4CAF50;
  color: #2E7D32;
}

.live-nav-btn {
  background: #FFEBEE;
  border-color: #FFCDD2;
  color: var(--live-red);
  font-weight: 600;
}
.live-nav-btn:hover {
  background: #FFCDD2;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--live-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(229, 57, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}

/* ----------------- Layout Container ----------------- */
.page-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  position: relative;
  z-index: 2;
}

/* ----------------- Memorial Hero Section ----------------- */
.memorial-hero {
  text-align: center;
  padding: 2rem 1rem 3rem;
  position: relative;
}

.spiritual-heading {
  margin-bottom: 2rem;
}

.om-shanti-text {
  font-family: var(--font-devanagari);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 10px rgba(197, 155, 39, 0.2);
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem auto 0.75rem;
  max-width: 260px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.divider-lotus {
  font-size: 1.1rem;
  color: var(--gold-primary);
}

.spiritual-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* Portrait with Golden Frame */
.portrait-container {
  position: relative;
  display: inline-block;
  margin: 0.5rem auto 1.75rem;
}

.portrait-glow-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(235, 203, 116, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: haloBreathe 4s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
  0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

.portrait-garland-frame {
  position: relative;
  z-index: 2;
  width: 230px;
  height: 230px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 6px;
  background: var(--gold-gradient);
  box-shadow: 0 10px 30px rgba(162, 122, 28, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: transform var(--transition-smooth);
}

.portrait-garland-frame:hover {
  transform: scale(1.02);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid #FFFDF9;
}

/* Diya Glow beneath portrait */
.diya-glow-container {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.flame-animation {
  width: 14px;
  height: 22px;
  background: radial-gradient(ellipse at bottom, #FFF7C2 0%, #FFB300 45%, #FF5722 85%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 14px 4px rgba(255, 179, 0, 0.5);
  animation: flameFlicker 1.8s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-1deg); opacity: 0.95; }
  50% { transform: scale(1.08, 0.95) rotate(1deg); opacity: 1; }
  100% { transform: scale(0.96, 1.05) rotate(-0.5deg); opacity: 0.9; }
}

.diya-caption {
  font-family: var(--font-devanagari);
  font-size: 0.82rem;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
}

/* Person Name & Dates */
.person-name {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.lifespan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.invitation-humble-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

/* ----------------- Buttons System ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #211905;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--gold-ultralight);
  border-color: var(--gold-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--gold-primary);
}
.btn-outline:hover {
  background: var(--gold-ultralight);
}

.btn-gold {
  background: var(--gold-primary);
  color: #FFFFFF;
}
.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.pulse-btn {
  position: relative;
}
.pulse-btn::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: calc(var(--radius-md) + 3px);
  border: 2px solid var(--gold-primary);
  opacity: 0;
  animation: btnPulse 2.4s infinite;
}

@keyframes btnPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.05); opacity: 0; }
  100% { transform: scale(1.05); opacity: 0; }
}

/* ----------------- Section Common ----------------- */
.section {
  margin-top: 3.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: #FFEBEE;
  color: var(--live-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 auto 0.75rem;
  border: 1px solid #FFCDD2;
}

.live-dot-animate {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--live-red);
  animation: livePulse 1.8s infinite;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.section-script-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-dark);
  display: block;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0.4rem auto 0;
}

/* ----------------- Live Streaming Section ----------------- */
.live-stream-section {
  scroll-margin-top: 80px;
}

.live-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.live-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stream-status-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.status-indicator-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: #FFF8E1;
  color: #B78103;
  border: 1px solid #FFE082;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFA000;
}

.status-indicator-chip.is-live {
  background: #FFEBEE;
  color: var(--live-red);
  border-color: #FFCDD2;
}
.status-indicator-chip.is-live .status-dot {
  background: var(--live-red);
  animation: livePulse 1.8s infinite;
}

.stream-schedule-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.btn-text-sm {
  background: transparent;
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--gold-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}
.btn-text-sm:hover {
  background: var(--gold-ultralight);
}

/* Countdown Clock */
.countdown-container {
  margin: 1.25rem 0;
  background: var(--gold-ultralight);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.countdown-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  background: var(--bg-card);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(197, 155, 39, 0.2);
}

.timer-number {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.timer-unit {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.timer-divider {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
}

/* Video Player Frame */
.video-container {
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Stream Placeholder Screen */
.stream-placeholder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #261F1A 0%, #110E0C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  padding: 1.5rem;
  z-index: 5;
  transition: opacity var(--transition-normal);
}

.stream-placeholder-overlay.hidden {
  display: none;
}

.placeholder-content {
  max-width: 500px;
}

.sacred-circle-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.om-gold {
  font-family: var(--font-devanagari);
  font-size: 1.8rem;
  color: var(--gold-light);
  font-weight: 700;
}

.placeholder-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #FFFDF9;
}

.placeholder-content p {
  font-size: 0.95rem;
  color: #D6CEC7;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-gold {
  background: var(--gold-primary);
  color: #FFFFFF;
  border: none;
}
.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Stream Toolbar */
.stream-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.stream-url-display {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 320px;
}

.url-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.url-copy-box {
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--bg-card-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
}

.url-copy-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
}

.btn-gold-outline {
  background: #FFFFFF;
  border: 1px solid var(--gold-primary);
  color: var(--gold-dark);
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.btn-gold-outline:hover {
  background: var(--gold-ultralight);
}

.stream-external-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-external {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.btn-external:active {
  transform: scale(0.97);
}

.yt-btn {
  background: #FF0000;
  color: #FFFFFF;
}
.yt-btn:hover {
  background: #D90000;
}

.wa-btn {
  background: var(--whatsapp-green);
  color: #FFFFFF;
}
.wa-btn:hover {
  background: var(--whatsapp-dark);
}

/* Stream Help Card */
.stream-help-card {
  margin-top: 1.25rem;
  background: #F8F9FA;
  border: 1px solid #E9ECEF;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.help-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ----------------- Ceremony Details Grid ----------------- */
.ceremony-section {
  scroll-margin-top: 80px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-card-featured {
  border: 2px solid var(--gold-primary);
  background: linear-gradient(180deg, #FFFDF9 0%, #FAF5ED 100%);
  box-shadow: var(--shadow-gold);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gold-gradient);
  color: #211905;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

.event-card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.event-tag {
  display: inline-block;
  font-family: var(--font-devanagari);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.tag-sansakar {
  background: #EFEBE9;
  color: #4E342E;
}

.tag-uthala {
  background: #FFF8E1;
  color: #B78103;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.event-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gold-ultralight);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-icon svg {
  width: 20px;
  height: 20px;
}

.event-info {
  display: flex;
  flex-direction: column;
}

.event-info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.event-info-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

.highlight-gold {
  color: var(--gold-dark);
  font-weight: 700;
}

.event-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-card-action, .btn-card-primary, .btn-card-secondary {
  flex: 1 1 calc(50% - 0.6rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-action {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  color: var(--text-main);
}
.btn-card-action:hover {
  background: var(--gold-ultralight);
  border-color: var(--gold-primary);
}

.btn-card-primary {
  background: var(--gold-primary);
  color: #FFFFFF;
  border: 1px solid var(--gold-primary);
}
.btn-card-primary:hover {
  background: var(--gold-hover);
}

.btn-card-secondary {
  background: transparent;
  border: 1px dashed var(--gold-primary);
  color: var(--gold-dark);
}
.btn-card-secondary:hover {
  background: var(--gold-ultralight);
}

/* ----------------- Virtual Tributes & Remembrance ----------------- */
.tribute-actions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.tribute-action-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.tribute-action-card:hover {
  transform: translateY(-3px);
}

.action-card-graphic {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.flower-graphic {
  background: radial-gradient(circle, #FFF3E0 0%, #FFE0B2 100%);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

.flower-icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.tribute-action-card:hover .flower-icon-img {
  transform: rotate(15deg) scale(1.08);
}

.diya-graphic {
  background: #1C1816;
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
  overflow: hidden;
}

.diya-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}
.tribute-action-card:hover .diya-icon-img {
  transform: scale(1.08);
}

.tribute-action-card h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.tribute-action-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.tribute-count {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
}

/* Condolence Form & Messages Wall */
.guestbook-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.guestbook-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  text-align: center;
}

.condolence-form {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #D6CEC7;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #FFFDF9;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-submit-btn {
  width: 100%;
}

/* Tributes Feed */
.tributes-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tribute-item {
  background: var(--bg-card-subtle);
  border: 1px solid rgba(197, 155, 39, 0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: relative;
  transition: transform var(--transition-fast);
}
.tribute-item:hover {
  transform: translateY(-2px);
}

.tribute-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.tribute-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.tribute-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tribute-relation {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.tribute-message {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

/* ----------------- Family Members Grid (शोकाकुल परिवार) ----------------- */
.family-section {
  text-align: center;
}

.family-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.family-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.family-divider {
  width: 1px;
  height: 80%;
  background: linear-gradient(180deg, transparent, var(--gold-border), transparent);
}

.family-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.family-member-item {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.3;
}

.family-member-item.highlight-elder {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.family-member-item.generation-next {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ----------------- Share Card Section ----------------- */
.share-card-section {
  margin-top: 3.5rem;
}

.share-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

.share-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.share-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #FFFFFF;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

/* ----------------- Footer ----------------- */
.page-footer {
  margin-top: 5rem;
  padding: 3rem 1.25rem 2.5rem;
  background: #1C1816;
  color: #FFFDF9;
  text-align: center;
  border-top: 3px solid var(--gold-primary);
  position: relative;
  z-index: 2;
}

.om-footer-symbol {
  font-family: var(--font-devanagari);
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.shanti-prayer {
  font-family: var(--font-devanagari);
  font-size: 0.95rem;
  color: #D6CEC7;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #9C948D;
  line-height: 1.6;
}

/* ----------------- Modal Windows ----------------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 14, 12, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gold-border);
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.modal.is-active .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color var(--transition-fast);
}
.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-body.text-center {
  text-align: center;
}

.modal-card-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-border);
}

.modal-info-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card-subtle);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ----------------- Toast Notifications ----------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #231E1B;
  color: #FFFDF9;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 4px solid var(--gold-primary);
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ----------------- Responsive Adjustments (Desktop & Mobile Parity) ----------------- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Top Sticky Bar: Two-tier responsive layout so EVERYTHING from desktop remains visible */
  .top-nav {
    padding: 0.4rem 0;
  }

  .nav-container {
    padding: 0.35rem 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-brand {
    gap: 0.4rem;
  }

  .nav-title {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-block !important; /* Visible on mobile */
  }

  .nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
  }

  .nav-btn {
    flex: 1 1 calc(50% - 0.35rem);
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
    justify-content: center;
    display: inline-flex !important;
  }

  .audio-btn-label {
    display: inline !important; /* Visible on mobile */
  }

  .hide-mobile {
    display: inline !important; /* Visible on mobile */
  }

  .page-container {
    padding: 1rem 0.85rem 3.5rem;
    overflow-x: hidden;
  }

  .om-shanti-text {
    font-size: 2.3rem;
  }

  .person-name {
    font-size: clamp(1.6rem, 6.5vw, 2.3rem);
    padding: 0 0.25rem;
    word-break: break-word;
  }

  .lifespan-badge {
    font-size: 0.82rem;
    padding: 0.3rem 0.75rem;
    max-width: 98%;
  }

  .invitation-humble-text {
    font-size: 1.05rem;
    padding: 0 0.25rem;
  }

  .portrait-garland-frame {
    width: 175px;
    height: 175px;
  }

  .portrait-glow-halo {
    width: 220px;
    height: 220px;
    max-width: 85vw;
    max-height: 85vw;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }

  .countdown-timer {
    gap: 0.35rem;
  }

  .timer-segment {
    min-width: 50px;
    padding: 0.4rem 0.35rem;
  }

  .timer-number {
    font-size: 1.35rem;
  }

  .timer-unit {
    font-size: 0.68rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .event-card {
    padding: 1.4rem 1.15rem;
  }

  .tribute-actions-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* शोकाकुल परिवार on mobile: graceful sacred divider */
  .family-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .family-divider {
    display: block !important;
    width: 75%;
    height: 1px;
    margin: 1.25rem auto;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    position: relative;
  }

  .family-divider::after {
    content: '🪷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    padding: 0 0.6rem;
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .live-card {
    padding: 1.15rem 1rem;
  }

  .live-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .stream-status-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .stream-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .stream-url-display {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .url-copy-box {
    width: 100%;
  }

  .stream-external-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
  }

  .stream-external-actions .btn-external {
    width: 100%;
    justify-content: center;
  }

  .share-box {
    flex-direction: column;
    text-align: center;
    padding: 1.6rem 1.15rem;
  }

  .share-buttons {
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }

  .share-buttons .btn {
    width: 100%;
  }

  .guestbook-card {
    padding: 1.4rem 1.15rem;
  }

  .family-card {
    padding: 1.85rem 1.15rem;
  }

  .meeting-credentials-card {
    padding: 1.15rem 1rem;
  }

  .meeting-details-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .meeting-action-row {
    width: 100%;
    flex-direction: column;
  }

  .meeting-action-row .btn {
    width: 100%;
  }

  .credentials-box {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cred-item {
    justify-content: space-between;
  }

  /* Mobile Gate Modal: fully fits screen without any scrolling or cutoff */
  .gate-modal {
    padding: 0.5rem;
  }
  .gate-dialog {
    padding: 1.15rem 1.15rem 1rem;
    max-height: 94vh;
    border-radius: var(--radius-md);
  }
  .om-gold-large {
    font-size: 1.6rem;
  }
  .gate-title {
    font-size: 1.25rem;
  }
  .gate-portrait-thumb {
    width: 60px;
    height: 60px;
    margin: 0.35rem auto 0.35rem;
  }
  .gate-instruction {
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.65rem;
  }
  .gate-form .form-group {
    margin-bottom: 0.55rem;
  }
  .gate-form .form-control {
    padding: 0.48rem 0.65rem;
    font-size: 0.88rem;
  }
  .gate-submit-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
    margin-top: 0.4rem;
  }
}


/* ==========================================================================
   Guest Registration Gate Modal & Zoom Meeting Styling
   ========================================================================== */

/* Top Greeting Chip */
.guest-greeting-chip {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--gold-ultralight);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--gold-dark);
}

.guest-greeting-chip.active {
  display: inline-flex;
}

.pranam-icon {
  font-size: 0.95rem;
}

/* Gate Locked Page Blur */
body.gate-locked .page-container {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* Gate Modal */
.gate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
}

.gate-modal.active {
  display: flex;
}

.gate-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gate-dialog {
  position: relative;
  z-index: 2;
  background: #FFFDF9;
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(197, 155, 39, 0.25);
  text-align: center;
  padding: 1.35rem 1.4rem 1.25rem;
  margin: auto;
  animation: modalEnter 0.35s var(--ease-out);
}

@keyframes modalEnter {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.om-gold-large {
  font-family: var(--font-devanagari);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.gate-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  margin: 0.2rem 0;
}

.gate-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.gate-portrait-thumb {
  width: 68px;
  height: 68px;
  margin: 0.45rem auto 0.4rem;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--gold-gradient);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.gate-portrait-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.gate-instruction {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  background: var(--gold-ultralight);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--gold-border);
}

.gate-form {
  text-align: left;
}

.gate-form .form-group {
  margin-bottom: 0.65rem;
}

.gate-form .form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.gate-form .form-control {
  width: 100%;
  padding: 0.52rem 0.75rem;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  background: #FFFFFF;
}

.gate-submit-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gate-error-box {
  background: #FFEBEE;
  color: var(--live-red);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  border: 1px solid #FFCDD2;
}

/* Microsoft Teams & Interactive Meeting Card in Live Section */
.meeting-credentials-card {
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #F5F6FC 0%, #ECEEF9 100%);
  border: 1px solid #D5D8ED;
  border-left: 4px solid #464EB8;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.meeting-header {
  margin-bottom: 1rem;
}

.meeting-badge {
  display: inline-block;
  background: #E8EAF6;
  color: #3F51B5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
  border: 1px solid #C5CAE9;
}

.meeting-header h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #283593;
}

.meeting-header p {
  font-size: 0.88rem;
  color: #5C6BC0;
}

.meeting-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.meeting-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.35rem;
}

.btn-teams-join {
  background: #464EB8;
  color: #FFFFFF;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(70, 78, 184, 0.3);
  transition: all var(--transition-fast);
}

.btn-teams-join:hover {
  background: #3B429F;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(70, 78, 184, 0.4);
}

.btn-teams-hero {
  background: #464EB8;
  color: #FFFFFF;
  border: 1px solid #3B429F;
  box-shadow: 0 4px 12px rgba(70, 78, 184, 0.25);
}

.btn-teams-hero:hover {
  background: #3B429F;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.credentials-box {
  background: #FFFFFF;
  border: 1px solid #D9E2EC;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cred-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #627D98;
}

.cred-val {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: #102A43;
}

.btn-copy-chip {
  background: #F0F4F8;
  border: 1px solid #D9E2EC;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334E68;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-chip:hover {
  background: #D9E2EC;
}



