/* style/index.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --accent-color: #EA7C07; /* For login/register buttons */
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
}

/* Base styles for the page-index content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Default light background */
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__text-block {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: var(--primary-color); /* Use primary color as background */
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light); /* Light text for dark background */
}

.page-index__hero-title {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--text-light);
  font-weight: bold;
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-index__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--primary {
  background: var(--accent-color); /* Login color */
  color: var(--text-light);
  border: 2px solid var(--accent-color);
}

.page-index__cta-button--primary:hover {
  background: #D46B00; /* Darker version of #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Module 1: Introduction Section */
.page-index__introduction-section {
  background-color: var(--secondary-color);
}

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

.page-index__feature-item {
  background: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-index__feature-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 16px;
  color: var(--text-dark);
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index__quick-access-section .page-index__section-title,
.page-index__quick-access-section .page-index__text-block {
  color: var(--text-light);
}

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

.page-index__link-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-light);
  text-align: left;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__link-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.page-index__link-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 15px;
}

.page-index__link-title {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.page-index__link-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* Module 3: Games Section */
.page-index__games-section {
  background-color: var(--secondary-color);
}

.page-index__game-tabs {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 10px;
}

.page-index__tab-button {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.page-index__tab-button:hover {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}