/* style/responsible-gaming.css */

/* Root variables for consistent styling */
:root {
    --primary-color: #FFD700; /* Gold/Yellow for highlights, buttons */
    --secondary-color: #1A202C; /* Dark blue/black for backgrounds, text on light */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #000; /* Inherited from body */
    --bg-light: #f8f9fa;
    --border-color: #444;
    --card-bg-dark: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    --card-bg-light: #ffffff;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-responsible-gaming {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the page on dark body background */
    background-color: transparent; /* Body background is #000 */
}

/* General container for content sections */
.page-responsible-gaming__content-container,
.page-responsible-gaming__hero-container,
.page-responsible-gaming__faq-container,
.page-responsible-gaming__brand-container,
.page-responsible-gaming__blog-container,
.page-responsible-gaming__video-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: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.page-responsible-gaming__subsection-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Text block styles */
.page-responsible-gaming__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* List styles */
.page-responsible-gaming__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-light); /* Default for dark sections */
}

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

/* --- Video Section --- */
.page-responsible-gaming__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  background: var(--bg-dark);
}

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

.page-responsible-gaming__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-responsible-gaming__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background-color: var(--secondary-color); /* Fallback background */
}

.page-responsible-gaming__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevents video controls from interfering with click event on <a> */
}

.page-responsible-gaming__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-responsible-gaming__video-link:hover .page-responsible-gaming__video-overlay {
  opacity: 1;
}

.page-responsible-gaming__video-click-hint {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8); /* Primary color with transparency */
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.8px;
}

.page-responsible-gaming__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-responsible-gaming__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-responsible-gaming__play-now-button:hover {
  background: #e6c200; /* Slightly darker primary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.page-responsible-gaming__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* --- Module 1: Hero Section (H1 + CTA) --- */
.page-responsible-gaming__hero-section {
    padding: 80px 20px; /* Adjust for fixed header on desktop */
    text-align: center;
    background: var(--secondary-color); /* Dark section */
    color: var(--text-light);
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

.page-responsible-gaming__main-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-responsible-gaming__hero-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #e0e0e0;
    line-height: 1.7;
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.page-responsible-gaming__btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--primary-color);
}

.page-responsible-gaming__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.page-responsible-gaming__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-responsible-gaming__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* --- Content Section (Responsible Gaming Principles) --- */
.page-responsible-gaming__content-section {
    padding: 80px 0;
    background: var(--bg-light); /* Light background for contrast */
    color: var(--text-dark); /* Dark text on light background */
}

.page-responsible-gaming__content-section .page-responsible-gaming__section-title,
.page-responsible-gaming__content-section .page-responsible-gaming__subsection-title {
    color: var(--secondary-color);
}

.page-responsible-gaming__content-section .page-responsible-gaming__text-block,
.page-responsible-gaming__content-section .page-responsible-gaming__list {
    color: var(--text-dark);
}

.page-responsible-gaming__content-section .page-responsible-gaming__list li {
    color: var(--text-dark);
}

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

.page-responsible-gaming__feature-item {
    background: var(--card-bg-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-responsible-gaming__feature-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__feature-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-responsible-gaming__feature-description {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
}

/* --- Module 2: FAQ Section --- */
.page-responsible-gaming__faq-section {
    padding: 80px 0;
    background: var(--secondary-color); /* Dark section */
    color: var(--text-light);
}

.page-responsible-gaming__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg-dark); /* Semi-transparent white on dark bg */
  border: 1px solid var(--border-color);
}

.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: var(--text-light);
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: transparent;
  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: rgba(255, 255, 255, 0.05);
}

.page-responsible-gaming__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-responsible-gaming__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 30px;
  height: 30px;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
  color: #fff;
  transform: rotate(45deg); /* A common visual for 'x' or 'minus' */
}

/* --- Module 3: Brand Introduction --- */
.page-responsible-gaming__brand-section {
    padding: 80px 0;
    background: var(--bg-light); /* Light background */
    color: var(--text-dark);
}

.page-responsible-gaming__brand-section .page-responsible-gaming__section-title {
    color: var(--secondary-color);
}

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

.page-responsible-gaming__brand-item {
    background: var(--card-bg-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-responsible-gaming__brand-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__brand-item-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-responsible-gaming__brand-item-description {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
}

/* --- Module 4: Blog List --- */
.page-responsible-gaming__blog-section {
    padding: 80px 0;
    background: var(--secondary-color); /* Dark section */
    color: var(--text-light);
}

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

.page-responsible-gaming__blog-item {
    background: var(--card-bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-responsible-gaming__blog-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.page-responsible-gaming__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-responsible-gaming__blog-content {
    padding: 25px;
}

.page-responsible-gaming__blog-item-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-responsible-gaming__blog-item-excerpt {
    font-size: 15px;
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-responsible-gaming__blog-item-date {
    font-size: 14px;
    color: #999;
    display: block;
}

.page-responsible-gaming__view-all-button-container {
    text-align: center;
    margin-top: 60px;
}