html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Update the header styles to include the background image */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  backdrop-filter: blur(6px);
  z-index: 1000;
  padding: 1rem 0;
  display: none;
  transition: opacity 0.3s ease;
  min-height: 80px; /* Ensure minimum height for logo */
}

/* Header logo container */
.header-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1001;
  width: 60px;
  height: auto;
}

.header-logo.visible {
  opacity: 1;
}

.header-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Updated navigation to make room for center logo */
header nav {
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #6A567E;
  position: relative;
}

header nav a {
  text-decoration: none;
  color: #6A567E;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

header nav a:hover {
  color: #a45ee5; /* Or any theme accent color */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #6A567E;
}

/* Desktop-only navigation links */
.desktop-only {
  display: flex;
}

/* By default, hide mobile nav-links on desktop */
.nav-links {
  display: none;
}

/* By default, show links horizontally */
/* Split navigation links around the logo */
.nav-links {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.nav-links-left {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex: 1;
  margin-right: 2rem; /* Space for logo */
}

.nav-links-right {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex: 1;
  margin-left: 2rem; /* Space for logo */
}

/* Responsive styles */
@media (min-width: 1250px) {
  .nav-links-left {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex: 1;
    margin-right: 2rem; /* Space for logo */
  }

  .nav-links-right {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex: 1;
    margin-left: 2rem; /* Space for logo */
  }

  .mobile-only,
  .mobile-nav {
    display: none !important;
  }
  .desktop-only {
    display: flex; /* or block, depending on layout */
  }
}

@media (max-width: 1249px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block;
  }
  
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #EEE2F9;
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }

  .nav-links.active {
    display: flex;
  }

  header nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  #section1 {
    background-attachment: scroll;
  }

  header {
    min-height: 70px; /* Adjusted for mobile */
  }

  .nav-left {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(106, 86, 126, 0.1);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links-left,
  .nav-links-right {
    margin: 0;
    justify-content: center;
  }

  .nav-links-left {
    order: 1;
  }
  
  .nav-links-right {
    order: 3;
  }

  .header-logo {
    position: static;
    transform: none;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
  
  .hero-center-image.in-header {
    width: 50px;
    height: 50px;
  }  
  
}

/* Enable vertical snap scroll */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for WebKit browsers */
}

/* Each section should snap */
section {
  scroll-snap-align: start;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero image section */
.hero-section {
  height: 100vh;
  width: 100vw;
  display: flex;
  overflow:hidden;
  background: #EEE2F9;
  position: relative;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero-section.scrolled .hero-image-wrapper {
  transform: scale(1.2);
  opacity: 0;
}


#section1 {
  position: relative;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.section1-content-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin-bottom: 5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

/*#section2 {
  position: relative;
  height: 100vh;
  background: #EEE2F9; 
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-align: start;
  scrollbar-width: none;      
  -ms-overflow-style: none;
}*/

#section2 {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-align: start;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  padding-top: 0;
}

#section3 {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  padding: 2rem 0.5rem;
}

#section3::-webkit-scrollbar {
  display: none;
}

#section1::-webkit-scrollbar {
  display: none; /* Hide scrollbar for WebKit browsers */
}

#section2::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}

#section2 .ag-section {
  /* Make sure there's enough content to scroll to reach the last item */
  min-height: calc(100vh + 200px);
}

.travel-section,
.faq-section,
.rsvp-section,
.things-to-do-section,
.photos-section,
.rick-roll-section {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto; /* Keep scrollable */
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  padding: 2rem 0;
  box-sizing: border-box;
}

.travel-section::-webkit-scrollbar,
.faq-section::-webkit-scrollbar,
.rsvp-section::-webkit-scrollbar,
.things-to-do-section::-webkit-scrollbar,
.photos-section::-webkit-scrollbar,
.rick-roll-section::-webkit-scrollbar {
  display: none;
}

/*.section1-left {
  width: 75%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow: hidden;
}*/

.section1-left {
  flex: 3; /* Gives the image side more space (approx 60%) */
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  position: relative;
}

.details-main-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background-color: rgba(234,221,200, .75);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section1-left-image {
  width: auto;
  height: 80%;
  object-fit: contain;
  object-position: center;
  align-items: center;
  /*align-items: center;*/
  /*border-radius: 15px;*/
  /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);*/
  transition: transform 0.3s ease;
  margin-bottom: 5rem;
}

/*.section1-left-image:hover {
  transform: scale(1.02);
}*/

.section1-left-text {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  margin-bottom: 0.25rem; 
}
.section1-left-a {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  margin-bottom: 0.25rem; 
}
.section1-left-text-h {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  text-decoration: underline;
  margin-bottom: 0.25rem; 
}

.section1-right-text-back {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  margin-bottom: 0.25rem;
  text-decoration: bold;
  background-color: rgba(234,221,200);
}

.section1-left-text, .section1-right-text, .section1-left-text-h, .section1-right-text-h {
  font-size: clamp(14px, 2vw, 18px);
}

.section1-middle {
  width: 25%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-image: url('location.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position:center; 
  flex-direction: column;
}

.section1-middle-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/*.section1-right {
  width: 25%;
  height: 100%;
  display:flex;
  justify-content: top;
  align-items: center;
  padding: 5rem;
  word-wrap: break-word;
  white-space: normal;
  flex-direction: column; 
}*/
.section1-right {
  flex: 2; /* Details side (approx 40%) */
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Space between the cards */
  padding: 2rem;
  overflow-y: auto; /* Allow scrolling within the right column if content overflows */
  background: rgba(255, 255, 255, 0.15); /* Translucent accent color background */
  backdrop-filter: blur(8px);
  scrollbar-width: thin;
  scrollbar-color: #6A567E rgba(238, 226, 249, 0.3);
}

.section1-right::-webkit-scrollbar {
  width: 8px;
}

.section1-right::-webkit-scrollbar-thumb {
  background-color: #6A567E;
  border-radius: 4px;
}

.detail-card {
  background: rgba(234, 221, 200, 0.505);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-top: 0;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid rgba(238, 226, 249, 0.5);
  padding-bottom: 0.5rem;
}

.card-text {
  font-family: 'Montserrat', sans-serif;
  color: #6A567E;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.5;
  margin: 0.5rem 0;
}

/* Responsive Map Container for modern embedding */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 50%; /* 2:1 aspect ratio (adjust as needed) */
  height: 0;
  margin: 0.75rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-hint {
    font-style: italic;
    font-size: 0.85rem;
    margin-top: -0.25rem;
    color: #8b74a3;
}

.contact-info {
    margin-top: 1rem;
    border-top: 1px dashed #EEE2F9;
    padding-top: 1rem;
}

.email-link-wrap {
  margin-top: 0;
}

.email-link {
    color: #A45EE5;
    text-decoration: none;
    font-weight: bold;
}

.email-link:hover {
    text-decoration: underline;
}


/* Mobile adjustments: Stack columns vertically and use full screen width */
@media (max-width: 900px) {
  .section1-content-wrapper {
    flex-direction: column; /* Stack vertically on smaller screens */
    width: calc(100% - 1rem);
    height: auto;
    margin: 0.5rem;
  }
  
  .section1-left {
      padding: 1.5rem;
  }
  
  .section1-right {
      padding: 1.5rem;
      overflow-y: visible; /* Content scroll should now be handled by the main scroll-container */
  }
  
  .details-main-image {
    max-width: 90%;
  }
  
  .map-container {
    padding-bottom: 60%; /* Slightly taller maps on mobile */
  }
}

.section1-right-text {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  margin-bottom: 0.25rem; 
}

.section1-right-text-h {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  text-decoration: underline;
  margin-bottom: 0.25rem; 
}

.section1-right iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: none;
  margin-bottom: 0.25rem;
}

