/* style/responsible-gaming.css */
/* 
 * Màu sắc:
 * Chính: #26A9E0
 * Phụ: #FFFFFF
 * Nền: #FFFFFF (mặc định body)
 * Văn bản: #333333 (trên nền sáng)
 * Đăng nhập: #EA7C07
 */

/* Tổng quan và reset cơ bản cho trang Cờ bạc có trách nhiệm */
.page-responsible-gaming {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Văn bản tối trên nền sáng */
    background-color: #FFFFFF; /* Nền trang mặc định */
}

/* Cố định khoảng cách đầu trang */
.page-responsible-gaming__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Các phần chung của trang */
.page-responsible-gaming__section {
    padding: 60px 0;
    text-align: center;
}

.page-responsible-gaming__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-responsible-gaming__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Màu chủ đạo */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-responsible-gaming__section-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-responsible-gaming__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Giữ padding-top ở trên */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Nền gradient nhẹ */
}

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

.page-responsible-gaming__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-responsible-gaming__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-responsible-gaming__hero-content h1 {
    font-size: 3em;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-responsible-gaming__hero-content p {
    font-size: 1.2em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-responsible-gaming__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Màu chủ đạo */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
    border: none;
}

.page-responsible-gaming__cta-button:hover {
    background: #1e87c0; /* Tối hơn một chút */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(38, 169, 224, 0.6);
}

/* Intro Section */
.page-responsible-gaming__intro-section {
    background-color: #f9f9f9;
}

/* Grid Layout for Signs, Tools, Myths/Facts */
.page-responsible-gaming__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Styles */
.page-responsible-gaming__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Đảm bảo chiều cao đồng nhất */
    display: flex;
    flex-direction: column;
}

.page-responsible-gaming__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-responsible-gaming__card p {
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

/* Dark Section */
.page-responsible-gaming__dark-section {
    background-color: #26A9E0; /* Màu chủ đạo */
    color: #ffffff;
}

.page-responsible-gaming__dark-section .page-responsible-gaming__section-title {
    color: #ffffff;
}

.page-responsible-gaming__dark-section .page-responsible-gaming__section-description {
    color: #e0f2f7;
}

.page-responsible-gaming__dark-section .page-responsible-gaming__card {
    background: rgba(255, 255, 255, 0.15); /* Nền thẻ hơi trong suốt */
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.page-responsible-gaming__dark-section .page-responsible-gaming__card-title {
    color: #ffffff;
}

.page-responsible-gaming__dark-section .page-responsible-gaming__card p {
    color: #e0f2f7;
}

/* Tools Section */
.page-responsible-gaming__tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-responsible-gaming__tool-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-responsible-gaming__tool-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Đảm bảo kích thước tối thiểu */
    min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-responsible-gaming__tool-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

.page-responsible-gaming__tool-item p {
    font-size: 0.95em;
    color: #e0f2f7;
    flex-grow: 1;
}

/* Tips Section */
.page-responsible-gaming__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-responsible-gaming__tips-list li {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
    color: #333333;
}

.page-responsible-gaming__tips-list li:hover {
    transform: translateX(5px);
}

.page-responsible-gaming__tips-list li strong {
    color: #26A9E0;
}

/* Myths vs. Facts Section */
.page-responsible-gaming__myths-facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-responsible-gaming__card--myth {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-responsible-gaming__card--myth h3 {
    color: #ffdd57; /* Màu nhấn cho lầm tưởng */
}

.page-responsible-gaming__card--myth p {
    color: #e0f2f7;
}

.page-responsible-gaming__card--fact {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-responsible-gaming__card--fact h3 {
    color: #8aff8a; /* Màu nhấn cho sự thật */
}

.page-responsible-gaming__card--fact p {
    color: #e0f2f7;
}

/* Support Section */
.page-responsible-gaming__support-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-responsible-gaming__support-list li {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
    color: #333333;
}

.page-responsible-gaming__support-list li:hover {
    transform: translateX(5px);
}

.page-responsible-gaming__support-list li strong {
    color: #26A9E0;
}

.page-responsible-gaming__support-list li a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-responsible-gaming__support-list li a:hover {
    text-decoration: underline;
}

.page-responsible-gaming__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%; /* Đảm bảo nút không vượt quá chiều rộng */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gaming__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
}

.page-responsible-gaming__btn-primary:hover {
    background: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 169, 224, 0.6);
}

.page-responsible-gaming__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-responsible-gaming__btn-secondary:hover {
    background: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Minor Protection Section */
.page-responsible-gaming__minor-protection-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
    background-color: #f9f9f9;
}

.page-responsible-gaming__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* FAQ容器样式 */
.page-responsible-gaming__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-responsible-gaming__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: #f9f9f9;
  color: #555555;
}

/* FAQ展开状态 - 🚨 Sử dụng !important và đủ lớn max-height đảm bảo mở rộng */
.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề FAQ */
.page-responsible-gaming__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-responsible-gaming__faq-item.active .page-responsible-gaming__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
    background-color: #f5f5f5;
}

