/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #007bff; /* A slightly different blue for hover/accent */
  --accent-color: #EA7C07; /* Login button color */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #f0f0f0; /* Slightly off-white for contrast */
  --border-color: #e0e0e0;
}

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

/* 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 spacing */
  background-color: var(--background-light); /* Ensure light background for hero section */
}

.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 4px 15px rgba(0, 0, 0, 0.1);
}

.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%;
  max-width: 800px; /* Constrain content width */
}

.page-index__hero-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.2em;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color); /* Use login color for primary CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button:hover {
  background: #d66a00; /* Slightly darker orange */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--inverted {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-index__cta-button--inverted:hover {
    background: #1f8ec7; /* Slightly darker primary color */
}

/* General Section Styles */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

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

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

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

.page-index__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__text-center {
    text-align: center;
}

/* Module 1: Introduction Section */
.page-index__introduction-section {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

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

.page-index__feature-item {
  background: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

.page-index__feature-item h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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