.invite-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: none; /* We’ll animate with JS instead */
  z-index: 2;
  will-change: transform, opacity;
}

.invite-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1vw;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.invite-scroll-image {
  position: fixed;
  top: 2vh;
  left: 50%;
  transform: translateX(-50%) scale(1);
  transform-origin: top center;
  z-index: 100;
  transition: none;
  will-change: transform, top;
  pointer-events: none;
}

.hero-left,
.hero-right {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(6px);
}

.hero-fade {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.hero-left img,
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  backdrop-filter: blur(6px);
}

.hero-center-image {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  z-index: 5;
  width: 60vw;
  max-width: 600px;
  height: auto;
  opacity: 0.9;
  background-color: rgba(234,221,200, 0.8);
  transition: all 0.3s ease-out;
  will-change: transform, opacity, position, top, width, height;
}

.hero-center-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(255,255,240, 0.1);
  transition: border-radius 0.3s ease;
}

/* Transition states for the hero image */
.hero-center-image.transitioning {
  position: fixed;
  z-index: 1002;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-center-image.in-header {
  position: fixed;
  /* top, left, and transform are now controlled by JavaScript */
  width: 60px;
  height: 60px;
  z-index: 1002;
  background-color: transparent;
  opacity: 1;
}
.hero-center-image.in-header img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hide the hero center image when it's in header mode to avoid duplication */
.hero-center-image.hidden {
  opacity: 0;
  pointer-events: none;
}
/* Normal content section */
.content {
  background: #dd7be8;
  font-size: 2rem;
}

.hero-text {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-family: 'Cinzel', serif;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  margin: 0;
}

.hero-text-p {
  font-size: clamp(1.5rem, 1vw, 3rem);
  font-family: 'Cinzel', serif;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  margin: 0;
}

.top-text {
  font-size: clamp(1rem, 3vw, 2rem);
  font-family: 'Great Vibes';
  color: #6A567E;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  text-align: center;
  margin: 0.25rem 0;
  display: block;
}

.hero-button {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-family: 'Cinzel', serif;
  padding: 0.5em 1.25em;
  border-radius: 0.5em;
}
.hero-overlay-box {
  position: absolute;
  top: 65%; /* Move it lower, below the center image */
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
  z-index: 10;
  text-align: center;
  transition: opacity 0.4s ease;
  max-width: 90vw;
}

.hero-text-container {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  text-align: center;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-arrow {
  font-size: 2rem;
  color: white;
  animation: bounce-arrow 2s infinite;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-arrow:hover {
  transform: scale(1.2);
  color: #a45ee5;
}

/* Bounce animation for the arrow */
@keyframes bounce-arrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 600px) {
  .timeline-container {
    flex-direction: column;
    padding: 4vw;
  }

  .hero-text-container {
    top: 60%; /* Shift text slightly lower on phones */
  }

  .hero-button {
    width: 50%;
    max-width: 300px;
  }

  .hero-overlay-box {
    top: 70%; /* Even lower on mobile to account for smaller screens */
    gap: 0.5rem;
  }

  .hero-center-image {
    top: 30%; /* Higher on mobile */
  }
  
  .hero-arrow {
    font-size: 1.5rem;
  }

  .hero-logo-container {
    top: 1vh;
  }

  .hero-logo {
    width: clamp(60px, 25vw, 140px);
  }

   #timer {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1rem;
    justify-content: center;
  }
}

.hero-button {
  font-size: 1.5rem;
  padding: 0.75rem 1.5rem;
  /*background-color: #f1e6f4;*/
  color: white;
  /*border: none;
  border-radius: 8px;*/
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  /*box-shadow: 0 0 10px rgba(0,0,0,0.2);*/
}

.hero-button:hover {
  background-color: #f1e6f4;
}

.hero-logo-container {
  position: absolute;
  top: 2vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
  padding: 0.5rem;
}

.hero-logo {
  width: clamp(80px, 20vw, 200px); /* Resizes between 80px and 200px based on screen width */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4));
}

.countdown {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  gap: 1vw;
}

.timeline-section {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50; /* very high to be on top */
  width: auto;
  max-width: 90vw;
  padding: 1rem 2rem;
  /*background: rgba(0, 0, 0, 0.5); *//* translucent dark background */
  /*border: 2px solid #c6a9d8;
  border-radius: 2vw;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);*/
  color: rgba(238, 226, 249, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.timeline-container {
  /*background: rgba(255, 255, 255, 0.85);*/
  /*border: 2px solid #c6a9d8;*/
  /*border-radius: 2vw;*/
  padding: 2vw 4vw;
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1vw;
  max-width: 90vw;
}

#timer {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  font-family: 'Cinzel', serif;
  color: white;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: bold;
  white-space: nowrap;
}

#timer span {
  margin: 0 0.5vw;
}

.timeline-event {
  flex: 0 0 auto;
  width: 250px;
  background-color: #f4f0f8;
  border: 2px solid #c6a9d8;
  border-radius: 20px;
  padding: 20px;
  scroll-snap-align: start;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.timeline-event:hover {
  background-color: #e8d3f2;
  transform: scale(1.05);
  text-align: center;
}

.timeline-event h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #6b3074;
}

.timeline-event.active {
  background-color: #d6b5e0;
  border-color: #8c4c99;
}

@font-face {
  font-family: 'ESL Legend';
  src: url('ESLLegend-Light.eot');
  src: url('ESLLegend-Light.eot#iefix') format("embedded-opentype"),
  url('ESLLegend-Light.woff2') format("woff2"),
  url('ESLLegend-Light.woff') format("woff"),
  url('ESLLegend-Light.ttf') format("truetype"),
  url('ESLLegend-Light.svg#eicon') format("svg");
  font-style: normal;
  font-weight: 300;
}
@font-face {
  font-family: 'ESL Legend';
  src: url('ESLLegend-Regular.eot');
  src: url('ESLLegend-Regular.eot#iefix') format("embedded-opentype"),
  url('ESLLegend-Regular.woff2') format("woff2"),
  url('ESLLegend-Regular.woff') format("woff"),
  url('ESLLegend-Regular.ttf') format("truetype"),
  url('ESLLegend-Regular.svg#eicon') format("svg");
  font-style: normal;
  font-weight: normal;
}
@font-face {
  font-family: 'ESL Legend';
  src: url('ESLLegend-Bold.eot');
  src: url('ESLLegend-Bold.eot#iefix') format("embedded-opentype"),
  url('ESLLegend-Bold.woff2') format("woff2"),
  url('ESLLegend-Bold.woff') format("woff"),
  url('ESLLegend-Bold.ttf') format("truetype"),
  url('ESLLegend-Bold.svg#eicon') format("svg");
  font-style: normal;
  font-weight: bold;
}

img {
  max-width: 100%;
}

/*.ag-format-container {
      width: min(1160px, 95vw);
      margin: 0 auto;
      position: relative;
      padding: 0 20px; 
    }*/

.ag-format-container {
  width: min(1160px, 95vw);
  margin: 0 auto;
  position: relative;
  padding: 0 20px; /* Keep only horizontal padding */
  flex: 1; /* Allow it to fill remaining space */
  display: flex;
  flex-direction: column;
}

