/* Hide mobile-specific content on desktop */
.mobile-only {
  display: none;
}

body.modal-active {
    overflow: hidden;
}

/* Styles for the updated Password Modal Content */
#passwordModal {
    /* Core Modal Positioning & Overlay */
    position: fixed; /* Takes it out of flow, relative to viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Content/Untitled design (14) 2.webp');
    background-repeat: no-repeat, repeat;
    background-size: cover, cover; /* Cover the entire viewport */
    background-position: center center; /* Center the background image */   
    z-index: 1050; /* Ensures it's on top of other content */

    /* Centering the Content Box */
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */

    /* Ensures modal itself can scroll if content overflows viewport height */
    overflow-y: auto;

    /* Assuming the modal should be visible by default on this temp page */
    /* If controlled by JS later, you might start with display: none; */
}

.password-modal-content {
    /* Keep or adjust existing modal content styles like background, padding, border-radius, box-shadow */
    padding: 30px 40px; /* Example */
    text-align: center; /* Center aligns all content */
    max-width: 550px; /* Adjust as needed */
    margin: auto; /* Helps center if not already handled */
}

.construction-illustration {
    display: block; /* Allows margin auto to work */
    max-width: 300px; /* Adjust based on illustration */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto 25px auto; /* Center illustration and add space below */
}

.password-modal-content h2 {
    font-size: 1.7em; /* Example */
    font-weight: normal; /* Or match site style */
    margin-bottom: 15px;
    color: #333; /* Example - Match site text color */
}

.password-modal-content p {
    font-size: 1em; /* Example */
    line-height: 1.6;
    color: #555; /* Example - Match site text color */
    margin-bottom: 15px;
}

/* Separator Line */
.password-separator {
    border: 0;
    height: 1px;
    background-color: #e0e0e0; /* Light gray line */
    margin: 35px auto; /* Generous spacing */
    width: 75%; /* Doesn't span full width */
}

/* Password Prompt Text */
.password-prompt {
    font-size: 0.9em;
    color: #777; /* Lighter text color */
    margin-bottom: 10px;
    font-style: italic;
}

/* Password Input & Button Styling */
#passwordInput {
    display: block; /* Take full width */
    width: 80%; /* Adjust width as needed */
    max-width: 300px; /* Prevent getting too wide */
    margin: 0 auto 15px auto; /* Center and add space below */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px; /* Match site style */
    font-size: 1em;
    box-sizing: border-box;
}

#submitPassword {
    padding: 12px 25px;
    background-color: #444; /* Example: Dark gray - Match site button style */
    color: white;
    border: none;
    border-radius: 4px; /* Match site style */
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#submitPassword:hover,
#submitPassword:focus {
    background-color: #222; /* Darker hover */
}

#errorMessage {
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: bold;
    /* Color is set inline via JS - or you can style it here */
    /* color: #D8000C; */ /* Example error color */
}

/* Basic Responsive Adjustments */
@media (max-width: 600px) {
    .password-modal-content {
        padding: 25px 20px;
        max-width: 90%;
    }

    .construction-illustration {
        max-width: 60vw; /* Smaller illustration on mobile */
        margin-bottom: 20px;
    }

    .password-modal-content h2 {
        font-size: 1.4em;
    }

    .password-modal-content p {
        font-size: 0.9em;
    }

    #passwordInput {
        width: 90%; /* Wider input on mobile */
    }
}

/* General Styles */

