/* style/index.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #222222;
  --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: 20px;
}

.page-index h1, .page-index h2, .page-index h3, .page-index h4, .page-index h5, .page-index h6 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index h1 {
  font-size: 3.2em;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

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

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

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

.page-index a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

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

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

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

.page-index .cta-button.secondary:hover {
  background: #A30000; /* Darker red for hover */
}

/* 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: linear-gradient(135deg, var(--secondary-color) 0%, #333333 100%); /* Darker background for text contrast */
  color: var(--text-light);
}

.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 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-index .hero-content p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #eee;
}

.page-index .hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

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

.page-index .intro-section p {
  font-size: 1.1em;
  text-align: justify;
}

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

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

.page-index .quick-access-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #ccc;
}

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

.page-index .access-card {
  background: #3a3a3a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index .access-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background: var(--secondary-color);
}

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

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

.page-index .access-card:hover h3 {
  color: var(--text-light);
}

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

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

.page-index .game-item {
  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;
}

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

.page-index .game-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index .game-item h3 {
  margin: 20px 0 10px;
  font-size: 1.6em;
}

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

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

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

/* Promotions Section */
.page-index .promotions-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color), #A30000);
  color: var(--text-light);
}

.page-index .promotions-section h2 {
  color: var(--primary-color);
}

.page-index .promotions-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #eee;
}

.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: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index .promo-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

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

.page-index .promo-card p {
  color: #ddd;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-index .promo-card .promo-button {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1em;
}

.page-index .promo-card .promo-button:hover {
  background: #CCA300;
  color: var(--text-dark);
}

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

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

.page-index .security-item {
  text-align: center;
  padding: 25px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-index .contact-info {
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 40px;
  border-radius: 10px;
}

.page-index .contact-info p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index .contact-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index .contact-info li {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #ccc;
}

.page-index .contact-info .cta-button {
  background: var(--primary-color);
  color: var(--secondary-color);
}

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

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

.page-index .faq-section p {
  text-align: center;
  margin-bottom: 40px;
  color: #eee;
}

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

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

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #3a3a3a;
  border: 1px solid #444;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index .faq-question:hover {
  background: #4a4a4a;
}

.page-index .faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--primary-color);
}

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

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

.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: #2a2a2a;
  color: #ccc;
  border-radius: 0 0 8px 8px;
}

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

.page-index .faq-item.active .faq-question {
  border-radius: 8px 8px 0 0;
  background: var(--secondary-color);
}

.page-index .faq-item.active .faq-question h3 {
  color: var(--text-light);
}

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

.page-index .blog-section p {
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

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

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

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

.page-index .blog-card p {
  padding: 0 20px;
  font-size: 0.95em;
  color: #555;
  text-align: left;
}

.page-index .blog-card .read-more {
  display: inline-block;
  margin: 20px;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index .blog-card .read-more:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: 2.8em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index .hero-content p {
    font-size: 1.1em;
  }
  .page-index .game-categories,
  .page-index .promotions-grid,
  .page-index .security-grid,
  .page-index .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index h1 {
    font-size: 2.2em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.5em;
  }
  .page-index .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }
  .page-index .cta-button {
    width: 80%;
    margin: 0 auto;
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index .cta-button.secondary {
    margin-left: 0;
  }
  .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 .access-links-grid,
  .page-index .game-categories,
  .page-index .promotions-grid,
  .page-index .security-grid,
  .page-index .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .access-card,
  .page-index .game-item,
  .page-index .promo-card,
  .page-index .security-item,
  .page-index .blog-card {
    margin: 0 15px;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 20px;
  }
  .page-index .faq-answer {
    padding: 10px 20px 20px;
  }
  .page-index .contact-info {
    padding: 30px 20px;
  }
  .page-index .contact-info p {
    font-size: 1.1em;
  }
  .page-index .contact-info li {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-index h1 {
    font-size: 1.8em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index h3 {
    font-size: 1.3em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    width: 90%;
    font-size: 15px;
  }
  .page-index .game-item img {
    height: 180px;
  }
  .page-index .promo-card img {
    max-height: 150px;
  }
  .page-index .security-item img {
    width: 80px;
    height: 80px;
  }
  .page-index .blog-card img {
    height: 160px;
  }
}