@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Playfair+Display:wght@700&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background:
    linear-gradient(
      rgba(245, 248, 250, 0.85),
      rgba(245, 248, 250, 0.85)
    ),
    url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1350&q=80') no-repeat center center fixed;
  background-size: cover;
  color: #3b4a49; /* deep slate green-blue */
  padding: 2rem;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 1200px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* Responsive heading sizes */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  color: #2e4f4f; /* dark teal */
  text-shadow: 0 1px 3px rgba(255 255 255 / 0.9);
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 3rem;
  text-align: left;
  border-bottom: 3px solid #a2d5c6; /* soft mint */
  padding-bottom: 0.4rem;
  color: #2e4f4f;
  text-shadow: 0 1px 3px rgba(255 255 255 / 0.9);
  word-wrap: break-word;
}

/* Story text adapts inside container */
.story p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: break-word;
  margin-bottom: 1rem;
}

a {
  color: #529cae; /* pastel blue-teal */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

a:hover,
a:focus {
  color: #3c7a87; /* deeper teal */
  border-color: #529cae;
  outline: none;
}

button {
  background-color: #8ac6b7; /* pastel seafoam green */
  color: #2f3e3e; /* charcoal teal */
  border: none;
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 45px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(138, 198, 183, 0.55);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  margin-top: 1.5rem;
  user-select: none;
}

button:hover,
button:focus {
  background-color: #6da996; /* deeper seafoam */
  box-shadow: 0 8px 24px rgba(109, 169, 150, 0.7);
  outline: none;
}

.qr-code {
  width: 220px;
  height: 220px;
  border-radius: 22px;
  box-shadow: 0 6px 22px rgba(138, 198, 183, 0.35);
  cursor: pointer;
  transition: transform 0.38s ease;
  margin: 2rem auto;
  display: block;
  background: white;
  padding: 14px;
}

.qr-code:hover {
  transform: scale(1.1) rotate(2deg);
}

.upload-link {
  display: inline-block;
  background: #f9d5bb; /* soft coral peach */
  color: #6e4a3e; /* warm brown */
  font-weight: 700;
  padding: 0.85rem 2.8rem;
  border-radius: 45px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(249, 213, 187, 0.55);
  transition: background-color 0.35s ease;
  margin-bottom: 2.5rem;
  user-select: none;
}

.upload-link:hover,
.upload-link:focus {
  background-color: #d9a779; /* deeper coral */
  box-shadow: 0 8px 26px rgba(217, 167, 121, 0.75);
  outline: none;
}

/* Sidebar + layout tweaks */

.container {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(249, 228, 212, 0.55); /* peachy nude with opacity */
  border-radius: 20px;
  box-shadow: 0 9px 26px rgba(0,0,0,0.12);
  overflow: visible;
  flex-wrap: nowrap;
}

.sidebar {
  width: 320px;
  background: rgba(250, 243, 236, 0.97); /* soft pastel cream */
  padding: 38px 32px;
  box-sizing: border-box;
  border-right: 1.5px solid #c6d8d5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-weight: 600;
  user-select: none;
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: #2e4f4f;
  letter-spacing: 0.05em;
}

.sidebar nav ul {
  list-style: none;
  padding-left: 0;
}

.sidebar nav ul li {
  margin-bottom: 1.3rem;
}

.sidebar nav ul li a {
  font-weight: 600;
  font-size: 1.18rem;
  color: #3b4a49;
  display: inline-block;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

.sidebar nav ul li a[aria-current="page"],
.sidebar nav ul li a:hover,
.sidebar nav ul li a:focus {
  font-weight: 700;
  color: #72b2a3; /* minty teal */
  outline: none;
  border-bottom: 2.5px solid #a2d5c6;
}

.main-content {
  flex-grow: 1;
  padding: 48px 60px;
  box-sizing: border-box;
  max-width: 900px;
  min-width: 520px;
  overflow-wrap: break-word;
}

/* Carousel styles */
.carousel {
  position: relative;
  max-width: 700px;  /* slightly wider to fit 2 images */
  margin: 2rem auto;
  overflow: hidden;  /* important to clip overflow */
}

.carousel-container {
  display: flex;
  gap: 10px;        /* space between images */
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.carousel-image {
  flex: 0 0 calc(50% - 5px); /* take half width minus half gap */
  max-height: 350px;          /* limit height */
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.carousel-button {
  display: none !important; /* hide buttons on all devices */
}

.carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.invite-image-container {
  text-align: center;
  margin-bottom: 2rem;
}

.invite-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 600px;       /* max width for desktop */
  max-width: 100%;    /* never exceed container width */
}

@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem 1.5rem;
    margin: 0 auto;
    min-height: auto;
    flex-wrap: wrap;
  }

  /* Sidebar adjustments */
  .sidebar {
    width: 100%;
    border-right: none;
    padding: 1rem 0;
    text-align: center;
  }
  .sidebar nav ul {
    display: block;
    padding-left: 0;
    margin: 0 auto;
    max-width: 300px;
  }
  .sidebar nav ul li {
    margin-bottom: 1rem;
    text-align: center;
  }
  .sidebar nav ul li a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: inline-block;
    width: 100%;
  }

  /* Main content padding aligned with container */
  .main-content {
    padding-left: 1.5rem;   /* same as container padding-left */
    padding-right: 1.5rem;  /* same as container padding-right */
    min-width: auto;
    max-width: 100%;        /* prevent overflow */
    box-sizing: border-box; /* ensure padding doesn’t break layout */
  }

  /* Carousel full width & aligned with container */
  .carousel {
    max-width: 100%;
    overflow: hidden;
    position: relative; /* needed for layering */
    margin: 2rem auto; 
}

  .carousel-container {
    display: flex;
    gap: 10px; /* same gap as desktop */
    padding-left: 10px; /* to give left padding for centering */
    transition: transform 0.4s ease-in-out; /* smooth slide */
  }

  .carousel-image {
    flex: 0 0 calc(100% - 20px); /* width minus gaps on sides */
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    pointer-events: none;
  }

  .carousel-button {
    display: none !important; /* hide buttons on mobile */
  }

  /* Responsive typography and link/button sizing */
  h1 {
    text-align: left;
    padding-left: 1rem;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    margin-bottom: 2rem;
  }
  h2 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    margin-top: 2rem;
    border-bottom-width: 2px;
  }
  .story p {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: 0.85rem;
  }
  a {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
  button {
    font-size: clamp(1rem, 3vw, 1.15rem);
    padding: 0.75rem 2rem;
  }

  /* Map iframe adjustments */
  iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 250px !important;
    border-radius: 12px;
    margin: 1rem 0;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

   .invite-image {
    width: 90vw;       /* almost full viewport width on mobile */
    max-width: 100%;
  }
}
/* Scoped styling only for schedule section */
.schedule {
  margin-top: 3rem;
  padding: 2rem 3rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.schedule h2 {
  font-family: 'Playfair Display', serif;
  color: #2e4f4f;
  margin-bottom: 2.5rem;
  font-size: 2.25rem;
  border-bottom: 3px solid #a2d5c6;
  padding-bottom: 0.5rem;
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1rem;
  font-family: 'Montserrat', sans-serif;
}

.schedule-table td {
  padding: 12px 15px;
  font-size: 1rem;
  vertical-align: middle;
  position: relative;
}

/* Clean bifurcation: subtle vertical dividers */
.schedule-table td:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: #cde3e0; /* soft mint divider */
}

