/* style/resources-betting-guide.css */
:root {
  --primary-color: #FFD700; /* Vàng */
  --secondary-color: #1E90FF; /* Xanh lam */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0d0d0d; /* Slightly lighter than body #000 for contrast on elements */
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-resources-betting-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* 🚨 Fixed Nav Bar Spacing */
.page-resources-betting-guide__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 actual fixed header height */
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources-betting-guide__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-betting-guide__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-betting-guide__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources-betting-guide__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none;
}

.page-resources-betting-guide__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-betting-guide__video-link:hover .page-resources-betting-guide__video-overlay {
  opacity: 1;
}

.page-resources-betting-guide__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: rgba(30, 144, 255, 0.8); /* Using secondary color */
  border-radius: 5px;
  white-space: nowrap;
}

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

.page-resources-betting-guide__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color); /* Brand primary color */
  color: var(--text-light);
  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.2);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-resources-betting-guide__play-now-button:hover {
  background: #e6c200; /* Darken primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources-betting-guide__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-betting-guide__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-resources-betting-guide__title-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-betting-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-betting-guide__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color); /* Brand secondary color */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-resources-betting-guide__cta-button:hover {
  background: #1a7ad9; /* Darken secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__content-section {
  padding: 60px 20px;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.page-resources-betting-guide__content-section.page-resources-betting-guide__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources-betting-guide__content-section.page-resources-betting-guide__medium-bg {
  background-color: #2a2a2a;
  color: var(--text-light);
}

.page-resources-betting-guide__content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-betting-guide__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__content-section.page-resources-betting-guide__dark-bg .page-resources-betting-guide__section-title,
.page-resources-betting-guide__content-section.page-resources-betting-guide__medium-bg .page-resources-betting-guide__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

.page-resources-betting-guide__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
}

.page-resources-betting-guide__text-block p {
  margin-bottom: 1em;
}

.page-resources-betting-guide__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-betting-guide__card {
  background: #ffffff; /* White background for good contrast */
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-betting-guide__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-resources-betting-guide__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-betting-guide__two-column-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-resources-betting-guide__two-column-layout > div {
  flex: 1;
}

.page-resources-betting-guide__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__text-block ol,
.page-resources-betting-guide__text-block ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-resources-betting-guide__text-block li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-betting-guide__text-block strong {
  color: var(--primary-color);
}

.page-resources-betting-guide__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-resources-betting-guide__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-resources-betting-guide__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-resources-betting-guide__btn-secondary:hover {
  background: #1a7ad9;
  transform: translateY(-1px);
}

.page-resources-betting-guide__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-resources-betting-guide__game-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  color: var(--text-light);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources-betting-guide__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-betting-guide__game-card-image {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-resources-betting-guide__game-card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources-betting-guide__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-betting-guide__promo-card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-betting-guide__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__promo-card-image {
  max-width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-resources-betting-guide__promo-card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-betting-guide__promo-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.1em;
}

/* FAQ Section */
.page-resources-betting-guide__faq-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources-betting-guide__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-betting-guide__faq-list {
  margin-top: 30px;
}

.page-resources-betting-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-betting-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-betting-guide__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-resources-betting-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-resources-betting-guide__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-resources-betting-guide__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: rgba(255, 255, 255, 0.02);
  color: var(--text-light);
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-resources-betting-guide__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Brand Section */
.page-resources-betting-guide__brand-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources-betting-guide__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-betting-guide__brand-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-betting-guide__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-betting-guide__brand-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.page-resources-betting-guide__brand-item h3 {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources-betting-guide__brand-item p {
  font-size: 1em;
  line-height: 1.7;
}

/* Blog Section */
.page-resources-betting-guide__blog-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources-betting-guide__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-betting-guide__blog-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-betting-guide__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-betting-guide__blog-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources-betting-guide__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources-betting-guide__blog-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: var(--text-light);
}

.page-resources-betting-guide__blog-item-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-resources-betting-guide__blog-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources-betting-guide__blog-item-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.page-resources-betting-guide__blog-item-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  text-align: right;
}

/* 🚨 Responsive Design */
@media (max-width: 1024px) {
  .page-resources-betting-guide__main-title {
    font-size: 2.8em;
  }
  .page-resources-betting-guide__section-title {
    font-size: 2.2em;
  }
  .page-resources-betting-guide__two-column-layout {
    flex-direction: column;
  }
  .page-resources-betting-guide__two-column-layout > div {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile Padding Top for Video Section */
  .page-resources-betting-guide__video-section {
    padding-top: 10px !important; /* Mobile: Adjust based on mobile header 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-betting-guide__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-betting-guide__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources-betting-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-resources-betting-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Ensure video fits within bounds */
  }
  
  .page-resources-betting-guide__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-resources-betting-guide__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-betting-guide__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-resources-betting-guide__title-section,
  .page-resources-betting-guide__content-section,
  .page-resources-betting-guide__faq-section,
  .page-resources-betting-guide__brand-section,
  .page-resources-betting-guide__blog-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-betting-guide__main-title {
    font-size: 2em;
  }
  .page-resources-betting-guide__section-title {
    font-size: 1.8em;
  }
  .page-resources-betting-guide__title-description,
  .page-resources-betting-guide__text-block p,
  .page-resources-betting-guide__text-block li {
    font-size: 1em;
  }
  .page-resources-betting-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-betting-guide__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-betting-guide__grid-layout,
  .page-resources-betting-guide__game-categories,
  .page-resources-betting-guide__promo-grid,
  .page-resources-betting-guide__blog-list,
  .page-resources-betting-guide__brand-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-betting-guide__card,
  .page-resources-betting-guide__game-card,
  .page-resources-betting-guide__promo-card,
  .page-resources-betting-guide__blog-item,
  .page-resources-betting-guide__brand-item {
    padding: 20px;
  }
  .page-resources-betting-guide__card-image,
  .page-resources-betting-guide__game-card-image,
  .page-resources-betting-guide__promo-card-image,
  .page-resources-betting-guide__blog-item-image {
    height: 150px; /* Adjusted for mobile */
    max-width: 100% !important;
    width: 100% !important;
    object-fit: contain; /* Ensure image fits */
  }
  .page-resources-betting-guide__faq-question h3 {
    font-size: 1em;
  }
  .page-resources-betting-guide__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
    padding: 15px !important;
  }
  .page-resources-betting-guide__btn-primary,
  .page-resources-betting-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-betting-guide__main-title {
    font-size: 1.8em;
  }
  .page-resources-betting-guide__section-title {
    font-size: 1.6em;
  }
}