/* style/index.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

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

.page-index-h1, .page-index-h2, .page-index-h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

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

.page-index-h2 {
  font-size: 2.2em;
  margin-top: 40px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-index-h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

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

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

.page-index-p-hero {
  font-size: 1.2em;
  color: var(--text-color-light);
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-index-cta-secondary:hover {
  background: #0056b3; /* Slightly darker primary */
  color: var(--text-color-light);
}

.page-index-btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-index-btn-small:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

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

/* 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(--primary-color) 0%, #0056b3 100%); /* Blue gradient for background */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.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;
  position: relative;
  z-index: 1;
}

.page-index .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-light);
}

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  margin-top: -50px; /* Overlap with image slightly for visual appeal */
}

/* Module 1: Introduction */
.page-index .introduction-section {
  background: var(--background-white);
  padding: 60px 0;
}

.page-index .introduction-section p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index .introduction-section strong {
  color: var(--primary-color);
}

.page-index .page-index-grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index .page-index-intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

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

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

.page-index .page-index-quick-link {
  display: block;
  padding: 20px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-index .page-index-quick-link:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-index .page-index-game-card {
  background: var(--background-white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .page-index-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

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

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

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

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

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

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

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

.page-index .page-index-promo-card {
  background: var(--background-white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .page-index-promo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

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

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

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

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

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

/* Module 5: Security & Customer Service */
.page-index .security-cs-section {
  background: var(--background-white);
  padding: 60px 0;
}

.page-index .security-cs-section p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index .security-cs-section strong {
  color: var(--primary-color);
}

.page-index .page-index-security-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.page-index .page-index-contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-index .page-index-contact-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #444;
}

.page-index .page-index-contact-list li strong {
    color: var(--secondary-color);
}

/* Module 6: FAQ */
.page-index .faq-section {
  background: var(--background-light);
  padding: 60px 0;
}

.page-index .page-index-faq-list {
  margin-top: 40px;
}

.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(--background-white);
  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.15em;
  color: var(--primary-color);
  text-align: left;
}

.page-index .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-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: #fdfdfd;
}

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

.page-index .faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #444;
}

/* Module 7: Blog */
.page-index .blog-section {
  background: var(--background-white);
  padding: 60px 0;
}

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

.page-index .page-index-blog-card {
  background: var(--background-white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .page-index-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

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

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

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

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

.page-index .page-index-blog-summary {
  padding: 0 20px;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
  display: block;
}

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

/* 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.4em;
  }
  .page-index .page-index-grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-index .hero-content {
      margin-top: 0;
      padding: 15px;
  }
  .page-index .hero-image {
      margin-bottom: 15px;
  }
}

@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-cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 8px;
  }
  .page-index .page-index-quick-link {
    font-size: 1em;
    padding: 15px;
  }
  .page-index .page-index-game-card img, .page-index .page-index-promo-card img {
    height: 160px;
  }
  .page-index .faq-question {
    padding: 12px 15px;
  }
  .page-index .faq-question h3 {
    font-size: 1em;
  }
  .page-index .faq-toggle {
    font-size: 1.5em;
  }
  .page-index .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
  .page-index .page-index-blog-card h3 {
    font-size: 1.2em;
    margin: 10px 15px 8px;
  }
  .page-index .page-index-blog-summary, .page-index .page-index-blog-date {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-index-h1 {
    font-size: 1.5em;
  }
  .page-index-h2 {
    font-size: 1.4em;
  }
  .page-index-cta-button {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
  }
  .page-index .page-index-game-cards-grid, .page-index .page-index-promotions-grid, .page-index .page-index-blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .page-index-intro-text, .page-index .page-index-security-text {
    order: 2;
  }
  .page-index .page-index-intro-image, .page-index .page-index-security-image {
    order: 1;
    margin-bottom: 20px;
  }
}