/* Fonts */
.kapakana-regular {
    font-family: "Kapakana", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }
  .inria-serif-light {
    font-family: "Inria Serif", serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .inria-serif-regular {
    font-family: "Inria Serif", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .inria-serif-bold {
    font-family: "Inria Serif", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .inria-serif-light-italic {
    font-family: "Inria Serif", serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .inria-serif-regular-italic {
    font-family: "Inria Serif", serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .inria-serif-bold-italic {
    font-family: "Inria Serif", serif;
    font-weight: 700;
    font-style: italic;
  }
  
  /* Universal Styles */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth; /* Smooth scrolling */
  }
  
  .body {
    padding: 0;
    margin: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Nabar Styles */

#navbar {
  position: sticky;
  top: 0;
  background-color: transparent;
  width: 100%;
  z-index: 1000;
  height: 90px;
  display: flex;
  justify-content: space-around; /* This is the key change! */
  align-items: center;
  padding-top: 50px;
  transition: background-color 0.8s ease, transform 0.8s ease;
}

  /* New CSS for the nav groups */
  .nav-links {
    display: flex; /* Make the nav links a flex container */
    gap: 8vw; /* Add space between the links */
  }

  .nav-icons {
    display: flex; /* Make the icon group a flex container */
    align-items: center;
    gap: 15px; /* Add space between the icon and button */
  }

  /* Styles for the new elements */
  .icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .search-icon {
    width: 24px;
    height: 24px;
    fill: white;
  }

  /* New CSS for the members icon */
  .members-icon {
    width: 24px;
    height: 24px;
    fill: white;
  }

  /* Original styles below */
  #navbar.scrolled {
    background-color: #9aacc4;
    transform: translateY(0);
    padding-top: 0;
  }

  #navbar.hide-on-scroll-down {
    transform: translateY(-100%);
  }

  .navbar .logo-link {
    text-align: center;
  }

  .navbar .logo {
    max-height: 70px;
    width: auto;
  }

  .navbar .nav-link {
    font-family: "inria-bold-italic", serif;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: white;
    text-decoration: none;
  }
  
  /* Hero Section Styles */
  .hero-section {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.37), rgba(0, 0, 0, 0) 62%), url('ethanandemmaengagement-1.jpg');
    height: 100dvh;
    width: 100vw;
    background-size: cover;
    background-position: center;
    margin-top: -90px;
  }
  
  .hero-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
    z-index: 2; /* The foreground image will be on top */
  }
  
  .hero-text span {
    position: absolute;
    color: white;
  }
  
  .line-1, .line-3 {
    font-family: "Inria Serif", serif;
    text-transform: uppercase;
    font-style: italic;
    font-weight: normal;
  }
  
  .line-2, .line-4 {
    font-family: "Kapakana", cursive;
    font-weight: normal;
  }
  
  .line-1 {
    top: 35%;
    left: 5%;
    font-size: 7rem;
  }
  
  .line-2 {
    top: 50%;
    left: 15%;
    font-size: 12rem;
  }
  
  .line-3 {
    top: 42%;
    right: 5%;
    font-size: 7rem;
  }
  
  .line-4 {
    bottom: 23%;
    right: 10%;
    font-size: 12rem;
  }

  .welcome-background-mobile {
    display: none;
  }
  
  .welcome-section {
    position: relative; /* This is crucial for positioning the child element */
    background-image: url(green-paper-background.jpg);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    height: 90dvh;
  }
  
  .welcome-section-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Inria Serif", serif;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.2rem;
    color: #9ea173;
  }
  
  .welcome-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f6f5f1;
    padding: 4rem;
    width: 1000px;
    height: 70%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .welcome-img {
    flex-basis: 40%;
    padding-right: 2rem;
    overflow: hidden;
    aspect-ratio: 4/5;
    max-height: 100%;
  }
  
  .welcome-img img {
   width: 100%; /* Make the image responsive within its container */
   max-height: 100%; /* Ensure the image doesn't exceed the container's height */
   object-fit: cover; /* Maintain aspect ratio and cover the area */
   display: block; /* Remove any extra space below the image */
  }
  
  /* Styling for the text column */
  .welcome-text {
    flex-basis: 60%;
    padding-left: 2rem;
    text-align: center;
  }
  
  /* Styles for the headline and body text */
  .intro-heading {
    font-family: "Kapakana", cursive;
    font-size: 3rem;
    line-height: 1.2;
    color: #727a4d;
    text-align: right;
  }
  
  .intro-body, .event-details {
    font-family: "Inria Serif", serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-top: 1.5rem;
    text-align: left;
  }
  
  .event-details {
    margin-top: 2rem;
    font-weight: normal;
  }
  
  /* Styling for the entire Details section */
  .details-section {
    background-color: #f6f5f1;
    padding: 50px 2rem 8rem; /* Updated padding-top to 50px */
    text-align: center;
  }
  
  /* Styling for the "Details" label */
  .section-label {
    font-family: "Inria Serif", serif;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.2rem;
    color: #bcbdb5;
    margin-bottom: 2rem;
  }
  
  /* Styling for the accordion menu list */
  .accordion-menu {
    list-style: none; /* Removes the bullet points */
    padding: 0;
    margin: 0 auto;
    max-width: 800px; /* Limits the width of the list */
  }
  
  /* Styling for each accordion item */
  .accordion-item {
    border-bottom: 1px solid #212121;
  }
  
  /* Styling for the clickable button */
  .accordion-toggle {
    display: flex; /* Aligns the text and arrow */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding-top: 2.5rem;
    padding-bottom: 0.5rem;
    padding-right: 0rem;
    padding-left: 0rem;
    cursor: pointer;
    font-family: "Kapakana", cursive;
    font-size: 2.5rem;
    color: #212121;
    text-align: left;
    padding-right: 5px;
  }
  
  /* Styling for the down arrow icon */
  .arrow-icon::after {
    content: ' ';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #212121;
    border-bottom: 2px solid #212121;
    transform: rotate(45deg);
  }
  
  /* Default state for the accordion content (hidden) */
  .accordion-content {
    /* Remove 'display: none;' */
    max-height: 0; /* Starts at 0 height, making it invisible */
    overflow: hidden; /* Hides any content that goes beyond max-height */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; /* Animates the max-height property */
    padding: 0 0; /* Adjust padding for the closed state */
    text-align: left;
    font-family: "Inria Serif", serif;
    color: #212121;
 }
  
  /* This class would be added via JavaScript to show the content */
  .accordion-content.active {
    max-height: 1000px; /* Increase this value */
    padding: 10px 0px 20px 0px; /* Adds some space at the bottom */
}