/*.ag-timeline-block {
  padding: 50px 0 100px 0; 
  min-height: calc(100vh - 50px);
}*/

.ag-timeline-block {
  padding: 0; /* Remove all padding */
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.ag-section {
  flex: 1; /* Fill remaining space */
  display: flex;
  flex-direction: column;
  min-height: 0; /* Allow shrinking */
}

/*.ag-timeline_title-box {
  padding: 0 0 30px;
  text-align: center;
  position: sticky;
  top: 0;
  background: #EEE2F9;
  z-index: 10;
  margin-bottom: 20px;
}*/

.ag-timeline_title-box {
  padding: 20px 0 10px;
  text-align: center;
  position: relative;
  top: 0;
  /* Remove the separate background and use transparent background instead */
  background: transparent;
  z-index: 10;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.ag-timeline_tagline {
  font-size: 40px;
  color: rgb(84, 89, 95);
}
.ag-timeline_title {
  background-image: url('bg.jpg');
  background-repeat: no-repeat;
  background-position: 50% 50%;

  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  
  color: #6A567E;

  font-size: clamp(40px, 8vw, 80px);
}

.ag-timeline_item {
  margin: 0 0 50px;

  position: relative;
}
.ag-timeline_item:nth-child(2n) {
  text-align: right;
}

/*.ag-timeline {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 800px;
  position: relative;
}*/

.ag-timeline {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  position: relative;
  flex: 1;
  /* Ensure content can extend beyond viewport for main scroll */
  padding-bottom: 20vh;
}

.travel-container,
.faq-container,
.rsvp-container,
.things-to-do-container,
.photos-container,
.rick-roll-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem; 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem;
  /* Remove min-height constraints that might cause overflow */
  /* min-height: calc(100vh - 4rem); */
}

/* Wedding party container adjustment */
.wedding-party-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  /* Remove min-height to prevent overflow */
  /* min-height: calc(100vh - 4rem); */
  position: relative;
}

/*.ag-timeline_line {
  width: 2px;
  background-color: white;

  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;

  overflow: hidden;

  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
}*/

.ag-timeline_line {
  width: 2px;
  background-color: white;
  position: absolute;
  top: 0;
  left: 50%;
  /* Calculate height based on distance between first and last points */
  height: auto;
  overflow: hidden;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}

/*.ag-timeline_line-progress {
  width: 100%;
  height: 20%;
  background-color: #a45ee5;
  transition: height 0.6s ease-out;
}*/

.ag-timeline_line-progress {
  width: 100%;
  background-color: #6A567E;
  transition: height 0.3s ease-out;
  max-height: 100%;
}


.ag-timeline-card_box {
  padding: 0 0 20px 50%;
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
  padding: 0 50% 20px 0;
}
.ag-timeline-card_point-box {
  display: inline-block;
  margin: 0 14px 0 -28px;
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
  margin: 0 -28px 0 14px;
}
.ag-timeline-card_point {
  height: 50px;
  line-height: 50px;
  width: 50px;
  border: 3px solid #6A567E;
  background-color: white;

  text-align: center;
  font-family: 'ESL Legend', sans-serif;
  font-size: 20px;
  color: #6A567E;

  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}
.js-ag-active .ag-timeline-card_point {
  color: white;
  background-color: #6A567E;
}
.ag-timeline-card_meta-box {
  display: inline-block;
}
.ag-timeline-card_meta {
  margin: 10px 0 0;

  font-family: 'ESL Legend', sans-serif;
  font-weight: bold;
  font-size: 28px;
  color: #6A567E;
}
.ag-timeline-card_item {
  display: inline-block;
  width: 45%;
  margin: -77px 0 0;
  background-color: #6A567E;

  opacity: 0;

  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;

  -webkit-box-shadow: 0 0 0 0 rgba(245, 240, 240, 0.5);
  -moz-box-shadow: 0 0 0 0 rgba(245, 240, 240, 0.5);
  -o-box-shadow: 0 0 0 0 rgba(245, 240, 240, 0.5);
  box-shadow: 0 0 0 0 rgba(245, 240, 240, 0.5);

  -webkit-transition: -webkit-transform .5s, opacity .5s;
  -moz-transition: -moz-transform .5s, opacity .5s;
  -o-transition: -o-transform .5s, opacity .5s;
  transition: transform .5s, opacity .5s;

  position: relative;
}
.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item {
  -webkit-transform: translateX(-200%);
  -moz-transform: translateX(-200%);
  -ms-transform: translateX(-200%);
  -o-transform: translateX(-200%);
  transform: translateX(-200%);
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
  -webkit-transform: translateX(200%);
  -moz-transform: translateX(200%);
  -ms-transform: translateX(200%);
  -o-transform: translateX(200%);
  transform: translateX(200%);
}
.js-ag-active.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
.js-ag-active.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
  opacity: 1;

  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}
.ag-timeline-card_arrow {
  height: 18px;
  width: 18px;
  margin-top: 20px;
  background-color: white;

  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;

  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_arrow {
  margin-left: calc(-18px / 2);
  margin-right: calc(-18px / 2);
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_arrow {
  margin-left: -10px;

  right: auto;
  left: 0;
}
.ag-timeline-card_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ag-timeline-card_info {
  padding: 20px 30px;
}
.ag-timeline-card_title {
  display: none;
  margin: 10px 0 0;

  font-family: 'ESL Legend', sans-serif;
  font-weight: bold;
  font-size: 28px;
  color: white;
}
.ag-timeline-card_desc {
  line-height: 1.45;
  text-align: left;
  font-size: 16px;
  color: white;
}


@media only screen and (max-width: 979px) {
  .ag-timeline_line {
    left: 30px;
  }

  .ag-timeline_item:nth-child(2n) {
    text-align: left;
  }

  .ag-timeline-card_box,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
    padding: 0 0 20px;
  }
  .ag-timeline-card_meta-box {
    display: none;
  }
  .ag-timeline-card_point-box,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
    margin: 0 0 0 8px;
  }
  .ag-timeline-card_point {
    height: 40px;
    line-height: 40px;
    width: 40px;
  }
  .ag-timeline-card_item {
    width: auto;
    margin: -65px 0 0 75px
  }
  .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
    -webkit-transform: translateX(200%);
    -moz-transform: translateX(200%);
    -ms-transform: translateX(200%);
    -o-transform: translateX(200%);
    transform: translateX(200%);
  }
  .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_arrow {
    right: auto;
    left: 0;
  }
  .ag-timeline-card_title {
    display: block;
  }
  .ag-timeline-card_arrow {
    margin-top: 12px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }

  .ag-timeline-card_img {
    height: auto;
    width: auto;
  }
}

@media only screen and (max-width: 639px) {
  .ag-timeline_title {
    font-size: 60px;
  }

  .ag-timeline-card_info {
    padding: 10px 15px;
  }
  .ag-timeline-card_desc {
    font-size: 14px;
  }
}

@media only screen and (max-width: 479px) {

}

@media (min-width: 768px) and (max-width: 979px) {
  .ag-format-container {
    width: 750px;
  }

}

@media (min-width: 980px) and (max-width: 1161px) {
  .ag-format-container {
    width: 960px;
  }

}

/* Wedding Party Styles */
.wedding-party-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  min-height: calc(100vh - 4rem);
  position: relative;
}

