body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #cccccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol";
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    z-index: 0;
    background-color: #111;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    width: 90%;
    margin: 40px auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.container img {
    /* This targets the LOGO primarily now */
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.container > p {
    font-size: 1.8em;
    font-weight: 300;
    margin-bottom: 20px;
}

.event-cards-section {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.event-cards-section h2 {
    color: #eee;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5em;
    margin-bottom: 25px;
    text-align: center;
}

#event-cards-container {
    width: 100%;
    margin-top: 30px;
}

.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.event-card {
    background-color: #252525;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    border: 1px solid #444;
}

.event-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
}

.event-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 120px;
    object-fit: cover;
}

.event-card-content {
    padding: 15px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.1em;
    line-height: 1.3;
    color: #eee;
    border-bottom: none;
    padding-bottom: 0;
}

.event-card-date,
.event-card-location {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 6px;
}

.event-card-snippet {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 8px;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.event-card .details-btn {
    display: none;
}

.event-detail-section {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 40px auto;
    text-align: left;
    background-color: rgba(30, 30, 30, 0.7);
    padding: 25px 35px;
    border-radius: 8px;
    border: 1px solid #555;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#back-to-events-btn {
    background: none;
    border: 1px solid #777;
    color: #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 25px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    font-size: 0.9em;
}
#back-to-events-btn:hover {
    background-color: #555;
    color: #fff;
}

.event-detail-section .event-detail-image {
    /* ... Keep all your existing styles for this element ... */
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 25px;

    /* --- Added for Brand Filter --- */
    /* Replace #E87500 with your actual Deep Sunset Orange HEX code */
    background-color: #873e23;
    /* --- Experiment with blend modes --- */
    /* multiply: Darkens image while applying tint */
    /* overlay: Blends color while preserving highlights/shadows (often looks good) */
    /* color: Applies hue and saturation of the color, keeps luminosity of image */
    /* hue: Applies hue of the color, keeps saturation/luminosity of image */
    mix-blend-mode: multiply; /* Start with multiply or overlay and adjust */
    /* --- --- */
}

#event-detail-content h1 {
    border-bottom: 1px solid #777;
    padding-bottom: 0.4em;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2em;
    color: #eee;
}
#event-detail-content p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1.2em;
    font-weight: normal;
}
#event-detail-content p strong {
    color: #ddd;
}
.event-detail-description {
    margin-top: 30px;
    margin-bottom: 30px;
}

.ticket-btn {
    display: inline-block;
    border: 1px solid #555;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 30px;
    margin-top: 10px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    text-shadow: none;
}
.ticket-btn:hover,
.ticket-btn:focus {
    background-color: #ffffff;
    color: #1a1a1a;
    text-shadow: none;
    border-color: #dddddd;
    outline: none;
}

.hidden {
    display: none !important;
}

.guest-form {
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0 auto;
}
.guest-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
    color: #cccccc;
}
.guest-form input[type="text"],
.guest-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #cccccc;
    box-sizing: border-box;
}

.error-message {
    display: none;
    color: #ff4d4d;
    font-size: 0.85em;
    margin-top: 4px;
    text-align: left;
    min-height: 1.2em;
    margin-bottom: 10px;
}
.error-message.visible {
    display: block;
}

.honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

.guest-form button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #555;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 30px;
    margin-top: 15px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-shadow: none;
    transition:
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out,
        border-color 0.2s ease-in-out;
}
.guest-form button:hover,
.guest-form button:focus {
    background-color: #ffffff;
    color: #1a1a1a;
    text-shadow: none;
    border-color: #dddddd;
    outline: none;
}
.guest-form button:disabled {
    background-color: #444;
    color: #888;
    border-color: #555;
    box-shadow: none;
    cursor: not-allowed;
    text-shadow: none;
}

.success-banner {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4caf50;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    align-items: center;
    justify-content: space-between;
}
.success-banner p {
    margin: 0;
    padding-right: 20px;
    font-size: 1.1em;
    font-weight: normal;
}
.success-banner button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
}
.success-banner.visible {
    display: flex;
}

