/* style/index.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #343a40;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.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 h1, .page-index h2, .page-index h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-index h2 {
  font-size: 2.2em;
  margin-top: 50px;
  color: var(--text-dark);
}

.page-index h3 {
  font-size: 1.6em;
  margin-top: 20px;
}

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

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

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

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow-color);
  margin: 10px;
}

.page-index .cta-button.primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index .cta-button.primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  text-decoration: none;
}

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

.page-index .cta-button.secondary:hover {
  background: #218838;
  transform: translateY(-2px);
  text-decoration: none;
}

.page-index .cta-button.small {
  padding: 10px 25px;
  font-size: 0.9em;
  border-radius: 5px;
  margin-top: 15px;
}

/* 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, #007bff, #28a745);
  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;
  max-width: 900px; /* Adjust max-width for image */
}

.page-index .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.page-index .hero-content h1 {
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-index .intro-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index .feature-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  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 20px rgba(0, 0, 0, 0.15);
}

.page-index .feature-item img {
  width: 150px; /* Increased size */
  height: 150px; /* Increased size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

/* Quick Links Section */
.page-index .quick-links-section {
  padding: 60px 0;
  background-color: #f0f2f5;
}

.page-index .quick-links-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index .link-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-dark);
}

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

.page-index .link-card img {
  width: 180px; /* Increased size */
  height: 180px; /* Increased size */
  object-fit: contain;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

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

.page-index .link-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 0;
  flex-grow: 1;
}

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

.page-index .games-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-index .tab-button.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: #e9f5ff;
  border-radius: 5px 5px 0 0;
}

.page-index .tab-content {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.page-index .tab-content.active {
  display: grid;
}

.page-index .game-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index .game-card img {
  width: 100%;
  max-width: 250px; /* Adjusted image size for game cards */
  height: 180px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

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

.page-index .game-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 0;
  flex-grow: 1;
}

/* Promotions Section */
.page-index .promotions-section {
  padding: 60px 0;
  background-color: #f0f2f5;
}

.page-index .promotions-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index .promo-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index .promo-card img {
  width: 100%;
  max-width: 250px; /* Adjusted image size for promo cards */
  height: 180px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

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

.page-index .promo-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 0;
  flex-grow: 1;
}

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

.page-index .security-support-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index .info-block {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .info-block img {
  width: 150px; /* Increased size */
  height: 150px; /* Increased size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index .info-block h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-index .faq-section {
  padding: 60px 0;
  background-color: #f0f2f5;
}

.page-index .faq-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--card-bg);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-index .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-dark);
  text-align: left;
}

.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 20px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

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

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

.page-index .blog-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.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: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

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

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

.page-index .blog-card .card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

.page-index .article-date {
  font-size: 0.85em;
  color: #777;
  margin-top: 15px;
  text-align: left;
}

.page-index .view-all-button {
  margin-top: 50px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index h1 {
    font-size: 2.2em;
  }

  .page-index h2 {
    font-size: 1.8em;
  }

  .page-index h3 {
    font-size: 1.3em;
  }

  .page-index p {
    font-size: 1em;
  }

  .page-index .hero-section {
    padding: 40px 15px;
  }

  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-index .tab-button {
    padding: 10px 15px;
    font-size: 1em;
    margin: 0 5px;
  }

  .page-index .intro-features, .page-index .links-grid, .page-index .games-grid, .page-index .promo-grid, .page-index .security-support-grid, .page-index .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-index .feature-item img, .page-index .link-card img, .page-index .info-block img {
    width: 120px;
    height: 120px;
  }
  .page-index .game-card img, .page-index .promo-card img {
    max-width: 200px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-index h1 {
    font-size: 1.8em;
  }

  .page-index h2 {
    font-size: 1.6em;
  }

  .page-index h3 {
    font-size: 1.2em;
  }

  .page-index .hero-content p {
    font-size: 1em;
  }

  .page-index .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .page-index .cta-button {
    width: 80%;
    max-width: 300px;
    margin: 10px 0;
  }

  .page-index .tab-header {
    flex-direction: column;
    align-items: center;
  }

  .page-index .tab-button {
    width: 100%;
    margin: 5px 0;
    border-bottom: none;
    border-radius: 5px;
  }

  .page-index .tab-button.active {
    border-bottom: none;
    border-radius: 5px;
  }

  .page-index .faq-question {
    padding: 12px 15px;
  }

  .page-index .faq-question h3 {
    font-size: 1.1em;
  }

  .page-index .faq-toggle {
    font-size: 20px;
  }

  .page-index .faq-answer {
    padding: 15px;
  }

  .page-index .blog-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-index h1 {
    font-size: 1.5em;
  }

  .page-index h2 {
    font-size: 1.4em;
  }

  .page-index h3 {
    font-size: 1.1em;
  }

  .page-index .container {
    padding: 0 15px;
  }

  .page-index .feature-item img, .page-index .link-card img, .page-index .info-block img {
    width: 100px;
    height: 100px;
  }
  .page-index .game-card img, .page-index .promo-card img {
    max-width: 150px;
    height: 120px;
  }
}