:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --section-bg: #e3caca;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --spacing: 2rem;
    --bg-color: #f3f3f3; /* Updated to light gray background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html:not([style*="overflow"]) {
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: 80px;
    scroll-margin-top: 80px;
    overflow-y: auto;
}

header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    top: 0;
}

.hamburger {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
}

.hamburger span {
    display: block;
    position: relative;
    width: 30px;
    height: 3px;
    margin-bottom: 5px;
    background-color: var(--primary-color);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hamburger span:first-child {
    transform-origin: 0% 0%;
}

.hamburger span:nth-last-child(1) {
    transform-origin: 0% 100%;
    margin-bottom: 0;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #f0e0e0 !important; /* Updated to match site theme */
    z-index: 1500;
    transition: left 0.3s ease;
    padding-top: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.side-menu.open {
    left: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: #333 !important;
    text-decoration: none;
    padding: 15px 30px;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    display: none;
}

.overlay.open {
    display: block;
}

/* Hamburger transform to X when menu is open */
body.menu-open .hamburger span:first-child {
    transform: rotate(45deg) translate(4px, -1px);
}

body.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

body.menu-open .hamburger span:nth-last-child(1) {
    transform: rotate(-45deg) translate(1px, -1px);
}

.hero {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('assets/hand flowers.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 0;
    width: 800px;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 1;
    transform: none;
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content .tagline {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

section {
    background-color: #e3caca !important; /* Warmer gray/pink section background */
    margin: 4rem auto; /* Increased vertical margin for better spacing */
    padding: 3rem 2rem; /* Increased vertical padding */
    border-radius: 12px; /* Slightly larger border radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer, more subtle shadow */
    max-width: 1200px;
    position: relative; /* For potential decorative elements */
    overflow: hidden; /* Ensure content doesn't break radius */
}

/* Add more breathing room for the first section */
section:first-of-type {
    margin-top: 2rem;
}

/* Ensure consistent bottom spacing */
section:last-of-type {
    margin-bottom: 4rem;
}

/* Improve section transitions */
section + section {
    margin-top: 3rem; /* Slightly reduced spacing between consecutive sections */
}

.welcome, .details, .gifts, .rsvp, .seating, .menu, .entertainment, .kids, .transportation, .contact, .church, .reception, .map {
    background-color: #e3caca !important; /* Warmer gray/pink section background */
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.welcome-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.signature {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: var(--primary-color);
}

.details-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.info-block {
    flex: 1 1 300px;
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background-color: #f3f3f3 !important; /* Updated to match main background color */
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.gifts-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.7;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: white;
}

.venue {
    background-color: var(--light-bg);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.venue-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.venue-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.venue-page {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    background-color: var(--section-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.venue-page h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.twinmotion-embed-wrapper {
    width: 100%;
    height: 90vh;
    margin: 0 auto;
    background-color: var(--section-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.twinmotion-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.success-message, .error-message {
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    max-width: 800px;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
    color: #C62828;
}

.success-message p, .error-message p {
    margin: 0;
    line-height: 1.5;
}

/* Seating section styles */
.seating-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.seating-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.seat-map {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center;
}

.seat-map-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.seat-map-note {
    font-style: italic;
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Menu section styles */
.menu-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.menu-content > p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.menu-tables {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.menu-table {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.menu-table h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.menu-items p {
    margin-bottom: 1rem;
}

.menu-items ul {
    list-style-position: inside;
    text-align: left;
    padding-left: 1rem;
}

.menu-items li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: none;
    padding-left: 1.5rem;
}

.menu-items li:before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Entertainment section styles */
.entertainment-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.entertainment-text {
    flex: 1 1 400px;
}

.entertainment-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.entertainment-image {
    flex: 1 1 400px;
    text-align: center;
}

.entertainment-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.entertainment-img:hover {
    transform: scale(1.02);
}

/* Kids section styles */
.kids-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.kids-text {
    margin-bottom: 1.5rem;
}

.kids-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.kids-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.kids-activity {
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kids-activity:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.kids-activity h3 {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.kids-activity p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.kids-note {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
    background-color: rgba(44, 62, 80, 0.05);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
}

/* Modified schedule styles */
.schedule-block {
    flex: 1 0 100%;
    max-width: 100%;
}

.schedule-intro {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 90%;
    position: relative;
}

.schedule-list::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.2;
}

.schedule-list li {
    position: relative;
    padding: 0.8rem 0.8rem 0.8rem 5rem;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.schedule-list li:hover {
    transform: translateX(5px);
}

/* Remove the circles */
.schedule-list li::before {
    display: none;
}

.schedule-list .time {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-align: right;
}

.schedule-list .event {
    display: block;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.schedule-list .description {
    display: block;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}

.schedule-note {
    font-style: italic;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(44, 62, 80, 0.05);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Collapsible schedule styles */
.schedule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.schedule-content.expanded {
    max-height: 1500px; /* Adjust based on content size */
}

.schedule-toggle {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    margin: 1rem 0;
    transition: background-color 0.3s ease;
}

.schedule-toggle:hover {
    background-color: var(--secondary-color);
}

.schedule-toggle i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.schedule-toggle.active i {
    transform: rotate(180deg);
}

.info-block p {
    margin-bottom: 0.8rem;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block strong {
    color: var(--secondary-color);
}

/* Contact section styles */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-person {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.contact-name {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.contact-phone {
    margin-bottom: 0.8rem;
}

.phone-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--secondary-color);
}

.contact-whatsapp {
    margin-top: 1rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #25D366; /* WhatsApp green */
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.whatsapp-link:hover {
    opacity: 0.8;
}

.whatsapp-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.contact-note {
    font-style: italic;
    color: var(--text-color);
    margin-top: 1rem;
}

/* Church Section Styles */
.church-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.church-text {
    flex: 1;
    min-width: 300px;
}

.church-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.church-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.church-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.church-img:hover {
    transform: scale(1.02);
}

/* Reception Section Styles */
.reception-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.reception-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Map Section Styles */
.map-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.map-link {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 1.5rem;
    background-color: var(--bg-color) !important; /* Updated to use main background color */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.map-link h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.map-button:hover {
    background-color: #1a2733;
}

.map-note {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

/* COMPLETELY REVISED MOBILE MENU - VERSION 2.0 */
@media (max-width: 768px) {
    /* Hide all previous mobile menu styles to avoid conflicts */
    .side-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background-color: #f0e0e0 !important;
        background: #f0e0e0 !important;
        z-index: 9999 !important;
        transition: all 0.3s ease !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 60px 0 70px 0 !important; /* Increased bottom padding for version indicator */
        box-shadow: none !important;
        display: block !important;
        border-right: none !important;
    }
    
    .side-menu::before {
        display: none !important;
    }
    
    .side-menu.open {
        left: 0 !important;
    }
    
    .menu-close-button {
        display: none !important;
    }
    
    nav ul {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 20px !important;
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    nav ul li {
        margin-bottom: 12px !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    nav ul li.section-header {
        color: #333 !important;
        text-shadow: none !important;
        border-bottom: 3px solid #333 !important;
    }
    
    nav ul li a {
        color: #333 !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
    }
    
    .overlay {
        background-color: rgba(0, 0, 0, 0.8) !important;
        transition: all 0.3s ease !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .overlay.open {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Custom scrollbar for menu */
    .side-menu::-webkit-scrollbar {
        width: 8px !important;
    }
    
    .side-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .side-menu::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3) !important;
        border-radius: 4px !important;
    }

    .hero {
        margin: 1rem auto;
        height: 40vh;
        width: calc(100% - 2rem);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content .tagline {
        font-size: 1.4rem;
    }

    section {
        margin: 1rem;
        padding: 4rem 1rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .info-block {
        padding: 2rem;
    }

    .venue-page {
        margin: 1rem;
        padding: 1rem;
    }

    .venue-page h1 {
        font-size: 2.5rem;
    }

    .twinmotion-embed-wrapper {
        height: 70vh;
        margin: 1rem;
    }

    .seat-map {
        margin: 1rem auto;
    }
    
    .seat-map-img {
        border-radius: 6px;
    }

    .menu-tables {
        gap: 1rem;
    }
    
    .menu-table {
        padding: 1rem;
    }
    
    .entertainment-content {
        flex-direction: column;
    }
    
    .entertainment-image {
        order: -1;
    }

    .kids-activities {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .kids-activity {
        padding: 1.2rem;
    }
    
    .kids-note {
        padding: 0.8rem;
    }

    .schedule-list {
        max-width: 100%;
    }
    
    .schedule-list::before {
        left: 1.5rem;
    }
    
    .schedule-list li {
        padding: 0.8rem 0.8rem 0.8rem 4.5rem;
    }
    
    .schedule-list li::before {
        left: 1.35rem;
    }
    
    .schedule-list .time {
        width: 3.5rem;
        font-size: 0.8rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-person {
        padding: 1rem;
    }
    
    .contact-name {
        font-size: 1.5rem;
    }
    
    .phone-link {
        font-size: 1.1rem;
    }

    .church-content,
    .reception-content,
    .map-content {
        padding: 1rem;
    }
    
    .church-content {
        flex-direction: column;
    }
    
    .map-link {
        min-width: 100%;
    }
}

/* Overlay enhancement for full-screen menu */
@media (max-width: 768px) {
    .overlay {
        display: none; /* Hide overlay for mobile since menu is full screen */
    }
    
    /* Visual effect when opening and closing the menu */
    .side-menu {
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }
    
    .side-menu.open {
        transform: translateX(0);
    }
}

/* Photos Page Styles */
.photos-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.photos-page h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.photos-content {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-container {
    margin: 2rem 0;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background-color: #e0e0e0;
}

.filter-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.photo-credit {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-credit {
    opacity: 1;
}

.no-photos-message {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

.photos-note {
    margin-top: 2rem;
    font-style: italic;
}

/* Lightbox for enlarged photos */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Upload Page Styles */
.upload-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
    background-color: var(--light-bg);
}

.upload-page h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.upload-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.upload-intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.upload-intro p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.upload-intro p:last-child {
    margin-bottom: 0;
}

.upload-intro strong {
    color: var(--primary-color);
}

.upload-success {
    text-align: center;
    padding: 2rem;
    background-color: #d4edda;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #155724;
}

.upload-error {
    text-align: center;
    padding: 2rem;
    background-color: #f8d7da;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #721c24;
}

#upload-form .form-group {
    margin-bottom: 1.5rem;
}

#upload-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

#upload-form small {
    display: block;
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#upload-form input[type="text"],
#upload-form input[type="file"],
#upload-form select,
#upload-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: white;
}

#upload-form input[type="file"] {
    padding: 0.5rem;
    background-color: #f8f9fa;
    cursor: pointer;
    border: 2px dashed #ddd;
    transition: border-color 0.3s ease;
}

#upload-form input[type="file"]:hover {
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    display: inline;
    margin-bottom: 0;
    color: var(--text-color) !important;
    font-weight: normal !important;
    line-height: 1.4;
}

.upload-notice {
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    color: var(--text-color);
}

.submit-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Photo Preview Styling */
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    min-height: 100px;
    border: 1px solid #ddd;
}

/* Empty state for preview */
.photo-preview:empty::before {
    content: "Selected photos will appear here";
    color: #999;
    font-style: italic;
    text-align: center;
    width: 100%;
    display: block;
    padding: 1rem 0;
}

.preview-item {
    width: 150px;
    text-align: center;
    background-color: white;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.preview-filename {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-color);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    background-color: #f8d7da;
    padding: 0.5rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .photo-item img {
        height: 150px;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-button {
        width: 100%;
    }
    
    .lightbox-image {
        max-width: 95%;
    }
    
    .upload-content {
        padding: 1rem;
    }
    
    .preview-item {
        width: calc(50% - 0.5rem);
    }
}

/* File Upload Styling - Fixed */
.file-upload-container {
    position: relative;
    width: 100%;
    min-height: 150px;
    border: 3px dashed #2c3e50;
    border-radius: 8px;
    background-color: #f0f5fa;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-upload-container:hover {
    background-color: #e4edf7;
    border-color: #1a2733;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.file-upload-prompt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #2c3e50;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.file-upload-prompt p {
    margin-top: 0.5rem;
    text-shadow: 0 1px 0 white;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Restore file input styles */
.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Adjustments for existing upload styles */
#upload-form input[type="file"] {
    padding: 0;
    border: none;
    background: none;
}

/* Make sure error messages are visible */
.error-message {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-weight: normal;
}

/* Fix the form overall */
#upload-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Make submit button stand out more */
.submit-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.submit-button:hover {
    background-color: #1a2733;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .file-upload-container {
        min-height: 120px;
    }
    
    .upload-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }
    
    .file-upload-prompt p {
        font-size: 0.9rem;
    }
}

/* FIX FOR BLACK TEXT IN MENU - VERSION 2.3 - ALL SCREEN SIZES */

/* Global menu text color overrides - for desktop AND mobile */
.side-menu *,
.side-menu li,
.side-menu a,
.side-menu nav ul li,
.side-menu nav ul li a {
    color: #333 !important;
}

/* Force all section headers to be dark gray in ALL views */
.side-menu li.section-header,
li.section-header,
.side-menu nav li.section-header,
.side-menu nav ul li.section-header,
body .side-menu li.section-header,
body .side-menu nav ul li.section-header,
.side-menu nav ul li.section-header:first-of-type,
.side-menu nav ul li.section-header:nth-child(2),
.side-menu *[class*="section-header"],
body nav ul li.section-header:nth-of-type(1) {
    color: #333 !important; 
    font-weight: bold !important;
    font-size: 16px !important;
    text-shadow: none !important;
    background: none !important;
    border-bottom: 3px solid #333 !important;
    margin-top: 20px !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

/* Special override for Wedding Ceremony text */
body .side-menu nav ul li.section-header:first-of-type, 
body nav ul li.section-header:first-of-type,
ul li.section-header:first-of-type,
.side-menu nav ul li.section-header[id="wedding-ceremony-header"],
nav ul li.section-header[id="wedding-ceremony-header"] {
    color: #333 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    font-size: 17px !important;
}

/* Remove the red version bar */
footer::after {
    display: none !important;
}

/* Add styles for version text */
.version-number {
    content: "VERSION <?php echo $SITE_VERSION; ?>";
}

body.menu-open {
    overflow: hidden;
} 