.party-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5rem;
  min-width: 0; /* Allows flex items to shrink */
}

.party-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #6A567E;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.party-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  justify-items: center;
  max-width: 500px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  height: 100%; /* Ensure cards fill their grid cell */
  min-height: 200px; /* Set a minimum height to accommodate all content */
}

.member-card:hover {
  transform: translateY(-5px);
  z-index: 10;
}

/* Honor attendants get special styling but stay in grid */
.member-card.maid-of-honor,
.member-card.best-man {
  position: relative;
  min-height: 220px; /* Slightly taller for honor attendants */
}

.member-card.maid-of-honor .member-photo,
.member-card.best-man .member-photo {
  width: 140px;
  height: 140px;
  border: 4px solid #f1e6f4;
  box-shadow: 0 0 0 2px #6A567E, 0 6px 20px rgba(0,0,0,0.3);
}

.member-card.maid-of-honor .member-info h3,
.member-card.best-man .member-info h3 {
  font-size: 1.2rem;
  color: #6A567E;
  min-height: 2.8em; /* Accommodate larger text */
}

.member-card.maid-of-honor .member-role,
.member-card.best-man .member-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6A567E;
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #6A567E;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin-bottom: 0.8rem;
}

.member-photo:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transform: scale(1.05);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 60px; /* Reserve space for potential two-line names */
}

.member-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #6A567E;
  margin: 0 0 0.3rem 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  line-height: 1.2; /* Better line spacing for wrapped text */
  min-height: 2.4em; /* Reserve space for two lines of text */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.member-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: #6A567E;
  margin: 0;
  font-style: italic;
  /* Role text stays directly under name, no margin-top: auto */
}

.member-tooltip {
  position: fixed;
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  max-width: 250px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.member-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0,0,0,0.9);
}

.member-tooltip.show {
  opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .party-members {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 400px;
  }
  
  .member-card.maid-of-honor,
  .member-card.best-man {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #section3 {
    /* Ensure section has proper padding */
    padding: 2rem 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .wedding-party-container {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1rem; /* Increased padding */
    min-height: auto; /* Allow natural height */
    justify-content: flex-start; /* Start from top */
    align-items: center;
  }
  
  .wedding-party-container .wedding-party-container {
    padding: 0; /* Remove padding from nested container */
    gap: 2rem;
  }
  
  .party-side {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
  }
  
  .party-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Larger on mobile */
    margin-bottom: 2rem;
    margin-top: 0;
    padding: 0 1rem; /* Add horizontal padding */
  }
  
  .party-members {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 350px;
    width: 100%;
  }
  
  /* Ensure honor attendants span full width on mobile */
  .member-card.maid-of-honor,
  .member-card.best-man {
    grid-column: 1 / -1;
  }
  
  .member-photo {
    width: 100px;
    height: 100px;
  }
  
  .member-card.maid-of-honor .member-photo,
  .member-card.best-man .member-photo {
    width: 140px;
    height: 140px;
  }
  
  .member-info h3 {
    font-size: 0.9rem;
    min-height: 2.2em;
  }
  
  .member-card.maid-of-honor .member-info h3,
  .member-card.best-man .member-info h3 {
    font-size: 1.2rem;
    min-height: 2.6em;
  }
  
  .member-role {
    font-size: 0.8rem;
  }
  
  .member-tooltip {
    max-width: 200px;
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  .member-card {
    min-height: 180px;
  }
  
  .member-card.maid-of-honor,
  .member-card.best-man {
    min-height: 200px;
  }
  
}

@media (max-width: 480px) {
  #section3 {
    padding: 1.5rem 0; /* Reduced padding for very small screens */
  }

  .wedding-party-container {
    padding: 1rem 0.5rem;
    gap: 2rem;
  }
  
  .party-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .party-members {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 300px;
  }
  
  .member-photo {
    width: 90px;
    height: 90px;
  }
  
  .member-card.maid-of-honor .member-photo,
  .member-card.best-man .member-photo {
    width: 120px;
    height: 120px;
  }
  
  .member-info h3 {
    font-size: 0.8rem;
    min-height: 2em;
  }
  
  .member-card.maid-of-honor .member-info h3,
  .member-card.best-man .member-info h3 {
    font-size: 1rem;
    min-height: 2.4em;
  }
  
  .member-role {
    font-size: 0.7rem;
  }

  .member-card {
    min-height: 160px;
  }
  
  .member-card.maid-of-honor,
  .member-card.best-man {
    min-height: 180px;
  }
  
}

  /* Travel Section Styles */
.travel-section {
  position: relative;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2rem 0;
  box-sizing: border-box;
}

.travel-section::-webkit-scrollbar {
  display: none;
}

.travel-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem;
}

.travel-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #6A567E;
  text-align: center;
  margin-bottom: 1rem;
  /*text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);*/
}

.travel-intro {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
}

.travel-intro p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #6A567E;
  line-height: 1.6;
  /*text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);*/
  margin: 0;
}

.hotels-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hotel-category {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/*.category-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #6A567E;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}*/

.hotel-card {
  background: rgba(234,221,200, 0.505);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hotel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.hotel-card:last-child {
  margin-bottom: 0;
}

.hotel-info h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: #6A567E;
  margin-bottom: 0.5rem;
  /*text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);*/
}

.hotel-address {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #6A567E;
  margin-bottom: 0.8rem;
  font-style: italic;
  /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);*/
}

.hotel-description {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #6A567E;
  line-height: 1.5;
  margin-bottom: 1rem;
  /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);*/
}

.hotel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
}

.hotel-link {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  /*color: #6A567E;*/
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(234,221,200);
  color: #6A567E;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  /*text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);*/
  backdrop-filter: blur(4px);
  box-sizing: border-box;
  word-wrap: break-word;
  text-align: center;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hotel-link:hover {
  background: #EEE2F9;
  color: #6A567E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.travel-footer {
  text-align: center;
  align-items: center;
  /*max-width: 600px;*/
  margin-bottom: 5rem;
}

.travel-footer p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #6A567E;
  text-align: center;
  line-height: 1.6;
  /*text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);*/
  margin: 0;
  font-style: italic;
}

