/* style/index.css */
:root {
  --primary-color: #1A237E; /* Dark Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #1A237E;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-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: 20px;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
}

.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 {
  font-size: 1.1em;
  text-align: center;
  color: #666;
  margin-bottom: 60px;
}

.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;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-index .cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index .cta-button.secondary {
  background: var(--primary-color);
  color: var(--text-light);
  margin-left: 20px;
}

.page-index .cta-button.secondary:hover {
  background: #0f154e; /* Slightly darker primary */
}

.page-index .cta-button.small {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 20px;
}

/* 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);
  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;
}

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

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

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

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

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

.page-index .intro-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

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

.page-index .intro-image {
  flex: 1;
  text-align: center;
}

.page-index .intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-index .quick-access-section .section-title, .page-index .quick-access-section .section-description {
  color: var(--text-light);
}

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

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

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

.page-index .quick-link-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-index .quick-link-card p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Games Section */
.page-index .games-section {
  padding: 80px 0;
  background-color: var(--background-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 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 30px;
}

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

.page-index .game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index .game-card .card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index .game-card p {
  font-size: 1em;
  color: #555;
  padding: 0 20px;
  margin-bottom: 20px;
}

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

.page-index .promotions-section .section-title, .page-index .promotions-section .section-description {
  color: var(--text-light);
}

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

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

.page-index .promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  padding-bottom: 30px;
}

.page-index .promo-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index .promo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index .promo-card .card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index .promo-card p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 20px;
  margin-bottom: 20px;
}

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

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

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

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

.page-index .feature-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index .feature-item .feature-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

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

.page-index .faq-section .section-title, .page-index .faq-section .section-description {
  color: var(--text-light);
}

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

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

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

.page-index .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 rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index .faq-question:hover {
  background: #0f154e; /* Slightly darker primary */
}

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

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

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

.page-index .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: #2b358d; /* Lighter shade of primary */
  color: rgba(255, 255, 255, 0.9);
  font-size: 1em;
}

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-radius: 0 0 5px 5px;
}

.page-index .faq-answer p {
  margin: 0;
}

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

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

.page-index .blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index .blog-card .card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  min-height: 50px;
}

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

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

.page-index .blog-summary {
  font-size: 0.95em;
  color: #555;
  padding: 0 20px;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-index .hero-title {
    font-size: 2.8em;
  }
  .page-index .hero-description {
    font-size: 1.2em;
  }
  .page-index .intro-grid {
    flex-direction: column;
  }
  .page-index .intro-image {
    margin-top: 30px;
  }
  .page-index .section-title {
    font-size: 2em;
  }
  .page-index .section-description {
    margin-bottom: 40px;
  }
  .page-index .quick-links-grid, .page-index .games-grid, .page-index .promotions-grid, .page-index .security-support-grid, .page-index .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index .cta-button.secondary {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-title {
    font-size: 2.2em;
  }
  .page-index .hero-description {
    font-size: 1em;
  }
  .page-index .cta-button {
    width: 100%;
    margin-bottom: 15px;
  }
  .page-index .cta-button.secondary {
    margin-left: 0;
  }
  .page-index .section-title {
    font-size: 1.8em;
  }
  .page-index .section-description {
    margin-bottom: 30px;
  }
  .page-index .quick-links-grid, .page-index .games-grid, .page-index .promotions-grid, .page-index .security-support-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-answer {
    padding: 15px 20px;
  }
  .page-index .blog-card .card-title {
    font-size: 1.3em;
  }
}