/* style/resources-xx88-link-promotions-guide.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --button-register-login: #C30808;
    --font-register-login: #FFFF00;
}

.page-resources-xx88-link-promotions-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: var(--secondary-color);
}

.page-resources-xx88-link-promotions-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources-xx88-link-promotions-guide__container--center {
    text-align: center;
}

/* Hero Banner Section */
.page-resources-xx88-link-promotions-guide__hero-banner {
    background: linear-gradient(135deg, var(--primary-color), #00A859);
    padding: var(--header-offset, 120px) 0 80px 0; /* Apply header offset */
    color: var(--text-color-light);
    text-align: center;
}

.page-resources-xx88-link-promotions-guide__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__description {
    font-size: 1.15em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources-xx88-link-promotions-guide__btn-primary,
.page-resources-xx88-link-promotions-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-xx88-link-promotions-guide__btn-primary {
    background: var(--button-register-login); /* Using custom color for main CTA */
    color: var(--font-register-login); /* Using custom font color */
    border: 2px solid var(--button-register-login);
}

.page-resources-xx88-link-promotions-guide__btn-primary:hover {
    background: #FF4500;
    border-color: #FF4500;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-xx88-link-promotions-guide__btn-secondary {
    background: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__btn-secondary:hover {
    background: var(--text-color-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-resources-xx88-link-promotions-guide__section {
    padding: 60px 0;
}

.page-resources-xx88-link-promotions-guide__section--intro {
    padding-top: 40px;
}

.page-resources-xx88-link-promotions-guide__section-title {
    font-size: 2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources-xx88-link-promotions-guide__section-title--white {
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__section-title--mt {
    margin-top: 60px;
}

.page-resources-xx88-link-promotions-guide__sub-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-color-dark);
}

.page-resources-xx88-link-promotions-guide__sub-description--white {
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.page-resources-xx88-link-promotions-guide__content-block p {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

.page-resources-xx88-link-promotions-guide__content-block--white p,
.page-resources-xx88-link-promotions-guide__content-block--white a {
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

/* Promotion Grid */
.page-resources-xx88-link-promotions-guide__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-xx88-link-promotions-guide__promotion-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-xx88-link-promotions-guide__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-resources-xx88-link-promotions-guide__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-xx88-link-promotions-guide__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-xx88-link-promotions-guide__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources-xx88-link-promotions-guide__card-title a:hover {
    text-decoration: underline;
}

.page-resources-xx88-link-promotions-guide__promotion-card p {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources-xx88-link-promotions-guide__btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.page-resources-xx88-link-promotions-guide__btn-text:hover {
    text-decoration: underline;
}

.page-resources-xx88-link-promotions-guide__arrow {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.page-resources-xx88-link-promotions-guide__btn-text:hover .page-resources-xx88-link-promotions-guide__arrow {
    transform: translateX(3px);
}

/* How-to-claim section */
.page-resources-xx88-link-promotions-guide__section--how-to-claim {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-xx88-link-promotions-guide__step-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-xx88-link-promotions-guide__step-icon {
    width: 60px;
    height: 60px;
    background: var(--text-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-resources-xx88-link-promotions-guide__step-title {
    font-size: 1.5em;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.page-resources-xx88-link-promotions-guide__step-item p {
    font-size: 1em;
    color: var(--text-color-light);
    margin-bottom: 20px;
    text-align: center;
}

.page-resources-xx88-link-promotions-guide__step-item a {
    color: var(--font-register-login); /* Use specific color for links in dark section */
    text-decoration: underline;
}

.page-resources-xx88-link-promotions-guide__step-item a:hover {
    text-decoration: none;
}

.page-resources-xx88-link-promotions-guide__btn-link-white {
    color: var(--font-register-login);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.page-resources-xx88-link-promotions-guide__btn-link-white:hover {
    text-decoration: underline;
}

/* Tips List */
.page-resources-xx88-link-promotions-guide__tip-list {
    list-style: disc inside;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

.page-resources-xx88-link-promotions-guide__tip-list li {
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--text-color-dark);
}

/* Safety Section */
.page-resources-xx88-link-promotions-guide__section--safety {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__content-block--white p {
    color: var(--text-color-light);
}

/* FAQ Section */
.page-resources-xx88-link-promotions-guide__section--faq {
    background: var(--secondary-color);
    padding-bottom: 80px;
}

.page-resources-xx88-link-promotions-guide__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-xx88-link-promotions-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-xx88-link-promotions-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources-xx88-link-promotions-guide__faq-item.active .page-resources-xx88-link-promotions-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources-xx88-link-promotions-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

.page-resources-xx88-link-promotions-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-xx88-link-promotions-guide__faq-question:active {
  background: #eeeeee;
}

.page-resources-xx88-link-promotions-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-resources-xx88-link-promotions-guide__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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-xx88-link-promotions-guide__faq-item.active .page-resources-xx88-link-promotions-guide__faq-toggle {
  color: #333;
}

/* CTA Section */
.page-resources-xx88-link-promotions-guide__section--cta {
    background: linear-gradient(135deg, #00A859, var(--primary-color));
    padding: 80px 0;
    color: var(--text-color-light);
    text-align: center;
}

.page-resources-xx88-link-promotions-guide__section--cta .page-resources-xx88-link-promotions-guide__section-title {
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__section--cta .page-resources-xx88-link-promotions-guide__sub-description {
    color: var(--text-color-light);
    margin-bottom: 50px;
}

.page-resources-xx88-link-promotions-guide__btn-primary--large {
    padding: 18px 45px;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-xx88-link-promotions-guide__main-title {
        font-size: 2.2em;
    }

    .page-resources-xx88-link-promotions-guide__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources-xx88-link-promotions-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-xx88-link-promotions-guide__hero-banner {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 50px;
    }

    .page-resources-xx88-link-promotions-guide__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-resources-xx88-link-promotions-guide__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources-xx88-link-promotions-guide__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-xx88-link-promotions-guide__btn-primary,
    .page-resources-xx88-link-promotions-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources-xx88-link-promotions-guide__section {
        padding: 40px 0;
    }

    .page-resources-xx88-link-promotions-guide__section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .page-resources-xx88-link-promotions-guide__sub-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources-xx88-link-promotions-guide__content-block {
        gap: 20px;
    }

    .page-resources-xx88-link-promotions-guide__content-image {
        border-radius: 8px;
    }

    .page-resources-xx88-link-promotions-guide__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-xx88-link-promotions-guide__promotion-card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-resources-xx88-link-promotions-guide__card-image {
        height: 180px;
        border-radius: 6px;
    }

    .page-resources-xx88-link-promotions-guide__card-title {
        font-size: 1.2em;
    }

    .page-resources-xx88-link-promotions-guide__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-xx88-link-promotions-guide__step-item {
        padding: 25px;
        border-radius: 8px;
    }

    .page-resources-xx88-link-promotions-guide__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-resources-xx88-link-promotions-guide__step-title {
        font-size: 1.3em;
    }

    .page-resources-xx88-link-promotions-guide__tip-list {
        padding-left: 15px;
    }

    .page-resources-xx88-link-promotions-guide__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-xx88-link-promotions-guide__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-xx88-link-promotions-guide__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-xx88-link-promotions-guide__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-xx88-link-promotions-guide__faq-item.active .page-resources-xx88-link-promotions-guide__faq-answer {
        padding: 15px !important;
    }

    .page-resources-xx88-link-promotions-guide__section--cta {
        padding: 60px 0;
    }

    .page-resources-xx88-link-promotions-guide__btn-primary--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Ensure images in content area do not cause overflow */
    .page-resources-xx88-link-promotions-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-resources-xx88-link-promotions-guide__section,
    .page-resources-xx88-link-promotions-guide__card,
    .page-resources-xx88-link-promotions-guide__container,
    .page-resources-xx88-link-promotions-guide__cta-group,
    .page-resources-xx88-link-promotions-guide__promotion-grid,
    .page-resources-xx88-link-promotions-guide__steps-grid,
    .page-resources-xx88-link-promotions-guide__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color Contrast Fixes (if needed) */
.page-resources-xx88-link-promotions-guide__dark-bg {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-resources-xx88-link-promotions-guide__light-bg {
    background: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-resources-xx88-link-promotions-guide__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-resources-xx88-link-promotions-guide__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}