/* style/vip-program-levels.css */

/* Global Variables (inherited from shared.css, but defined here for clarity if needed) */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: #1a1a1a; /* Example dark background for contrast */
}

/* Base page styling, ensuring text color contrasts with default body background (white) */
.page-vip-program-levels {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light body background */
    background-color: #ffffff; /* Explicitly white background for content sections */
}

/* Fixed Header Offset - using shared variable */
.page-vip-program-levels__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Hero Section */
.page-vip-program-levels__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding as needed */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color-light); /* Light text for dark/gradient background */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-vip-program-levels__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-vip-program-levels__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is behind content if content overlays */
}

.page-vip-program-levels__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-vip-program-levels__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    max-width: 900px; /* Limit width for readability */
}

.page-vip-program-levels__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-vip-program-levels__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly lighter for readability on gradient */
}

.page-vip-program-levels__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-vip-program-levels__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px; /* Ensure buttons have a minimum width */
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-vip-program-levels__cta-button--primary {
    background: var(--primary-color);
    color: var(--text-color-dark); /* Dark text on gold button for contrast */
    border: 2px solid var(--primary-color);
}

.page-vip-program-levels__cta-button--primary:hover {
    background: #e6c200; /* Slightly darker gold */
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-vip-program-levels__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-color-light);
    border: 2px solid var(--secondary-color);
}

.page-vip-program-levels__cta-button--secondary:hover {
    background: #6f0000; /* Slightly darker red */
    border-color: #6f0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-vip-program-levels__section {
    padding: 80px 0;
    background-color: #ffffff; /* Default light background */
    color: var(--text-color-dark);
}

.page-vip-program-levels__section:nth-of-type(even) {
    background-color: var(--background-light); /* Alternate background for visual separation */
}

.page-vip-program-levels__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-vip-program-levels__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color); /* Use dark red for section titles */
    position: relative;
    padding-bottom: 15px;
}

.page-vip-program-levels__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-vip-program-levels__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-vip-program-levels__image-container {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-vip-program-levels__image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* VIP Tiers Section */
.page-vip-program-levels__vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-vip-program-levels__vip-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-vip-program-levels__vip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-vip-program-levels__vip-card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-vip-program-levels__vip-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-vip-program-levels__vip-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1; /* Allow list to take available space */
}

.page-vip-program-levels__vip-benefits li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--text-color-dark);
}

.page-vip-program-levels__vip-description {
    font-size: 0.95em;
    color: #666;
    margin-top: auto; /* Push description to the bottom */
}

/* How to Join Section */
.page-vip-program-levels__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-vip-program-levels__step-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-vip-program-levels__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-vip-program-levels__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-vip-program-levels__step-card p {
    font-size: 1em;
    color: #555;
}

.page-vip-program-levels__step-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-vip-program-levels__step-card a:hover {
    text-decoration: underline;
}

/* Exclusive Events Section */
.page-vip-program-levels__exclusive-events-section {
    background-color: var(--background-dark); /* Dark background for events */
    color: var(--text-color-light);
}

.page-vip-program-levels__exclusive-events-section .page-vip-program-levels__section-title {
    color: var(--primary-color); /* Gold title on dark background */
}

.page-vip-program-levels__exclusive-events-section .page-vip-program-levels__text-block {
    color: #f0f0f0;
}

.page-vip-program-levels__exclusive-events-section .page-vip-program-levels__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-vip-program-levels__exclusive-events-section .page-vip-program-levels__text-block a:hover {
    text-decoration: underline;
}

.page-vip-program-levels__event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-vip-program-levels__event-card {
    background-color: #2a2a2a; /* Slightly lighter dark background for cards */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-vip-program-levels__event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-vip-program-levels__event-card img {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover;
    display: block;
}

.page-vip-program-levels__event-card-content {
    padding: 25px;
}

.page-vip-program-levels__event-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.page-vip-program-levels__event-description {
    font-size: 1em;
    color: #ccc;
    padding: 0 20px 20px;
}

/* VIP Support Section */
.page-vip-program-levels__vip-support-section .page-vip-program-levels__section-title {
    color: var(--primary-color);
}

.page-vip-program-levels__support-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-vip-program-levels__support-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    color: var(--text-color-dark);
    text-align: justify;
}

