/**
 * Membership Page Styles
 */

/* Main Container */
.membership-main {
    width: 100%;
    padding: 3rem 0;
    /* Remove max-width and margin constraints to allow full-screen background */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.membership-hero {
    background-color: #1a1a1a;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/membership-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.membership-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
}

.membership-hero .subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-cta {
    margin-top: 2.5rem;
}

.btn-join-now {
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn-join-now:hover {
    background-color: #d35400;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Membership Plans Section */
.membership-levels {
    padding: 2rem 0 4rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Plan Cards */
.plan-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-card.recommended {
    border: 2px solid #e67e22;
    transform: scale(1.03);
}

.plan-card.recommended:hover {
    transform: translateY(-5px) scale(1.03);
}

.recommended-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #e67e22;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom-left-radius: 8px;
}

.plan-header {
    text-align: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #f1f1f1;
}

.plan-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.plan-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.plan-price {
    text-align: center;
    padding: 1.5rem;
    background-color: #f9f9f9;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.plan-price .period {
    font-size: 1.2rem;
    color: #666;
}

.annual-discount {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #e67e22;
}

.plan-features {
    list-style: none;
    padding: 1.5rem 2rem;
    margin: 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f1f1f1;
    color: #555;
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9c7c38;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-cta {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    margin-top: auto;
}

.btn-subscribe {
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 0;
    border-radius: 4px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #d35400;
}

/* Comparison Table */
.comparison-section {
    padding: 3rem 0 4rem;
    background-color: #f9f9f9;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    background-color: #333;
    color: #fff;
    font-weight: 600;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
}

.comparison-table .yes {
    color: #27ae60;
    font-size: 1.2rem;
    font-weight: bold;
}

.comparison-table .no {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

/* Member-exclusive Benefits */
.exclusive-benefits {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-icon i {
    font-size: 3rem;
    color: #9c7c38;
}

.icon-courses::before {
    content: "📚";
    font-size: 3rem;
}

.icon-interpretation::before {
    content: "🔮";
    font-size: 3rem;
}

.icon-ebooks::before {
    content: "📱";
    font-size: 3rem;
}

.icon-community::before {
    content: "👥";
    font-size: 3rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #9c7c38;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* Final CTA Section */
.final-cta {
    padding: 4rem 0;
    background-color: #f9f6f0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-text {
    flex: 0 0 55%;
    padding-right: 2rem;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.cta-benefits li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
}

.cta-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #9c7c38;
    font-weight: bold;
}

.cta-image {
    flex: 0 0 40%;
}

.cta-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-learn-more {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #e67e22;
    color: #e67e22;
    text-decoration: none;
    padding: 0.9rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background-color: #e67e22;
    color: #fff;
}

/* Add JavaScript behavior for FAQ accordions */
.js-accordion-script {
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .plan-card.recommended {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cta-content {
        flex-direction: column;
    }
    
    .cta-text {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-image {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 768px) {
    .membership-hero h1 {
        font-size: 2.2rem;
    }
    
    .membership-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .plan-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.recommended {
        transform: scale(1);
    }
    
    .plan-card.recommended:hover {
        transform: translateY(-5px);
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-join-now, .btn-subscribe {
        padding: 0.8rem 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .membership-hero {
        padding: 3rem 0;
    }
    
    .membership-hero h1 {
        font-size: 1.8rem;
    }
    
    .membership-hero .subtitle {
        font-size: 1rem;
    }
    
    .btn-join-now {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-join-now, .btn-learn-more {
        text-align: center;
    }
}
