/* style/slot-games-top-games.css */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #8B0000; /* Đỏ đô */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-slot-games-top-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Adjust for fixed header */
}

.page-slot-games-top-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-slot-games-top-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-slot-games-top-games__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-slot-games-top-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games-top-games__image--brand {
  max-width: 600px;
}

/* Video Section */
.page-slot-games-top-games__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-color: var(--bg-dark);
}

.page-slot-games-top-games__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-slot-games-top-games__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games-top-games__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.15);
}

.page-slot-games-top-games__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-slot-games-top-games__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.5);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-slot-games-top-games__video-link:hover .page-slot-games-top-games__video-overlay {
  opacity: 1;
}

.page-slot-games-top-games__video-click-hint {
  color: var(--text-light);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(var(--primary-color-rgb), 0.8);
  border-radius: 50px;
  white-space: nowrap;
}

.page-slot-games-top-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-slot-games-top-games__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--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.15);
  border: none;
  cursor: pointer;
}

.page-slot-games-top-games__play-now-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-slot-games-top-games__hero-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.page-slot-games-top-games__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-slot-games-top-games__hero-section .page-slot-games-top-games__description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
  line-height: 1.7;
}

.page-slot-games-top-games__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-slot-games-top-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games-top-games__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-slot-games-top-games__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games-top-games__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-slot-games-top-games__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.page-slot-games-top-games__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-slot-games-top-games__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-slot-games-top-games__intro-section, 
.page-slot-games-top-games__tips-section, 
.page-slot-games-top-games__benefits-section, 
.page-slot-games-top-games__brand-section, 
.page-slot-games-top-games__blog-section {
  padding: 60px 0;
}

.page-slot-games-top-games__intro-section p, 
.page-slot-games-top-games__tips-section p, 
.page-slot-games-top-games__benefits-section p, 
.page-slot-games-top-games__brand-section p, 
.page-slot-games-top-games__blog-section p {
  color: inherit;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.page-slot-games-top-games__intro-section .page-slot-games-top-games__section-title,
.page-slot-games-top-games__tips-section .page-slot-games-top-games__section-title,
.page-slot-games-top-games__benefits-section .page-slot-games-top-games__section-title,
.page-slot-games-top-games__brand-section .page-slot-games-top-games__section-title,
.page-slot-games-top-games__blog-section .page-slot-games-top-games__section-title {
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-slot-games-top-games__intro-section p strong, 
.page-slot-games-top-games__tips-section p strong, 
.page-slot-games-top-games__benefits-section p strong, 
.page-slot-games-top-games__brand-section p strong, 
.page-slot-games-top-games__blog-section p strong {
  color: var(--secondary-color);
}

/* Games Section */
.page-slot-games-top-games__games-section .page-slot-games-top-games__section-title,
.page-slot-games-top-games__games-section .page-slot-games-top-games__description {
  color: var(--text-light);
}

.page-slot-games-top-games__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games-top-games__game-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-slot-games-top-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games-top-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-games-top-games__card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
  padding: 0 15px;
}

.page-slot-games-top-games__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games-top-games__card-title a:hover {
  color: var(--secondary-color);
}

.page-slot-games-top-games__card-text {
  font-size: 16px;
  color: var(--text-light);
  padding: 0 15px;
  text-align: center;
  flex-grow: 1;
}

.page-slot-games-top-games__card-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-slot-games-top-games__card-button:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Tips Section */
.page-slot-games-top-games__tip-item {
  background: var(--card-bg-light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color);
}

.page-slot-games-top-games__tip-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games-top-games__tip-item p {
  color: var(--text-dark);
}

/* Benefits Section */
.page-slot-games-top-games__benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-slot-games-top-games__benefit-item {
  background: var(--card-bg-dark);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border-left: 5px solid var(--primary-color);
  font-size: 17px;
  color: var(--text-light);
}

.page-slot-games-top-games__benefit-item strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-slot-games-top-games__faq-section {
  padding: 60px 0;
}

.page-slot-games-top-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-slot-games-top-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-slot-games-top-games__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: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games-top-games__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-slot-games-top-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-slot-games-top-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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-slot-games-top-games__faq-item.active .page-slot-games-top-games__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate for minus */
  color: var(--primary-color);
}

.page-slot-games-top-games__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 20px;
  opacity: 0;
  background: #f0f0f0;
  border-radius: 0 0 8px 8px;
}

.page-slot-games-top-games__faq-item.active .page-slot-games-top-games__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important;
  opacity: 1;
  background: #f0f0f0;
}

.page-slot-games-top-games__faq-answer p {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* Brand Section */
.page-slot-games-top-games__brand-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-slot-games-top-top-games__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games-top-games__brand-item {
  background: var(--card-bg-dark);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border-left: 5px solid var(--primary-color);
}

.page-slot-games-top-games__brand-item-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games-top-games__brand-item p {
  color: var(--text-light);
}

/* Blog Section */
.page-slot-games-top-games__blog-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-slot-games-top-games__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games-top-games__blog-item {
  background: var(--card-bg-light);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games-top-games__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-slot-games-top-games__blog-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.page-slot-games-top-games__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-slot-games-top-games__blog-item-excerpt {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-slot-games-top-games__blog-item-date {
  font-size: 14px;
  color: #666;
  display: block;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games-top-games__main-title {
    font-size: 40px;
  }
  .page-slot-games-top-games__section-title {
    font-size: 30px;
  }
}

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

  .page-slot-games-top-games__container {
    padding: 0 15px;
  }

  .page-slot-games-top-games__video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    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-slot-games-top-games__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-slot-games-top-games__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games-top-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-slot-games-top-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }
  
  .page-slot-games-top-games__video-overlay {
    border-radius: 4px;
  }

  .page-slot-games-top-games__video-click-hint {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-slot-games-top-games__video-cta {
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-slot-games-top-games__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-slot-games-top-games__hero-section {
    padding: 60px 0;
  }

  .page-slot-games-top-games__main-title {
    font-size: 32px;
  }

  .page-slot-games-top-games__section-title {
    font-size: 28px;
  }

  .page-slot-games-top-games__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-slot-games-top-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-slot-games-top-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games-top-games__game-list,
  .page-slot-games-top-top-games__brand-content,
  .page-slot-games-top-games__benefit-list,
  .page-slot-games-top-games__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games-top-games__game-card, 
  .page-slot-games-top-games__blog-item, 
  .page-slot-games-top-games__tip-item, 
  .page-slot-games-top-games__brand-item, 
  .page-slot-games-top-games__benefit-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-slot-games-top-games__card-image {
    height: 180px;
  }

  .page-slot-games-top-games__card-title {
    font-size: 20px;
  }
  
  .page-slot-games-top-games__tip-title {
    font-size: 20px;
  }

  .page-slot-games-top-games__faq-question {
    padding: 15px;
  }

  .page-slot-games-top-games__faq-question h3 {
    font-size: 16px;
  }

  .page-slot-games-top-games__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }

  .page-slot-games-top-games__faq-answer {
    padding: 0 15px;
  }

  .page-slot-games-top-games__faq-item.active .page-slot-games-top-games__faq-answer {
    padding: 15px !important;
  }

  .page-slot-games-top-games__brand-item-title {
    font-size: 20px;
  }
  
  .page-slot-games-top-games__blog-item-title {
    font-size: 20px;
  }
  .page-slot-games-top-games__blog-item-excerpt {
    font-size: 15px;
  }
  .page-slot-games-top-games__blog-item-date {
    font-size: 13px;
  }
  .page-slot-games-top-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}