.schedule-table .date {
  font-weight: 600;
  color: #2f6f78;
  width: 180px;
}

.schedule-table .time {
  font-style: italic;
  font-weight: 500;
  color: #3c7a87;
  width: 180px;
}

.schedule-table .event {
  text-align: left;
  font-weight: 500;
  color: #3b4a49;
}

/* Alternating row background for clarity */
.schedule-table tr:nth-child(even) td {
  background: rgba(162, 213, 198, 0.1); /* subtle mint tint */
  border-radius: 8px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    margin-bottom: 1.5rem;
  }

  .schedule-table td {
    text-align: left;
    padding: 6px 0;
  }

  .schedule-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #2e4f4f;
    display: inline-block;
    width: 100px;
    margin-right: 8px;
  }

  /* Remove vertical dividers on mobile */
  .schedule-table td:not(:last-child)::after {
    display: none;
  }

  .schedule-table tr:nth-child(even) td {
    background: transparent;
  }
}.venue {
  text-align: left;
  margin: 3rem auto;
}

.venue-name {
  font-size: 2rem;           /* larger font for emphasis */
  color: #72b2a3;            /* mint green */
  margin: 0.5rem 0 0.2rem 0;
  font-family: 'Playfair Display', serif;
}

.venue-address {
  font-size: 1rem;
  color: #3b4a49;            /* neutral dark text */
  margin-bottom: 1.5rem;
}

.venue iframe {
  max-width: 100%;
  height: 450px;
  border-radius: 15px;
  border: 0;
  box-shadow: 0 6px 18px rgba(114, 178, 163, 0.3); /* subtle mint shadow */
}
