/* ---
   membership.css
   A complete redesign for a luxurious, cohesive, and visually stunning Membership Page.
   This file is crafted to work seamlessly with styles.css.
   --- */

/* --- 1. General Page & Section Styling --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.section-header .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-2);
    line-height: 1.7;
}

/* --- 2. Membership Hero Section --- */
.membership-hero {
    background-image: linear-gradient(rgba(73, 55, 91, 0.6), rgba(73, 55, 91, 0.6)), url('../assets/images/the-circle-home.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 14rem 2rem 12rem;
    color: var(--color-background);
    /* Ensure it has a minimum height to display the background image */
    min-height: 80vh; /* Added or adjusted for visibility */
    overflow: hidden; /* Keep overflow hidden if content should stay within bounds */
    position: relative; /* Ensure z-index works if needed for content */
}

.membership-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above the background */
    z-index: 2; /* Place content above the background overlay */
}

.membership-hero-title {
    font-family: var(--font-primary);
    font-size: 5.5rem;
    font-weight: 600;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.membership-hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-lavender);
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Style for the added hero image (if present) */
.membership-hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 3rem; /* Add some space below text */
    border-radius: 15px; /* Rounded corners for aesthetics */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    object-fit: cover; /* Ensure image covers its area nicely */
}

/* --- 3. Pricing Tiers Section --- */
.pricing-tiers-section {
    padding: 6rem 0;
    background-color: var(--color-background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch; /* Makes cards equal height */
}

.pricing-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(109, 91, 135, 0.1);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(109, 91, 135, 0.15);
}

.pricing-card.highlighted {
    transform: translateY(-20px) scale(1.03);
    border-color: var(--color-gold);
    box-shadow: 0 25px 60px rgba(212, 183, 106, 0.3);
}

.pricing-card .tier-name {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-amethyst);
    margin-bottom: 0.5rem;
}

.pricing-card .tier-price {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.pricing-card .tier-price span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-2);
}

/* Removed .pricing-card .tier-description as requested */

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
    text-align: left;
    flex-grow: 1; /* Pushes button to the bottom */
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--color-text-4);
}

/* Standardized size for all feature icons in pricing cards */
.features-list li svg { /* Target the SVG directly */
    width: 24px !important; /* Use !important to ensure override */
    height: 24px !important; /* Use !important to ensure override */
    color: var(--color-gold);
    flex-shrink: 0;
}

/* Button styling within cards */
.pricing-card .btn-primary {
    width: 100%;
    margin-top: auto; /* Aligns button to the bottom */
    background: transparent;
    border-color: var(--color-amethyst);
    color: var(--color-amethyst);
    text-shadow: none;
}

.pricing-card .btn-primary:hover {
    background: var(--color-amethyst);
    color: #ffffff;
}

.pricing-card.highlighted .btn-primary {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-text);
}

.pricing-card.highlighted .btn-primary:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #ffffff;
}

/* --- 4. Community Section --- */
.community-section {
    padding: 4rem 0; /* REDUCED from 6rem */
    background-color: var(--color-background-2);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 4rem; /* REDUCED from 5rem */
}

.community-content {
    max-width: 550px;
    justify-self: end;
}

.community-content .title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.community-content .text {
    font-size: 1.2rem;
    color: var(--color-text-2);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Removed .community-content .btn-primary as requested */

.community-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(73, 55, 91, 0.2);
}

/* --- 5. New Membership Details Sections (Seeker, Visionary, Sovereign) --- */
.membership-details-section {
    padding: 4rem 0; /* Reduced padding for a more minimal look */
    /* Alternating background colors for visual separation */
    background-color: var(--color-background); 
}

.membership-details-section:nth-of-type(odd) {
    background-color: var(--color-background-2); /* Soft Lavender Haze */
}

.membership-details-section .section-header {
    margin-bottom: 2.5rem; /* Reduced margin */
}

