/* style/card-games.css */
:root {
  --primary-color: #1A202C; /* Dark Blue/Gray */
  --secondary-color: #FFD700; /* Gold */
  --accent-color: #E53E3E; /* Red for emphasis */
  --text-light: #F7FAFC;
  --text-dark: #1A202C;
  --background-light: #FFFFFF;
  --background-dark: #1A202C;
  --border-color: #E2E8F0;
}

.page-card-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

.page-card-games .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-card-games section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-card-games h1,
.page-card-games h2,
.page-card-games h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-card-games h1 {
  font-size: 2.8em;
  color: var(--text-light);
}

.page-card-games h2 {
  font-size: 2.2em;
}

.page-card-games h3 {
  font-size: 1.6em;
}

.page-card-games p {
  margin-bottom: 15px;
  text-align: justify;
}

/* Hero Section */
.page-card-games .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--primary-color);
  color: var(--text-light);
}

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

.page-card-games .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-card-games .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-card-games .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-card-games .hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto;
  color: var(--text-light);
}

.page-card-games .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-card-games .cta-button:hover {
  background: #FFEB3B; /* Lighter gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-card-games .about-card-games {
  background-color: var(--background-light);
}

.page-card-games .about-card-games p {
  max-width: 900px;
  margin: 0 auto 15px auto;
  text-align: center;
}

/* Popular Games Section */
.page-card-games .popular-games {
  background-color: #F8F8F8;
}

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

.page-card-games .game-card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-card-games .game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-card-games .game-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-card-games .game-card h3 {
  margin: 20px 0 10px 0;
  font-size: 1.5em;
  color: var(--primary-color);
  flex-grow: 1;
}

.page-card-games .game-card h3 a.game-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-card-games .game-card h3 a.game-link:hover {
  color: var(--secondary-color);
}

.page-card-games .game-card p {
  padding: 0 20px;
  font-size: 0.95em;
  color: #4A5568;
  text-align: center;
  flex-grow: 1;
}

.page-card-games .game-card .btn-play {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 20px auto;
  transition: background-color 0.3s ease;
}

.page-card-games .game-card .btn-play:hover {
  background: #FFEB3B;
}

/* Advantages Section */
.page-card-games .advantages-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-card-games .advantages-section h2 {
  color: var(--secondary-color);
}

.page-card-games .advantages-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.page-card-games .advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-card-games .advantage-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-card-games .advantage-item:hover {
  transform: translateY(-8px);
}

.page-card-games .advantage-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.page-card-games .advantage-item h3 {
  color: var(--secondary-color);
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-card-games .advantage-item p {
  color: var(--text-light);
  font-size: 0.95em;
  text-align: center;
}

/* Promotions Section */
.page-card-games .promotions-section {
  background-color: var(--background-light);
}

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

.page-card-games .promo-item {
  background: #FDFDFD;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-card-games .promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-card-games .promo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-card-games .promo-item h3 {
  margin: 20px 15px 10px 15px;
  font-size: 1.4em;
  color: var(--primary-color);
  flex-grow: 1;
}

.page-card-games .promo-item h3 a.promo-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-card-games .promo-item h3 a.promo-link:hover {
  color: var(--secondary-color);
}

.page-card-games .promo-item p {
  padding: 0 20px;
  font-size: 0.9em;
  color: #4A5568;
  text-align: center;
  flex-grow: 1;
}

.page-card-games .promo-item .btn-promo {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 20px auto;
  transition: background-color 0.3s ease;
}

.page-card-games .promo-item .btn-promo:hover {
  background: #C53030; /* Darker red on hover */
}

.page-card-games .promo-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #6B7280;
}

.page-card-games .promo-note a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-card-games .promo-note a:hover {
  text-decoration: underline;
}

/* How-To-Play Section */
.page-card-games .how-to-play-section {
  background-color: #F8F8F8;
}

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

.page-card-games .step-item {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-card-games .step-item .step-number {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-card-games .step-item h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-card-games .step-item p {
  font-size: 0.95em;
  color: #4A5568;
  text-align: center;
  flex-grow: 1;
}

.page-card-games .step-item .btn-step {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-card-games .step-item .btn-step:hover {
  background: #364052; /* Darker primary color */
}

/* FAQ Section */
.page-card-games .faq-section {
  background-color: var(--background-light);
}

.page-card-games .faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-card-games .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-card-games .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-card-games .faq-question:hover {
  background: #F5F5F5;
}

.page-card-games .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--primary-color);
  text-align: left;
}

.page-card-games .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-card-games .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-color);
}

.page-card-games .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: #4A5568;
}

.page-card-games .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
}

.page-card-games .faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

/* Conclusion Section */
.page-card-games .conclusion-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-card-games .conclusion-section h2 {
  color: var(--secondary-color);
}

.page-card-games .conclusion-section p {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-card-games .cta-button-bottom {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-card-games .cta-button-bottom:hover {
  background: #FFEB3B;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-card-games h1 {
    font-size: 2.2em;
  }
  .page-card-games h2 {
    font-size: 1.8em;
  }
  .page-card-games .hero-content p {
    font-size: 1.1em;
  }
  .page-card-games .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-card-games .game-grid,
  .page-card-games .advantages-grid,
  .page-card-games .promo-list,
  .page-card-games .step-by-step {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-card-games .game-card img,
  .page-card-games .promo-item img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-card-games section {
    padding: 40px 0;
  }
  .page-card-games h1 {
    font-size: 1.8em;
  }
  .page-card-games h2 {
    font-size: 1.6em;
  }
  .page-card-games h3 {
    font-size: 1.3em;
  }
  .page-card-games .hero-section {
    padding: 60px 15px;
  }
  .page-card-games .hero-content p {
    font-size: 1em;
  }
  .page-card-games .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-card-games .game-grid,
  .page-card-games .advantages-grid,
  .page-card-games .promo-list,
  .page-card-games .step-by-step {
    grid-template-columns: 1fr;
  }
  .page-card-games .game-card,
  .page-card-games .promo-item,
  .page-card-games .advantage-item,
  .page-card-games .step-item {
    margin: 0 auto;
    max-width: 400px;
  }
  .page-card-games .faq-question {
    padding: 15px 20px;
  }
  .page-card-games .faq-question h3 {
    font-size: 1em;
  }
  .page-card-games .faq-answer {
    padding: 0 20px;
  }
  .page-card-games .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-card-games .cta-button-bottom {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-card-games h1 {
    font-size: 1.6em;
  }
  .page-card-games h2 {
    font-size: 1.4em;
  }
  .page-card-games .hero-section {
    padding: 40px 10px;
  }
  .page-card-games .hero-image img {
    border-radius: 4px;
  }
  .page-card-games .cta-button {
    font-size: 0.9em;
    padding: 8px 20px;
  }
  .page-card-games .faq-question h3 {
    font-size: 0.9em;
  }
}