.page-blog-safe-gambling-practices {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Main text color on dark backgrounds */
    background: #140C0C; /* Overall page background */
}

/* General container for content sections */
.page-blog-safe-gambling-practices__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Sections */
.page-blog-safe-gambling-practices__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-blog-safe-gambling-practices__light-bg {
    background: #FFF1E8; /* Light background for specific sections */
    color: #333333; /* Dark text on light background */
}

.page-blog-safe-gambling-practices__dark-bg {
    background: #2A1212; /* Card BG color for dark sections */
    color: #FFF1E8; /* Light text on dark background */
}

.page-blog-safe-gambling-practices__hero-section {
    padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

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

.page-blog-safe-gambling-practices__hero-content {
    position: relative; /* Ensure content is above image but not overlapping */
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    color: #FFF1E8;
    background: rgba(42, 18, 18, 0.8); /* Semi-transparent background for readability */
    margin-top: -100px; /* Pull up to overlap slightly for visual flow */
    border-radius: 10px;
}

.page-blog-safe-gambling-practices__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    color: #F3C54D; /* Gold color for main title */
    line-height: 1.2;
}

.page-blog-safe-gambling-practices__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-blog-safe-gambling-practices__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #C61F1F; /* Primary brand color */
}

.page-blog-safe-gambling-practices__section-title--light {
    color: #F3C54D; /* Gold color for titles on dark backgrounds */
}

.page-blog-safe-gambling-practices__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #C61F1F; /* Primary brand color */
}

.page-blog-safe-gambling-practices__sub-title--light {
    color: #F3C54D; /* Gold color for sub-titles on dark backgrounds */
}

.page-blog-safe-gambling-practices__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-blog-safe-gambling-practices__text-block--light {
    color: #FFF1E8; /* Light text on dark backgrounds */
}

.page-blog-safe-gambling-practices__highlight {
    font-weight: bold;
    color: #E53030; /* Auxiliary brand color */
}

.page-blog-safe-gambling-practices__light-bg .page-blog-safe-gambling-practices__highlight {
    color: #C61F1F; /* Primary brand color on light backgrounds */
}

/* CTA Buttons */
.page-blog-safe-gambling-practices__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog-safe-gambling-practices__cta-button--primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #FFF1E8;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog-safe-gambling-practices__cta-button--primary:hover {
    background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-blog-safe-gambling-practices__cta-button--secondary {
    background: #E53030; /* Auxiliary brand color */
    color: #FFF1E8;
    border: 2px solid #E53030;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog-safe-gambling-practices__cta-button--secondary:hover {
    background: #C61F1F; /* Darker primary brand color */
    border-color: #C61F1F;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Layout for sections with image and text content */
.page-blog-safe-gambling-practices__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-blog-safe-gambling-practices__content-wrapper--center {
    flex-direction: column;
    text-align: center;
}

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

.page-blog-safe-gambling-practices__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-blog-safe-gambling-practices__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Specific section styles */
.page-blog-safe-gambling-practices__getting-started .page-blog-safe-gambling-practices__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog-safe-gambling-practices__step-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

.page-blog-safe-gambling-practices__step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #C61F1F;
}

.page-blog-safe-gambling-practices__step-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-blog-safe-gambling-practices__games-tips .page-blog-safe-gambling-practices__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog-safe-gambling-practices__game-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

.page-blog-safe-gambling-practices__game-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-blog-safe-gambling-practices__game-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #C61F1F;
}

.page-blog-safe-gambling-practices__app-download .page-blog-safe-gambling-practices__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-blog-safe-gambling-practices__app-download .page-blog-safe-gambling-practices__image-wrapper--app {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
}

/* FAQ Section */
details.page-blog-safe-gambling-practices__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border color from custom palette */
  overflow: hidden;
  background: #2A1212; /* Card BG color */
  color: #FFF1E8; /* Text Main color */
}
details.page-blog-safe-gambling-practices__faq-item summary.page-blog-safe-gambling-practices__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background: #C61F1F; /* Primary brand color for question background */
  color: #FFF1E8; /* Text Main color */
}
details.page-blog-safe-gambling-practices__faq-item summary.page-blog-safe-gambling-practices__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog-safe-gambling-practices__faq-item summary.page-blog-safe-gambling-practices__faq-question:hover {
  background: #E53030; /* Auxiliary brand color on hover */
}
.page-blog-safe-gambling-practices__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-blog-safe-gambling-practices__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF1E8; /* Text Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog-safe-gambling-practices__faq-item .page-blog-safe-gambling-practices__faq-answer {
  padding: 0 20px 20px;
  background: #2A1212; /* Card BG color */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8; /* Text Main color */
}
.page-blog-safe-gambling-practices__faq-answer p {
    margin-top: 15px;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-blog-safe-gambling-practices__container {
        padding: 20px 30px;
    }
    .page-blog-safe-gambling-practices__hero-content {
        padding: 30px 20px;
    }
    .page-blog-safe-gambling-practices__section-title {
        font-size: 2rem;
    }
    .page-blog-safe-gambling-practices__sub-title {
        font-size: 1.6rem;
    }
    .page-blog-safe-gambling-practices__text-block {
        font-size: 0.95rem;
    }
    .page-blog-safe-gambling-practices__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* HERO Chủ ảnh khu vực */
    .page-blog-safe-gambling-practices__hero-section {
        padding-top: 10px; /* Dựa vào padding-top của body từ shared.css */
        margin-bottom: 0;
    }
    .page-blog-safe-gambling-practices__hero-image-wrapper {
        max-height: 400px; /* Điều chỉnh cho di động */
    }
    .page-blog-safe-gambling-practices__hero-image {
        object-fit: contain !important; /* Đảm bảo hình ảnh không bị cắt */
        height: auto !important; /* Cho phép chiều cao tự động điều chỉnh */
        aspect-ratio: unset !important; /* Xóa tỷ lệ khung hình cố định */
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-blog-safe-gambling-practices__hero-content {
        padding: 25px 15px;
        margin-top: -50px; /* Ít chồng lấp hơn trên di động */
    }
    .page-blog-safe-gambling-practices__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Điều chỉnh clamp cho di động */
    }
    .page-blog-safe-gambling-practices__hero-description {
        font-size: 1rem;
    }

    /* Hình ảnh và vùng chứa chung */
    .page-blog-safe-gambling-practices img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-blog-safe-gambling-practices__section,
    .page-blog-safe-gambling-practices__card,
    .page-blog-safe-gambling-practices__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Ngăn chặn cuộn ngang */
    }

    /* Tiêu đề chính trang trí + Khu vực SEO bài viết dài */
    .page-blog-safe-gambling-practices__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-blog-safe-gambling-practices__sub-title {
        font-size: 1.4rem;
    }
    .page-blog-safe-gambling-practices__text-block {
        font-size: 0.9rem;
    }
}