.membership-details-section .title {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.membership-details-section .subtitle {
    font-size: 1.1rem;
    color: var(--color-text-3);
    max-width: 600px; /* Constrain width for better readability */
    margin: 0 auto;
    line-height: 1.6;
}

.membership-details-section .details-content {
    max-width: 650px; /* Slightly reduced max-width for tighter content */
    margin: 0 auto;
    text-align: left;
    /* Glassmorphism styles */
    background-color: rgba(255, 255, 255, 0.15); /* Light, translucent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); /* Subtle shadow */
    padding: 2.5rem; /* Adjusted padding inside the glassmorphism card */
}

.membership-details-section .details-text-intro,
.membership-details-section .details-text-outro {
    font-size: 1.05rem; /* Slightly smaller font for intro/outro text */
    color: var(--color-text-2);
    line-height: 1.7;
    margin-bottom: 1.5rem; /* Adjusted margin */
    text-align: center; /* Center align these paragraphs */
}

.membership-details-section .details-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.membership-details-section .details-features-list li {
    display: flex;
    align-items: flex-start; /* Align icon to top of text */
    gap: 1rem;
    margin-bottom: 0.8rem; /* Reduced margin for tighter list */
    font-size: 1.05rem; /* Adjusted font size */
    color: var(--color-text-4);
    line-height: 1.5;
}

/* Standardized size for checkmarks in details sections */
.membership-details-section .details-features-list li svg { /* Target the SVG directly */
    width: 24px !important; /* Use !important to ensure override */
    height: 24px !important; /* Use !important to ensure override */
    color: var(--color-amethyst); /* Use amethyst for these checkmarks */
    flex-shrink: 0;
    margin-top: 0.2rem; /* Adjust icon vertical alignment */
}

.membership-details-section .details-note {
    font-size: 1rem;
    color: var(--color-text-2);
    font-weight: 600;
    text-align: center;
    margin-top: 2rem;
}

/* New styles for specific elements within details sections */
.membership-details-section .details-subheading {
    font-family: var(--font-primary);
    font-size: 1.8rem; /* Reduced font size for subheadings */
    color: var(--color-text);
    margin-top: 2.5rem; /* Reduced top margin */
    margin-bottom: 1rem; /* Reduced bottom margin */
    text-align: center;
    display: flex; /* Enable flexbox for icon alignment */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    gap: 0.5rem; /* Space between icon and text */
}

.membership-details-section .details-subheading svg {
    width: 28px; /* Slightly larger icon for subheadings */
    height: 28px;
    color: var(--color-gold); /* Gold color for these specific icons */
}

.membership-details-section .details-price {
    font-family: var(--font-primary);
    font-size: 2.8rem; /* Slightly smaller price font */
    font-weight: 700;
    color: var(--color-amethyst);
    text-align: center;
    margin-bottom: 0.5rem;
}

.membership-details-section .details-price-alt {
    font-size: 1.1rem; /* Slightly smaller "or" text */
    color: var(--color-text-2);
    text-align: center;
    margin-bottom: 0.5rem;
}

.membership-details-section .details-btn {
    display: block; /* Make button full width */
    max-width: 280px; /* Slightly reduced max-width for better fit */
    margin: 2.5rem auto 0 auto; /* Center button with adjusted top margin */
    padding: 0.8rem 1.8rem; /* Adjusted padding */
    font-size: 0.95rem; /* Adjusted font size */
    text-align: center;
}


/* --- 6. FAQ Section --- */
.faq-section {
    padding: 6rem 0;
    background-color: var(--color-background);
}

.faq-section .container {
    max-width: 900px;
}

.faq-item {
    border-bottom: 1px solid var(--color-background-3);
    padding: 1.75rem 0;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--color-background-3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--color-text);
    font-weight: 600;
}

.faq-question i {
    /* Standardized size for FAQ icons */
    width: 24px;
    height: 24px;
    color: var(--color-amethyst);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
    color: var(--color-text-2);
    line-height: 1.8;
    font-size: 1.05rem;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    padding-top: 1.5rem;
    /* max-height is now set by JS for perfect height calculation */
}

.faq-item.active .faq-question i {
    transform: rotate(135deg);
}

/* --- 7. Responsive Adjustments --- */
@media (max-width: 1024px) {
    .community-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .community-content {
        justify-self: center;
        order: 2;
    }
    .community-image {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }
    .pricing-card.highlighted {
        transform: translateY(0) scale(1);
    }

    /* Adjust pricing card font sizes for tablets */
    .pricing-card .tier-price {
        font-size: 3.5rem; /* Slightly smaller for tablets */
    }
    .pricing-card .tier-name {
        font-size: 1.8rem; /* Slightly smaller for tablets */
    }
    /* Removed tier-description, so no need for min-height */

    .membership-details-section .title {
        font-size: 2.5rem;
    }
    .membership-details-section .subtitle {
        font-size: 1rem;
    }
    .membership-details-section .details-features-list li {
        font-size: 1rem;
    }
    .membership-details-section .details-subheading {
        font-size: 1.8rem;
    }
    .membership-details-section .details-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }
    .membership-hero {
        padding: 10rem 1.5rem 8rem;
    }
    .membership-hero-title {
        font-size: 3.5rem;
    }
    .membership-hero-subtitle {
        font-size: 1.2rem;
    }
    .pricing-tiers-section,
    .community-section,
    .faq-section,
    .membership-details-section { /* Apply padding to new sections too */
        padding: 3rem 0; /* Further reduced padding for mobile */
    }
    .section-header .title,
    .community-content .title {
        font-size: 2.5rem;
    }
    .faq-question {
        font-size: 1.3rem;
    }

    /* Adjust pricing card font sizes for mobile */
    .pricing-card {
        padding: 2rem; /* Reduce padding for smaller screens */
    }
    .pricing-card .tier-price {
        font-size: 3rem; /* Further reduce for mobile */
    }
    .pricing-card .tier-price span {
        font-size: 1rem;
    }
    .pricing-card .tier-name {
        font-size: 1.6rem; /* Further reduce for mobile */
    }
    .features-list {
        margin-bottom: 2rem; /* Adjust margin */
    }
    .features-list li {
        font-size: 0.95rem;
        margin-bottom: 0.8rem; /* Reduce line spacing */
    }

    .membership-details-section .title {
        font-size: 2rem;
    }
    .membership-details-section .subtitle {
        font-size: 0.9rem;
    }
    .membership-details-section .details-features-list li {
        font-size: 0.95rem;
    }
    .membership-details-section .details-subheading {
        font-size: 1.5rem;
    }
    .membership-details-section .details-price {
        font-size: 2rem;
    }
    .membership-details-section .details-btn {
        max-width: 250px;
        padding: 0.7rem 1.5rem; /* Further adjusted padding */
        font-size: 0.9rem; /* Further adjusted font size */
    }
}
