/* ==========================================================================
   Soult Dialogues Custom Stylesheet - Pure White Section Backgrounds
   ========================================================================== */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette: Dark Grey (#301c1a), Brown (#58362b), Gold (#D7b56d), and White (#ffffff) */
  --espresso-deep: #ffffff;
  --espresso-dark: #ffffff;
  --espresso-medium: #ffffff;
  --espresso-light: #ffffff;
  --gold: #58362b;
  --gold-light: #73483b;
  --gold-dark: #301c1a;
  --cream-bg: #ffffff;
  --cream-card: #ffffff;
  --cream-dark: #ffffff;
  
  /* Strict Card Color Overrides */
  --card-bg-brown: #58362b;
  --card-bg-dark-grey: #301c1a;
  
  /* Text Colors */
  --text-light: #301c1a; /* Dark Grey text as default */
  --text-light-muted: rgba(48, 28, 26, 0.7);
  --text-dark: #301c1a;
  --text-dark-muted: rgba(48, 28, 26, 0.6);
  
  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & styles */
body {
  font-family: var(--font-primary);
  background-color: #ffffff;
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Premium Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gold {
  color: var(--gold) !important;
}

.text-espresso {
  color: var(--card-bg-dark-grey) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: var(--card-bg-brown);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Navigation */
.sd-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(48, 28, 26, 0.95); /* Dark espresso background with opacity */
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); /* White-opaque bottom border */
  transition: var(--transition-smooth);
  padding-top: 15px;
  padding-bottom: 15px;
}

.sd-nav.scrolled {
  background: #301c1a; /* Solid dark espresso */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  padding-bottom: 10px;
}

.sd-logo img {
  display: block;
  object-fit: contain;
}

.sd-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--card-bg-dark-grey);
  text-decoration: none;
}

.sd-logo-tagline {
  font-size: 9px;
  font-style: italic;
  font-weight: 400;
  color: rgba(48, 28, 26, 0.6);
  letter-spacing: 0.05em;
  margin-top: -3px;
}

/* Buttons */
.btn-gold {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff !important; /* White text on brown background */
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 24px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important; /* Remove underline */
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: #58362b;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 54, 43, 0.25);
  text-decoration: none !important; /* Remove underline on hover */
}

.btn-outline-gold {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold) !important; /* Brown outline text */
  background: transparent;
  border: 1.5px solid var(--gold);
  padding: 10px 24px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important; /* Remove underline */
}

.btn-outline-gold:hover {
  border-color: var(--gold);
  color: #ffffff !important;
  background: var(--gold); /* Solid brown background on hover */
  transform: translateY(-2px);
  text-decoration: none !important; /* Remove underline on hover */
}

/* Hero Section */
.sd-hero {
  min-height: 100vh;
  padding: 160px 0 100px;
  background: #301c1a url('../images/hero-bg.jpg') no-repeat right center; /* Solid dark espresso background */
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #301c1a 45%, rgba(48, 28, 26, 0.4) 65%, rgba(48, 28, 26, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.sd-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(to right, #301c1a 0%, #58362b 50%, #d7b56d 100%);
  z-index: 2;
}

@media (max-width: 991px) {
  .sd-hero::before {
    background: rgba(48, 28, 26, 0.85); /* Solid dark readability mask on mobile */
  }
}

.sd-hero .container {
  position: relative;
  z-index: 2;
}

.sd-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px; /* Increased from 11px */
  font-weight: 800; /* Bolder text */
  letter-spacing: 0.15em; /* Increased spacing */
  text-transform: uppercase;
  color: #ffffff; /* White text on dark background */
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px; /* Increased padding */
  border-radius: 20px;
  margin-bottom: 24px;
}

.sd-badge-dot {
  width: 8px; /* Increased from 6px */
  height: 8px;
  border-radius: 50%;
  background: #58362b; /* Keep Warm Brown dot */
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff; /* Solid White title */
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  background: #d2a497;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
  max-width: 500px;
}

@media (max-width: 576px) {
  .hero-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.hero-meta-item {
  background: rgba(88, 54, 43, 0.04);
  border: 1px solid rgba(88, 54, 43, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--card-bg-brown);
  font-weight: 600;
}

.hero-meta-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--card-bg-dark-grey);
}