/* Mobile Responsiveness for Travel Section */
@media (max-width: 768px) {
  .travel-section {
    padding: 1rem 0.5rem;
    background-attachment: scroll;
  }
  
  .travel-container {
    padding: 1rem;
    margin: 0.5rem;
    box-sizing: border-box;
    width: calc(100% - 1rem);
  }
  
  .hotels-grid {
    gap: 1.5rem;
    width: 100%;
  }
  
  .hotel-category {
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  
  .hotel-card {
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  
  .hotel-info {
    width: 100%;
    overflow: hidden;
  }
  
  .hotel-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hotel-link {
    width: calc(100% - 1rem); /* Account for padding */
    max-width: calc(100% - 1rem);
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    text-overflow: clip;
    display: block;
    margin: 0;
  }
  
  /* Target specific long URLs */
  .hotel-link[href*="marriott.com"],
  .hotel-link[href*="holidayinnexpress"],
  .hotel-link[href*="bestwestern"] {
    font-size: 0.75rem;
    padding: 0.6rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .travel-container {
    padding: 0.8rem;
    margin: 0.25rem;
    width: calc(100% - 0.5rem);
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block;
  }
  .hotel-category {
    padding: 0.8rem;
  }
  
  .hotel-card {
    padding: 0.8rem;
  }
  
  .hotel-links {
    gap: 0.5rem;
  }

  .header-logo {
    width: 40px;
    height: 40px;
  }
  
  .hero-center-image.in-header {
    width: 40px;
    height: 40px;
  }
  
  .nav-links-left,
  .nav-links-right {
    gap: 0.5rem;
  }
  
  header nav a {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }

  header {
    min-height: 60px;
  }

  .nav-links a {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  .hotel-link {
    width: calc(100% - 0.8rem); /* Account for smaller padding */
    max-width: calc(100% - 0.8rem);
    padding: 0.5rem 0.4rem;
    font-size: 0.75rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* For extremely small screens */
  @media (max-width: 360px) {
    .travel-container {
      padding: 0.5rem;
      margin: 0.125rem;
    }
    
    .hotel-category {
      padding: 0.6rem;
    }
    
    .hotel-card {
      padding: 0.6rem;
    }
    
    .hotel-link {
      width: calc(100% - 0.6rem);
      max-width: calc(100% - 0.6rem);
      font-size: 0.7rem;
      padding: 0.4rem 0.3rem;
    }
    .wedding-party-container {
    padding: 0.5rem 0.25rem;
  }
  
  .party-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .party-members {
    max-width: 280px;
    gap: 0.8rem;
  }
  }
}

/* Alternative approach: Use grid layout for better control */
@media (max-width: 568px) {
  .hotel-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    width: 100%;
  }
  
  .hotel-link {
    width: 100%;
    justify-self: stretch;
  }
}

/* FAQ Section Styles */
.faq-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2rem 0;
  box-sizing: border-box;
}

.faq-section::-webkit-scrollbar {
  display: none;
}

.faq-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem;
  min-height: calc(100vh - 4rem);
}

.faq-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #6A567E;
  text-align: center;
  margin-bottom: 2rem;
  /*text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);*/
}
.faq-title-p {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #6A567E;
  text-align: center;
}
.faq-toggle-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.faq-toggle {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  color: #6A567E;
  backdrop-filter: blur(5px);
}

.faq-toggle:hover {
  background: #EEE2F9;
  transform: translateY(-2px);
  color: #6A567E;
}

.faq-toggle.active {
  background: rgba(234,221,200);
  color: #6A567E;
  box-shadow: 0 4px 15px rgba(238, 226, 249, 0.75);
}

.faq-category {
  width: 100%;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.faq-category.active {
  display: block;
}

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

.faq-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 100%;
  perspective: 1000px;
  padding: 0;
  box-sizing: border-box;
}

.faq-card {
  height: 180px;
  position: relative;
  cursor: pointer;
  perspective: 1000px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.faq-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-sizing: border-box;
}

.faq-card.flipped .faq-card-inner {
  transform: rotateY(180deg);
}

.faq-card-front,
.faq-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  /*padding: 1rem;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
  overflow: hidden;
}

.faq-card-front {
  background: rgba(234,221,200, 0.75);
  backdrop-filter: blur(8px);
  color: #6A567E;
}

.faq-card-back {
  background: #EEE2F9;
  backdrop-filter: blur(8px);
  color: #6A567E;
  transform: rotateY(180deg);
  text-align: center;
}

.faq-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.faq-card-front h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  margin: 0;
  line-height: 1.2;
  /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);*/
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100% - 3rem);
  overflow: hidden;
}

.faq-card-back p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  line-height: 1.4;
  margin: 0;
  /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);*/
  overflow-y: auto;
  max-height: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
}

.faq-card:hover .faq-card-inner {
  transform: scale(1.01);
}

.faq-card-front:hover {
  background: #EEE2F9;
  transform: translateY(-2px);
  color: #6A567E;
}

.faq-card.flipped:hover .faq-card-inner {
  transform: rotateY(180deg) scale(1.01);
}

/* Couple FAQs Background */
#couple-faqs {
  background: linear-gradient(rgba(200, 162, 200, 0.1), rgba(200, 162, 200, 0.1)), url('images/couple/serious/19.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: local;
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(5px);
}

/* Wedding FAQs Background */
#wedding-faqs {
  background: linear-gradient(rgba(200, 162, 200, 0.1), rgba(200, 162, 200, 0.1)), url('emerson_1.png');
  background-size: cover;
  background-position: center;
  background-attachment: local;
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(5px);
}