/* --- Social Media Link Styling --- */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 20px;
}
.social-links a {
    color: #cccccc;
    text-decoration: none;
    display: inline-block;
    transition:
        color 0.2s ease-in-out,
        transform 0.2s ease-in-out;
}
.social-links a:hover,
.social-links a:focus {
    color: #ffc107; /* Amber hover */
    transform: scale(1.1);
    outline: none;
}
.social-links svg {
    display: block;
}
.social-links svg.soundcloud-icon {
    height: 20px;
    width: auto;
}

/* reCAPTCHA Notice Styling */
.recaptcha-notice {
    font-size: 0.75em;
    color: #999;
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-align: center;
}
.recaptcha-notice a {
    color: #bbb;
    text-decoration: underline;
}
.recaptcha-notice a:hover {
    color: #ccc;
}

/* --- Responsive Adjustments --- */

@media (max-width: 700px) {
    /* Adjust this breakpoint if needed */

    /* --- General Layout & Spacing --- */
    body {
        /* Adjust body font size slightly if needed for overall scaling */
        /* font-size: 95%; */
    }

    .container {
        width: 95%; /* Use slightly more width on small screens */
        padding: 15px; /* Reduce horizontal padding */
        margin-top: 20px; /* Reduce top spacing */
        margin-bottom: 20px;
    }

    .container > p {
        /* Main intro text */
        font-size: 1.5em; /* Slightly smaller */
    }

    /* --- Event Cards Section --- */
    .event-cards-section {
        margin-top: 30px; /* Reduce top margin */
        max-width: 100%; /* Allow full width */
    }

    .event-cards-section h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .event-cards-grid {
        grid-template-columns: 1fr; /* Switch to a single column */
        gap: 15px; /* Reduce gap between cards */
    }

    .event-card {
        /* Cards might not need specific changes, but review if needed */
    }

    .event-card img {
        height: 150px; /* Increase card image height slightly for single column */
    }

    .event-card-content h3 {
        font-size: 1.05em; /* Ensure card titles are readable */
    }

    /* --- Event Detail Section --- */
    .event-detail-section {
        padding: 20px 20px; /* Reduce padding */
        margin: 20px auto 30px auto; /* Adjust margins */
        width: 95%; /* Align with container width */
        max-width: none; /* Remove max-width constraint on mobile */
    }

    #back-to-events-btn {
        padding: 7px 14px;
        font-size: 0.85em;
        margin-bottom: 20px;
    }

    /* Adjust detail image height if it takes too much space */
    .event-detail-section .event-detail-image,
    .event-detail-image-wrapper {
        /* Target wrapper if using Method 2 */
        max-height: 300px; /* Reduce max height */
        /* Alternatively consider aspect-ratio if support is sufficient */
        /* aspect-ratio: 16 / 9; height: auto; max-height: none; */
        margin-bottom: 20px; /* Reduce space below image */
    }

    #event-detail-content h1 {
        font-size: 1.7em; /* Reduce title size */
        margin-bottom: 15px;
        padding-bottom: 0.3em;
    }

    #event-detail-content p {
        font-size: 1em; /* Adjust if needed */
        line-height: 1.6;
    }

    .event-detail-description {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* --- Buttons --- */
    .ticket-btn,
    .guest-form button {
        padding: 10px 25px; /* Adjust padding for tap targets */
        font-size: 0.95em;
    }

    /* --- Guest Form --- */
    .guest-form {
        max-width: none; /* Allow form to use available width */
        margin-top: 30px;
        width: 100%; /* Ensure it uses container width */
    }

    /* --- Social Links --- */
    .social-links {
        gap: 20px; /* Reduce gap */
        margin-top: 35px; /* Adjust spacing */
    }

    /* --- reCAPTCHA Notice --- */
    .recaptcha-notice {
        max-width: none; /* Allow full width */
    }
}

@media (max-width: 480px) {
    // Add overrides for very small phones here
    // e.g., further reduce font sizes, padding, margins
    .container > p {
        font-size: 1.3em;
    }
    #event-detail-content h1 {
        font-size: 1.5em;
    }
}