.page-responsible-gaming__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-responsible-gaming__faq-question:active {
  background: #eeeeee;
}

/* Tiêu đề vấn đề */
.page-responsible-gaming__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

/* Biểu tượng chuyển đổi */
.page-responsible-gaming__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-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
  color: #26A9E0; /* Màu chủ đạo khi mở */
  transform: rotate(45deg);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .page-responsible-gaming__hero-content h1 {
        font-size: 2.5em;
    }
    .page-responsible-gaming__section-title {
        font-size: 2em;
    }
    .page-responsible-gaming__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-responsible-gaming__card {
        padding: 25px;
    }
    .page-responsible-gaming__card-title {
        font-size: 1.3em;
    }
    .page-responsible-gaming__tool-item {
        padding: 20px;
    }
    .page-responsible-gaming__tips-list li,
    .page-responsible-gaming__support-list li {
        font-size: 1em;
        padding: 18px 20px;
    }
}


@media (max-width: 768px) {
    /* Mobile forced image adaptation */
    .page-responsible-gaming img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-responsible-gaming__section,
    .page-responsible-gaming__container,
    .page-responsible-gaming__card,
    .page-responsible-gaming__tool-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 🚨 Quan trọng: padding-top của khu vực HERO chính phải được đặt lại trong media query di động */
    .page-responsible-gaming__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button adaptation */
    .page-responsible-gaming__cta-button,
    .page-responsible-gaming__btn-primary,
    .page-responsible-gaming__btn-secondary,
    .page-responsible-gaming a[class*="button"],
    .page-responsible-gaming 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-left: 15px;
        padding-right: 15px;
    }
    
    .page-responsible-gaming__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px;
    }
    
    .page-responsible-gaming__hero-content h1 {
        font-size: 2em;
    }
    .page-responsible-gaming__hero-content p {
        font-size: 1em;
    }
    .page-responsible-gaming__section-title {
        font-size: 1.8em;
    }
    .page-responsible-gaming__section-description {
        font-size: 0.95em;
    }
    .page-responsible-gaming__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-responsible-gaming__card {
        padding: 20px;
    }
    .page-responsible-gaming__card-title {
        font-size: 1.2em;
    }
    .page-responsible-gaming__tool-item {
        padding: 15px;
    }
    .page-responsible-gaming__tool-item h3 {
        font-size: 1.1em;
    }
    .page-responsible-gaming__tips-list {
        margin-top: 20px;
    }
    .page-responsible-gaming__tips-list li,
    .page-responsible-gaming__support-list li {
        font-size: 0.95em;
        padding: 15px;
    }
    .page-responsible-gaming__minor-protection-section img {
        margin-top: 20px;
    }

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

/* Đảm bảo hình ảnh không sử dụng filter */
.page-responsible-gaming img {
    filter: none !important;
}

/* Đảm bảo kích thước hình ảnh tối thiểu trong nội dung */
.page-responsible-gaming__section img:not(.page-responsible-gaming__hero-image img) {
    min-width: 200px;
    min-height: 200px;
}