.sd-overview {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf9 100%); /* Subtle vertical gradient transition */
  color: var(--card-bg-dark-grey);
  padding: 100px 0;
  position: relative;
  border-top: 1px solid rgba(48, 28, 26, 0.06);
}

.sd-overview::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(48, 28, 26, 0.02), transparent);
  pointer-events: none;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(48, 28, 26, 0.6);
  margin-bottom: 12px;
}

.section-h {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--card-bg-dark-grey);
  margin-bottom: 24px;
}

.sd-overview .section-h em {
  font-style: normal;
  color: var(--gold-dark);
}

.overview-editorial {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-light-muted);
  text-align: justify;
}

.overview-sidebar {
  border-left: 2px solid rgba(88, 54, 43, 0.25);
  padding-left: 30px;
}

@media (max-width: 768px) {
  .overview-sidebar {
    border-left: none;
    border-top: 2px solid rgba(88, 54, 43, 0.25);
    padding-left: 0;
    padding-top: 30px;
    margin-top: 30px;
  }
}

.sidebar-quote {
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: var(--card-bg-dark-grey);
  line-height: 1.6;
}

/* Inside the Closed Door (Pillars Grid) */
.sd-gaps {
  padding: 100px 0;
  background: linear-gradient(160deg, #301c1a 0%, #58362b 100%); /* Espresso-to-Brown Gradient */
  position: relative;
  border-top: 1px solid rgba(48, 28, 26, 0.06);
}

.sd-gaps .section-eyebrow {
  color: rgba(255, 255, 255, 0.8) !important;
}

.sd-gaps .section-h {
  color: #ffffff;
}

.gap-card {
  background: var(--card-bg-dark-grey); /* Dark Grey card background */
  border: 1.5px solid rgba(88, 54, 43, 0.35);
  border-top: 4px solid #58362b; /* Bold top accent border matching other sections */
  border-radius: 16px;
  padding: 35px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.gap-card:hover {
  border-color: rgba(215, 181, 109, 0.3);
  border-top-color: #d7b56d; /* Golden hover accent */
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(215, 181, 109, 0.1);
}

.gap-icon {
  width: 50px;
  height: 50px;
  background: rgba(215, 181, 109, 0.05); /* Soft gold transparent background */
  border: 1px solid rgba(215, 181, 109, 0.25); /* Gold border */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d7b56d; /* Gold icon for theme consistency */
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.gap-card:hover .gap-icon {
  background: rgba(215, 181, 109, 0.15);
  border-color: #d7b56d;
  box-shadow: 0 0 15px rgba(215, 181, 109, 0.35);
  color: #ffffff; /* Turns white on hover for micro-interaction */
}

.gap-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff; /* White title for readability */
}

.gap-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Agenda Timeline */
.sd-agenda {
  background-color: #ffffff; /* White BG */
  color: var(--card-bg-dark-grey);
  padding: 100px 0;
  position: relative;
  border-top: 1px solid rgba(48, 28, 26, 0.06);
  border-bottom: 1px solid rgba(48, 28, 26, 0.06);
  letter-spacing: normal !important;
}

.sd-agenda * {
  letter-spacing: normal !important;
}

.sd-agenda .section-eyebrow {
  color: var(--card-bg-brown);
}

.sd-agenda .section-h em {
  color: var(--gold-dark);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 160px; /* Shifted from 120px to accommodate wider time column */
  bottom: 0;
  width: 2px;
  background: rgba(48, 28, 26, 0.12);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
  display: flex;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  width: 150px; /* Expanded from 110px to fit 12-hour AM/PM strings */
  flex-shrink: 0;
  text-align: right;
  padding-right: 15px;
  font-size: 15px;
  font-weight: 700;
  color: var(--card-bg-brown);
  margin-top: 4px;
  white-space: nowrap; /* Ensure time section stays in 1 line */
}

@media (max-width: 768px) {
  .timeline-time {
    width: auto;
    text-align: left;
    padding-right: 0;
    margin-bottom: 5px;
    font-size: 14px;
  }
  .timeline-item {
    flex-direction: column;
    padding-left: 45px;
  }
}

.timeline-badge {
  position: absolute;
  left: 154px; /* Shifted from 114px to align with the new line position */
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #ffffff; /* White border to separate from white BG */
  z-index: 2;
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .timeline-badge {
    left: 14px;
    top: 6px;
  }
}

.timeline-content {
  flex-grow: 1;
  background: linear-gradient(135deg, #301c1a 0%, #58362b 100%); /* Visually darker gradient card */
  border: 1px solid rgba(88, 54, 43, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-badge {
  background: var(--card-bg-brown);
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.3);
}

.timeline-item:hover .timeline-content {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(48, 28, 26, 0.2);
}

.timeline-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff; /* White title on dark card */
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85); /* Light text on dark card */
  margin-bottom: 0;
}

/* Speakers Section */
.sd-speakers {
  background-color: #f5f0e8; /* Soft champagne beige BG */
  color: var(--card-bg-dark-grey);
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid rgba(48, 28, 26, 0.06);
}

@media (min-width: 992px) {
  .col-lg-custom {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}

.sd-speakers .sd-blob {
  opacity: 0.22 !important; /* Visible on light BG */
}

.speaker-poster {
  width: 100%;
  max-width: 280px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(88, 54, 43, 0.15);
  box-shadow: 0 12px 30px rgba(48, 28, 26, 0.12);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: #9e5724; /* Match image background color exactly to prevent seams */
  margin: 0 auto; /* Center within columns */
  
  /* Fix WebKit/Safari/Blink parent overflow clipping bug */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}

.speaker-poster:hover {
  transform: translateY(-8px) translateZ(0);
  border-color: rgba(215, 181, 109, 0.4);
  box-shadow: 0 20px 40px rgba(215, 181, 109, 0.25);
}

.speaker-poster-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* Constrain image to a perfect fluid square to prevent cropping */
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 16px 16px 0 0; /* Match parent top rounding */
  position: relative;
  z-index: 1; /* Positioned below the composted text overlay */
}

.speaker-poster:hover .speaker-poster-img {
  transform: scale(1.06);
}

.speaker-poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, #f5f0e8 0%, rgba(245, 240, 232, 0.95) 75%, rgba(245, 240, 232, 0) 100%);
  padding: 35px 20px 20px;
  color: #301c1a; /* Dark text matching theme */
  z-index: 3; /* Render on top of the composited image layer */
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0 0 16px 16px;
  height: 170px; /* Increased height to accommodate shifted LinkedIn buttons and text lines without overflow clipping */
  
  /* Force a hardware-accelerated compositor context higher than the image */
  -webkit-transform: translate3d(0, 0, 10px);
  transform: translate3d(0, 0, 10px);
}

.speaker-poster:hover .speaker-poster-overlay {
  background: linear-gradient(to top, #f5f0e8 0%, rgba(245, 240, 232, 0.98) 80%, rgba(245, 240, 232, 0.3) 100%);
  -webkit-transform: translateY(0) translate3d(0, 0, 10px);
  transform: translateY(0) translate3d(0, 0, 10px);
}

.speaker-poster-name {
  font-size: 17px;
  font-weight: 800;
  color: #301c1a; /* Dark espresso name */
  margin-bottom: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.speaker-poster-role {
  font-size: 12px;
  font-weight: 700;
  color: #58362b; /* Warm brown title */
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  margin-bottom: 2px;
}

.speaker-poster-company {
  font-size: 13px;
  color: #555555; /* Dark grey company */
  margin-bottom: 0;
  line-height: 1.3;
}

.speaker-poster-linkedin {
  color: #58362b;
  background: rgba(88, 54, 43, 0.08);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  aria-label: "LinkedIn Profile";
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.speaker-poster-linkedin svg {
  width: 17px;
  height: 17px;
}

.speaker-poster-linkedin:hover {
  background: #58362b;
  color: #ffffff;
  transform: scale(1.1);
}

.speaker-poster:hover .card-particle-canvas {
  opacity: 0.85; /* Show particle hover effect inside the poster */
}

/* Who Should Attend */
.sd-attendees {
  padding: 100px 0;
  background: linear-gradient(160deg, #301c1a 0%, #58362b 100%); /* Espresso-to-Brown Gradient */
  position: relative;
  border-top: 1px solid rgba(48, 28, 26, 0.06);
}

.sd-attendees .section-eyebrow {
  color: rgba(255, 255, 255, 0.8) !important;
}

.sd-attendees .section-h {
  color: #ffffff;
}

.attendee-card {
  background: #ffffff; /* Premium white background */
  border: 1px solid rgba(88, 54, 43, 0.16);
  border-top: 4px solid #58362b; /* Bold top accent border matching Legacy section */
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow for dark gradient background */
}

.attendee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(215, 181, 109, 0.15);
  border-color: rgba(215, 181, 109, 0.4);
  border-top-color: #d7b56d; /* Golden hover accent */
}

.attendee-card svg {
  color: #58362b; /* Warm brown base color */
  transition: color 0.3s ease;
}

.attendee-card:hover svg {
  color: #d7b56d; /* Golden highlight on hover */
}

.attendee-role {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--card-bg-dark-grey); /* Dark grey text for readability */
  margin-bottom: 0;
}

.attendee-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.5;
}

.sd-attendees .border-custom {
  border-color: rgba(88, 54, 43, 0.15) !important;
}

/* RSVP Section & Form */
.sd-rsvp {
  background-color: #ffffff; /* White BG */
  padding: 120px 0;
  position: relative;
  border-top: 1px solid rgba(48, 28, 26, 0.06);
}

.sd-rsvp .section-eyebrow {
  color: var(--card-bg-brown);
}

/*.rsvp-box styles removed border & background*/
.rsvp-box {
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

@media (max-width: 576px) {
  .rsvp-box {
    padding: 30px 20px;
  }
}

.form-control-custom {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff !important;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition-smooth);
}

.form-control-custom:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(215, 181, 109, 0.25);
  outline: none;
}

.form-control-custom::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-label-custom {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Form success message */
.rsvp-success-state {
  display: none;
  text-align: center;
  padding: 40px 10px;
}

.rsvp-success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(215, 181, 109, 0.1);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

/* Custom badge color to replace Bootstrap warning/danger */
.badge-custom {
  background-color: var(--gold);
  color: var(--card-bg-dark-grey);
  font-weight: 700;
}

/* Footer styling */
.sd-footer {
  background-color: #ffffff; /* White Footer */
  border-top: 1px solid rgba(48, 28, 26, 0.08);
  padding: 40px 0;
  font-size: 13px;
  color: rgba(48, 28, 26, 0.6);
}

.footer-link {
  color: var(--card-bg-brown);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* Custom border color utility */
.border-custom {
  border-color: rgba(48, 28, 26, 0.1) !important;
}

/* Utility Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

/* Redesigned Hero Event Details capsule elements */
.hero-details-container {
  max-width: 680px;
}

.details-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); /* Readable text on dark background */
}

.detail-capsule {
  background: rgba(255, 255, 255, 0.03); /* Glassmorphic styling */
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  transition: var(--transition-smooth);
  height: 100%;
}

.detail-capsule:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.20);
}

