/* General styles */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
}

/* Header styles */
header {
    background-size: 100%;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.header-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    animation: fadeInUp 1s ease-out;
}

#party-gif {
    display:none;
    max-width:350px;
    width:100%;
    border-radius:20px;
    box-shadow:0 0 30px #fff7;
    margin:2rem auto 0 auto;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-container {
    padding: 20px 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    color: white;
    background: linear-gradient(45deg, #FF588F, #FE8679, #FFBB60);
}

.carousel-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    will-change: transform;
    animation: scrolling 10s linear infinite;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 300px; /* Adjust this value based on your design */
    text-align: center;
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Counter */
.countdown-container {
    color: #FFFFFF;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}

/* Countdown Items */
.countdown-container ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
}

.countdown-container li {
    font-size: 1em;
    padding: 0 10px; /* Adjust spacing between items */
    text-align: center;
}

.countdown-container li span {
    display: block;
    font-size: 4rem; /* Adjust size of the numbers */
    line-height: 1.2; /* Adjust spacing between numbers and text */
}

/* Separators */
.countdown-container .separator {
    font-size: 2rem;
    color: #FFFFFF; /* Match the separator color to text */
    padding: 0 5px; /* Adjust spacing around the separator */
    font-weight: normal;
}

/* RVSP styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #007bff;
}

.card h3 {
    margin: 0;
    font-size: 1.25rem;
}

/* Reservation styles */
.custom-event-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    min-width: 400px;
    margin: 20px auto;
    min-height: 200px;
}

.custom-event-card h1 {
    margin: 10px 0;
    font-size: 2rem;
    color: #333;
}

.custom-event-card h2 {
    color: #555;
    margin-bottom: 20px;
}

.custom-event-card p {
    margin: 5px 0;
    color: #666;
    font-size: 1rem;
}

.custom-event-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff758c, #ffa56b);
    color: white;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-event-btn:hover {
    background: linear-gradient(135deg, #ffa56b, #ff758c);
}

.custom-event-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    background: linear-gradient(90deg, #FF588F, #FE8679, #FFBB60);
    margin: 0;
}

/* Header content styles */
.wedding-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.wedding-date {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wedding-location {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.wedding-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Section title styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Custom message styles */
#custom-message {
    background-color: #f9f9f9;
    padding: 1rem 2rem;
}

.message-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.message-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Venue info styles */
#venue-info {
    background-color: #f9f0f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    gap: 2rem; /* Add consistent spacing between cards */
    align-items: stretch; /* Ensures all cards have equal height */
}

/* Styles for each card */
.venue-column {
    flex: 1 1 calc(50% - 2rem); /* Two cards side-by-side with spacing */
    max-width: 600px;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Ensure content stacks vertically */
    justify-content: space-between; /* Push content evenly in the card */
    transition: transform 0.3s ease;
}

/* Map container for responsive aspect ratio */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

/* FAQ styles */
.badge {
    background: linear-gradient(135deg, #ff758c, #ffa56b);
    color: white;
    padding: 6px 12px;
    text-align: center;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.faq-wrapper {
    max-width: 75%;
    margin: auto;
  }
  
  .faq-wrapper > p,
  .faq-wrapper > h1 {
    margin: 1.5rem 0;
    text-align: center;
  }
  
  .faq-wrapper > h1 {
    letter-spacing: 3px;
  }
  
  .faq-accordion {
    background-color: white;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    font-size: 1.2rem;
    width: 100%;
    padding: 2rem 2.5rem;
    border: none;
    outline: none;
    transition: 0.4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    text-align: left;
  }
  
  .faq-accordion i {
    font-size: 1.6rem;
    margin-left: 1rem;
  }
  
  .active,
  .faq-accordion:hover {
    background-color:#fff5f7;
  }

  .pannel {
    padding: 0 2rem 2.5rem 2rem;
    background-color: white;
    overflow: hidden;
    display: none;
  }

  .pannel p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    line-height: 1.4;
  }

  #faq {
    margin: 2rem 0;
  }
  
  .faq {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .faq.active {
    border: none;
  }
  
.faq .video-container {
    position: relative;
    display: flex;
    justify-content: center; /* Centers the iframe horizontally */
    align-items: center; /* Centers the iframe vertically */
    width: 100%; /* Ensure it takes full width of its parent */
    min-height: 180px; /* Minimum height for the video (adjust as needed) */
    padding-bottom: 32.25%; /* 16:9 aspect ratio (315px / 560px = 0.5625, which is 56.25%) */
    background-color: #000; /* Optional: add background color in case the iframe doesn't fill entirely */
}

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

/* Parking guide image styles */

.parking-guide-img {
    display: block;
    margin: 2rem auto 1rem auto;
    max-width: 100%;
    width: 700px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 2px solid #FFBB60;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.parking-guide-img:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    #venue-info {
        flex-direction: column;
        align-items: center;
    }

    .venue-column {
        flex: 1 1 100%; /* Ensure full width on small screens */
        max-width: 100%;
        margin: 1rem; /* Keep uniform margin for small screens */
    }

    .map-container {
        max-width: 800px;
        width: 100%;
    }
}

@media screen and (min-width: 1024px) {
    #venue-info {
        justify-content: space-evenly; /* Spread cards evenly */
        padding: 4rem; /* Add more padding for larger screens */
    }

    .venue-column {
        flex: 1 1 calc(45% - 2rem); /* Slightly smaller cards for more spacing */
    }
}

