/* style/index.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --background-color-light: #FFFFFF;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-register-text: #FFFF00;
  --button-login-text: #FFFF00;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color-light); /* Body background is light */
}

/* General Section Spacing */
.page-index__section-spacing {
  padding: 60px 0;
}

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

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

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

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

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

/* CTA Button Styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__cta-button:hover {
  background: #005a2e; /* Slightly darker primary on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__btn-primary:hover {
  background: #005a2e;
}

.page-index__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-index__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__btn-text:hover {
  color: #005a2e;
}

/* Custom button colors for Register/Login in Hero */
.page-index__btn-register {
  background: var(--button-register-bg);
  color: var(--button-register-text);
  margin-right: 15px;
}

.page-index__btn-register:hover {
  background: #a30606; /* Slightly darker red */
}

.page-index__btn-login {
  background: var(--button-login-bg);
  color: var(--button-login-text);
}

.page-index__btn-login:hover {
  background: #a30606; /* Slightly darker red */
}

/* 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: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-color-light);
}

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

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

.page-index__hero-content h1 {
  color: var(--primary-color);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
}

.page-index__hero-content p {
  font-size: 19px;
  color: var(--text-color-dark);
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Intro Section */
.page-index__intro-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.page-index__intro-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

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

.page-index__intro-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Quick Access Section (Dark Background) */
.page-index__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-index__quick-link-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

.page-index__quick-link-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-index__quick-link-card h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-color-light);
}