/* style/index.css */

/* Variables */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.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: 2.8em;
  text-align: center;
  color: var(--primary-color); /* H1 in hero should be primary color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Text color for CTA button */
  text-decoration: none;
  border-radius: 8px;
  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.2);
}

.page-index .cta-button:hover {
  background: #FFC107; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* 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%, #001f4d 100%); /* Dark blue gradient */
  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-height: 500px; /* Limit height for aesthetic */
  max-width: 100%;
  display: block;
  border-radius: 12px;
  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%;
}

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

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

/* Module 1: Intro Section */
.page-index .intro-section {
  background-color: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-index .intro-section h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-index .intro-section > p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

.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: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-index .intro-item img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: 50%; /* Make images circular for icons */
  object-fit: cover;
  border: 4px solid var(--primary-color);
  padding: 5px;
}

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

.page-index .intro-item p {
  color: var(--text-dark);
}

/* Module 2: Quick Access Section */
.page-index .quick-access-section {
  background-color: var(--secondary-color);
  padding: 60px 0;
  text-align: center;
  color: var(--text-light);
}

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

.page-index .quick-access-section > p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

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

.page-index .quick-link-card {
  background: #001f4d; /* Darker blue */
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index .quick-link-card:hover {
  transform: translateY(-8px);
  background-color: #002a5c; /* Even darker blue */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-index .quick-link-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  padding: 5px;
}

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

.page-index .quick-link-card p {
  color: #c0c0c0;
  font-size: 0.95em;
}

/* Module 3: Games Section */
.page-index .games-section {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

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

.page-index .games-section > p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.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);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-index .game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

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

.page-index .game-card p {
  color: var(--text-dark);
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-index .game-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  font-weight: bold;
  margin-top: auto; /* Push button to bottom */
  transition: background-color 0.3s ease;
}

.page-index .game-button:hover {
  background: #FFC107;
}

/* Module 4: Promotions Section */
.page-index .promotions-section {
  background-color: var(--bg-dark); /* Dark background for promotions */
  padding: 60px 0;
  text-align: center;
  color: var(--text-light);
}

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

.page-index .promotions-section > p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #c0c0c0;
}

.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: #2a2a2a; /* Slightly lighter dark for card */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-index .promo-card img {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

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

.page-index .promo-card p {
  color: #e0e0e0;
  flex-grow: 1;
}

.page-index .promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: auto;
  transition: background-color 0.3s ease;
}

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

/* Module 5: Security & Support Section */
.page-index .security-support-section {
  background-color: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

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

.page-index .security-support-section > p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-index .ss-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-index .ss-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  padding: 5px;
}

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

.page-index .ss-item p {
  color: var(--text-dark);
}

.page-index .contact-cta {
  margin-top: 60px;
  padding: 30px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* Module 6: FAQ Section */
.page-index .faq-section {
  background-color: #f0f2f5; /* Light grey background for contrast */
  padding: 60px 0;
  text-align: center;
}

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

.page-index .faq-section > p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

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

.page-index .faq-question:hover {
  background: #f5f5f5;
  color: var(--secondary-color);
}

.page-index .faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--secondary-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);
}

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

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.page-index .faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-index .faq-link-button {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-index .faq-link-button:hover {
  background: #FFC107;
}

/* Module 7: Blog Section */
.page-index .blog-section {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

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

.page-index .blog-section > p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-index .blog-card {
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

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

.page-index .blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.page-index .blog-card h3 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin: 20px 20px 10px 20px;
}

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

.page-index .blog-card span {
  display: block;
  font-size: 0.85em;
  color: #777;
  padding: 15px 20px 20px 20px;
  margin-top: auto;
}

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

.page-index .copyright-info {
  text-align: center;
  padding: 20px;
  background-color: var(--secondary-color);
  color: #c0c0c0;
  font-size: 0.9em;
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2.5em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.3em;
  }
  .page-index .intro-grid,
  .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;
    gap: 20px;
  }
  .page-index .intro-item img,
  .page-index .quick-link-card img,
  .page-index .ss-item img {
    width: 80px;
    height: 80px;
  }
  .page-index .promo-card img {
    width: 120px;
    height: 120px;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-answer {
    padding: 0 20px;
  }
  .page-index .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-index .blog-card h3 {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 2em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
}