/* style/index.css */

/* Custom CSS Variables */
:root {
  --primary-color: #017439; /* Green */
  --secondary-color: #FFFFFF; /* White */
  --register-button-bg: #C30808; /* Red */
  --login-button-bg: #C30808; /* Red */
  --button-text-color: #FFFF00; /* Yellow */
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
  --section-padding-y: 60px;
}

/* Base styles for the page content */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Body background is white */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

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

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

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

/* CTA Button Base Style */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding-y) 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%); /* Darker gradient for contrast */
  color: var(--text-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;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--button-text-color); /* Yellow for prominence */
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
  opacity: 0.9;
}

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

.page-index__cta-register {
  background: var(--register-button-bg); /* Red */
  color: var(--button-text-color); /* Yellow */
}

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

.page-index__cta-login {
  background: var(--login-button-bg); /* Red */
  color: var(--button-text-color); /* Yellow */
}

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

/* Introduction Section */
.page-index__introduction-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-index__feature-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 16px;
  color: var(--text-dark);
}