/* style/index.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #001f4d; /* Slightly darker blue for contrast */
  --border-color: #e0e0e0;
}

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

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

.page-index h1, .page-index h2, .page-index h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-index h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

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

.page-index p {
  margin-bottom: 15px;
}

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-index .cta-button:hover {
  background: #e0a800; /* Darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 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: var(--background-dark);
  color: var(--text-light);
  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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px 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%;
  max-width: 800px;
}

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

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

.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 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(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index .intro-item h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

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

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

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

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

.page-index .access-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

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

.page-index .access-card p {
  font-size: 0.9em;
  color: #666;
}

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

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

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

.page-index .game-tabs {
  margin-top: 40px;
}

.page-index .tab-header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.page-index .tab-pane {
  display: none;
  padding: 30px 0;
}

.page-index .tab-pane.active {
  display: block;
}

.page-index .tab-pane h3 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-index .game-detail-flex {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-index .game-detail-flex:nth-child(even) {
  flex-direction: row-reverse;
}

.page-index .game-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-index .game-text {
  flex: 1;
  min-width: 300px;
}

.page-index .game-text p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.85);
}

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

.page-index .read-more-button:hover {
  background: #0056b3; /* Darker primary */
}

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

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

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

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

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

.page-index .promo-card h3 {
  font-size: 1.4em;
  padding: 15px 20px 10px;
  margin: 0;
}

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

.page-index .promo-card h3 a:hover {
  text-decoration: underline;
}

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

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

.page-index .promo-button:hover {
  background: #e0a800;
}

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

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

.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(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index .security-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-index .security-item p {
  font-size: 0.95em;
  color: #555;
}

.page-index .contact-cta {
  text-align: center;
  margin-top: 50px;
}

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

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.faq-question:hover {
  background: #0056b3; /* Darker primary */
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-light);
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1;
}

.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-dark);
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height */
  padding: 20px 25px;
}

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

/* Blog Section */
.page-index .blog-section {
  padding: 80px 0;
  background: 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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index .blog-card h3 {
  font-size: 1.3em;
  padding: 15px 20px 10px;
  margin: 0;
}

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

.page-index .blog-card h3 a:hover {
  text-decoration: underline;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-index h1 {
    font-size: 2.5em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index h3 {
    font-size: 1.6em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .game-detail-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-index .game-detail-flex:nth-child(even) {
    flex-direction: column;
  }
  .page-index .game-img {
    max-width: 100%;
  }
  .page-index .tab-button {
    margin: 5px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-index h1 {
    font-size: 2em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image {
    margin-bottom: 20px;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-index .intro-section, .page-index .quick-access-section, .page-index .games-section, .page-index .promotions-section, .page-index .security-support-section, .page-index .faq-section, .page-index .blog-section {
    padding: 50px 0;
  }
  .page-index .intro-grid, .page-index .access-grid, .page-index .promotions-grid, .page-index .security-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .tab-header {
    flex-direction: column;
    align-items: center;
  }
  .page-index .tab-button {
    width: 90%;
    margin-bottom: 10px;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index h1 {
    font-size: 1.7em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index .access-icon, .page-index .intro-icon, .page-index .security-icon {
    width: 70px;
    height: 70px;
  }
  .page-index .promo-img, .page-index .blog-img {
    height: 180px;
  }
}