/* style/vip-club-benefits.css */

/* Base styles for the VIP Club Benefits page */
.page-vip-club-benefits {
    background-color: #121212; /* Dark background from shared.css */
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-vip-club-benefits__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Default padding-top, if shared doesn't set it on body */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #8B0000, #FFD700); /* Brand colors */
    color: #ffffff;
    overflow: hidden; /* Ensure content doesn't overflow */
}

/* Override if shared.css sets body padding-top */
body.has-header-offset .page-vip-club-benefits__hero-section {
    padding-top: 0 !important;
}

.page-vip-club-benefits__hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.page-vip-club-benefits__hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.page-vip-club-benefits__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff; /* Ensure white text on gradient */
    line-height: 1.2;
}

.page-vip-club-benefits__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-vip-club-benefits__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-vip-club-benefits__hero-image {
    flex: 1;
    min-width: 400px; /* Ensure image has some base width */
    text-align: right;
}

.page-vip-club-benefits__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Remove extra space below image */
}

/* General Container & Section Styles */
.page-vip-club-benefits__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-vip-club-benefits__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #FFD700; /* Gold color for section titles */
    position: relative;
    padding-bottom: 10px;
}

.page-vip-club-benefits__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #8B0000;
    border-radius: 2px;
}

.page-vip-club-benefits__text-block {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Light text for dark background */
}

.page-vip-club-benefits__introduction-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-vip-club-benefits__dark-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* VIP Tiers Section */
.page-vip-club-benefits__tiers-section {
    padding: 80px 0;
    background-color: #121212;
}

.page-vip-club-benefits__tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-vip-club-benefits__tier-card {
    background-color: #222222; /* Darker card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2); /* Gold border for luxury */
}

.page-vip-club-benefits__tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-vip-club-benefits__tier-card img {
    width: 100%;
    height: auto;
    max-height: 200px; /* Constrain image height */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-vip-club-benefits__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700; /* Gold for card titles */
}

.page-vip-club-benefits__card-description {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.7;
}

/* Benefits Overview Section */
.page-vip-club-benefits__benefits-overview-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-vip-club-benefits__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-vip-club-benefits__benefit-card {
    background-color: #222222;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.2); /* Red border */
}

.page-vip-club-benefits__benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-vip-club-benefits__benefit-card img {
    width: 100%;
    height: auto;
    max-height: 250px; /* Constrain image height */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Upgrade Guide Section */
.page-vip-club-benefits__upgrade-guide-section {
    padding: 80px 0;
    background-color: #121212;
}

.page-vip-club-benefits__upgrade-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-vip-club-benefits__step-item {
    background-color: #222222;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-vip-club-benefits__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #8B0000;
    color: #ffffff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.page-vip-club-benefits__step-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-vip-club-benefits__step-description {
    font-size: 15px;
    color: #cccccc;
}

/* Call to Action Section */
.page-vip-club-benefits__cta-section {
    padding: 80px 0;
    background-color: #8B0000; /* Primary brand color */
    color: #ffffff;
    text-align: center;
}

.page-vip-club-benefits__cta-section .page-vip-club-benefits__section-title {
    color: #ffffff; /* White title on red background */
}

.page-vip-club-benefits__cta-section .page-vip-club-benefits__section-title::after {
    background-color: #FFD700; /* Gold line */
}

.page-vip-club-benefits__cta-section .page-vip-club-benefits__text-block {
    color: #f0f0f0;
}

.page-vip-club-benefits__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Button Styles */
.page-vip-club-benefits__btn-primary,
.page-vip-club-benefits__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-vip-club-benefits__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Dark red text */
    border: 2px solid #FFD700;
}

.page-vip-club-benefits__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-vip-club-benefits__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-vip-club-benefits__btn-secondary:hover {
    background-color: #ffffff;
    color: #8B0000;
    border-color: #ffffff;
}

/* Links in content */
.page-vip-club-benefits__text-block a,
.page-vip-club-benefits__card-description a {
    color: #FFD700; /* Gold for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-vip-club-benefits__text-block a:hover,
.page-vip-club-benefits__card-description a:hover {
    color: #e6c200;
}

/* FAQ Section */
.page-vip-club-benefits__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-vip-club-benefits__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ容器样式 */
.page-vip-club-benefits__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #222222; /* Darker background for FAQ items */
}

/* FAQ默认状态 - 答案隐藏 */
.page-vip-club-benefits__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.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #cccccc; /* Light text for answer */
}

