/* General styles for the responsible gaming page */
.page-responsible-gaming {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f9f9f9; /* Slightly off-white background for main content */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-responsible-gaming__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-responsible-gaming__section:nth-child(even) {
    background-color: #fefefe;
}

.page-responsible-gaming__section-title {
    font-size: 36px;
    color: #000080; /* Dark blue for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-responsible-gaming__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    border-radius: 2px;
}

.page-responsible-gaming__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    color: #444444;
}

/* Hero Section */
.page-responsible-gaming__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* padding-top handled by main.page-responsible-gaming */
    overflow: hidden;
    background-color: #000080; /* Dark blue background for hero */
    color: #ffffff;
}

.page-responsible-gaming__hero-container {
    position: relative;
    max-width: 100%;
    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;
    position: relative;
    overflow: hidden;
}

.page-responsible-gaming__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image slightly for text readability */
    border-radius: 0; /* No border radius for hero image */
}

.page-responsible-gaming__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 80%; /* Adjust width for content */
    max-width: 800px;
}

.page-responsible-gaming__hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFD700; /* Gold for hero title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-responsible-gaming__hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-responsible-gaming__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Gold button */
    color: #000080; /* Dark blue text on gold button for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-responsible-gaming__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Grid for signs of problem gambling */
.page-responsible-gaming__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gaming__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.page-responsible-gaming__card-title {
    font-size: 24px;
    color: #000080; /* Dark blue for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gaming__card p {
    font-size: 16px;
    color: #555555;
    line-height: 1.5;
}

/* Features Grid for tools */
.page-responsible-gaming__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-responsible-gaming__feature-item {
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-responsible-gaming__feature-item img {
    width: 100%;
    height: 250px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
    filter: brightness(0.9); /* Slightly darken for consistency */
}

.page-responsible-gaming__feature-title {
    font-size: 26px;
    color: #FFD700; /* Gold for feature titles */
    margin-bottom: 15px;
    padding: 0 20px;
    font-weight: bold;
}

.page-responsible-gaming__feature-item p {
    font-size: 16px;
    color: #555555;
    padding: 0 20px 30px;
    flex-grow: 1;
}

/* List styles */
.page-responsible-gaming__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 17px;
    color: #444444;
}

.page-responsible-gaming__list li {
    margin-bottom: 10px;
}

.page-responsible-gaming__list li strong {
    color: #000080;
}

/* CTA Block */
.page-responsible-gaming__cta-block {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #000080; /* Dark blue background */
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__cta-block p {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 500;
}

.page-responsible-gaming__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: #ffffff;
    color: #000080; /* Dark blue text on white button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.page-responsible-gaming__btn-secondary:hover {
    background: transparent;
    color: #FFD700; /* Gold text on hover */
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Image styling for content areas */
.page-responsible-gaming__section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    /* No filter for changing color */
}

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

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

/* 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;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.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: #f0f0f0; /* Light gray background for answer */
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* Vấn đề kiểu dáng */
.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-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Vấn đề tiêu đề kiểu dáng */
.page-responsible-gaming__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font for questions */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp chuột */
  color: #000080; /* Dark blue for question titles */
}

/* Chuyển đổi biểu tượng */
.page-responsible-gaming__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold toggle icon */
  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 chuột */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger area for toggle */
  height: 32px;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
  color: #000080; /* Dark blue when active */
  transform: rotate(45deg); /* Ví dụ: Xoay cho 'x' hoặc '-' */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gaming__hero-content h1 {
        font-size: 40px;
    }
    .page-responsible-gaming__hero-content p {
        font-size: 18px;
    }
    .page-responsible-gaming__section-title {
        font-size: 32px;
    }
    .page-responsible-gaming__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .page-responsible-gaming__feature-item img {
        height: 220px;
    }
    .page-responsible-gaming__card-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-responsible-gaming__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-responsible-gaming__section {
        padding: 30px 0;
    }

    .page-responsible-gaming__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-responsible-gaming__hero-content {
        width: 90%;
    }
    .page-responsible-gaming__hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-responsible-gaming__hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-responsible-gaming__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-responsible-gaming__cta-block {
        padding: 30px 20px;
    }
    .page-responsible-gaming__cta-block p {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .page-responsible-gaming__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-responsible-gaming__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-responsible-gaming__features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-responsible-gaming__feature-item img {
        height: 200px;
    }

    .page-responsible-gaming__section img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    
    /* FAQ Mobile */
    .page-responsible-gaming__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-responsible-gaming__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-responsible-gaming__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-responsible-gaming__faq-answer {
        padding: 0 15px;
    }
    
    .page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-responsible-gaming__hero-content h1 {
        font-size: 28px;
    }
    .page-responsible-gaming__hero-content p {
        font-size: 15px;
    }
    .page-responsible-gaming__section-title {
        font-size: 24px;
    }
    .page-responsible-gaming__card-title {
        font-size: 20px;
    }
    .page-responsible-gaming__paragraph {
        font-size: 15px;
    }
}