/* style/index.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-dark: #002244;
  --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;
  margin-bottom: 20px;
}

.page-index section:nth-of-type(odd) {
  background-color: var(--bg-light);
}

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

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

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

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

.page-index h3 {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-index .text-center {
  text-align: center;
}

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  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 10px rgba(0, 0, 0, 0.2);
}

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

.page-index .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: normal;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.page-index .btn-small:hover {
  background: #004488;
  transform: translateY(-1px);
}

/* 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: 80px 20px;
  background: var(--primary-color); /* Fallback for content area */
}

.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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: rgba(0, 51, 102, 0.85); /* Dark overlay for text readability */
  border-radius: 12px;
  margin-top: -80px; /* Overlap with image slightly */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index .hero-content h1 {
  color: var(--text-light);
  font-size: 3.5em;
  margin-bottom: 20px;
}

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

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

.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-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

/* Quick Access Section */
.page-index .quick-access-section {
  background-color: #ffffff;
  padding: 80px 0;
}

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

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

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

.page-index .access-link-card .card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

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

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

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

.page-index .core-games-section p {
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-index .game-card {
  background-color: #002e5b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

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

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

.page-index .game-card p {
  font-size: 0.95em;
  color: #bbbbbb;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
  text-align: left;
}

.page-index .game-card .btn-small {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
}

.page-index .game-card .btn-small:hover {
  background-color: #e6b800;
}

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

.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-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-index .promo-card .btn-small {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

/* Security & Support Section */
.page-index .security-support-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.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-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

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

.page-index .faq-section p {
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

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

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

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  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: #e6b800;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f0f5f8;
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  background: #f0f5f8;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  text-align: left;
}

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

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

.page-index .blog-post-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index .blog-post-card h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  text-align: left;
}

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

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

.page-index .blog-post-card .post-meta {
  font-size: 0.85em;
  color: #777777;
  margin: 0 20px 10px 20px;
  text-align: left;
}

.page-index .blog-post-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
  text-align: left;
}

.page-index .blog-post-card .btn-small {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

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

@media (max-width: 768px) {
  .page-index section {
    padding: 40px 0;
  }
  .page-index .hero-section {
    padding: 60px 15px;
  }
  .page-index .hero-content {
    margin-top: -60px;
    padding: 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2.2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 20px;
  }
  .page-index h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index .intro-grid, .page-index .access-links-grid, .page-index .game-categories, .page-index .promo-grid, .page-index .security-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index .intro-icon, .page-index .card-icon, .page-index .security-icon {
    width: 80px;
    height: 80px;
  }
  .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: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.8em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index .cta-button {
    width: 100%;
    max-width: 280px;
  }
  .page-index .intro-item, .page-index .access-link-card, .page-index .game-card, .page-index .promo-card, .page-index .security-item, .page-index .blog-post-card {
    padding: 20px;
  }
  .page-index .game-image, .page-index .promo-image, .page-index .blog-image {
    height: 180px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
}