.page-index {
  --primary-color: #0A2342;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #071a30;
  --border-color: #e0e0e0;
  --card-background: #ffffff;
  --button-hover-bg: #e6c200;
  --link-hover-color: #e6c200;
  --footer-bg: #0A2342;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-index .section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-index .text-content {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* 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(--background-dark); /* Fallback */
}

.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;
}

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

.page-index .hero-content h1 {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index .hero-content p {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.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;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .cta-button:hover {
  background: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-index .introduction-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

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

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

.page-index .link-card {
  background: var(--card-background);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
}

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

.page-index .link-card .link-icon {
  width: 120px; /* Increased size for content image, not icon */
  height: 120px; /* Increased size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-index .link-card p {
  font-size: 15px;
  color: #666;
}

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

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

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

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

.page-index .game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.page-index .game-card p {
  font-size: 16px;
  color: #555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index .game-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-index .game-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Promotions Section */
.page-index .promotions-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

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

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

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

.page-index .promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-index .promo-card p {
  font-size: 16px;
  color: #555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index .promo-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-index .promo-button:hover {
  background: var(--button-hover-bg);
}

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

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

.page-index .security-item {
  background: var(--card-background);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index .security-icon {
  width: 100px; /* Increased size for content image, not icon */
  height: 100px; /* Increased size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index .security-item h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index .security-item p {
  font-size: 15px;
  color: #666;
  flex-grow: 1;
}

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

.page-index .support-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

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

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

.page-index .faq-list {
  margin-top: 40px;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

.faq-question h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin: 0;
  flex-grow: 1;
}

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

.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: #f9f9f9;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 15px 25px;
}

.faq-answer p {
  font-size: 16px;
  color: #444;
  margin: 0;
}

/* Latest Blog Section */
.page-index .latest-blog-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

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

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

.page-index .blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index .blog-card h3 {
  font-size: 22px;
  color: var(--primary-color);
  padding: 20px 20px 10px;
}

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

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

.page-index .blog-card p {
  font-size: 16px;
  color: #555;
  padding: 0 20px 15px;
}

.page-index .blog-date {
  font-size: 14px;
  color: #888;
  padding: 0 20px 20px;
  display: block;
}

.page-index .view-all-posts {
  text-align: center;
  margin-top: 50px;
}

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

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image img {
    border-radius: 4px;
  }
  .page-index .hero-content h1 {
    font-size: 36px;
  }
  .page-index .hero-content p {
    font-size: 16px;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index .text-content {
    font-size: 16px;
  }
  .page-index .link-card, .page-index .game-card, .page-index .promo-card, .page-index .security-item, .page-index .blog-card {
    padding: 20px;
  }
  .page-index .link-card h3, .page-index .game-card h3, .page-index .promo-card h3, .page-index .security-item h3, .page-index .blog-card h3 {
    font-size: 20px;
  }
  .page-index .link-card .link-icon, .page-index .security-icon {
    width: 80px;
    height: 80px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 17px;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 30px;
  }
  .page-index .hero-content p {
    font-size: 15px;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-index .section-title {
    font-size: 24px;
  }
  .page-index .link-card h3, .page-index .game-card h3, .page-index .promo-card h3, .page-index .security-item h3, .page-index .blog-card h3 {
    font-size: 18px;
  }
  .page-index .game-image, .page-index .promo-image, .page-index .blog-image {
    height: 150px;
  }
}