/* style/blog-safe-gambling-guide.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --background-dark: #140C0C;
    --card-background: #2A1212;
    --text-main-color: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --text-on-light: #333333;
}

.page-blog-safe-gambling-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--background-dark);
}

.page-blog-safe-gambling-guide__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Minimal top padding, body handles header offset */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-blog-safe-gambling-guide__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Adjust as needed */
    overflow: hidden;
}

.page-blog-safe-gambling-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-blog-safe-gambling-guide__hero-content {
    width: 100%;
    max-width: 900px;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.page-blog-safe-gambling-guide__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog-safe-gambling-guide__hero-description {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-safe-gambling-guide__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-blog-safe-gambling-guide__btn-primary,
.page-blog-safe-gambling-guide__btn-secondary,
.page-blog-safe-gambling-guide a[class*="button"],
.page-blog-safe-gambling-guide a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-blog-safe-gambling-guide__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-blog-safe-gambling-guide__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog-safe-gambling-guide__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-blog-safe-gambling-guide__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

.page-blog-safe-gambling-guide__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-blog-safe-gambling-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-blog-safe-gambling-guide__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-blog-safe-gambling-guide__subsection-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog-safe-gambling-guide__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-blog-safe-gambling-guide__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-blog-safe-gambling-guide__list-item {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.page-blog-safe-gambling-guide__image-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.page-blog-safe-gambling-guide__image-content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-blog-safe-gambling-guide__text-content {
    flex: 1;
}

.page-blog-safe-gambling-guide__content-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum display size */
    min-height: 200px; /* Minimum display size */
}

.page-blog-safe-gambling-guide__cta-block {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.page-blog-safe-gambling-guide__cta-text {
    font-size: 1.3rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog-safe-gambling-guide__faq-section {
    background-color: var(--background-dark);
}

.page-blog-safe-gambling-guide__faq-list {
    margin-top: 40px;
}

.page-blog-safe-gambling-guide__faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-blog-safe-gambling-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--gold-color);
    list-style: none; /* For <details> summary */
}

.page-blog-safe-gambling-guide__faq-question::-webkit-details-marker {
    display: none;
}

.page-blog-safe-gambling-guide__faq-qtext {
    flex-grow: 1;
}

.page-blog-safe-gambling-guide__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--text-main-color);
}

.page-blog-safe-gambling-guide__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05rem;
    color: var(--text-main-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-blog-safe-gambling-guide__faq-item[open] .page-blog-safe-gambling-guide__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
}

.page-blog-safe-gambling-guide__faq-item[open] .page-blog-safe-gambling-guide__faq-toggle {
    content: '−'; /* Change to minus sign */
}

.page-blog-safe-gambling-guide__final-cta {
    text-align: center;
    margin-top: 40px;
}

/* Ensure all content area images are at least 200x200px */
.page-blog-safe-gambling-guide__content-area img,
.page-blog-safe-gambling-guide__introduction-section img,
.page-blog-safe-gambling-guide__limits-section img,
.page-blog-safe-gambling-guide__warning-signs-section img,
.page-blog-safe-gambling-guide__support-tools-section img,
.page-blog-safe-gambling-guide__healthy-habits-section img,
.page-blog-safe-gambling-guide__conclusion-section img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-blog-safe-gambling-guide__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-blog-safe-gambling-guide__hero-description {
        font-size: 1rem;
    }

    .page-blog-safe-gambling-guide__section-title {
        font-size: 2rem;
    }

    .page-blog-safe-gambling-guide__subsection-title {
        font-size: 1.5rem;
    }

    .page-blog-safe-gambling-guide__image-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-blog-safe-gambling-guide__content-image {
        max-width: 80%;
        margin-bottom: 30px;
    }

    .page-blog-safe-gambling-guide__image-content-wrapper--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-blog-safe-gambling-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO 主图区域 */
    .page-blog-safe-gambling-guide__hero-section {
        padding-top: 10px !important;
    }

    .page-blog-safe-gambling-guide__hero-content {
        padding: 20px 15px !important;
    }

    .page-blog-safe-gambling-guide__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-blog-safe-gambling-guide__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-blog-safe-gambling-guide__hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 通用图片与容器 */
    .page-blog-safe-gambling-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog-safe-gambling-guide__container,
    .page-blog-safe-gambling-guide__section,
    .page-blog-safe-gambling-guide__cta-block,
    .page-blog-safe-gambling-guide__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-blog-safe-gambling-guide__section {
        padding: 40px 0;
    }

    .page-blog-safe-gambling-guide__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-blog-safe-gambling-guide__subsection-title {
        font-size: 1.3rem;
    }

    .page-blog-safe-gambling-guide__text-block,
    .page-blog-safe-gambling-guide__list-item,
    .page-blog-safe-gambling-guide__faq-answer p {
        font-size: 0.95rem;
    }

    .page-blog-safe-gambling-guide__image-content-wrapper {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .page-blog-safe-gambling-guide__content-image {
        max-width: 100%;
        min-width: auto;
        min-height: auto;
        margin-bottom: 0;
    }

    /* 按钮与按钮容器 */
    .page-blog-safe-gambling-guide__btn-primary,
    .page-blog-safe-gambling-guide__btn-secondary,
    .page-blog-safe-gambling-guide a[class*="button"],
    .page-blog-safe-gambling-guide a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px !important;
    }

    .page-blog-safe-gambling-guide__cta-buttons,
    .page-blog-safe-gambling-guide__button-group,
    .page-blog-safe-gambling-guide__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }

    .page-blog-safe-gambling-guide__cta-text {
        font-size: 1.1rem;
    }

    .page-blog-safe-gambling-guide__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-blog-safe-gambling-guide__faq-answer {
        padding: 0 15px 15px;
    }

    /* Other content modules - General adjustments */
    .page-blog-safe-gambling-guide__introduction-section .page-blog-safe-gambling-guide__container,
    .page-blog-safe-gambling-guide__limits-section .page-blog-safe-gambling-guide__container,
    .page-blog-safe-gambling-guide__warning-signs-section .page-blog-safe-gambling-guide__container,
    .page-blog-safe-gambling-guide__support-tools-section .page-blog-safe-gambling-guide__container,
    .page-blog-safe-gambling-guide__healthy-habits-section .page-blog-safe-gambling-guide__container,
    .page-blog-safe-gambling-guide__conclusion-section .page-blog-safe-gambling-guide__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* No product showcase for this page, so no specific rules for it. */
}