.detail-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* White icon */
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.detail-capsule:hover .detail-icon-wrap {
  background: #58362b;
  border-color: #58362b;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(88, 54, 43, 0.3);
}

.detail-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

.detail-val {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff; /* White value text */
  line-height: 1.3;
}

/* Scroll to Top CTA */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #58362b;
  border: 1px solid #58362b;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(88, 54, 43, 0.25);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none !important;
}

.scroll-to-top-btn:hover {
  background: #301c1a;
  border-color: #301c1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(88, 54, 43, 0.35);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* Overview Image Hover Effect */
.overview-img-wrap img:hover {
  transform: scale(1.04);
}

/* Legacy Readiness Section */
.sd-legacy {
  background: linear-gradient(160deg, #301c1a 0%, #58362b 100%); /* Same espresso-to-brown gradient */
  padding: 100px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-legacy .section-h {
  color: #ffffff;
}

.sd-legacy .text-dark-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

.sd-legacy h3 {
  color: rgba(255, 255, 255, 0.85) !important;
}

.legacy-card {
  background: #ffffff;
  border: 1px solid rgba(88, 54, 43, 0.16);
  border-top: 4px solid #58362b; /* Premium bold top accent border */
  border-radius: 12px;
  padding: 35px 30px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow for dark background */
}

.legacy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(215, 181, 109, 0.15);
  border-color: rgba(215, 181, 109, 0.4);
  border-top-color: #d7b56d; /* Elegant gold hover accent */
}

.legacy-card-num {
  font-size: 26px;
  font-weight: 800;
  color: #58362b;
  opacity: 0.9;
  font-family: 'Poppins', monospace;
  margin-bottom: 15px;
  letter-spacing: -0.05em;
  transition: color 0.3s ease;
}

.legacy-card:hover .legacy-card-num {
  color: #d7b56d; /* Number turns gold on hover */
}

.legacy-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--card-bg-dark-grey);
  margin-bottom: 12px;
  line-height: 1.45;
}

