/* style/index.css */

/* Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-register-text: var(--text-color-light); /* Ensuring contrast */
  --button-login-text: var(--text-color-light);   /* Ensuring contrast */
  --background-color: #FFFFFF;
  --card-bg-color: #ffffff;
  --section-bg-light: #ffffff;
  --section-bg-dark: #017439; /* Using primary color for dark sections */
}

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light background */
  background-color: var(--background-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); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background for visual appeal */
}

.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;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-index__hero-title {
  font-size: 3.2em;
  color: var(--text-color-light); /* White text on hero background */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.2em;
  color: var(--text-color-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping 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;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Crucial for max-width to work correctly */
}

.page-index__cta-button--primary {
  background: var(--button-register-bg); /* Red for register/login */
  color: var(--button-register-text); /* White for contrast */
  border: 2px solid var(--button-register-bg);
  box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-index__cta-button--primary:hover {
  background: #a30707; /* Darken red on hover */
  border-color: #a30707;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(195, 8, 8, 0.5);
}

.page-index__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(1, 116, 57, 0.4);
}

.page-index__cta-button--secondary:hover {
  background: #005c2e;
  border-color: #005c2e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(1, 116, 57, 0.5);
}

/* General Section Styles */
.page-index__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--button-register-bg);
  border-radius: 2px;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-color-dark);
}

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