/* Base Styles */
:root {
    --primary-color: #e8dbdb; /* White - primary */
    --secondary-color: #e8dbdb; /* Very light gray - for backgrounds */
    --tertiary-color: #25020e; /* Burgundy - for accents */
    --text-color: #333333; /* Dark gray - for main text */
    --light-text: #ffffff; /* White - for text on dark backgrounds */
    --dark-text: #1a1a1a; /* Almost black - for contrast */
}

/* Tab System Styles */
.tab-content {
    margin-top: 80px;
    min-height: calc(100vh - 120px);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block !important;
    animation: fadeIn 0.5s ease-in-out;
}

/* Ensure only active tab is visible */
body:not(.js-enabled) .tab-pane:not(.active) {
    display: none !important;
}

.nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid var(--light-text);
    padding-bottom: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

/* Header & Navigation */
header {
    background-color: var(--tertiary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    line-height: 1.2;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--light-text);
    font-weight: 500;
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    font-weight: 600;
    border-bottom: 2px solid var(--light-text);
    padding-bottom: 5px;
    pointer-events: none; /* Disable hover effects for active item */
}

/* Ensure active items don't get hover effects */
.nav-menu a.active:hover {
    transform: none;
    font-weight: 600;
}

.nav-menu a.active::after {
    display: none; /* Hide the hover underline for active items */
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 120px);
    background-color: var(--secondary-color);
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--tertiary-color);
    text-align: center;
}

section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--tertiary-color);
    color: var(--light-text);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Password Protection Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.error-message {
    color: #d32f2f;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Checkbox styling for remember me option */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--tertiary-color);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-group input[type="checkbox"]:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--tertiary-color);
        padding: 1rem 0;
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        text-align: center;
    }

    /* Section layout */
    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    #welcome .hero-image .hero-img {
    object-position: 10% center;
    }

    /* Hero sections - vertical layout: headline → image */
    .hero, .section-hero {
        flex-direction: column;
        min-height: auto;
    }

    /* Mobile-specific hero text container - hidden by default */
    .mobile-hero-text {
        display: none;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        order: -1;
        margin-top: 1rem;
    }

    .mobile-hero-text h1,
    .mobile-hero-text h2 {
        font-family: 'Playfair Display', serif;
        color: var(--tertiary-color);
        margin: 0.5rem 0;
        text-shadow: none;
    }

    .mobile-hero-text h1 {
        font-size: 2rem;
    }

    .mobile-hero-text h2 {
        font-size: 1.8rem;
    }

    /* Original hero content - will be hidden on mobile for non-welcome sections */
    .hero-content, .section-hero .hero-content {
        transform: translateY(-20px); /* Adjust the value as needed */
        width: 100%;
        order: -1; /* Headline comes first */
        margin-bottom: 1rem;
        padding: 0;
        z-index: auto; /* Remove z-index so text doesn't overlay */
        text-align: center;
        background: none; /* Remove any background */
    }

    .hero-image, .section-hero .hero-image {
        order: 1; /* Image comes second */
        height: 50vh;
        width: 100%;
    }

    /* Welcome hero specific - text overlays image (exception) */
    #welcome .hero {
        position: relative;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    #welcome .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        margin-bottom: 0;
        padding: 1rem;
        z-index: 2;
        text-align: center;
        background: none;
        color: var(--light-text);
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }

    #welcome .hero-content h1 {
        font-size: 2rem;
        margin: 0.5rem 0;
        color: var(--light-text);
        text-shadow: inherit;
    }

    #welcome .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-position: 45% center;
        z-index: 1;
    }

    #practical .hero-image .hero-img {
    object-position: 15% center;
    }

    /* Section hero headlines - centered and properly styled */
    .section-hero .hero-content h2 {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        margin: 0 auto 1rem auto;
        color: var(--light-text);
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        max-width: 800px;
        text-align: center;
    }

    /* Show mobile hero text for all sections except welcome */
    .mobile-hero-text {
        display: block;
    }
    
    /* Hide mobile hero text for welcome section (keep overlay behavior) */
    #welcome .mobile-hero-text {
        display: none;
    }



    /* Hide original hero content on mobile for all sections except welcome */
    .section-hero .hero-content {
        display: none;
    }

    /* Content flows naturally after hero sections */
    .section-hero + .practical-content,
    .section-hero + .map-content,
    .section-hero + .programme-content,
    .section-hero + .rsvp-content {
        margin-top: 1rem;
        padding-top: 0;
    }

    /* Practical items */
    .practical-content {
        margin-top: 1rem;
        padding: 0;
    }

    .practical-item {
        margin-bottom: 1rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Extra space for textarea fields to prevent keyboard overlap */
    .form-group textarea {
        min-height: 80px;
        margin-bottom: 2rem; /* Extra space for mobile keyboards */
    }

    .btn {
        width: 100%;
        padding: 0.8rem;
        margin: 0.5rem 0 3rem 0; /* Extra bottom margin for submit button */
    }

    /* Timeline */
    .timeline-item {
        margin-bottom: 1.5rem;
        padding-left: 1.2rem;
    }

    .timeline-item::before {
        left: 0;
    }

    /* Remove duplicate mobile image fix */
    .hero-img {
        object-fit: contain;
        height: auto;
    }
}

