/* =========================================================
   BUBBLES (No Squish, Stays in Section)
   ========================================================= */
#bubbles-canvas {
    height: auto;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    background-image: url("../img/eventsHero.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 263px;
}

.hero-content h3 {
    font-family: "Montserrat", cursive;
    color: var(--brand-secondary);
    font-size: clamp(1rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    margin-top: 0.4rem;
}

.hero-text p {
    justify-self: center;
    width: 56%;
    margin: 0 auto;
}

/* =========================================================
   EVENTS SECTION
   ========================================================= */
.events-section {
    position: relative;
    background: linear-gradient(to bottom, #9E1F63 0%, #b98a54 70%, #c09c66 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    overflow: visible;
    padding: 2rem;
    min-height: 150px;
}

.event-group {
    margin: 0 auto;
    width: 100%;
    border-radius: 12px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* =========================================================
   ACCORDIONS (Main Circle Buttons)
   ========================================================= */
.accordion {
    width: 100px;
    height: 100px;
    background: var(--brand-secondary);
    color: #fff;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    border: none;
    border-radius: 50%;
    outline: none;
    font-size: 0.7rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 1;
    position: relative;
    white-space: normal;
    line-height: 1.15;
}

.accordion:hover {
    background: #E6C761;
    transform: scale(1.05);
}

.accordion.active {
    background: var(--brand-secondary);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   NESTED ACCORDIONS (Desktop Smaller)
   ========================================================= */
.accordion.nested {
    width: 70px;
    height: 70px;
    background: var(--brand-secondary);
    font-size: 0.65rem;
    border-radius: 50%;
    margin: 0.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    line-height: 1.1;
    white-space: normal;
}

/* =========================================================
   PANELS (Desktop Columns)
   ========================================================= */
.panel {
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.35);
    border-radius: 10px;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.3, 1), padding 0.3s ease;
    padding: 0;
    margin: 1rem auto;
    z-index: 1;
    position: relative;
    width: 90%;
    max-width: 320px;
    order: 2;
    text-align: center;
}

.accordion.active + .panel {
    padding: 1.25rem 1.5rem;
    overflow: hidden;
}

.panel p {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--text);
    text-align: center;
}

.panel h4 {
    color: var(--brand-secondary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* =========================================================
   NESTED PANELS
   ========================================================= */
.panel.nested {
    background: transparent;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    text-align: center;
}

.panel.nested.active {
    padding: 1rem 1.5rem;
    overflow: visible;
}

/* =========================================================
   NESTED BUTTONS WRAPPER
   ========================================================= */
.nested-buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

/* =========================================================
   DESKTOP 3-COLUMN LAYOUT
   ========================================================= */
.events-columns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1500px;
}

.events-column {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
   MOBILE OVERRIDES (THE GOOD STUFF)
   ========================================================= */
@media (max-width: 1024px) {

    .events-columns {
        justify-content: center !important;
    }

    /* FULL-WIDTH MOBILE PANELS BELOW ALL BUTTONS */
    .panel {
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        width: 95% !important;
        max-width: 95% !important;

        margin-top: 1rem !important;
        order: 999 !important;
    }

    .accordion.active + .panel {
        max-height: 2500px !important;
    }

    /* Mobile nested buttons stay small */
    .accordion.nested {
        width: 70px !important;
        height: 70px !important;
        font-size: 0.65rem !important;
        min-width: 70px !important;
        min-height: 70px !important;
    }
}

/* =========================================================
   END OF FILE
   ========================================================= */