/* FAQ展开状态 - \u26a0\ufe0f 使用!important和足够大的max-height确保一定能展开 */
.page-vip-club-benefits__faq-item.active .page-vip-club-benefits__faq-answer {
    max-height: 2000px !important; /* \u26a0\ufe0f Sử dụng!important đảm bảo ưu tiên, giá trị đủ lớn để chứa bất kỳ nội dung nào */
    padding: 20px 15px !important;
    opacity: 1;
    background: #2b2b2b; /* Slightly lighter background for active answer */
    border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-vip-club-benefits__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #333333; /* Darker background for question */
    border: 1px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff; /* White text for question */
}

.page-vip-club-benefits__faq-question:hover {
    background: #444444;
    border-color: #555555;
}

.page-vip-club-benefits__faq-question:active {
    background: #555555;
}

/* 问题标题样式 */
.page-vip-club-benefits__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: #ffffff; /* White text */
}

/* 切换图标 */
.page-vip-club-benefits__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    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: 28px;
    height: 28px;
}

.page-vip-club-benefits__faq-item.active .page-vip-club-benefits__faq-toggle {
    color: #FFD700; /* Gold for active toggle */
    transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* --- Responsive Styles --- */

/* All images base responsive styles */
.page-vip-club-benefits img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
    .page-vip-club-benefits__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-vip-club-benefits__hero-content {
        text-align: center;
        max-width: 100%;
    }

    .page-vip-club-benefits__hero-title {
        font-size: 40px;
    }

    .page-vip-club-benefits__hero-description {
        font-size: 17px;
    }

    .page-vip-club-benefits__hero-image {
        min-width: unset;
        text-align: center;
        margin-top: 30px;
    }

    .page-vip-club-benefits__section-title {
        font-size: 30px;
    }

    .page-vip-club-benefits__tiers-grid,
    .page-vip-club-benefits__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-vip-club-benefits__upgrade-steps {
        gap: 25px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Fixed header offset handling for mobile */
    .page-vip-club-benefits__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure it works on mobile if not set on body */
        padding-bottom: 40px;
    }

    body.has-header-offset .page-vip-club-benefits__hero-section {
        padding-top: 0 !important; /* Override if body has padding-top */
    }

    .page-vip-club-benefits__hero-container {
        padding: 0 15px;
    }

    .page-vip-club-benefits__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-vip-club-benefits__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-vip-club-benefits__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Ensure button group takes full width */
    }

    /* All buttons must adapt to screen width */
    .page-vip-club-benefits__btn-primary,
    .page-vip-club-benefits__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Button containers for mobile */
    .page-vip-club-benefits__hero-buttons,
    .page-vip-club-benefits__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-vip-club-benefits__container {
        padding: 0 15px;
    }

    .page-vip-club-benefits__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-vip-club-benefits__text-block {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .page-vip-club-benefits__introduction-section,
    .page-vip-club-benefits__tiers-section,
    .page-vip-club-benefits__benefits-overview-section,
    .page-vip-club-benefits__upgrade-guide-section,
    .page-vip-club-benefits__faq-section,
    .page-vip-club-benefits__cta-section {
        padding: 50px 0;
    }

    .page-vip-club-benefits__tiers-grid,
    .page-vip-club-benefits__benefits-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-vip-club-benefits__tier-card,
    .page-vip-club-benefits__benefit-card,
    .page-vip-club-benefits__step-item {
        padding: 25px;
    }

    .page-vip-club-benefits__tier-card img,
    .page-vip-club-benefits__benefit-card img {
         /* Adjust image height for mobile cards */
    }

    .page-vip-club-benefits__card-title {
        font-size: 20px;
    }

    .page-vip-club-benefits__upgrade-steps {
        flex-direction: column; /* Stack steps vertically */
        gap: 20px;
    }

    .page-vip-club-benefits__step-item {
        max-width: 100%;
    }

    /* FAQ Mobile Styles */
    .page-vip-club-benefits__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-vip-club-benefits__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-vip-club-benefits__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-vip-club-benefits__faq-answer {
        padding: 0 15px;
    }
    
    .page-vip-club-benefits__faq-item.active .page-vip-club-benefits__faq-answer {
        padding: 15px !important;
    }

    /* Image responsive override for all images */
    .page-vip-club-benefits img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Ensure all containers holding images or content adapt to mobile */
    .page-vip-club-benefits__hero-image,
    .page-vip-club-benefits__tier-card,
    .page-vip-club-benefits__benefit-card,
    .page-vip-club-benefits__upgrade-steps,
    .page-vip-club-benefits__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}