/* Hero Sections - Clean, centered layout */
.hero, .section-hero {
    position: relative;
    min-height: 50vh;
    color: var(--light-text);
    text-align: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero {
    min-height: 100vh;
}

.section-hero.extended {
    min-height: 70vh;
    margin-bottom: 0;
}

/* Content that follows extended heroes */
.section-hero.extended + .map-content,
.section-hero.extended + .practical-content {
    margin-top: 2rem;
}

/* Hero images - full bleed background */
.hero-image, .section-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-img, .section-hero .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Special handling for section hero images */
.section-hero .hero-img {
    object-fit: cover;
    object-position: center;
}

/* Custom positioning for specific hero images */
#toastmasters .section-hero .hero-img {
    object-position: 25% center;
}

/* Custom height for toastmasters hero section - 50% taller */
#toastmasters .section-hero {
    min-height: 90vh; /* 50% taller than standard 50vh */
}

/* Hero content - centered overlay text */
.hero-content, .section-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-hero .hero-content {
    padding: 1rem 2rem;
    max-width: 80%;
}

.hero h1, .hero-content h1, .mobile-hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0 auto 1rem auto;
    color: var(--primary-color);
    max-width: 800px;
    line-height: 1.2;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--tertiary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a0002c; /* Lighter burgundy for hover */
    transform: translateY(-2px);
}

