/* style/index.css */
:root {
  --primary-color: #1A2E44;
  --secondary-color: #E0B354;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-dark: #122133;
  --border-color: #e0e0e0;
}

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

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

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

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

.page-index h1,
.page-index h2,
.page-index h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-index h2 {
  font-size: 2.5em;
}

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

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

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

.page-index .cta-button:hover {
  background: #c79f45; /* Slightly darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index .cta-button-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index .cta-button-secondary:hover {
  background: #152538; /* Slightly darker primary color */
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* HERO Main Image Area */
.page-index .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: var(--bg-dark); /* Fallback for transparency */
  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;
  position: relative;
  z-index: 1;
}

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

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
  padding: 20px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
  margin-top: -80px; /* Overlap with image slightly for better design */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index .hero-content h1 {
  margin-bottom: 15px;
  font-size: 3.5em;
  line-height: 1.2;
}

.page-index .hero-content p {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

/* Module 1: Introduction Section */
.page-index .introduction-section {
  background-color: var(--bg-light);
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index .intro-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index .intro-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index .intro-icon {
  width: 150px; /* Larger icon size */
  height: 150px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-index .intro-item p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 0;
  max-width: none;
}

/* Module 2: Quick Access Links */
.page-index .quick-access-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-index .quick-access-section p {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.page-index .quick-link-card:hover {
  transform: translateY(-5px);
  background: #2b4461; /* Slightly lighter primary */
}

.page-index .quick-link-card .card-img {
  width: 180px; /* Increased image size for cards */
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-index .quick-link-card p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  max-width: none;
}

/* Module 3: Core Games/Services Introduction */
.page-index .games-section {
  background-color: #ffffff;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index .game-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-index .game-card .game-img {
  width: 100%;
  height: 250px; /* Consistent height for game images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index .game-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
}

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

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

.page-index .game-card p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 0;
  max-width: none;
}

/* Module 4: Promotions */
.page-index .promotions-section {
  background-color: var(--bg-light);
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index .promo-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-index .promo-card .promo-img {
  width: 100%;
  height: 200px; /* Consistent height for promo images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index .promo-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
}

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

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

.page-index .promo-card p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 0;
  max-width: none;
}

/* Module 5: Security & Customer Service */
.page-index .security-support-section {
  background-color: #ffffff;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index .security-item {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index .security-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index .security-icon {
  width: 150px; /* Larger icon size */
  height: 150px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-index .security-item p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 0;
  max-width: none;
}

/* Module 6: FAQ Common Questions Area */
.page-index .faq-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index .faq-section p {
  color: rgba(255, 255, 255, 0.8);
}

.page-index .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index .faq-question:hover {
  background: #2b4461; /* Slightly lighter primary */
}

.page-index .faq-question h3 {
  margin: 0;
  font-size: 1.4em;
  color: var(--text-light);
  text-align: left;
  flex-grow: 1;
}

.page-index .faq-toggle {
  font-size: 2em;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 25px;
  transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

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

.page-index .faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.8;
  max-width: none;
}

.page-index .faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-index .faq-answer a:hover {
  color: var(--primary-color);
}

/* Module 7: Latest Blog Content */
.page-index .blog-section {
  background-color: var(--bg-light);
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index .blog-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.page-index .blog-card .blog-img {
  width: 100%;
  height: 200px; /* Consistent height for blog images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index .blog-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

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

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

.page-index .blog-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 15px;
  max-width: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: 2.8em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index h3 {
    font-size: 1.5em;
  }
  .page-index .hero-content {
    margin-top: -60px;
    padding: 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2.8em;
  }
  .page-index .hero-content p {
    font-size: 1.1em;
  }
  .page-index .intro-grid, .page-index .quick-links-grid, .page-index .games-grid, .page-index .promo-cards-grid, .page-index .security-grid, .page-index .blog-articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-index section {
    padding: 40px 0;
  }
  .page-index h1 {
    font-size: 2.2em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.3em;
  }
  .page-index p {
    font-size: 1em;
  }
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image img {
    border-radius: 8px;
  }
  .page-index .hero-content {
    margin-top: -40px;
    padding: 10px;
  }
  .page-index .hero-content h1 {
    font-size: 2.2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 20px;
  }
  .page-index .intro-item, .page-index .quick-link-card, .page-index .game-card, .page-index .promo-card, .page-index .security-item, .page-index .blog-card {
    padding: 20px;
  }
  .page-index .intro-icon, .page-index .security-icon {
    width: 120px;
    height: 120px;
  }
  .page-index .quick-link-card .card-img {
    width: 150px;
    height: 150px;
  }
  .page-index .game-card .game-img, .page-index .promo-card .promo-img, .page-index .blog-card .blog-img {
    height: 180px;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1.2em;
  }
  .page-index .faq-toggle {
    font-size: 1.8em;
  }
  .page-index .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index h1 {
    font-size: 1.8em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
  .page-index p {
    font-size: 0.9em;
  }
  .page-index .hero-content h1 {
    font-size: 1.8em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .intro-grid, .page-index .quick-links-grid, .page-index .games-grid, .page-index .promo-cards-grid, .page-index .security-grid, .page-index .blog-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index .intro-icon, .page-index .security-icon {
    width: 100px;
    height: 100px;
  }
  .page-index .quick-link-card .card-img {
    width: 120px;
    height: 120px;
  }
  .page-index .game-card .game-img, .page-index .promo-card .promo-img, .page-index .blog-card .blog-img {
    height: 150px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 1.5em;
  }
}