/* style/index.css */
:root {
  --primary-color: #1A1A1A;
  --secondary-color: #FFD700;
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --bg-light: #f9f9f9;
  --bg-dark: #222222;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f0f2f5;
}

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

.page-index h1,
.page-index h2,
.page-index h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

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

.page-index h2 {
  font-size: 2.2em;
  padding-top: 40px;
}

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

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

.page-index a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index a:hover {
  color: #ffc107; /* Slightly darker gold on hover */
}

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index .cta-button:hover {
  background: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

.page-index .hero-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-index .intro-section {
  background-color: var(--bg-light);
  padding: 60px 20px;
  text-align: center;
}

.page-index .intro-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Quick Links Section */
.page-index .quick-links-section {
  background-color: var(--bg-dark);
  padding: 60px 20px;
  color: var(--text-light);
  text-align: center;
}

.page-index .quick-links-section h2 {
  color: var(--secondary-color);
}

.page-index .quick-links-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-index .link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-index .link-card {
  background-color: var(--primary-color);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index .link-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index .link-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-index .link-card h3 {
  color: var(--secondary-color);
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.4em;
}

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

.page-index .link-card p {
  font-size: 0.95em;
  color: #cccccc;
  text-align: center;
}

/* Games Section */
.page-index .games-section {
  background-color: var(--bg-light);
  padding: 60px 20px;
  text-align: center;
}

.page-index .games-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

.page-index .game-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.page-index .game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-index .game-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: left;
}

.page-index .game-card h3 a {
  color: var(--primary-color);
}

.page-index .game-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  text-align: justify;
}

/* Promotions Section */
.page-index .promotions-section {
  background-color: var(--primary-color);
  padding: 60px 20px;
  color: var(--text-light);
  text-align: center;
}

.page-index .promotions-section h2 {
  color: var(--secondary-color);
}

.page-index .promotions-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

.page-index .promo-item {
  background-color: var(--bg-dark);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-index .promo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index .promo-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-index .promo-item h3 {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  text-align: left;
}

.page-index .promo-item h3 a {
  color: var(--secondary-color);
}

.page-index .promo-item p {
  font-size: 0.9em;
  color: #cccccc;
  text-align: justify;
}

.page-index .promo-cta {
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-index .promo-cta a {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Security & Support Section */
.page-index .security-support-section {
  background-color: var(--bg-light);
  padding: 60px 20px;
  text-align: center;
}

.page-index .security-support-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index .security-support-section .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index .security-support-section .text-content,
.page-index .security-support-section .image-content {
  flex: 1;
  min-width: 300px;
}

.page-index .security-support-section .text-content {
  text-align: left;
}

.page-index .security-support-section .image-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-index .faq-section {
  background-color: var(--bg-dark);
  padding: 60px 20px;
  color: var(--text-light);
  text-align: center;
}

.page-index .faq-section h2 {
  color: var(--secondary-color);
}

.page-index .faq-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: #cccccc;
}

.page-index .faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #2a2a2a;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-light);
  text-align: left;
}

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

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--bg-dark);
  color: #cccccc;
  border-top: 1px solid var(--primary-color);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 25px;
}

.faq-item.active .faq-answer p {
  margin-bottom: 0;
  color: #cccccc;
  text-align: justify;
}

/* Blog Section */
.page-index .blog-section {
  background-color: var(--bg-light);
  padding: 60px 20px;
  text-align: center;
}

.page-index .blog-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

.page-index .blog-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
  text-decoration: none;
}

.page-index .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-index .blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-index .blog-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 15px 15px 10px 15px;
  text-align: left;
}

.page-index .blog-card h3 a {
  color: var(--primary-color);
}

.page-index .blog-card p {
  font-size: 0.9em;
  color: var(--text-dark);
  margin: 0 15px 15px 15px;
  flex-grow: 1;
  text-align: justify;
}

.page-index .blog-card span {
  font-size: 0.8em;
  color: #777777;
  margin: 0 15px 15px 15px;
  display: block;
}

.page-index .view-all-link {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: 2.4em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image {
    margin-bottom: 20px;
  }
  .page-index .hero-image img {
    border-radius: 4px;
  }
  .page-index .hero-content h1 {
    font-size: 2em;
  }
  .page-index .hero-content p {
    font-size: 0.95em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
  }

  .page-index h2 {
    font-size: 1.8em;
    padding-top: 30px;
  }
  .page-index h3 {
    font-size: 1.4em;
  }

  .page-index .quick-links-section,
  .page-index .games-section,
  .page-index .promotions-section,
  .page-index .security-support-section,
  .page-index .faq-section,
  .page-index .blog-section {
    padding: 40px 15px;
  }

  .page-index .link-cards,
  .page-index .game-categories,
  .page-index .promo-grid,
  .page-index .blog-articles {
    grid-template-columns: 1fr;
  }

  .page-index .security-support-section .content-wrapper {
    flex-direction: column;
  }

  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.6em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
  .page-index .game-card img,
  .page-index .promo-item img,
  .page-index .blog-card img {
    height: 160px;
  }
  .page-index .link-card img {
    max-width: 200px;
  }
  .page-index .link-card h3,
  .page-index .game-card h3,
  .page-index .promo-item h3,
  .page-index .blog-card h3 {
    font-size: 1.2em;
  }
}