/* style/index.css */

/* Custom CSS variables for brand colors */
:root {
  --primary-color: #CC0000; /* Deep Red */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4; /* From shared.css body background */
  --bg-dark: #222222; /* A darker background for contrast sections */
  --border-color: #e0e0e0;
}

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

/* Container for sections */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-index__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 20px; /* Add some internal padding */
}

.page-index__section-description {
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button Base Style */
.page-index__cta-button,
.page-index__card-button,
.page-index__access-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width calculation */
}

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

/* Image styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
}

/* 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); /* Desktop and mobile header offset */
  background-color: var(--bg-dark); /* Dark background for hero content */
  color: var(--text-light);
  overflow: hidden; /* Prevent content overflow */
}

.page-index__hero-section .page-index__section-title {
  color: var(--secondary-color); /* Gold title on dark background */
}
.page-index__hero-section h1 {
  color: var(--secondary-color); /* Gold for H1 */
  font-size: 48px;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.page-index__hero-section p {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 20px;
}

.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%; /* Ensure container takes full width */
  box-sizing: border-box;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px; /* Limit content width */
}

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

.page-index__intro-section .page-index__section-title {
  color: var(--primary-color);
}

.page-index__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-index__intro-text {
  flex: 2;
  font-size: 17px;
}

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

.page-index__intro-image {
  flex: 1;
  min-width: 300px;
}
.page-index__intro-image img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark red background */
  color: var(--text-light);
}

.page-index__quick-access-section .page-index__section-title {
  color: var(--secondary-color); /* Gold title on dark red */
}
.page-index__quick-access-section .page-index__section-description {
  color: var(--text-light);
}

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

.page-index__access-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color); /* Gold button */
  color: var(--text-dark);
  padding: 18px 25px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__access-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__button-icon {
  font-size: 24px;
  margin-right: 15px;
  line-height: 1;
}

.page-index__quick-access-image {
    text-align: center;
    margin-top: 40px;
}
.page-index__quick-access-image img {
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.page-index__games-section .page-index__section-title {
  color: var(--primary-color);
}

.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-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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