/* styles.css */

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', serif;
  color: #1e3363;
}


.swiper {
  width: 100%;
  height: 100vh;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.slide-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  
}

.image-half {
  flex: 1 1 50%;
  max-width: 50%;
  height: 100%;
  overflow: hidden;
}

.image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-half {
  flex: 1 1 50%;
  max-width: 50%;
  background-color: #f4f4f4;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.center-content {
  text-align: center;
}

.slide-logo {
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.slide-logo strong {
  font-size: 32px;
}

.slide-title {
  font-size: 40px;
  font-weight: normal;
  margin: 10px 0 20px;
  line-height: 1.3;
}
.slide-title {
  font-family: 'Beautifully Delicious', cursive;
  font-size: 3em;
  color: #1e3363;
  line-height: 1.2;
  text-align: center;
}

.subtitle {
  font-size: 20px;
  margin-bottom: 30px;
}

/* Shared button style (already exists, just reuse) */
.outline-button {
  background: transparent;
  color: #1e3363;
  border: 2px solid #1e3363;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

.outline-button:hover {
  background: #1e3363;
  color: white;
}

/* Slide-specific spacing (optional but helps) */
.timeline-slide-button {
  margin-top: auto;
  margin-bottom: 40px;
}

.slide5-button {
  margin-top: auto;
  margin-bottom: 40px;
}

.grey-background {
  background-color: #f4f4f4;
}

.peach-background {
  background-color: #fff0e6;
}

.white-background {
  background-color: #ffffff;
}

/* ---------- Base mobile styles for all slides ---------- */
@media (max-width: 768px) {
  .swiper-slide {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
  }

  .slide-container,
  .slide-4-inner,
  .slide-5-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .content-half,
  .image-half {
    max-width: 100%;
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .slide-title {
    font-size: 1.8em;
  }

  .subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .outline-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .image-half img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .image-half,
  .content-half {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .slide-title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 16px;
  }

  .slide-logo {
    font-size: 20px;
  }

  .slide-logo strong {
    font-size: 24px;
  }
}/* Core Flip Card Styles */
.flip-card {
  perspective: 1000px;
  width: 180px;
  height: 200px;
  position: relative;
  
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}

.flip-back {
  transform: rotateY(180deg);
  z-index: 2;
}

/* Grid Layout for Slide 2 Flip Cards */
.card-icon-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.card-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* Ensure no overlap during flip */
.icon-card {
  width: 180px;
  height: 200px;
  position: relative;
}

/* Optional: Responsive for smaller screens */
@media (max-width: 600px) {
  .card-row {
    flex-direction: column;
    align-items: center;
  }
}
/* === SLIDE 3 Timeline Styles === */
.timeline-section {
  width: 100vw;
  max-width: 100%;
  text-align: center;
  padding: 20px;
  background: #f6f6f6;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 100px; /* Add extra padding to make space for the button */
}

.timeline-title-heading {
  font-family: "Cormorant Garamond", serif;
  font-weight: bold;
  font-size: 2em;
  margin-bottom: 30px;
  margin-top: 20px;
  z-index: 10;
  position: relative;
}

.timeline-track {
  position: absolute;
  bottom: 100px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  flex-wrap: nowrap;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  min-height: 150px;
  z-index: 2;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 3;
}

.timeline-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2em;
  color: #1e3363;
  margin-top: 10px;
  margin-bottom: 10px;
  z-index: 4;
}

.timeline-line {
  position: absolute;
  bottom: 90px;
  left: 0;
  right: 0;
  height: 2px;
  background: #bbb;
  z-index: 1;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background-color: #ffc27a;
  border-radius: 50%;
  z-index: 5;
  margin-bottom: 10px;
}

.timeline-content {
  display: none;
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 94vw;
  max-width: 1200px;
  padding: 40px;
  z-index: 9;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
}

.timeline-content img {
  width: 250px;
  height: 330px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.timeline-item.active .timeline-content {
  display: flex;
}

.timeline-description {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5em;
  line-height: 1.6em;
  color: #1e3363;
  text-align: left;
  width: 100%;
}

.timeline-title {
  font-family: 'Beautifully Delicious', cursive;
  font-weight: normal;
  font-size: 2.2em;
  margin-bottom: 0.25em;
  text-align: left;
  width: 100%;
  color: #1e3363;
}

.timeline-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5em;
  color: #1e3363;
  margin-bottom: 1em;
  text-align: left;
  width: 100%;
}

.note-link {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2em;
  border: 2px solid #1e3363;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  color: #1e3363;
  margin-top: 30px;
  background: transparent;
  transition: all 0.3s ease;
  align-self: center;
  cursor: pointer;
}

.note-link:hover {
  background: #1e3363;
  color: white;
}
.note-link {
  margin-top: 60px;
  margin-bottom: 30px;
  z-index: 10;
}

.timeline-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
  width: 100%;
}
/* Slide 4 Styles */
.slide.slide-4 {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide 4 Styles */
.slide.slide-4 {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-4-inner {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  background: url('images/beach-couple-4.jpg') center center / cover no-repeat;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.slide-4 .overlay-box {
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.slide-4 .overlay-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25em;
  color: #1e3363;
  line-height: 1.8;
  text-align: center;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* General slide spacing */
.swiper-slide {
  padding-top: 10px;
  padding-bottom: 10px;
}
/* -----------------------------------
   SLIDE 5: “Venue / Accommodations / 
   Things To Do / FAQ”
   ----------------------------------- */
.slide-5 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;                /* Full viewport height */
  background-color: #f4f4f4;
  position: relative;
  box-sizing: border-box;
  padding-top: 10px;            /* small top margin */
  padding-bottom: 10px;         /* small bottom margin */
}

.slide-5-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  position: relative;
}

/* 1) LEFT SIDE: card grid */
.slide-5-left {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding-left: 20px;   /* some breathing room */
  padding-bottom: 40px; /* ensure cards are above bottom */
}

/* each clickable card */
.slide-5-card {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.slide-5-card:hover {
  transform: translateY(-6px);
}

/* small yellow dot below each card */
.slide-5-dot {
  width: 24px;
  height: 24px;
  background-color: #ffc27a;
  border-radius: 50%;
  position: absolute;
  bottom: -12px;
}

/* card title (below the icon) */
.slide-5-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2em;
  color: #1e3363;
  margin-top: 12px; /* space above text */
}

/* 2) RIGHT SIDE: static background image */
.slide-5-right {
  flex: 1;
  background: url('images/beach-couple-5.jpg') center center / cover no-repeat;
  height: 100%;
  border-radius: 8px;
  margin-left: 20px; /* slight gap between left cards and right image */
}

/* 3) OVERLAY (hidden by default) */
.slide-5-overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  width: 40%;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 10;
  overflow-y: auto;
  display: none;
  color: #1e3363;
  font-family: "Cormorant Garamond", serif;
}

/* Ensure overlays show when active */
.slide-5-overlay.active {
  display: block;
}
/* Overlay base state (hidden) */
.slide-5-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

/* Overlay active state (visible) */
.slide-5-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Optional: styling for headers and content */
.slide-5-overlay h3 {
  font-family: "Cormorant Garamond", 
  font-size: 2em;
  text-align: center;
  margin: 10px 0;
  color: #1e3363;
}

.slide-5-overlay svg {
  display: block;
  margin: 0 auto 10px auto;
  width: 64px;
  height: 64px;
}

.slide-5-overlay img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.slide-5-overlay p,
.slide-5-overlay ul,
.slide-5-overlay li {
  font-family: "Cormorant Garamond", serif;
  font-size: 1em;
  text-align: center;
  color: #1e3363;
  line-height: 1.6em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.slide-5-overlay ul {
  margin-bottom: 15px;
}

.slide-5-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.75em;
  cursor: pointer;
  color: #1e3363;
  z-index: 10;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.slide-5-close:hover {
  color: #ffc27a;
  transform: scale(1.2);
}


/* Make sure Swiper arrows still sit above overlays */
.swiper-button-next,
.swiper-button-prev {
  z-index: 20;
}
.swiper-button-next,
.swiper-button-prev {
  z-index: 50; /* Must be above overlays */
  color: #1e3363; /* or whatever color suits your theme */

}
.rounded-slide-img {
  border-radius: 16px;
  overflow: hidden;
}
.dropdown-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.dropdown-toggle {
  background: transparent;
  border: 2px solid #1e3363;
  color: #1e3363;
  padding: 8px 12px;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dropdown-toggle:hover {
  background: #1e3363;
  color: white;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  position: absolute;
  top: 40px;
  right: 0;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-menu a {
  padding: 12px 16px;
  text-decoration: none;
  color: #1e3363;
  font-family: 'Cormorant Garamond', serif;
  transition: background 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #f4f4f4;
}

.dropdown-wrapper.open .dropdown-menu {
  display: flex;
}



@media (max-width: 768px) {
  .swiper {
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .swiper-slide {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh;
    padding: 20px 10px;
    overflow-y: auto;
  }

  /* Slide 1 - move image above text */
  .slide-container {
    flex-direction: column !important;
  }

  .image-half {
    order: -1;
  }

  /* Slide 3 fixes */
  .timeline-section {
    padding-top: 20px !important;
    padding-bottom: 100px !important;
  }

  .timeline-title-heading {
    margin-top: 0 !important;
  }

  .timeline-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    top: auto !important;
    position: relative !important;
    transform: none !important;
    margin-bottom: 20px;
  }

  .timeline-content img {
    width: 90%;
    height: auto;
    margin-bottom: 15px;
  }

  .timeline-text {
    align-items: center !important;
    text-align: center !important;
  }

  .timeline-item {
    margin-top: 20px;
  }

  .timeline-name {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* Slide 4 - Remove background, shrink box */
  .slide-4-inner {
    background: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
  }

  .slide-4 .overlay-box {
    width: 90% !important;
    height: auto !important;
    padding: 20px;
  }

  /* Slide 5 - move image above cards */
  .slide-5-container {
    flex-direction: column !important;
  }

  .slide-5-right {
    order: -1;
    width: 100%;
    height: 200px;
    margin: 0 0 20px 0 !important;
  }

  .slide-5-left {
    padding-bottom: 20px !important;
  }

  .slide-5-overlay {
    width: 90% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-50%) !important;
    max-height: 80vh;
  }

  /* Remove Swiper nav arrows */
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
}



/* ==================== */
/* FINAL MOBILE TWEAKS  */
/* ==================== */

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .swiper {
    height: auto;
    overflow-y: auto;
  }

  .swiper-slide {
    min-height: 100vh;
    overflow-y: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
  }

  /* Slide 1: move image to top */
  .slide-container {
    flex-direction: column !important;
  }
  .image-half {
    order: -1;
    width: 100%;
    height: auto;
  }
  .image-half img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Slide 3: fix layout and spacing */
  .timeline-content {
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    margin-bottom: 20px;
    text-align: center;
  }
  .timeline-content img {
    width: 90%;
    height: auto;
    margin-bottom: 15px;
  }
  .timeline-text {
    align-items: center !important;
    text-align: center !important;
  }
  .timeline-name {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .timeline-track {
    position: relative !important;
    bottom: auto !important;
    margin-top: 20px;
  }
  .timeline-line {
    bottom: auto;
    position: relative;
    margin-top: 10px;
  }

  /* Slide 4: remove background, shrink text box */
  .slide-4-inner {
    background: none !important;
    flex-direction: column !important;
    padding: 20px;
  }
  .slide-4 .overlay-box {
    width: 95% !important;
    height: auto !important;
    padding: 20px;
  }
  .slide-4 .overlay-text {
    text-align: center;
    font-size: 1em;
  }

  /* Slide 5: rearrange image and boxes */
  .slide-5-container {
    flex-direction: column !important;
  }
  .slide-5-right {
    order: -1;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
  }
  .slide-5-left {
    padding: 10px 0 !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  .slide-5-overlay {
    width: 90% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-50%) !important;
    max-height: 85vh;
    overflow-y: auto;
  }

  /* Hide swiper arrows */
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
}

@media (max-width: 768px) {

  /* General swiper slide spacing */
  .swiper-slide {
    padding-top: 0;
    padding-bottom: 20px;
    justify-content: flex-start !important;
  }

  /* Slide 1 (Home) - align content to top */
  .slide-container {
    justify-content: flex-start !important;
  }

  .content-half {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Slide 3 (Bridal Party) - timeline fixes */
  .timeline-section {
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .timeline-content {
    width: 95% !important;
    max-width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box;
  }

  .timeline-text {
    padding: 0 10px;
  }

  .timeline-track {
    flex-wrap: wrap !important;
    row-gap: 20px;
    justify-content: center !important;
    margin-top: 10px;
  }

  .timeline-item {
    width: 40%;
    margin-bottom: 20px;
  }

  .timeline-name {
    font-size: 1em;
  }

  /* Slide 4 - center text box and push up */
  .slide-4-inner {
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .slide-4 .overlay-box {
    margin-top: 20px;
    text-align: center;
  }

  /* Slide 5 - image sizing match to Slide 2 */
  .slide-5-right {
    height: auto !important;
  }

  .slide-5-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {

  /* Slide 3 - Timeline content box centered */
  .timeline-content {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 auto;
  }

  /* Slide 4 - Restore background image */
  .slide-4-inner {
    background: url('images/beach-couple-4.jpg') center center / cover no-repeat !important;
  }

  /* Slide 5 - Resize image like slide 2 */
  .slide-5-right {
    height: auto !important;
  }

  .slide-5-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {

  /* Slide 4 - Use contained image under text */
  .slide-4-inner {
    background: none !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
  }

  .slide-4 .overlay-box {
    width: 95%;
    height: auto;
    padding: 20px;
    margin-bottom: 20px;
  }

  .slide-4 .slide-4-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  /* Slide 5 - Match image height to Slide 2 */
  .slide-5-right {
    height: 300px !important;
  }

  .slide-5-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {

  /* Slide 1 - Home */
  .slide-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 0;
  }

  .image-half {
    width: 100% !important;
    height: auto !important;
    order: -1;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  .image-half img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .content-half {
    padding: 0 20px 10px 20px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center;
  }

  /* Slide 2 - Center image and text, no horizontal scroll */
  .card-icon-grid {
    width: 100%;
    padding: 0 10px;
  }

  /* Slide 4 - Add image box like other slides */
  .slide-4-image-box {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .slide-4-image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

}

/* Utility class: show only on mobile */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
}
}

@media (max-width: 768px) {
  /* Slide 1: trim extra space */
  .swiper-slide[data-hash="slide1"],
  .swiper-slide[data-hash="slide3"],
  .swiper-slide[data-hash="slide4"] {
    padding-bottom: 0 !important;
  }

  .slide-container,
  .timeline-section,
  .slide-4-inner {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Reduce bottom margin in content blocks */
  .content-half,
  .overlay-box,
  .timeline-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}