:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-color-light: #f0f0f0;
  --text-color-dark: #333333;
  --bg-dark: #1a2a44;
  --bg-light: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-index .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-index .section-title::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 .section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
  color: var(--text-color-dark);
}

.page-index .text-center {
  text-align: center;
  margin-top: 40px;
}

/* 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, var(--primary-color) 0%, #000000 100%); /* Adjusted for better contrast with text */
  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;
  z-index: 1;
}

.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 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index .hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

.page-index .cta-button:hover {
  background: #ffc400;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-index .cta-button-small {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-index .cta-button-small:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Section Intro */
.page-index .section-intro {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-index .intro-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--secondary-color);
}

.page-index .intro-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index .intro-item h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index .intro-item p {
  font-size: 1em;
  color: var(--text-color-dark);
}

/* Quick Links */
.page-index .section-quick-links {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

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

.page-index .section-quick-links .section-title::after {
  background-color: var(--text-color-light);
}

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

.page-index .quick-link-card {
  display: block;
  background: #2a3d5a;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-bottom: 4px solid var(--secondary-color);
}

.page-index .quick-link-card:hover {
  transform: translateY(-8px);
  background-color: #3b5073;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

/* Games Section */
.page-index .section-games {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-index .game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index .game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-index .game-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-index .game-card p {
  font-size: 1em;
  color: var(--text-color-dark);
  padding: 0 20px 20px;
}

.page-index .game-card .cta-button-small {
  margin: 0 20px 20px;
  display: block;
  text-align: center;
}

/* Promotions Section */
.page-index .section-promotions {
  padding: 80px 0;
  background-color: #f5f5f5;
}

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

.page-index .promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index .promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index .promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-index .promo-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-index .promo-card p {
  font-size: 1em;
  color: var(--text-color-dark);
  padding: 0 20px 20px;
}

.page-index .promo-card .cta-button-small {
  margin: 0 20px 20px;
  display: block;
  text-align: center;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
}

.page-index .promo-card .cta-button-small:hover {
  background: #ffc400;
  color: var(--primary-color);
}

/* Security & Support Section */
.page-index .section-security-support {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

.page-index .section-security-support .section-title {
  color: var(--secondary-color);
}

.page-index .section-security-support .section-title::after {
  background-color: var(--text-color-light);
}

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

.page-index .info-block {
  background: #2a3d5a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border-bottom: 4px solid var(--secondary-color);
}

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

.page-index .info-block p {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-index .info-block img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* FAQ Section */
.page-index .section-faq {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

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

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

.faq-question:hover {
  background: #f5f5f5;
}

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

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

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

.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: var(--text-color-dark);
}

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

.faq-item.active .faq-answer p {
  margin-bottom: 0;
}

/* Blog Section */
.page-index .section-blog {
  padding: 80px 0;
  background-color: #f0f2f5;
}

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

.page-index .blog-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index .blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-index .blog-card h3 {
  font-size: 1.4em;
  padding: 20px 20px 10px;
  font-weight: bold;
}

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

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

.page-index .blog-card p {
  font-size: 0.95em;
  color: var(--text-color-dark);
  padding: 0 20px 10px;
}

.page-index .blog-card .page-index.blog-date {
  display: block;
  font-size: 0.85em;
  color: #777;
  padding: 0 20px 15px;
}

.page-index .blog-card .page-index.read-more {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  margin: 0 20px 20px;
  transition: all 0.3s ease;
}

.page-index .blog-card .page-index.read-more:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2.2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-index .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index .section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-index .intro-item, .page-index .quick-link-card, .page-index .game-card, .page-index .promo-card, .page-index .info-block, .page-index .blog-card {
    padding: 20px;
  }
  .page-index .intro-item h3, .page-index .quick-link-card h3, .page-index .game-card h3, .page-index .promo-card h3, .page-index .info-block h3, .page-index .blog-card h3 {
    font-size: 1.3em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.8em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-index .section-title {
    font-size: 1.5em;
  }
  .page-index .section-intro, .page-index .section-quick-links, .page-index .section-games, .page-index .section-promotions, .page-index .section-security-support, .page-index .section-faq, .page-index .section-blog {
    padding: 50px 0;
  }
  .page-index .intro-grid, .page-index .quick-links-grid, .page-index .games-grid, .page-index .promo-grid, .page-index .security-support-grid, .page-index .blog-grid {
    gap: 20px;
  }
  .page-index .game-card img, .page-index .promo-card img {
    height: 180px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
}