/* style/index.css */

/* --- Global Page Styles --- */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Default body background */
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #017439;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-index__section-title--light {
  color: #FFFFFF;
}

.page-index__section-title--light::after {
  background-color: #FFFFFF;
}

.page-index__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-index__text-block--light {
  color: #f0f0f0;
}

/* --- Buttons --- */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-index__cta-button--register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom color for register font */
  border: 2px solid #C30808;
  margin-right: 15px;
}

.page-index__cta-button--register:hover {
  background-color: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--login {
  background-color: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom color for login font */
  border: 2px solid #C30808;
}

.page-index__cta-button--login:hover {
  background-color: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background-color: #ffffff;
  color: #017439; /* Brand primary color for text */
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005a2d;
  border-color: #005a2d;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__btn-secondary--small {
    padding: 8px 20px;
    font-size: 14px;
    margin-top: 15px;
}

/* --- Sections --- */
.page-index__introduction-section,
.page-index__games-section,
.page-index__security-support-section,
.page-index__news-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
}

.page-index__dark-bg {
  background-color: #017439; /* Brand primary color for dark background */
  color: #FFFFFF;
  padding: 60px 0;
}

/* --- 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); /* Fixed header offset */
  overflow: hidden; /* Prevent content overflow */
}

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