.legacy-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-light-muted);
  margin: 0;
}

#wpFormIframe {
  height: 660px; /* Default desktop height */
  overflow: auto;
}

/* Responsive overrides for Logo and RSVP Iframe */
@media (max-width: 768px) {
  .sd-nav img {
    height: 38px !important;
  }
  #wpFormIframe {
    height: 600px !important; /* Fixed viewport height on tablets with internal scroll */
  }
}

@media (max-width: 576px) {
  .sd-nav img {
    height: 34px !important; /* Extra breathing room on small phones */
  }
  #wpFormIframe {
    height: 520px !important; /* Fixed viewport height on small screens with internal scroll */
  }
}

/* About Soult Section */
.sd-about {
  background-color: #ffffff; /* White BG */
  padding: 80px 0;
  position: relative;
  border-top: 1px solid rgba(48, 28, 26, 0.05);
}

.sd-about .section-h {
  color: var(--card-bg-dark-grey);
}

/* ==========================================================================
   Moving Gradient Background & Floating Orb Animations
   ========================================================================== */

/* Shifting Background Gradients for Dark Sections */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sd-gaps, .sd-legacy, .sd-attendees {
  background: linear-gradient(135deg, #301c1a 0%, #58362b 50%, #422622 100%) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 18s ease infinite !important;
}

/* Floating Blurred Brand Blobs (SVGs) for All Sections */
@keyframes floatAndRotate {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(40px, -50px) rotate(120deg) scale(1.1); }
  66% { transform: translate(-30px, 30px) rotate(240deg) scale(0.9); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.sd-orb-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1; /* Sits directly above section background */
}

.sd-blob {
  position: absolute;
  width: 450px; /* Large, luxurious glow size */
  height: 450px;
  border-radius: 50%;
  filter: blur(55px); /* Soft blur, keeps color center highly saturated and visible */
  pointer-events: none;
  animation: floatAndRotate 24s ease-in-out infinite;
}

.sd-blob-1 {
  background: radial-gradient(circle, rgba(88, 54, 43, 0.45) 0%, rgba(88, 54, 43, 0) 70%); /* Brown glow base */
  top: -120px;
  right: -120px;
  animation-duration: 24s;
}

.sd-blob-2 {
  background: radial-gradient(circle, rgba(215, 181, 109, 0.45) 0%, rgba(215, 181, 109, 0) 70%); /* Gold glow base */
  bottom: -150px;
  left: -120px;
  animation-duration: 32s;
  animation-delay: -6s;
}

/* Opacities for Light Sections (Subtle, elegant background highlights) */
.sd-overview .sd-blob,
.sd-agenda .sd-blob,
.sd-rsvp .sd-blob,
.sd-about .sd-blob {
  opacity: 0.22 !important; /* Highly visible on light backgrounds */
}

/* Opacities for Dark Sections (Sleek, glowing background highlights) */
.sd-hero .sd-blob,
.sd-gaps .sd-blob,
.sd-legacy .sd-blob,
.sd-attendees .sd-blob {
  opacity: 0.35 !important; /* Beautifully glowing against dark backgrounds */
}

/* Z-index safety positioning to keep all content/cards clickable above orbs */
.sd-hero .container,
.sd-overview .container, 
.sd-gaps .container,
.sd-legacy .container,
.sd-agenda .container, 
.sd-rsvp .container,
.sd-attendees .container,
.sd-about .container {
  position: relative;
  z-index: 2;
}

/* Card Particle Hover Effect */
.gap-card, .legacy-card, .attendee-card {
  position: relative !important;
  overflow: hidden !important;
}

.card-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gap-card:hover .card-particle-canvas,
.legacy-card:hover .card-particle-canvas,
.attendee-card:hover .card-particle-canvas {
  opacity: 0.85; /* Clearly visible card particles */
}

/* Ensure all content sits above the canvas */
.gap-card > *:not(.card-particle-canvas), 
.legacy-card > *:not(.card-particle-canvas), 
.attendee-card > *:not(.card-particle-canvas) {
  position: relative;
  z-index: 2;
}