@media screen and (max-width: 900px) {
    .parking-guide-img {
        width: 100%;
        max-width: 98vw;
        min-width: 0;
    }
}

@media screen and (max-width: 830px) {
    .header-content {
        margin: 1rem;
    }

    .card {
        flex-basis: calc(50% - 1rem);
    }

    .wedding-title {
        font-size: 2.5rem;
    }

    .wedding-description {
        font-size: 1rem;
    }

    .wedding-date {
        font-size: 1.75rem;
    }

    #custom-message {
        padding: 1rem 1.5rem;
    }

    .message-content {
        font-size: 1.1rem;
    }

    .map-container {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .countdown-container li span {
        font-size: 3rem; /* Adjust number size for smaller screens */
    }

    .countdown-container .separator {
        font-size: 1.5rem; /* Adjust separator size for smaller screens */
    }

    #venue-info {
        flex-direction: column;
        align-items: center;
    }

    .venue-column {
        flex: 1 1 100%; /* Full width for smaller screens */
        max-width: 90%; /* Slight margin for smaller screens */
        margin: 1rem 0; /* Spacing between cards */
    }
}

@media screen and (max-width: 480px) {
    .card {
        flex-basis: 100%;
    }

    .wedding-title {
        font-size: 2rem;
    }

    .wedding-date {
        font-size: 1.5rem;
    }

    .wedding-location {
        font-size: 1rem;
    }

    .header-decoration {
        font-size: 1.25rem;
    }

    .countdown-container li span {
        font-size: 2rem; /* Further reduce size for very small screens */
    }

    .countdown-container li {
        padding: 0 5px; /* Adjust spacing between items */
    }

    .countdown-container .separator {
        font-size: 1rem; /* Further reduce separator size */
    }

    #custom-message {
        padding: 1rem 1rem;
    }

    .message-content {
        font-size: 1rem;
    }

    #venue-info {
        padding: 2rem 1rem;
    }

    .custom-event-card {
        min-width: 300px;
        margin: 20px 5vw; /* Dynamic horizontal margin based on viewport width */
        padding: 20px; /* Keep some internal padding */
    }

    .custom-event-card h1 {
        font-size: 1.5rem; /* Adjust font size for smaller screens */
    }

    .custom-event-card p {
        font-size: 0.9rem; /* Adjust paragraph font size */
    }

    .custom-event-btn {
        font-size: 0.9rem; /* Adjust button font size */
    }

    .faq-wrapper {
        max-width: 90%;
    }
}

@media screen and (max-width: 320px) {
    .countdown-container li {
        padding: 0 3px; /* Adjust spacing between items */
    }

    .venue-column {
        flex: 1 1 calc(45% - 2rem); /* Adjust width for medium screens */
        max-width: 45%;
        margin: 1rem; /* Add margin for spacing between columns */
    }

    #venue-info {
        padding: 2rem; /* Add padding for larger screens */
    }
}