/* style/game-center.css */
/* body đã có padding-top: var(--header-offset); trang này không cần thêm */
.page-game-center {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-game-center__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-game-center__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: #0A4B2C;
}

.page-game-center__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Adjust as needed */
}

.page-game-center__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image slightly for visual flow */
  background-color: rgba(17, 47, 33, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E;
}

.page-game-center__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-center__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-center__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Section Styling */
.page-game-center__introduction-section,
.page-game-center__game-categories-section,
.page-game-center__how-to-play-section,
.page-game-center__promotions-section,
.page-game-center__security-section,
.page-game-center__faq-section,
.page-game-center__conclusion-section {
  padding: 60px 0;
}

.page-game-center__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-game-center__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-game-center__section-subtitle {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

.page-game-center__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-center__inline-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-game-center__inline-link:hover {
  text-decoration: underline;
  color: #2AD16F;
}

/* Buttons */
.page-game-center__btn-primary,
.page-game-center__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-center__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff; /* White text for contrast */
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-center__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

.page-game-center__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 10px rgba(46, 122, 78, 0.3);
}

.page-game-center__btn-secondary:hover {
  background-color: #2E7A4E;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(46, 122, 78, 0.5);
  transform: translateY(-2px);
}

.page-game-center__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-game-center__cta-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Game Categories Grid */
.page-game-center__game-grid,
.page-game-center__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-center__game-card,
.page-game-center__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #1E3A2A; /* Divider */
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-center__game-card:hover,
.page-game-center__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-game-center__game-card-image,
.page-game-center__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #1E3A2A;
}

.page-game-center__game-card-title,
.page-game-center__promo-card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #F2C14E; /* Gold */
  margin: 20px 15px 10px;
}

.page-game-center__game-card-title a,
.page-game-center__promo-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-center__game-card-title a:hover,
.page-game-center__promo-card-title a:hover {
  text-decoration: underline;
}

.page-game-center__game-card-description,
.page-game-center__promo-card-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.page-game-center__game-card .page-game-center__btn-primary,
.page-game-center__promo-card .page-game-center__btn-primary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* How to Play Section */
.page-game-center__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-center__step-item {
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #1E3A2A;
}

.page-game-center__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
  text-align: center;
}

.page-game-center__step-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #F2FFF6;
  text-align: justify;
}

/* FAQ Section */
.page-game-center__faq-list {
  margin-top: 40px;
}

.page-game-center__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #1E3A2A;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-game-center__faq-item[open] {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-center__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2C14E; /* Gold */
  cursor: pointer;
  background-color: #11271B;
  list-style: none;
  transition: background-color 0.3s ease;
}

.page-game-center__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-center__faq-question:hover {
  background-color: #0A4B2C;
}

.page-game-center__faq-qtext {
  flex-grow: 1;
}

.page-game-center__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-game-center__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #F2FFF6;
  text-align: justify;
}

.page-game-center__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-center__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
  .page-game-center__section-title {
    font-size: 2em;
  }
  .page-game-center__section-subtitle {
    font-size: 1.1em;
  }
  .page-game-center__game-card-title,
  .page-game-center__promo-card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-game-center__hero-section {
    padding: 5px 0;
  }
  .page-game-center__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    border-radius: 10px;
  }
  .page-game-center__hero-title {
    font-size: 2em;
  }
  .page-game-center__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-game-center__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-center__btn-primary,
  .page-game-center__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-game-center__section-title {
    font-size: 1.8em;
  }
  .page-game-center__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-game-center__text-block {
    font-size: 0.95em;
  }
  .page-game-center__game-grid,
  .page-game-center__promo-grid,
  .page-game-center__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-center__game-card-image,
  .page-game-center__promo-card-image {
    height: 180px;
  }
  .page-game-center__game-card-title,
  .page-game-center__promo-card-title {
    font-size: 1.2em;
  }
  .page-game-center__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-game-center__faq-answer {
    padding: 0 20px 15px;
  }

  /* Force responsive for images, videos, buttons */
  .page-game-center img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-center__section,
  .page-game-center__card,
  .page-game-center__container,
  .page-game-center__hero-section,
  .page-game-center__introduction-section,
  .page-game-center__game-categories-section,
  .page-game-center__how-to-play-section,
  .page-game-center__promotions-section,
  .page-game-center__security-section,
  .page-game-center__faq-section,
  .page-game-center__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-center__hero-section {
    padding-top: 10px !important; /* body đã xử lý header-offset */
  }
  .page-game-center__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-game-center__btn-primary,
  .page-game-center__btn-secondary,
  .page-game-center a[class*="button"],
  .page-game-center a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Contrast Fixes */
.page-game-center__dark-bg {
  color: #F2FFF6; /* Deep background with light text */
}

.page-game-center__game-card,
.page-game-center__promo-card,
.page-game-center__step-item,
.page-game-center__faq-item {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-game-center p,
.page-game-center li {
  color: #F2FFF6; /* Ensure readability */
}