#registry-faqs {
  background: linear-gradient(rgba(200, 162, 200, 0.1), rgba(200, 162, 200, 0.1)), url('/images/couple/funny/2.jpeg');
  background-size: contain;
  background-position: center;
  background-attachment: local;
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(5px);
}
/* Mobile Responsiveness for FAQ Section */
@media (max-width: 768px) {
  .faq-section {
    padding: 1rem 0.5rem;
    background-attachment: scroll;
  }
  
  .faq-container {
    padding: 1.5rem;
    margin: 0.5rem;
    min-height: calc(100vh - 2rem);
  }
  
  .faq-toggle-container {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .faq-toggle {
    padding: 0.8rem 1rem;
    width: 100%;
  }
  
  .faq-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  
  .faq-card {
    height: 160px;
    max-width: 100%;
  }
  
  .faq-card-front,
  .faq-card-back {
    padding: 0.8rem;
  }
  
  .faq-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }
  
  .faq-card-front h3 {
    font-size: 0.9rem;
    line-height: 1.1;
  }
  
  .faq-card-back p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  #couple-faqs,
  #wedding-faqs,
  #registry-faqs {
    padding: 1rem;
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .faq-container {
    padding: 1rem;
    margin: 0.25rem;
  }
  
  .faq-title {
    margin-bottom: 1.5rem;
  }
  
  .faq-toggle-container {
    margin-bottom: 1.5rem;
  }
  
  .faq-toggle {
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
  }
  
  .faq-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .faq-card {
    height: 150px;
  }
  
  .faq-card-front,
  .faq-card-back {
    padding: 0.6rem;
  }
  
  .faq-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }
  
  .faq-card-front h3 {
    font-size: 0.85rem;
    line-height: 1.1;
  }
  
  .faq-card-back p {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

/* Alternative grid layout for very small screens */
@media (max-width: 360px) {
  .faq-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .faq-card {
    height: 140px;
  }
  
  .faq-card-front,
  .faq-card-back {
    padding: 0.5rem;
  }
}

/* RSVP Section Styles - Updated to position content higher */
/*.rsvp-section {
  position: relative;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(rgba(200, 162, 200, 0.75), rgba(200, 162, 200, 0.75)), url('first_hang.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Changed from flex-start to align-items: flex-start 
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;  Reduced top padding 
  box-sizing: border-box;
}

.rsvp-section::-webkit-scrollbar {
  display: none;
}

.rsvp-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Changed from center to flex-start 
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem 2rem 2rem 2rem; /* Reduced top padding 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0.5rem 1rem 1rem 1rem; /* Reduced top margin 
  text-align: center;
  min-height: calc(100vh - 3rem); /* Adjusted for smaller margins 
  margin-top: 0.5rem; /* Explicit small top margin 
}

.rsvp-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  text-align: center;
  margin-bottom: 1.5rem; /* Reduced bottom margin 
  margin-top: 0; /* Ensure no top margin 
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Search Section 
.rsvp-search {
  width: 100%;
  max-width: 600px;
  margin-top: 0; /* Ensure no top margin 
}

.search-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: white;
  margin-bottom: 1rem;
  margin-top: 0; /* Ensure no top margin 
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.search-content p {
  font-family: 'Montserrat', sans-serif;
  color: white;
  margin-bottom: 2rem;
  margin-top: 0; /* Ensure no top margin 
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 0; /* Ensure no top margin 
}

.search-form input {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-family: 'Montserrat', sans-serif;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.search-form input:focus {
  outline: none;
  border-color: #a45ee5;
  box-shadow: 0 0 15px rgba(164, 94, 229, 0.3);
}

.search-error {
  background: rgba(255, 99, 99, 0.2);
  border: 1px solid rgba(255, 99, 99, 0.5);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.search-error p {
  color: #ffaaaa;
  margin: 0;
  font-size: 1rem;
}

/* RSVP Form 
.rsvp-form-container {
  width: 100%;
  max-width: 700px;
  animation: slideIn 0.5s ease-out;
  margin-top: 0; /* Ensure no top margin 
}

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

.guest-info {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 0; /* Ensure no top margin 
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.guest-info h3 {
  font-family: 'Cinzel', serif;
  color: white;
  margin-bottom: 0.5rem;
  margin-top: 0; /* Ensure no top margin 
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.guest-info p {
  font-family: 'Montserrat', sans-serif;
  color: white;
  margin: 0.25rem 0;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.rsvp-step {
  display: none;
  text-align: center;
  padding: 1rem 0; /* Reduced padding 
}

.rsvp-step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.rsvp-step h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
  margin-top: 0; /* Ensure no top margin 
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.step-details {
  font-family: 'Montserrat', sans-serif;
  color: white;
  margin-bottom: 2rem;
  margin-top: 0; /* Ensure no top margin 
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.rsvp-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.rsvp-btn {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  min-width: 150px;
  font-weight: 500;
}

.rsvp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.rsvp-btn.yes-btn {
  background: rgba(76, 175, 80, 0.7);
  border-color: rgba(76, 175, 80, 0.8);
}

.rsvp-btn.yes-btn:hover {
  background: rgba(76, 175, 80, 0.9);
}

.rsvp-btn.no-btn {
  background: rgba(244, 67, 54, 0.7);
  border-color: rgba(244, 67, 54, 0.8);
}

.rsvp-btn.no-btn:hover {
  background: rgba(244, 67, 54, 0.9);
}

.rsvp-btn.continue-btn,
.rsvp-btn.secondary {
  background: #a45ee5;
  border-color: #a45ee5;
}

.rsvp-btn.continue-btn:hover,
.rsvp-btn.secondary:hover {
  background: #8a4bc7;
}

/* Mobile Responsiveness for RSVP Section 
@media (max-width: 768px) {
  .rsvp-section {
    padding: 0.5rem 0.5rem; /* Reduced top padding 
    background-attachment: scroll;
  }
  
  .rsvp-container {
    padding: 1rem 1.5rem 1.5rem 1.5rem; /* Reduced top padding 
    margin: 0.25rem 0.5rem 0.5rem 0.5rem; /* Reduced top margin 
    min-height: calc(100vh - 1.5rem); /* Adjusted for smaller margins 
  }
  
  .rsvp-title {
    margin-bottom: 1rem; /* Reduced margin 
  }
  
  .search-form {
    gap: 0.8rem;
  }
  
  .rsvp-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .rsvp-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .meal-options {
    gap: 0.8rem;
  }
  
  .meal-option {
    padding: 0.8rem;
  }
  
  .rsvp-navigation {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .rsvp-container {
    padding: 0.75rem 1rem 1rem 1rem; /* Further reduced top padding 
    margin: 0.125rem 0.25rem 0.25rem 0.25rem; /* Further reduced top margin 
  }
  
  .guest-info {
    padding: 1rem;
  }
  
  .rsvp-step {
    padding: 0.5rem 0; /* Further reduced padding 
  }
  
  .rsvp-summary {
    padding: 1rem;
  }
  
  .meal-option {
    padding: 0.6rem;
  }
  
  .dietary-restrictions textarea {
    min-height: 60px;
  }
}*/
/* Things to Do Section Styles */
.things-to-do-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  margin-bottom: 5rem;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2rem 0;
  box-sizing: border-box;
}

.things-to-do-section::-webkit-scrollbar {
  display: none;
}

.things-to-do-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem;
  min-height: calc(100vh - 4rem);
}

.things-to-do-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #6A567E;
  text-align: center;
  margin-bottom: 1rem;
  /*text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);*/
}

.things-to-do-intro {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
}

.things-to-do-intro p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #6A567E;
  line-height: 1.6;
  /*text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);*/
  margin: 0;
}

.category-section {
  width: 100%;
  max-width: 100%;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  overflow: hidden;
}

.category-section:last-of-type {
  margin-bottom: 2rem;
}

.category-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #6A567E;
  text-align: center;
  margin-bottom: 2rem;
  /*text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);*/
  text-decoration: underline;
  text-decoration-color: #EEE2F9;
  text-underline-offset: 0.5rem;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.place-card {
  background: rgba(234,221,200, 0.505);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.place-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.place-info h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: #6A567E;
  margin-bottom: 0.8rem;
  /*text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);*/
}

.place-description {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #6A567E;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);*/
  flex-grow: 1;
}

.place-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: auto;
}

.place-link {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  color: #6A567E;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  background: rgba(234,221,200);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  text-align: center;
  flex: 1;
  max-width: 120px;
}

.place-link:hover {
  background: #EEE2F9;
  color: #6A567E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.things-to-do-footer {
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.things-to-do-footer p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #6A567E;
  line-height: 1.6;
  /*text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);*/
  margin: 0;
  font-style: italic;
}

/* Mobile Responsiveness for Things to Do Section */
@media (max-width: 768px) {
  .things-to-do-section {
    padding: 1rem 0.5rem;
    background-attachment: scroll;
  }
  
  .things-to-do-container {
    padding: 1rem;
    margin: 0.5rem;
    min-height: calc(100vh - 2rem);
    max-width: calc(100vw - 1rem);
  }
  
  .category-section {
    padding: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  
  .places-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  
  .place-card {
    padding: 1rem;
    max-width: 100%;
  }
  
  .place-links {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .place-link {
    max-width: 100%;
    flex: none;
  }
}

@media (max-width: 480px) {
  .things-to-do-container {
    padding: 1rem;
    margin: 0.25rem;
  }
  
  .category-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .places-grid {
    gap: 1rem;
  }
  
  .place-card {
    padding: 1rem;
  }
  
  .place-links {
    gap: 0.5rem;
  }
  
  .place-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .things-to-do-footer {
    padding: 1rem;
  }
}

/* Alternative grid layout for very small screens */
@media (max-width: 360px) {
  .places-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .place-card {
    padding: 0.8rem;
  }
  
  .place-links {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Photos Section Styles */
    .photos-section {
      position: relative;
      height: 100vh;
      background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
      background-size: cover;
      background-position: top center;
      background-attachment: fixed;
      background-repeat: no-repeat;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      overflow-y: auto;
      overflow-x: hidden;
      scroll-snap-align: start;
      scroll-snap-stop: always;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding: 2rem 0;
      box-sizing: border-box;
    }

    .photos-section::-webkit-scrollbar {
      display: none;
    }

    .photos-container {
      width: 100%;
      max-width: 1200px;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: 2rem;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.2);
      margin: 1rem;
      min-height: calc(100vh - 4rem);
    }

    .photos-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(2rem, 4vw, 3rem);
      color: #6A567E;
      text-align: center;
      margin-bottom: 2rem;
      /*text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);*/
    }

    .photos-controls {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 2rem;
      align-items: center;
      width: 100%;
      max-width: 600px;
    }

    .toggle-group {
      display: flex;
      gap: 1rem;
      background: rgba(255, 255, 255, 0.1);
      padding: 0.5rem;
      border-radius: 15px;
      backdrop-filter: blur(5px);
      flex-wrap: wrap;
      justify-content: center;
    }

    .toggle-button {
      font-family: 'Cinzel', serif;
      font-size: clamp(0.9rem, 1.8vw, 1.1rem);
      padding: 0.8rem 1.5rem;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      background: rgba(255, 255, 255, 0.2);
      color: #6A567E;
      backdrop-filter: blur(5px);
      white-space: nowrap;
    }

    .toggle-button:hover {
      background: #EEE2F9;
      color: #6A567E;
      transform: translateY(-2px);
    }

    .toggle-button.active {
      background: rgba(234,221,200);
      color: #6A567E;
      /*box-shadow: 0 4px 15px rgba(164, 94, 229, 0.4);*/
    }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
  align-items: start;
}


.photo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #a45ee5;
}