/* Rotate the arrow icon when the accordion is open */
.accordion-toggle.active-toggle .arrow-icon::after {
  transform: rotate(225deg);
}

/* Optional: Add a transition for a smooth animation */
.arrow-icon::after {
  transition: transform 0.2s ease-in-out;
}

.accordion-content p {
  margin-left: 10px;
}

.details-block,
.reception-note {
  margin-top: 1em; /* Adds space above these elements */
}

.accordion-intro {
  margin-bottom: 1em; /* Ensures space after the first line */
}

  /* OUR STORY SECTION */
  
  .our-story-section {
    background-color: #9aacc4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0; /* Removed horizontal padding */
    position: relative;
    gap: 0px;
    height: 600px;
  }
  
  .our-story-section .section-label {
    color: #d8e2ef;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Inria Serif", serif;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.2rem;
  }
  
  .intro-column {
    flex: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 70vw;
  }
  
  .image-column {
    /* This targets the left and right photo columns */
    flex: 0 250px; /* Gives the photo columns a smaller, fixed width */
    padding: 0;
    aspect-ratio: 2/3;
  }
  
  .intro-column img {
    max-width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .intro-column img.fade-in {
    opacity: 1;
    transform: translateY(0);
  }

  .intro-quote {
    font-family: "Kapakana", cursive;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 10px 0;
    color: white;
  }
  
  .intro-quote .pre-quote {
    font-family: "Inria Serif", serif; /* This font overrides the Great Vibes font for just "They say" */
    font-size: 2.2rem; /* Adjusted font size for better visual balance */
    font-style: normal;
  }
  
  .intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    max-width: 80%;
    margin: 20px auto;
    text-align: center;
  }
  
  .monogram-middle {
    position: absolute;
    bottom: -70px; /* Adjust to control overlap with the next section */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: auto;
    z-index: 998
  }
  
/* -------------------- TIMELINE SECTION -------------------- */
.timeline-section {
  background-color: #8b8e59; /* Sage green background color */
  padding: 100px 50px;
  position: relative;
  border-top: #e1e6cd 2px solid; /* Top border for the section */
}

.timeline-section .section-label {
  text-align: center;
  color: #e1e6cd;
}

.timeline-container {
  background-color: transparent;
  width: 79vw; /* Fixed width for the timeline container */
  height: 51vh; /* Fixed height for the timeline container */
  margin: 0 auto;
  position: relative; /* This is the positioning context for the absolute arrows */
}

.timeline-carousel {
  position: relative;
  display: flex;
  align-items: center; /* Vertically centers the timeline events */
  width: 100%;
  height: 100%;
  overflow: hidden; /* Hides any overflow content */
  padding: 40px 20px;
}

.decorative-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* This will stretch the image to fit the container */
  z-index: 1; /* Puts the image behind the content */
}

.timeline {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 40px 40px;
  gap: 60px;
  z-index: 2; /* Puts the timeline on top of the border */
  transition: transform 0.5s ease-in-out;
  transform: translateX(0);
}

.timeline-item {
  flex: 0 0 calc((100% / 3) - 40px); /* Each item takes up 1/5 of the total list width */
  padding: 0 10px;
  color: white;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid white;
}

.timeline-year {
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0;
}

.timeline-event-name {
  font-family: "Kapakana", cursive;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.timeline-event-description {
  font-size: 1rem;
  opacity: 0.9;
  text-align: left;
  margin-top: 10px;
  line-height: 1.4;
}

.timeline-controls {
  /* The key fix: absolute positioning */
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%); /* This horizontally centers the element */
  z-index: 3; /* Ensures the arrows are visible on top of other content */
  display: flex;
  gap: 30px; /* Space between the arrows */
  align-items: center;
}

.timeline-arrow {
  cursor: pointer;
  width: 30px; /* Or whatever size you prefer */
  height: auto;
  transition: transform 0.2s ease-in-out;
}

  /* REGISTRY SECTION */