.page-vip-program-levels__support-list li strong {
    color: var(--secondary-color);
}

.page-vip-program-levels__support-list li::before {
    content: '★'; /* Star icon */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    line-height: 1.6;
}

/* FAQ Section */
.page-vip-program-levels__faq-section {
    background-color: var(--background-light);
}

.page-vip-program-levels__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

/* FAQ容器样式 */
.page-vip-program-levels__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-vip-program-levels__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 20px; /* Adjust padding to match question */
    opacity: 0;
    background: #fdfdfd;
    color: var(--text-color-dark);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-vip-program-levels__faq-item.active .page-vip-program-levels__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px !important; /* Adjust padding to match question */
    opacity: 1;
    background: #fdfdfd;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.03);
}

/* 问题样式 */
.page-vip-program-levels__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-vip-program-levels__faq-item.active .page-vip-program-levels__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
}

.page-vip-program-levels__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-vip-program-levels__faq-question:active {
    background: #eeeeee;
}

/* 问题标题样式 */
.page-vip-program-levels__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-dark);
    pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-vip-program-levels__faq-toggle {
    font-size: 28px; /* Larger for better tap target */
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color); /* Gold color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Larger hit area */
    height: 32px;
}

.page-vip-program-levels__faq-item.active .page-vip-program-levels__faq-toggle {
    color: var(--secondary-color); /* Dark red when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-vip-program-levels__main-title {
        font-size: 2.8em;
    }
    .page-vip-program-levels__section-title {
        font-size: 2.2em;
    }
    .page-vip-program-levels__text-block {
        font-size: 1em;
    }
    .page-vip-program-levels__vip-card img {
        
    }
}

@media (max-width: 768px) {
    .page-vip-program-levels__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-vip-program-levels__hero-image img {
        border-radius: 8px;
    }

    .page-vip-program-levels__hero-content {
        padding: 0 15px;
    }

    .page-vip-program-levels__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-vip-program-levels__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-vip-program-levels__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100%; /* Ensure container takes full width */
        padding: 0 15px; /* Add padding to the container */
        box-sizing: border-box;
    }

    .page-vip-program-levels__cta-button {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important; /* Allow text to wrap */
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-vip-program-levels__section {
        padding: 40px 0;
    }

    .page-vip-program-levels__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-vip-program-levels__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-vip-program-levels__text-block {
        font-size: 0.95em;
        line-height: 1.7;
    }

    /* Images in content area */
    .page-vip-program-levels img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-vip-program-levels__image-container {
        margin: 20px auto;
        border-radius: 8px;
    }

    .page-vip-program-levels__vip-grid,
    .page-vip-program-levels__steps-grid,
    .page-vip-program-levels__event-cards {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        margin-top: 30px;
    }

    .page-vip-program-levels__vip-card,
    .page-vip-program-levels__step-card,
    .page-vip-program-levels__event-card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-vip-program-levels__vip-card img,
    .page-vip-program-levels__event-card img {
        
        border-radius: 6px;
    }

    .page-vip-program-levels__vip-card-title,
    .page-vip-program-levels__step-title,
    .page-vip-program-levels__event-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .page-vip-program-levels__vip-benefits li {
        font-size: 0.9em;
        padding-left: 25px;
        background-size: 18px;
    }

    .page-vip-program-levels__support-list li {
        font-size: 1em;
        padding-left: 30px;
    }

    .page-vip-program-levels__support-list li::before {
        font-size: 1.1em;
    }

    /* FAQ Mobile */
    .page-vip-program-levels__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-vip-program-levels__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px); /* Adjust width for toggle */
    }

    .page-vip-program-levels__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

    .page-vip-program-levels__faq-answer {
        padding: 0 15px;
    }

    .page-vip-program-levels__faq-item.active .page-vip-program-levels__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-vip-program-levels__main-title {
        font-size: 1.8em;
    }
    .page-vip-program-levels__section-title {
        font-size: 1.6em;
    }
    .page-vip-program-levels__cta-button {
        font-size: 0.95em !important;
        padding: 10px 15px !important;
    }
    .page-vip-program-levels__vip-card img,
    .page-vip-program-levels__event-card img {
        
    }
    .page-vip-program-levels__faq-question h3 {
        font-size: 0.95em;
    }
    .page-vip-program-levels__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
}