/* style/promotions-vip-rewards.css */

/* General page styling */
.page-promotions-vip-rewards {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared might define */
    font-size: 16px;
}

.page-promotions-vip-rewards__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions-vip-rewards__section-title {
    font-size: 32px;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions-vip-rewards__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast classes */
.page-promotions-vip-rewards__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-promotions-vip-rewards__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF; /* White text for contrast */
}

/* Image responsiveness */
.page-promotions-vip-rewards img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent styling */
    object-fit: cover;
}

/* CTA Button styling */
.page-promotions-vip-rewards__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-promotions-vip-rewards__cta-button:hover {
    background-color: #a30707; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions-vip-rewards__cta-button--dark {
    background-color: #C30808; /* Register/Login color for dark sections */
    color: #FFFF00; /* Register/Login font color */
}

.page-promotions-vip-rewards__cta-button--dark:hover {
    background-color: #a30707;
}

/* Hero Section */
.page-promotions-vip-rewards__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Ensure a background color for contrast */
    color: #FFFFFF;
    overflow: hidden; /* Prevent image overflow */
}

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

.page-promotions-vip-rewards__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-promotions-vip-rewards__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-promotions-vip-rewards__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-promotions-vip-rewards__hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlighted title for hero */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-promotions-vip-rewards__hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #FFFFFF;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-promotions-vip-rewards__intro-section {
    padding: 80px 0;
}

.page-promotions-vip-rewards__intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-promotions-vip-rewards__intro-text {
    flex: 1;
    min-width: 300px;
}

.page-promotions-vip-rewards__intro-text p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #444444;
}

.page-promotions-vip-rewards__intro-image {
    flex: 1;
    min-width: 300px;
}

/* VIP Tiers Section */
.page-promotions-vip-rewards__tiers-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-promotions-vip-rewards__tier-card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-promotions-vip-rewards__tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions-vip-rewards__tier-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-vip-rewards__tier-requirement {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
}

.page-promotions-vip-rewards__tier-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
    text-align: left;
    width: 100%;
    padding-left: 20px;
}

.page-promotions-vip-rewards__tier-benefits li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333333;
    position: relative;
    padding-left: 25px;
}

.page-promotions-vip-rewards__tier-benefits li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-promotions-vip-rewards__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions-vip-rewards__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions-vip-rewards__image-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-promotions-vip-rewards__image-row img {
    max-width: 48%;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Exclusive Rewards Section */
.page-promotions-vip-rewards__exclusive-rewards-section {
    padding: 80px 0;
}

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

.page-promotions-vip-rewards__reward-item {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-vip-rewards__reward-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-promotions-vip-rewards__reward-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-promotions-vip-rewards__reward-item h3 {
    font-size: 20px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions-vip-rewards__reward-item p {
    font-size: 16px;
    color: #555555;
}

/* Upgrade Section */
.page-promotions-vip-rewards__upgrade-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-promotions-vip-rewards__step-item {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    text-align: center;
    flex: 1;
    min-width: 280px;
}

.page-promotions-vip-rewards__step-icon {
    width: 60px;
    height: 60px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.page-promotions-vip-rewards__step-item h3 {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-vip-rewards__step-item p {
    font-size: 16px;
    color: #555555;
}

/* Terms and Conditions Section */
.page-promotions-vip-rewards__terms-section {
    padding: 80px 0;
}

.page-promotions-vip-rewards__terms-list {
    list-style: disc;
    padding-left: 25px;
    max-width: 900px;
    margin: 40px auto 0 auto;
    font-size: 17px;
    color: #444444;
}

.page-promotions-vip-rewards__terms-list li {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions-vip-rewards__faq-section {
    padding: 80px 0;
}

.page-promotions-vip-rewards__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

/* FAQ container style */
.page-promotions-vip-rewards__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-promotions-vip-rewards__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;
  background-color: #f9f9f9; /* Light background for answer */
  color: #333333;
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-promotions-vip-rewards__faq-item.active .page-promotions-vip-rewards__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-promotions-vip-rewards__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #FFFFFF; /* White background for question */
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333; /* Dark text for question */
}

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

.page-promotions-vip-rewards__faq-question:active {
  background-color: #eeeeee;
}

/* Question title style */
.page-promotions-vip-rewards__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #017439; /* Primary color for FAQ question titles */
}

/* Toggle icon */
.page-promotions-vip-rewards__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions-vip-rewards__faq-item.active .page-promotions-vip-rewards__faq-toggle {
  color: #C30808; /* Red for active toggle */
  transform: rotate(45deg); /* Plus to X for active */
}

/* Final CTA Section */
.page-promotions-vip-rewards__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions-vip-rewards__cta-final-content {
    background-color: #F8F8F8; /* Slightly off-white for distinction */
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-vip-rewards__hero-content h1 {
        font-size: 36px;
    }
    .page-promotions-vip-rewards__hero-content p {
        font-size: 18px;
    }
    .page-promotions-vip-rewards__section-title {
        font-size: 28px;
    }
    .page-promotions-vip-rewards__section-description {
        font-size: 16px;
    }
    .page-promotions-vip-rewards__image-row img {
        max-width: 100%; /* Stack images on smaller screens */
    }
}

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

    .page-promotions-vip-rewards__hero-image img {
        border-radius: 4px;
    }
    
    .page-promotions-vip-rewards__hero-content h1 {
        font-size: 28px;
    }
    .page-promotions-vip-rewards__hero-content p {
        font-size: 16px;
    }

    .page-promotions-vip-rewards__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions-vip-rewards__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Ensure containers for buttons are also responsive */
    .page-promotions-vip-rewards__cta-final-content,
    .page-promotions-vip-rewards__upgrade-section .page-promotions-vip-rewards__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions-vip-rewards__section-title {
        font-size: 24px;
    }
    .page-promotions-vip-rewards__section-description {
        font-size: 15px;
    }

    .page-promotions-vip-rewards__intro-content {
        flex-direction: column;
    }

    .page-promotions-vip-rewards__tier-grid,
    .page-promotions-vip-rewards__rewards-grid,
    .page-promotions-vip-rewards__upgrade-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-vip-rewards__reward-item img {
        
    }

    .page-promotions-vip-rewards__image-row {
        flex-direction: column;
        gap: 20px;
    }
    .page-promotions-vip-rewards__image-row img {
        max-width: 100%;
    }

    .page-promotions-vip-rewards__terms-list {
        padding-left: 20px;
    }
    .page-promotions-vip-rewards__terms-list li {
        font-size: 15px;
    }

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

    /* Global image responsiveness for mobile */
    .page-promotions-vip-rewards img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-promotions-vip-rewards__container,
    .page-promotions-vip-rewards__intro-section,
    .page-promotions-vip-rewards__tiers-section,
    .page-promotions-vip-rewards__exclusive-rewards-section,
    .page-promotions-vip-rewards__upgrade-section,
    .page-promotions-vip-rewards__terms-section,
    .page-promotions-vip-rewards__faq-section,
    .page-promotions-vip-rewards__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}