/* The main container for the section */
.registry-section {
  background-color: #f8f6f1; /* A light, off-white color to match the background */
  background-image: url('PK_PAPER_8 copy.jpg');
  background-position: center;
  background-size: cover;
  padding: 80px 20px;
  text-align: center; /* Centers the "Registry" label */
}

/* The label at the top of the section */
.section-label {
  font-family: "Inria Serif", serif;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.2rem;
  color: #bcbdb5; /* A subtle gray color */
  margin-bottom: 2rem;
}

/* The container for the two main columns */
.registry-container {
  display: flex;
  justify-content: center; /* Centers the columns horizontally */
  align-items: center; /* Aligns items vertically */
  max-width: 1100px; /* Limits the width on large screens */
  margin: 0 auto;
  gap: 80px; /* Creates space between the text and photo columns */
  text-align: left; /* Aligns content inside the columns to the left */
}

/* Styles for the text column */
.registry-text-column {
  flex: 1; /* Allows this column to grow */
  max-width: 500px;
}

/* Styles for the registry heading */
.registry-heading {
  font-family: "Inria Serif", serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.2;
  color: #212121;
  margin-bottom: 20px;
}

/* Styles for the registry body text */
.registry-body {
  font-family: "Inria Serif", serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #212121;
  margin-bottom: 25px;
  margin-left: 20px;
}

/* Styles for the "Explore Registry" button/link */
.registry-button {
  font-family: "Inria Serif", serif;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.15rem;
  color: #212121;
  text-decoration: none;
  border-bottom: 1px solid #212121; /* Adds a subtle underline */
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 10px;
  margin-left: 20px;
}

.registry-button:hover {
  color: #75793d;
  border-bottom: 1px solid #75793d; /* Adds a subtle underline */
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

/* Styles for the photo column */
.registry-photo-column {
  flex: 1; /* Allows this column to grow */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styles for the photo itself */
.registry-photo {
  max-width: 400px;
  height: auto;
}

/* FOOTER SECTION */

.site-footer {
  /* Set the background image and positioning */
  background-image: url('Content/Untitled design (14) 2.webp'); /* Replace with your background image path */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  
  /* Flexbox for the layout */
  display: flex;
  justify-content: space-between; /* Pushes the logo to the left and the link to the right */
  align-items: center; /* Vertically centers the content */
  
  /* Spacing and dimensions */
  padding: 100px 150px; /* Adjust top/bottom and left/right padding as needed */
}

.footer-logo {
  max-height: 80px; /* Set a maximum height for the logo */
  width: auto; /* Maintain the logo's aspect ratio */
}

.return-to-top {
  /* Text and link styling */
  font-family: "Inria Serif", serif; /* Use a font that matches your design */
  font-size: 1.2rem;
  color: white;
  text-decoration: none; /* Removes the default underline */
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  
  /* Create the underline */
  border-bottom: 1px solid white;
  padding-bottom: 5px;
  
  /* Flexbox to align the text and arrow */
  display: flex;
  align-items: center;
  gap: 10px; /* Space between the text and the arrows */
}

/* Create the arrows using a pseudo-element */
.return-to-top::before,
.return-to-top::after {
  content: '↑'; /* Unicode character for an up arrow */
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-2px); /* Adjust vertical position */
}

/* MEMBERS ONLY PASSWORD MODAL*/
/* NEW Members Only Password Modal Styles */
.members-only-modal {
  display: none; /* HIDDEN BY DEFAULT */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Darker overlay */
  z-index: 1060; /* Higher than the main password modal */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.members-only-modal-content {
  background-color: #f6f5f1; /* Light paper-like background */
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  text-align: center;
  position: relative;
  font-family: "Inria Serif", serif; /* Use a classy font */
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #9aacc4; /* Match navbar color */
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #727a4d; /* Darker hover */
}

.modal-title {
  font-family: "Kapakana", cursive; /* Use your decorative font */
  font-size: 2.5rem;
  color: #727a4d;
  margin-bottom: 1rem;
  font-weight: normal;
}

.modal-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-separator {
  border: 0;
  height: 1px;
  background-color: #d8e2ef; /* Light separator line */
  margin: 1.5rem auto;
  width: 70%;
}

.modal-prompt {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

#membersOnlyPasswordInput {
  width: 80%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

#submitMembersOnlyPassword {
  background-color: #9aacc4; /* Match a brand color */
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Inria Serif", serif;
  font-style: italic;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#submitMembersOnlyPassword:hover {
  background-color: #727a4d; /* Darker hover */
  transform: translateY(-2px);
}

.error-message {
  color: #D8000C; /* Error red */
  font-size: 0.9em;
  margin-top: 1rem;
  display: none; /* Hidden by default */
  font-weight: bold;
}
