/* Custom Element: Membership Options 2 */

.brxe-membership-options-2 {
    margin-top: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Section Heading */
.mo2-section-heading {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: 1.6em;
}

/* Container Flex Layout - Centers 1, 2, or 3 cards cleanly */
.mo2-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* Horizontally centers cards (perfect for 2-column sections) */
    align-items: flex-start; /* CRITICAL: Stops unopened cards from stretching when one expands */
    max-width: var(--site-container-width);
    margin: 0 auto;
    box-sizing: border-box;
}

/* Card Wrapper */
.mo2-card {
    flex: 0 1 calc(33.333% - 20px);
    width: 100%;
    max-width: calc(33.333% - 20px);
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border:1px solid #cb9913;
}

/* Forces equal height across cards ONLY when ALL accordions are closed */
.mo2-container:not(:has(.mo2-card-accordion[open])) .mo2-card {
    align-self: stretch;
}

/* Top Image Frame */
.mo2-card-image {
    width: 100%;
    height: 13.75em;
    overflow: hidden;
}

.mo2-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Inner Card Body */
.mo2-card-body {
    padding: 20px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    color: var(--color-secondary);
}

/* Card Heading */
.mo2-card-heading {
    margin-top: 0;
    margin-bottom: 0.6em;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight);
    color: var(--color-primary);
    text-transform: uppercase;
}

/* Card Summary Area - Expands to absorb height differences and push footers down */
.mo2-card-summary {
    max-width: 90%;
    margin: 0 auto 0.8em;
    font-size: 1em;
    line-height: 1.35;
    flex-grow: 1; /* Pushes the accordion trigger and buttons cleanly to the bottom */
}

.mo2-card-summary h5 {
    font-family: var(--font-primary);
    font-size: 1.5em;
    font-weight: 500;
}

.mo2-card-summary p {
    margin: 0.15em 0;
    line-height: 25px;
}

.mo2-card-summary del,
.mo2-card-summary s {
    text-decoration: line-through;
    opacity: 0.75;
}

.mo2-card-summary strong,
.mo2-card-summary b {
    font-weight: 700;
}

/* Accordion Component ("What's included") */
.mo2-card-accordion {
    margin-top: auto;
    margin-bottom: 30px;
    text-align: center;
}

.mo2-accordion-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    cursor: pointer;
    font-size: 1em;
    list-style: none;
    user-select: none;
}

.mo2-accordion-header::-webkit-details-marker {
    display: none;
}

.mo2-accordion-icon {
    transition: transform 0.2s ease;
}

.mo2-card-accordion[open] .mo2-accordion-icon {
    transform: rotate(180deg);
}

.mo2-accordion-content {
    margin-top: 15px;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.4;
    padding: 0 10px;
    background: transparent;
    border-radius: 0;
}

.mo2-accordion-content ul {
    margin: 0;
    padding-left: 1.2em;
}

/* Card Footer Anchor */
.mo2-card-footer {
    margin-top: auto; /* Guarantees buttons align horizontally across closed cards */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main CTA Button */
.mo2-card-button {
    display: inline-block;
    padding: 0.4em 30px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    text-transform: uppercase;
    width: fit-content;
    align-self: center;
    transition: opacity 0.2s ease;
}

.mo2-card-button:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* Bottom Tour Section */
.mo2-card-tour {
    margin-top: 0.8em;
}

.mo2-tour-text {
    margin: 0;
    font-size: 0.95em;
}

.mo2-tour-link {
    display: inline-block;
    margin-top: 0px;
    font-size: 0.95em;
    color: var(--color-primary);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.mo2-tour-link:hover {
    opacity: 0.8;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .mo2-card {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media screen and (max-width: 768px) {
    .mo2-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    .mo2-card-accordion {
        margin-bottom: 25px;
    }

    .mo2-card {
        flex: 0 1 auto !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 15px;
    }

    .brxe-membership-options-2 {
        margin-top: 10px !important;
        margin-bottom: 0px;
    }

    .mo2-section-heading {
        margin-left: 20px;
        margin-right: 20px;
    }

    .mo2-card-body {
        padding: 20px;
    }
}