/* style/resources-safe-responsible-betting-guide.css */

/* General page styling */
.page-resources-safe-responsible-betting-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-resources-safe-responsible-betting-guide__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); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand colors */
    color: #ffffff; /* White text for dark/brand background */
}

.page-resources-safe-responsible-betting-guide__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources-safe-responsible-betting-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 1000px; /* Limit hero image width */
}

.page-resources-safe-responsible-betting-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources-safe-responsible-betting-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-safe-responsible-betting-guide__hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-safe-responsible-betting-guide__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for better contrast */
}

/* CTA Buttons */
.page-resources-safe-responsible-betting-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-resources-safe-responsible-betting-guide__btn-primary {
    background: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-resources-safe-responsible-betting-guide__btn-primary:hover {
    background: #d86e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-safe-responsible-betting-guide__btn-secondary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-resources-safe-responsible-betting-guide__btn-secondary:hover {
    background: #1e87bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.page-resources-safe-responsible-betting-guide__content-section {
    padding: 60px 20px;
}

.page-resources-safe-responsible-betting-guide__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources-safe-responsible-betting-guide__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-resources-safe-responsible-betting-guide__container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.page-resources-safe-responsible-betting-guide__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section for contrast */
}

.page-resources-safe-responsible-betting-guide__sub-title {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources-safe-responsible-betting-guide p {
    margin-bottom: 15px;
    color: inherit;
}

.page-resources-safe-responsible-betting-guide a {
    color: #26A9E0; /* Primary color for links on light background */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-resources-safe-responsible-betting-guide__dark-bg a {
    color: #FFFFFF; /* White for links on dark background */
}

.page-resources-safe-responsible-betting-guide a:hover {
    color: #1e87bb;
}

.page-resources-safe-responsible-betting-guide__dark-bg a:hover {
    color: #f0f0f0;
}

/* Image styling */
.page-resources-safe-responsible-betting-guide__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-resources-safe-responsible-betting-guide__image-wrapper--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    max-width: 40%;
}

.page-resources-safe-responsible-betting-guide__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* List styling */
.page-resources-safe-responsible-betting-guide__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-resources-safe-responsible-betting-guide__list--left {
    float: left;
    margin-right: 30px;
    max-width: 55%;
}

.page-resources-safe-responsible-betting-guide__list-item {
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent white for dark background */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Dark text for light background */
}

.page-resources-safe-responsible-betting-guide__dark-bg .page-resources-safe-responsible-betting-guide__list-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-resources-safe-responsible-betting-guide__list-item h4 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
}

.page-resources-safe-responsible-betting-guide__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    clear: both; /* Clear floats */
}

/* FAQ Section */
.page-resources-safe-responsible-betting-guide__faq-section {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Light grey background for FAQ */
    color: #333333;
}

.page-resources-safe-responsible-betting-guide__faq-list {
    margin-top: 30px;
}

/* FAQ容器样式 */
.page-resources-safe-responsible-betting-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-safe-responsible-betting-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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources-safe-responsible-betting-guide__faq-item.active .page-resources-safe-responsible-betting-guide__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff; /* White background for answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-resources-safe-responsible-betting-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;
  color: #333333; /* Dark text for question */
}

.page-resources-safe-responsible-betting-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-safe-responsible-betting-guide__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-resources-safe-responsible-betting-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-resources-safe-responsible-betting-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-safe-responsible-betting-guide__faq-item.active .page-resources-safe-responsible-betting-guide__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Rotate for 'x' effect, or simply change text content */
}

/* Clearfix for floated elements */
.page-resources-safe-responsible-betting-guide__container::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-safe-responsible-betting-guide__hero-content h1 {
        font-size: 2.5em;
    }
    .page-resources-safe-responsible-betting-guide__intro-text {
        font-size: 1.1em;
    }
    .page-resources-safe-responsible-betting-guide__section-title {
        font-size: 1.8em;
    }
    .page-resources-safe-responsible-betting-guide__sub-title {
        font-size: 1.3em;
    }
    .page-resources-safe-responsible-betting-guide__image-wrapper--right,
    .page-resources-safe-responsible-betting-guide__list--left {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .page-resources-safe-responsible-betting-guide__image-wrapper--right {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile Hero Section */
    .page-resources-safe-responsible-betting-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-safe-responsible-betting-guide__hero-content h1 {
        font-size: 2em;
    }
    .page-resources-safe-responsible-betting-guide__intro-text {
        font-size: 1em;
    }
    .page-resources-safe-responsible-betting-guide__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;
    }

    /* Mobile Content Sections */
    .page-resources-safe-responsible-betting-guide__content-section {
        padding: 40px 15px;
    }
    .page-resources-safe-responsible-betting-guide__section-title {
        font-size: 1.5em;
    }
    .page-resources-safe-responsible-betting-guide__sub-title {
        font-size: 1.2em;
    }
    .page-resources-safe-responsible-betting-guide p,
    .page-resources-safe-responsible-betting-guide li {
        font-size: 15px;
    }

    /* Mobile Image Adapation */
    .page-resources-safe-responsible-betting-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-safe-responsible-betting-guide__section,
    .page-resources-safe-responsible-betting-guide__card,
    .page-resources-safe-responsible-betting-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Container padding handled by section */
        padding-right: 0;
    }
    .page-resources-safe-responsible-betting-guide__image-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

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

/* Ensure content area images are not smaller than 200px */
.page-resources-safe-responsible-betting-guide__content-section img,
.page-resources-safe-responsible-betting-guide__image-wrapper img {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fix if needed (as per prompt) */
.page-resources-safe-responsible-betting-guide__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources-safe-responsible-betting-guide__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}