/* style/index.css */

/* --- General Page Styling --- */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background: #FFFFFF; /* Default body background */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  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: #017439;
  border-radius: 2px;
}

.page-index__section-title--white {
  color: #FFFFFF;
}

.page-index__section-title--white::after {
  background-color: #FFFFFF;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-index__section-description--white {
  color: #f0f0f0;
}

.page-index__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-top: 15px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__dark-bg {
  background: #017439; /* Primary brand color for dark sections */
  color: #ffffff; /* White text for dark background */
}

.page-index__light-bg {
  background: #ffffff;
  color: #333333;
}

/* --- Buttons --- */
.page-index__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: #017439; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-index__btn-primary:hover {
  background: #005f2e; /* Darker shade for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #017439; /* Primary brand color for text */
  text-decoration: none;
  border: 2px solid #017439;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
  transform: translateY(-1px);
}

/* Custom button colors for Register/Login */
.page-index__btn-register,
.page-index__btn-login {
  background: #C30808; /* Custom Red */
  color: #FFFF00; /* Custom Yellow */
}

.page-index__btn-register:hover,
.page-index__btn-login:hover {
  background: #a30606; /* Darker red for hover */
  color: #ffef00;
}

/* --- Image Styling --- */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Consistent border-radius for images */
  object-fit: cover;
  min-width: 200px; /* Global minimum width for content images */
  min-height: 200px; /* Global minimum height for content images */
}