/* 1. Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Base Typography */
body {
    font-family: Arial, Helvetica, sans-serif; /* Keep it simple and readable */
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;

    /* Add these 3 lines for the sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Add this anywhere below your body rule */
main {
    flex: 1; /* This forces the main content area to fill available vertical space */
}

/* 3. Header & Flexbox Layout */
header {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Add these three lines to make the header sticky */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Updated infor for header*/
.updated {
    font-size: 1em;
    font-style: italic;
    text-decoration: underline;
    color: red;
} 

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* 4. Navigation Links */
.nav-links {
    list-style: none; /* Removes the bullet points */
    display: flex;
    gap: 1.5rem; /* Creates space between the links */
}

.nav-links a {
    color: #ffffff;
    display: block; /* Makes the entire area of the link clickable */
    text-decoration: none; /* Removes the underline */
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li {
  position: relative; /* Essential for containing the absolute child */
}

.nav-links a:hover {
    color: #4CAF50; /* A nice gem-like green for the hover state */
}

/* Hide the dropdown by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* Positions it directly below the parent */
  left: auto;
  right: 0; /* Aligns the right edge of the dropdown with the parent */
  background: #444;
  list-style: none;
  min-width: 150px;
  z-index: 10;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}


.dropdown-menu li a {
  padding: 10px;
  font-size: 14px;
}


/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        position: static; /* This forces it to act like a normal, un-sticky element again */
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* 8. Events Page Styles */
.events-list {
    padding: 2rem;
    max-width: 1200px; /* Narrower than the home page for better reading width */
    margin: 0 auto;
}

.events-list h2 {
    text-align: center;
    margin-bottom: .5rem;
}

/*banner for dates of events*/
.event-banner {
    background: #2c3e50;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    flex-direction: column;   
    justify-content: center;
    align-items: center;
    padding: .5rem;
    text-align: center;
    font-weight: bold;
    margin-bottom: .5rem;
}

.event-item {
    display: flex;
    background: #ffffff;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden; /* Ensures the background color of the date block doesn't spill out of the rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.event-details {
    padding: 1.5rem;
}

.event-details h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Mobile Responsiveness for Events */
@media (max-width: 600px) {
    .event-item {
        flex-direction: column;
    }

    .event-banner {
        flex-direction: column; /* Stacks the text vertically on mobile */
    }
}

/* 9. Event Details Accordion */
details {
    margin-top: 1rem;
}

.expanded-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ccc;
    font-size: 0.9rem;
    color: #555;
}

.expanded-content p {
    margin-bottom: 0.5rem;
}

/* 10. Photo Gallery Styles */
.gallery-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1; /* Forces a perfect square */
    background-color: #e0e0e0; /* Fallback color while images load */
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.photo-item img:hover {
    transform: scale(1.1); /* Adds a subtle zoom effect when hovered */
}

/* 11. Contact Page Styles */
.contact-section {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input, 
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit; /* Forces inputs to use your body font instead of browser defaults */
    font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.submit-btn {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #4CAF50;
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr; /* Stacks the info and form vertically */
        gap: 2rem;
        padding: 1.5rem;
    }
}

.icon-resize {
    width: 64px; /* Set a specific width */
    height: auto; /* Height adjusts automatically to maintain aspect ratio */
}

.small-spacing {
  line-height: 0.6; /* Less than normal spacing */
}

/* Lightbox Container */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black */
    display: none; /* Crucial: Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* This must be higher than your 1000 z-index sticky header */
}

/* The Active State Trigger for lightbox */
.lightbox.active {
    display: flex;
}

/* The Enlarged Image for lightbox */
.lightbox img {
    max-width: 90%;
    max-height: 90vh; /* Prevents vertical overflow */
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* The Close Button for lightbox */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 48px;
    cursor: pointer;
    transition: color 0.2s;
}

/* The Close Button for lightbox */
.close-lightbox:hover {
    color: #cccccc;
}

ul {
    margin-left: 40px; /* Adds indentation to the list */
    margin-bottom: 1rem; /* Adds space after the list */
}


/* The "Flash" effect using a pulse animation */
/*Friday Yoga Banner */
.flash-animation-friday {
  animation: pulse-friday 1.5s infinite ease-in-out;
  background-color: #ff0000; /* Change color to stand out */
  font-size: 1.4em; /* Make the text larger */
}

@keyframes pulse-friday {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
/*Thursday Yoga Banner */
.flash-animation-thursday {
    animation: pulse-thursday 1.5s infinite ease-in-out;
    background-color: green; /* Change color to stand out */
    font-size: 1.2em; /* Make the text larger */
}

@keyframes pulse-thursday {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}