/* style/resources-safe-responsible-betting.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f8f9fa;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-resources-safe-responsible-betting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark (#000), so use light text */
  background-color: var(--background-dark); /* Inherited from shared.css, but ensure consistency */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-resources-safe-responsible-betting__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources-safe-responsible-betting__sub-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources-safe-responsible-betting__text-block {
  margin-bottom: 30px;
}

.page-resources-safe-responsible-betting p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-resources-safe-responsible-betting ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources-safe-responsible-betting li {
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-resources-safe-responsible-betting__card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  color: var(--text-light);
}

.page-resources-safe-responsible-betting__card-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources-safe-responsible-betting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-resources-safe-responsible-betting__btn-primary,
.page-resources-safe-responsible-betting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-resources-safe-responsible-betting__btn-primary:hover,
.page-resources-safe-responsible-betting__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-responsible-betting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: var(--secondary-color);
  text-decoration: none;
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-align: center;
  margin-left: 20px;
}

.page-resources-safe-responsible-betting__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-responsible-betting__link-small {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: 500;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-resources-safe-responsible-betting__link-small:hover {
  color: #e6c200;
}

.page-resources-safe-responsible-betting__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin: 30px 0;
}

.page-resources-safe-responsible-betting__text-center {
  text-align: center;
}

.page-resources-safe-responsible-betting__mt-30 {
  margin-top: 30px;
}

/* Section Specific Styles */
.page-resources-safe-responsible-betting__hero-section {
  padding: 80px 0;
  text-align: center;
  background-image: url('[GALLERY:bg:线上博彩, u888, abcvip, Vietnam,background,1920x1080]');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
}

.page-resources-safe-responsible-betting__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto 40px auto;
  color: var(--text-light);
}

.page-resources-safe-responsible-betting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources-safe-responsible-betting__content-section {
  padding: 60px 0;
}

.page-resources-safe-responsible-betting__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources-safe-responsible-betting__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-resources-safe-responsible-betting__light-bg p,
.page-resources-safe-responsible-betting__light-bg li {
  color: var(--text-dark);
}

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

.page-resources-safe-responsible-betting__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
}

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

.page-resources-safe-responsible-betting__icon-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.page-resources-safe-responsible-betting__icon-list li {
  display: flex;
  align-items: center;
  background: var(--card-bg-dark);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-responsible-betting__list-icon {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: contain;
}

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

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

.page-resources-safe-responsible-betting__game-item .page-resources-safe-responsible-betting__card-image {
  height: 180px; /* Fixed height for game images */
  object-fit: cover;
  width: 100%;
}

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

.page-resources-safe-responsible-betting__promo-grid .page-resources-safe-responsible-betting__card-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

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

.page-resources-safe-responsible-betting__faq-list {
  margin-top: 40px;
}

/* FAQ container styles */
.page-resources-safe-responsible-betting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  color: var(--text-dark);
}

/* FAQ default state - answer hidden */
.page-resources-safe-responsible-betting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: var(--card-bg-light);
  color: var(--text-dark);
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-resources-safe-responsible-betting__faq-item.active .page-resources-safe-responsible-betting__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg-light);
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

/* Question styles */
.page-resources-safe-responsible-betting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

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

.page-resources-safe-responsible-betting__faq-question:active {
  background: #eeeeee;
}

/* Question title styles */
.page-resources-safe-responsible-betting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: var(--text-dark);
}

/* Toggle icon */
.page-resources-safe-responsible-betting__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; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-safe-responsible-betting__faq-item.active .page-resources-safe-responsible-betting__faq-toggle {
  color: #333;
  transform: rotate(0deg);
}

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

.page-resources-safe-responsible-betting__contact-info {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-resources-safe-responsible-betting__contact-info p {
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-resources-safe-responsible-betting__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* 🚨 VIDEO SECTION STYLES - MUST STRICTLY ADHERE TO INSTRUCTIONS */
.page-resources-safe-responsible-betting__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 based on fixed nav height */
  background-color: var(--background-dark);
}

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

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

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

.page-resources-safe-responsible-betting__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio - 🚨 PageSpeed optimization: fixed aspect ratio to avoid CLS */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-responsible-betting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-resources-safe-responsible-betting__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: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-resources-safe-responsible-betting__video-link:hover .page-resources-safe-responsible-betting__video-overlay {
  opacity: 1;
}

.page-resources-safe-responsible-betting__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: var(--secondary-color);
  border-radius: 5px;
  white-space: nowrap;
}

.page-resources-safe-responsible-betting__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-resources-safe-responsible-betting__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-resources-safe-responsible-betting__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-safe-responsible-betting__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-safe-responsible-betting__section-title {
    font-size: 2em;
  }
  .page-resources-safe-responsible-betting__main-title {
    font-size: 2.5em;
  }
  .page-resources-safe-responsible-betting__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-resources-safe-responsible-betting {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-safe-responsible-betting__container {
    padding: 0 15px;
  }

  .page-resources-safe-responsible-betting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-safe-responsible-betting__main-title {
    font-size: 2em;
  }

  .page-resources-safe-responsible-betting__hero-section {
    padding: 60px 0;
  }

  .page-resources-safe-responsible-betting__hero-description {
    font-size: 1em;
    margin: 15px auto 30px auto;
  }

  .page-resources-safe-responsible-betting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .page-resources-safe-responsible-betting__btn-primary,
  .page-resources-safe-responsible-betting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-safe-responsible-betting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    margin-left: 0;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-safe-responsible-betting__content-section {
    padding: 40px 0;
  }

  .page-resources-safe-responsible-betting__feature-grid,
  .page-resources-safe-responsible-betting__principle-grid,
  .page-resources-safe-responsible-betting__criteria-grid,
  .page-resources-safe-responsible-betting__game-grid,
  .page-resources-safe-responsible-betting__promo-grid,
  .page-resources-safe-responsible-betting__process-grid,
  .page-resources-safe-responsible-betting__brand-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-safe-responsible-betting__icon-list li {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .page-resources-safe-responsible-betting__list-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* 🚨 Mobile video section specific styles */
  .page-resources-safe-responsible-betting__video-section {
    padding-top: 10px !important; /* Mobile: Adjust based on mobile nav height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-resources-safe-responsible-betting__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-resources-safe-responsible-betting__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources-safe-responsible-betting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-resources-safe-responsible-betting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Use contain to ensure video fits within bounds */
  }
  
  .page-resources-safe-responsible-betting__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-resources-safe-responsible-betting__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources-safe-responsible-betting__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  /* All images responsive */
  .page-resources-safe-responsible-betting img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-resources-safe-responsible-betting__card {
    padding: 20px;
  }

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