/* Map Section */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.venue-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.venue-card-header {
    background-color: var(--tertiary-color);
    color: var(--light-text);
    padding: 1rem 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.venue-card-content {
    padding: 1.5rem;
}

.venue-card h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.map-container {
    height: 400px;
    width: 100%;
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-instructions {
    text-align: center;
    font-style: italic;
    color: var(--tertiary-color);
    margin-top: 1rem;
}

/* Map Info Window Styles */
/* Map pop-up boxes - styled like practical items */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 250px !important;
}

.map-info-popup {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map-info-header {
    background-color: var(--tertiary-color);
    color: var(--light-text);
    padding: 0.8rem 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.map-info-content {
    padding: 1rem;
}

.map-info-content h4 {
    display: none; /* Hide original h4 since we're using header */
}

.map-info-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Gifts Section */
.gift-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gift-option {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gift-option h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--tertiary-color);
    padding-bottom: 0.5rem;
}

.gift-option ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.gift-option li {
    margin-bottom: 0.5rem;
}

.gift-option a {
    color: var(--tertiary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.gift-option a:hover {
    color: #a0002c;
}

.gift-notes {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.gift-notes h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.gift-notes ul {
    margin-left: 1.5rem;
}

.gift-notes li {
    margin-bottom: 0.5rem;
}

.gift-thanks {
    text-align: center;
    font-style: italic;
    color: var(--tertiary-color);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Toastmasters Section */
.toastmasters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.toastmaster-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.toastmaster-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.toastmaster-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: var(--tertiary-color);
    font-size: 1.3rem;
}

.toastmaster-title {
    padding: 0 1.5rem 1rem;
    color: var(--tertiary-color);
    font-style: italic;
    border-bottom: 1px solid var(--secondary-color);
}

.toastmaster-card p {
    padding: 0 1.5rem 1rem;
    margin-bottom: 0;
}

.toastmaster-responsibilities {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.toastmaster-responsibilities h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.toastmaster-responsibilities ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.toastmaster-responsibilities li {
    margin-bottom: 0.5rem;
}

/* OSA Section */
.osa-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.osa-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    margin-bottom: 1rem;
    border: 5px solid var(--tertiary-color);
}

.osa-info {
    text-align: center;
}

.osa-info h4 {
    color: var(--tertiary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.osa-title {
    color: var(--tertiary-color);
    font-style: italic;
    margin-bottom: 1rem;
}

.osa-responsibilities {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.osa-responsibilities h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.osa-responsibilities ul {
    margin-left: 1.5rem;
}

.osa-responsibilities li {
    margin-bottom: 0.5rem;
}

.osa-timeline-items {
    margin: 1rem 0;
}

.osa-timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.osa-time {
    font-weight: 600;
    color: var(--tertiary-color);
    min-width: 80px;
}

.osa-event {
    flex: 1;
    padding-left: 1rem;
}

.osa-contact {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
}

.osa-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.osa-contact a:hover {
    text-decoration: underline;
}

/* Dresscode Section */
.dresscode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.dresscode-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dresscode-card h4 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--tertiary-color);
    padding-bottom: 0.5rem;
}

.dresscode-card ul {
    margin-left: 1.5rem;
}

.dresscode-card li {
    margin-bottom: 0.5rem;
}

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

.example-card {
    text-align: center;
}

.example-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dresscode-weather {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.dresscode-weather h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.dresscode-weather ul {
    margin-left: 1.5rem;
}

.dresscode-weather li {
    margin-bottom: 0.5rem;
}

.dresscode-note {
    text-align: center;
    font-style: italic;
    color: var(--tertiary-color);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--tertiary-color);
    padding-bottom: 0.5rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--tertiary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #a0002c;
}

.contact-form {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.contact-form h3 {
    color: var(--tertiary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--tertiary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tertiary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--tertiary-color);
    border: none;
    border-radius: 5px;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #a0002c;
}

.contact-social {
    text-align: center;
    margin: 2rem 0;
}

.contact-social h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.social-icon {
    font-size: 2rem;
    color: var(--tertiary-color);
    transition: transform 0.3s, color 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.2);
    color: var(--tertiary-color);
}

.contact-thanks {
    text-align: center;
    font-style: italic;
    color: var(--tertiary-color);
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* RSVP Section */
.rsvp-deadline {
    background-color: var(--tertiary-color);
    color: var(--light-text);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
    text-align: center;
}

.rsvp-deadline h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.rsvp-deadline p {
    color: var(--light-text);
    opacity: 0.9;
}

.rsvp-form {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.rsvp-contact {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
    text-align: center;
}

.rsvp-contact h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.rsvp-contact a {
    color: var(--tertiary-color);
    text-decoration: none;
}

.rsvp-contact a:hover {
    text-decoration: underline;
}

/* Practical Information */
.practical-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.practical-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.practical-item-header {
    background-color: var(--tertiary-color);
    color: var(--light-text);
    padding: 1rem 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.practical-item-content {
    padding: 1.5rem;
}

.practical-item h3 {
    color: var(--tertiary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.practical-item p {
    margin-bottom: 0.8rem;
}

/* Programme Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--tertiary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--tertiary-color);
    border: 3px solid var(--tertiary-color);
}

.timeline-time {
    font-weight: 600;
    color: var(--tertiary-color);
    margin-bottom: 0.5rem;
}

.programme-note {
    text-align: center;
    font-style: italic;
    color: var(--tertiary-color);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Programme Layout with Portrait Photo */
.programme-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.programme-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.portrait-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.programme-content-wrapper {
    flex: 1;
    min-width: 0;
}

.programme-header {
    text-align: center;
    margin-bottom: 2rem;
}

.programme-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.programme-header p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Responsive layout for larger screens */
@media (min-width: 992px) {
    .programme-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
        min-height: 100vh;
    }
    
    .programme-photo {
        flex: 0 0 35%;
        max-width: none;
        margin: 0;
        position: sticky;
        top: 80px;
        align-self: flex-start;
        height: calc(100vh - 120px);
    }
    
    .programme-photo img {
        height: 100%;
        width: auto;
        max-width: 100%;
    }
    
    .programme-content-wrapper {
        flex: 1;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 120px);
    }
    
    .programme-header {
        padding: 1rem 0;
        border-bottom: 1px solid var(--tertiary-color);
        margin-bottom: 1rem;
    }
    
    .programme-content {
        flex: 1;
        overflow-y: auto;
        padding-right: 1rem;
    }
    
    .timeline {
        padding-bottom: 2rem;
    }
    
    .programme-note {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid var(--tertiary-color);
    }
}

/* Ensure programme tab has proper height for scroll prevention */
#programme {
    min-height: 100vh;
}