:root {
  --primary-color: #017439; /* Main brand color (green) */
  --secondary-color: #FFFFFF; /* Auxiliary color (white) */
  --register-button-color: #C30808; /* Specific for register/login buttons */
  --login-button-color: #C30808;   /* Specific for register/login buttons */
  --register-login-text-color: #FFFF00; /* Specific for register/login button text */
  --background-color: #FFFFFF; /* Default body background */
  --text-dark: #333333; /* Dark text for light backgrounds */
  --text-light: #ffffff; /* Light text for dark backgrounds */
  --border-color: #e0e0e0;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--background-color); /* Default white background */
  overflow-x: hidden;
}

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

/* Section Titles */
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-index__section-title--light {
  color: var(--text-light);
}

/* Paragraphs */
.page-index__paragraph {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__paragraph--light {
  color: var(--text-light);
}

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

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

.page-index__cta-button--primary:hover {
  background: #00602F; /* Slightly darker green */
  box-shadow: 0 5px 15px 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: #f0f0f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Specific Register/Login Buttons */
.page-index__cta-button--register,
.page-index__cta-button--login {
  background: var(--register-button-color); /* #C30808 */
  color: var(--register-login-text-color); /* #FFFF00 */
  border: 2px solid var(--register-button-color);
}

.page-index__cta-button--register:hover,
.page-index__cta-button--login:hover {
  background: #A80707; /* Slightly darker red */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 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 spacing from fixed header */
  background: linear-gradient(135deg, var(--primary-color), #3498db); /* Example gradient, can be adjusted */
  overflow: hidden;
}

.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 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}


/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

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