:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-color-light: #F8F8F8;
  --text-color-dark: #1A202C;
  --background-light: #F0F2F5;
  --background-dark: #12161E;
}

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

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

.page-index section {
  padding: 80px 0;
  text-align: center;
}

.page-index section:nth-of-type(even) {
  background-color: #1A202C;
}

.page-index h1, .page-index h2, .page-index h3, .page-index h4, .page-index h5, .page-index h6 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-index h2 {
  font-size: 2.5em;
  color: var(--text-color-light);
  padding-bottom: 15px;
  position: relative;
}

.page-index h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-index h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
}

.page-index p {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: var(--text-color-light);
}

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

.page-index a:hover {
  color: #FFEA00;
}

.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: 1.2em;
  font-weight: bold;
  margin: 20px 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index .cta-button:hover {
  background: #FFEA00;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-index .cta-button.secondary-cta {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-index .cta-button.secondary-cta:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: #FFEA00;
}

.page-index .cta-button.small {
  padding: 10px 25px;
  font-size: 1em;
  margin: 15px 5px;
}

.page-index .cta-button.mini {
  padding: 8px 20px;
  font-size: 0.9em;
  margin: 10px 5px;
}

/* 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: linear-gradient(135deg, #1A202C, #000000);
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index .hero-content h1 {
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index .hero-content p {
  color: #E0E0E0;
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Intro Section */
.page-index .intro-section {
  background-color: var(--background-dark);
}

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

.page-index .intro-card {
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-index .intro-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index .intro-card .card-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index .intro-card h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-index .intro-card p {
  color: #CCCCCC;
  font-size: 0.95em;
}

/* Quick Links Section */
.page-index .quick-links-section {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-index .quick-links-section h2, .page-index .quick-links-section p {
  color: var(--text-color-dark);
}

.page-index .links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-index .quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E0E0E0;
}

.page-index .quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.page-index .quick-link-card .link-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 8px;
}

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

.page-index .quick-link-card p {
  color: #666666;
  font-size: 0.9em;
}

/* Core Games Section */
.page-index .core-games-section {
  background-color: var(--background-dark);
}

.page-index .games-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.page-index .game-tab {
  background-color: transparent;
  border: none;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #AAAAAA;
  cursor: pointer;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 3px solid transparent;
  margin: 0 10px;
}

.page-index .game-tab:hover {
  color: var(--secondary-color);
}

.page-index .game-tab.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.page-index .games-content {
  margin-top: 30px;
}

.page-index .game-panel {
  display: none;
  text-align: left;
  background-color: var(--primary-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.5s ease-out forwards;
}

.page-index .game-panel.active {
  display: block;
}

.page-index .game-panel .game-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index .game-panel h3 {
  color: var(--secondary-color);
  font-size: 2em;
  margin-bottom: 15px;
  text-align: center;
}

.page-index .game-panel p {
  color: #E0E0E0;
  font-size: 1.05em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
}

/* Promotions Section */
.page-index .promotions-section {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-index .promotions-section h2, .page-index .promotions-section p {
  color: var(--text-color-dark);
}

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

.page-index .promo-card {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
}

.page-index .promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.page-index .promo-card .promo-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index .promo-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index .promo-card p {
  color: #666666;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 15px;
}

/* Security & Support Section */
.page-index .security-support-section {
  background-color: var(--background-dark);
}

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

.page-index .info-block {
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-index .info-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index .info-block .info-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index .info-block h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-index .info-block p {
  color: #CCCCCC;
  font-size: 0.95em;
}

/* FAQ Section */
.page-index .faq-section {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-index .faq-section h2, .page-index .faq-section p {
  color: var(--text-color-dark);
}

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

.page-index .faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-index .faq-question:hover {
  background: #F5F5F5;
  border-color: var(--secondary-color);
}

.page-index .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

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

.page-index .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-index .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: #333333;
  border-radius: 0 0 5px 5px;
}

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border: 1px solid #E0E0E0;
  border-top: none;
}

.page-index .faq-item.active .faq-answer p {
  color: #333333;
}

/* Blog Section */
.page-index .blog-section {
  background-color: var(--background-dark);
}

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

.page-index .blog-card {
  background-color: var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

.page-index .blog-card .blog-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index .blog-card .card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index .blog-card span {
  color: #AAAAAA;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.page-index .blog-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-index .blog-card h3 a {
  color: var(--text-color-light);
  transition: color 0.3s ease;
}

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

.page-index .blog-card p {
  color: #CCCCCC;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index .blog-card .read-more {
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
}

.page-index .blog-card .read-more:hover {
  text-decoration: underline;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: 2.8em;
  }
  .page-index h2 {
    font-size: 2.2em;
  }
  .page-index h3 {
    font-size: 1.6em;
  }
  .page-index p {
    font-size: 1em;
  }
  .page-index section {
    padding: 60px 0;
  }
  .page-index .hero-content p {
    font-size: 1.1em;
  }
  .page-index .game-panel h3 {
    font-size: 1.8em;
  }
  .page-index .game-panel p {
    font-size: 1em;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-index .container {
    padding: 0 15px;
  }
  .page-index h1 {
    font-size: 2.2em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index section {
    padding: 40px 0;
  }
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image img {
    border-radius: 8px;
  }
  .page-index .hero-content p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
    margin: 15px 5px;
  }
  .page-index .intro-grid, .page-index .links-grid, .page-index .promo-grid, .page-index .security-support-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index .intro-card, .page-index .quick-link-card, .page-index .promo-card, .page-index .info-block, .page-index .blog-card {
    padding: 20px;
  }
  .page-index .game-tab {
    padding: 12px 15px;
    font-size: 0.9em;
    margin: 0 5px;
  }
  .page-index .game-panel {
    padding: 25px;
  }
  .page-index .game-panel h3 {
    font-size: 1.6em;
  }
  .page-index .game-panel .game-img {
    margin-bottom: 20px;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1em;
  }
  .page-index .faq-toggle {
    font-size: 20px;
  }
  .page-index .faq-answer {
    padding: 0 20px;
  }
  .page-index .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-index .blog-card .blog-img {
    height: 180px;
  }
  .page-index .blog-card .card-content {
    padding: 20px;
  }
  .page-index .blog-card h3 {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .page-index h1 {
    font-size: 1.8em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index .cta-button {
    width: 100%;
    margin: 10px 0;
  }
  .page-index .games-tabs {
    flex-direction: column;
    gap: 10px;
  }
  .page-index .game-tab {
    width: 100%;
    margin: 0;
    border-bottom: none;
  }
  .page-index .game-tab.active {
    border-bottom: 3px solid var(--secondary-color);
  }
}