/* style/responsible-gaming.css */
/* 
  Màu sắc chính: #1A202C (rất tối)
  Màu sắc phụ: #FFD700 (vàng gold)
  Màu nền body: #000000 (tối) -> chữ mặc định nên là #ffffff
*/

.page-responsible-gaming {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Mặc định chữ trắng do nền body tối */
    background-color: #000000; /* Nền body tối */
    padding-top: var(--header-offset, 120px); /* Đảm bảo nội dung không bị che bởi header */
}

/* Base container for content */
.page-responsible-gaming__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-responsible-gaming__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Màu vàng gold cho tiêu đề chính */
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.page-responsible-gaming__section-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark background sections */
.page-responsible-gaming__dark-section {
    background-color: #1A202C; /* Màu chủ đạo tối */
    color: #ffffff;
    padding: 80px 0;
}

/* Light background sections */
.page-responsible-gaming__light-section {
    background-color: #0d0d00; /* Màu nền hơi tối hơn body để tạo sự khác biệt, nhưng vẫn là nền tối */
    color: #ffffff;
    padding: 80px 0;
}

/* Hero Section */
.page-responsible-gaming__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0; /* padding-top đã được xử lý ở .page-responsible-gaming */
    text-align: center;
    background-color: #000000;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-responsible-gaming__hero-container {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-responsible-gaming__main-title {
    font-size: 52px;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-responsible-gaming__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-responsible-gaming__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-responsible-gaming__btn-primary {
    background-color: #FFD700; /* Vàng gold */
    color: #1A202C; /* Chữ tối */
    border: 2px solid #FFD700;
}

.page-responsible-gaming__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Chữ vàng gold */
    border: 2px solid #FFD700;
}

.page-responsible-gaming__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__cta-center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Principles Section */
.page-responsible-gaming__principles-section .page-responsible-gaming__section-title {
    color: #FFD700;
}

.page-responsible-gaming__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-responsible-gaming__grid-item {
    background-color: rgba(255, 255, 255, 0.05); /* Nền hơi trong suốt */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-responsible-gaming__grid-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-responsible-gaming__grid-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-responsible-gaming__grid-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-responsible-gaming__grid-description {
    font-size: 16px;
    color: #cccccc;
}

/* Tools Section */
.page-responsible-gaming__tools-section {
    background-color: #0d0d00; /* Light background for contrast */
    color: #ffffff;
    padding: 80px 0;
}

.page-responsible-gaming__tools-section .page-responsible-gaming__section-title {
    color: #FFD700;
}

.page-responsible-gaming__tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-responsible-gaming__tool-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-responsible-gaming__tool-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-responsible-gaming__tool-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-responsible-gaming__tool-description {
    font-size: 16px;
    color: #cccccc;
}

/* Problem Gambling Section */
.page-responsible-gaming__problem-gambling-section .page-responsible-gaming__section-title {
    color: #FFD700;
}

.page-responsible-gaming__checklist {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-responsible-gaming__checklist-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 18px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 17px;
    color: #f0f0f0;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming__checklist-item::before {
    content: "⚠️";
    margin-right: 15px;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.page-responsible-gaming__conclusion-text {
    font-size: 18px;
    text-align: center;
    margin-top: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Get Help Section */
.page-responsible-gaming__get-help-section {
    background-color: #0d0d00; /* Light background for contrast */
    color: #ffffff;
    padding: 80px 0;
}

.page-responsible-gaming__get-help-section .page-responsible-gaming__section-title {
    color: #FFD700;
}

.page-responsible-gaming__help-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-responsible-gaming__resource-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-responsible-gaming__resource-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-responsible-gaming__resource-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-responsible-gaming__resource-description {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 25px;
}

.page-responsible-gaming__resource-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: #FFD700;
    color: #1A202C;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-responsible-gaming__resource-link:hover {
    background-color: #e6c200;
    color: #000000;
}

.page-responsible-gaming__additional-support {
    font-size: 18px;
    text-align: center;
    margin-top: 40px;
    color: #f0f0f0;
}

/* Minor Protection Section */
.page-responsible-gaming__minor-protection-section .page-responsible-gaming__section-title {
    color: #FFD700;
}

.page-responsible-gaming__protection-measures {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-responsible-gaming__protection-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-responsible-gaming__protection-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-responsible-gaming__protection-heading {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-responsible-gaming__protection-description {
    font-size: 16px;
    color: #cccccc;
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
    background-color: #0d0d00; /* Light background for contrast */
    color: #ffffff;
    padding: 80px 0;
}

.page-responsible-gaming__faq-section .page-responsible-gaming__section-title {
    color: #FFD700;
}

.page-responsible-gaming__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

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

/* FAQ默认状态 - 答案 ẩn */
.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 25px;
  opacity: 0;
  color: #f0f0f0; /* Chữ trắng cho câu trả lời */
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể 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 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Nền hơi trong suốt cho câu trả lời */
  border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1A202C; /* Nền tối cho câu hỏi */
  border: 1px solid rgba(255, 255, 255, 0.1);
  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-question:hover {
  background: #2a3447; /* Hơi sáng hơn khi hover */
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* Vấn đề tiêu đề phong cách */
.page-responsible-gaming__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: #FFD700; /* Tiêu đề câu hỏi màu vàng gold */
}

/* Chuyển đổi biểu tượng */
.page-responsible-gaming__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Biểu tượng màu vàng gold */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
  color: #ffffff; /* Màu trắng khi mở */
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu cộng */
}

/* Brand Statement Section */
.page-responsible-gaming__brand-statement-section .page-responsible-gaming__section-title {
    color: #FFD700;
}

.page-responsible-gaming__brand-description {
    font-size: 17px;
    color: #f0f0f0;
    text-align: center;
    max-width: 900px;
    margin: 20px auto 0 auto;
}

/* Global image styles */
.page-responsible-gaming img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure it behaves as a block element */
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gaming__main-title {
        font-size: 44px;
    }
    .page-responsible-gaming__section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-responsible-gaming__container {
        padding: 20px 15px;
    }

    .page-responsible-gaming__hero-container {
        padding: 60px 15px;
    }
    .page-responsible-gaming__main-title {
        font-size: 36px;
    }
    .page-responsible-gaming__hero-description {
        font-size: 18px;
    }
    .page-responsible-gaming__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-responsible-gaming__cta-button {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-responsible-gaming__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-responsible-gaming__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-responsible-gaming__dark-section,
    .page-responsible-gaming__light-section {
        padding: 50px 0;
    }

    .page-responsible-gaming__grid-item,
    .page-responsible-gaming__tool-card,
    .page-responsible-gaming__resource-item,
    .page-responsible-gaming__protection-item {
        padding: 25px;
    }
}