* Loading message styles for photo gallery */
.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin: 3rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.loading-message p {
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.photo-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
  display: block;
  border-radius: 10px;
}

    .photo-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(45deg, rgba(164, 94, 229, 0.3), rgba(200, 162, 200, 0.3));
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 1;
    }

    .photo-item:hover::before {
      opacity: 1;
    }

    /* Photo Modal */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 0;
  box-sizing: border-box;
}

.modal-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 120px 80px 120px;
  box-sizing: border-box;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: block;
}



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

    .modal-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1.5rem;
      color: white;
      user-select: none;
    }

    .modal-nav:hover {
      background: rgba(164, 94, 229, 0.7);
      transform: translateY(-50%) scale(1.1);
    }

.modal-nav.prev {
  left: 20px;
}


.modal-nav.next {
  right: 20px;
}

    .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1.2rem;
      color: white;
      user-select: none;
    }

    .modal-close:hover {
      background: rgba(164, 94, 229, 0.7);
      transform: scale(1.1);
    }

    .photo-counter {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 20px;
      padding: 0.5rem 1rem;
      color: white;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
    }

    .no-photos {
      text-align: center;
      color: white;
      font-family: 'Montserrat', sans-serif;
      font-size: 1.2rem;
      margin: 3rem 0;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(8px);
      border-radius: 15px;
      padding: 2rem;
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
      .photos-section {
        padding: 1rem 0.5rem;
        background-attachment: scroll;
      }
      
      .photos-container {
        padding: 1.5rem;
        margin: 0.5rem;
        min-height: calc(100vh - 2rem);
      }
      
      .photos-controls {
        gap: 1rem;
      }
      
      .toggle-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 300px;
      }
      
      .toggle-button {
        padding: 0.6rem 1rem;
        width: 100%;
      }
      
      .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
      }
      
      .modal-nav.prev {
        left: -60px;
      }
      
      .modal-nav.next {
        right: -60px;
      }
      
      .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
      }
    }

    @media (max-width: 480px) {
      .photos-container {
        padding: 1rem;
        margin: 0.25rem;
      }
      
      .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.6rem;
      }
      
      .photo-modal {
        padding: 1rem;
      }
      
      .modal-nav.prev {
        left: -50px;
      }
      
      .modal-nav.next {
        right: -50px;
      }
      
      .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
      }
      
      .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -50px;
      }
      
      .photo-counter {
        bottom: -40px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
      }
    }

    /* Touch-friendly navigation for mobile */
    @media (max-width: 768px) {
      .modal-nav.prev {
        left: 10px;
      }
      
      .modal-nav.next {
        right: 10px;
      }
      
      .modal-close {
        top: 10px;
        right: 10px;
      }
      
      .photo-counter {
        bottom: 10px;
      }
    }

/* RSVP Section Styles */
.rsvp-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2rem 0;
  box-sizing: border-box;
}

.rsvp-section::-webkit-scrollbar {
  display: none;
}

.rsvp-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem;
  text-align: center;
  min-height: calc(100vh - 4rem);
}

.rsvp-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #6A567E;
  text-align: center;
  margin-bottom: 2rem;
  /*text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);*/
}

/* Search Section */
.rsvp-search {
  width: 100%;
  max-width: 600px;
}

.search-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #6A567E;
  margin-bottom: 1rem;
  /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);*/
}

.search-content p {
  font-family: 'Montserrat', sans-serif;
  color: #6A567E;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);*/
}

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

