/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* Global responsive adjustments */
    .nav-logo a {
        font-size: 1.5em;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: static;
    }

    .main-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(253, 251, 245, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .main-nav ul.open {
        max-height: 500px;
        padding: 1em 0;
    }

    .main-nav ul li {
        margin-left: 0;
        margin-bottom: 0.8em;
    }

    /* Responsive dropdown in stacked navigation */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px dashed var(--secondary-green);
        margin-top: 5px;
        padding-left: 15px;
        background-color: transparent;
        /* max-height, opacity, visibility controlled by hover still */
        width: 100%;
        min-width: unset;
        border-radius: 0;
        /* display: block; /* Already block, but ensure it flows in column */
    }

    /* .nav-item-dropdown:hover .dropdown-menu remains the same for visibility */

    .dropdown-menu li a {
        padding: 8px 0;
        /* color already var(--primary-green) */
        width: 100%;
        /* display: block; /* Already block */
    }

    /* Hero section responsive */
    .hero-names {
        font-size: 2.2em;
    }
    .hero-date {
        font-size: 1em;
    }
    .hero-wedding-date, .hero-location {
        font-size: 1.2em;
    }
    .hero-section {
        padding-top: 150px; /* Increased due to potentially taller stacked nav */
    }
    .hero-image-container {
        background-position: center 30%; /* As per original */
    }

    /* Welcome intro responsive */
    .welcome-intro p {
        font-size: 1.5em;
    }

    /* Page content responsive padding due to taller header */
    .page-content {
        padding-top: 160px; /* Increased padding if header stacks and becomes taller */
    }

    /* Timeline responsive for 768px */
    .wedding-timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 60px;
    }
    .timeline-time {
        position: absolute;
        left: 20px;
        top: 0;
        background-color: var(--accent-gold);
        color: white;
        padding: 0.2em 0.4em;
        border-radius: 3px;
        font-size: 0.65em;
        font-weight: bold;
        min-width: auto;
        text-align: center;
        white-space: nowrap;
        transform: translateX(-50%);
        z-index: 3;
    }
    .timeline-content {
        margin-left: 5px; /* Reduced margin */
    }

    /* Voting section responsive */
    .vote-container {
        flex-direction: column;
        align-items: center;
    }
    .vote-option {
        width: 80%;
        max-width: 400px;
        margin-bottom: 2em;
    }
    .vote-separator {
        margin: 1em 0;
    }
}

@media (max-width: 480px) {
    /* Hero section responsive for smaller screens */
    .hero-names {
        font-size: 1.8em;
    }
    /* .hero-image-container already set for 768px, might not need change */

    /* Details page hero responsive */
    .details-hero-content h1 {
        font-size: 2.2em;
    }
    .details-page h2 { /* General H2 on details page */
        font-size: 1.8em;
    }

    /* Timeline responsive for smaller screens */
    .wedding-timeline::before {
        left: 15px;
    }
    .timeline-item {
        padding-left: 45px;
    }
    .timeline-icon {
        left: 0px;
        width: 25px;
        height: 25px;
    }
    .timeline-icon img {
        width: 15px;
        height: 15px;
    }
    .timeline-content h3 {
        font-size: 1.3em;
    }
    .timeline-content p {
        font-size: 0.9em;
    }
    /* .timeline-time adjustments if it were static */
    /* .timeline-time {
        position: static;
        transform: none;
        margin-bottom: 0.5em;
        display: inline-block;
        background-color: transparent;
        color: var(--accent-gold);
        padding: 0;
        font-weight: bold;
    } */
}