.search-form input {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-family: 'Montserrat', sans-serif;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.search-form input:focus {
  outline: none;
  border-color: #6A567E;
  box-shadow: 0 0 15px rgba(164, 94, 229, 0.3);
}

.search-error {
  background: rgba(255, 99, 99, 0.2);
  border: 1px solid rgba(255, 99, 99, 0.5);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.search-error p {
  color: #ffaaaa;
  margin: 0;
  font-size: 1rem;
}

/* RSVP Form */
.rsvp-form-container {
  width: 100%;
  max-width: 700px;
  animation: slideIn 0.5s ease-out;
}

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

.guest-info {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.guest-info h3 {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.guest-info p {
  font-family: 'Montserrat', sans-serif;
  color: #6A567E;
  margin: 0.25rem 0;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.rsvp-step {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.rsvp-step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.rsvp-step h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #6A567E;
  margin-bottom: 1rem;
  /*text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);*/
}

.step-details {
  font-family: 'Montserrat', sans-serif;
  color: #6A567E;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);*/
  line-height: 1.5;
}

.rsvp-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.rsvp-btn {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  position: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #6A567E;
  color: white;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  min-width: 150px;
  font-weight: 500;
}

.rsvp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: #a45ee5;
  color: white;
}

.rsvp-btn.yes-btn {
  background: rgba(76, 175, 80, 0.7);
  border-color: rgba(76, 175, 80, 0.8);
}

.rsvp-btn.yes-btn:hover {
  background: rgba(76, 175, 80, 0.9);
}

.rsvp-btn.no-btn {
  background: rgba(244, 67, 54, 0.7);
  border-color: rgba(244, 67, 54, 0.8);
}

.rsvp-btn.no-btn:hover {
  background: rgba(244, 67, 54, 0.9);
}

.rsvp-btn.continue-btn,
.rsvp-btn.secondary {
  background: #a45ee5;
  border-color: #a45ee5;
}

.rsvp-btn.continue-btn:hover,
.rsvp-btn.secondary:hover {
  background: #8a4bc7;
}

/* Meal Selection */
.meal-options {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}
.party-members-list {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}

.party-members-list h4 {
  color: #6A567E;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}

.party-members-list p {
  color: #6A567E;
  margin: 0.25rem 0;
}

.party-member-response {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.party-member-response h4 {
  color: #6A567E;
  margin-bottom: 0.5rem;
}

.rsvp-btn.selected {
  opacity: 1 !important;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(164, 94, 229, 0.5);
}

.party-member-meal-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.party-member-summary {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.party-member-summary h4 {
  color: #6A567E;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}
.meal-option {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.meal-option:hover {
  border-color: #a45ee5;
  background: rgba(255, 255, 255, 0.15);
}

.meal-option input[type="radio"] {
  margin-right: 1rem;
  transform: scale(1.2);
}

.meal-option input[type="radio"]:checked + label {
  color: #a45ee5;
}

.meal-option:has(input[type="radio"]:checked) {
  border-color: #a45ee5;
  background: rgba(164, 94, 229, 0.2);
}

.meal-option label {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: #6A567E;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}

.meal-option label strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}

.meal-option label span {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #6A567E;
  font-style: italic;
}

.dietary-restrictions {
  margin: 2rem 0;
  text-align: left;
}

.dietary-restrictions label {
  display: block;
  font-family: 'Cinzel', serif;
  color: #6A567E;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.dietary-restrictions textarea {
  width: 100%;
  min-height: 80px;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  color: #6A567E;
  font-family: 'Montserrat', sans-serif;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  resize: vertical;
  box-sizing: border-box;
}

.dietary-restrictions textarea:focus {
  outline: none;
  border-color: #a45ee5;
  box-shadow: 0 0 15px rgba(164, 94, 229, 0.3);
}

/* RSVP Summary */
.rsvp-summary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left;
}

.rsvp-summary h3 {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  margin-bottom: 1rem;
  text-align: center;
}

.summary-item {
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item strong {
  font-family: 'Cinzel', serif;
  color: #6A567E;
  display: block;
  margin-bottom: 0.25rem;
}

.summary-item span {
  font-family: 'Montserrat', sans-serif;
  color: #6A567E;
}

.confirmation-message {
  font-family: 'Montserrat', sans-serif;
  color: #6A567E;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin: 2rem 0;
/*  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);*/
}

/* Navigation */
.rsvp-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

/* Mobile Responsiveness for RSVP Section */
@media (max-width: 768px) {
  .rsvp-section {
    padding: 1rem 0.5rem;
    background-attachment: scroll;
  }
  
  .rsvp-container {
    padding: 1.5rem;
    margin: 0.5rem;
    min-height: calc(100vh - 2rem);
  }
  
  .rsvp-title {
    margin-bottom: 1.5rem;
  }
  
  .search-form {
    gap: 0.8rem;
  }
  
  .rsvp-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .rsvp-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .meal-options {
    gap: 0.8rem;
  }
  
  .meal-option {
    padding: 0.8rem;
  }
  
  .rsvp-navigation {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .rsvp-container {
    padding: 1rem;
    margin: 0.25rem;
  }
  
  .guest-info {
    padding: 1rem;
  }
  
  .rsvp-step {
    padding: 1rem 0;
  }
  
  .rsvp-summary {
    padding: 1rem;
  }
  
  .meal-option {
    padding: 0.6rem;
  }
  
  .dietary-restrictions textarea {
    min-height: 60px;
  }
}

.email-confirmation {
  margin-top: 1.5rem;
  text-align: left;
}

.email-confirmation label {
  display: block;
  font-family: 'Cinzel', serif;
  color: #6A567E;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.email-confirmation input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  color: #6A567E;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-family: 'Montserrat', sans-serif;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.email-confirmation input:focus {
  outline: none;
  border-color: #a45ee5;
  box-shadow: 0 0 15px rgba(164, 94, 229, 0.3);
}

.email-help {
  margin-top: 0.5rem;
}

.email-help p {
  color: #6A567E !important;
  margin: 0;
  font-size: 0.85rem !important;
  font-style: italic;
}

.email-error {
  background: rgba(255, 99, 99, 0.2);
  border: 1px solid rgba(255, 99, 99, 0.5);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.email-error p {
  color: #ffaaaa !important;
  margin: 0;
  font-size: 0.9rem !important;
}

.existing-rsvp-notice {
  background: #6A567E;
  border: 1px solid #6A567E;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.existing-rsvp-notice p {
  color: white !important;
  margin: 0;
  font-size: 1rem !important;
  text-align: center;
}

.existing-rsvp-notice strong {
  color: white !important;
}

/* Rick Roll Section Styles */
.rick-roll-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(255,255,240, 0.75), rgba(255,255,240, 0.75)), url('/images/background.jpeg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: gradientShift 3s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rick-roll-section::-webkit-scrollbar {
  display: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.rick-roll-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin: 1rem;
  text-align: center;
  animation: bounce 2s ease-in-out infinite alternate;
}

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

.rick-roll-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.rick-roll-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  text-align: center;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  animation: colorChange 2s ease-in-out infinite alternate;
}

@keyframes colorChange {
  0% {
    color: #ff6b6b;
    text-shadow: 0 4px 15px rgba(255, 107, 107, 0.8);
  }
  25% {
    color: #4ecdc4;
    text-shadow: 0 4px 15px rgba(78, 205, 196, 0.8);
  }
  50% {
    color: #45b7d1;
    text-shadow: 0 4px 15px rgba(69, 183, 209, 0.8);
  }
  75% {
    color: #96ceb4;
    text-shadow: 0 4px 15px rgba(150, 206, 180, 0.8);
  }
  100% {
    color: #ffeaa7;
    text-shadow: 0 4px 15px rgba(255, 234, 167, 0.8);
  }
}

.rick-roll-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: white;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.rick-roll-message {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: white;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.video-container {
  width: 100%;
  max-width: 800px;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.4);
  animation: videoGlow 2s ease-in-out infinite alternate;
}

@keyframes videoGlow {
  0% {
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
    border-color: rgba(255, 107, 107, 0.6);
  }
  25% {
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.5);
    border-color: rgba(78, 205, 196, 0.6);
  }
  50% {
    box-shadow: 0 8px 30px rgba(69, 183, 209, 0.5);
    border-color: rgba(69, 183, 209, 0.6);
  }
  75% {
    box-shadow: 0 8px 30px rgba(150, 206, 180, 0.5);
    border-color: rgba(150, 206, 180, 0.6);
  }
  100% {
    box-shadow: 0 8px 30px rgba(255, 234, 167, 0.5);
    border-color: rgba(255, 234, 167, 0.6);
  }
}

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

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 15px;
}

.video-placeholder:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: scale(1.02);
}

.play-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.play-button {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.play-icon {
  font-size: 2.5rem;
  color: white;
  margin-left: 5px; /* Slight offset to center the triangle */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.play-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: white;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: glow 2s ease-in-out infinite alternate;
}

.play-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-style: italic;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.success-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: white;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.success-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-style: italic;
}

.replay-button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 25px;
  color: white;
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2vw, 1.1rem);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.replay-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

@keyframes glow {
  from {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  to {
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
  }
}

.rick-roll-footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 600px;
}

.rick-roll-footer p {
  font-family: 'Montserrat', sans-serif;
  color: white;
  margin: 0.5rem 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
}

.signature {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  color: #ffeaa7 !important;
  margin-top: 1rem !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

/* Mobile Responsiveness for Rick Roll Section */
@media (max-width: 768px) {
  .rick-roll-section {
    padding: 1rem 0.5rem;
  }
  
  .rick-roll-container {
    padding: 2rem 1.5rem;
    margin: 0.5rem;
  }
  
  .rick-roll-content {
    gap: 1.5rem;
  }
  
  .video-container {
    max-width: 100%;
  }
  
  .rick-roll-footer {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .rick-roll-container {
    padding: 1.5rem 1rem;
    margin: 0.25rem;
  }
  
  .rick-roll-content {
    gap: 1rem;
  }
  
  .rick-roll-footer {
    padding: 1rem;
  }
}

/* Special effects for when the section comes into view */
.rick-roll-section.in-view {
  animation: rickRollReveal 1s ease-out forwards;
}

@keyframes rickRollReveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
