/* style/index-core-features.css */

/* Base styles for the page content */
.page-index-core-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background is light */
}

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

.page-index-core-features__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color, #017439);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-index-core-features__text-block {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Card styles */
.page-index-core-features__card {
  background: #ffffff;
  border-radius: 8px;
  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;
  height: 100%; /* Ensure equal height in grids */
  display: flex;
  flex-direction: column;
}

.page-index-core-features__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-core-features__card-title {
  font-size: 24px;
  color: var(--primary-color, #017439);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-index-core-features__card-text {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
  flex-grow: 1; /* Push button to bottom */
}

/* Button styles */
.page-index-core-features__cta-button,
.page-index-core-features__btn-primary,
.page-index-core-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px 10px 0 10px; /* Add margin for spacing between buttons */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index-core-features__btn-register,
.page-index-core-features__btn-login {
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-index-core-features__btn-register:hover,
.page-index-core-features__btn-login:hover {
  background: #E01C1C;
  border-color: #E01C1C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-core-features__btn-primary {
  background: var(--primary-color, #017439);
  color: #ffffff;
  border: 2px solid var(--primary-color, #017439);
}

.page-index-core-features__btn-primary:hover {
  background: #005a2e; /* Darker primary color for hover */
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-core-features__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #017439);
  border: 2px solid var(--primary-color, #017439);
}

.page-index-core-features__btn-secondary:hover {
  background: var(--primary-color, #017439);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-core-features__btn-text-link {
  color: var(--primary-color, #017439);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  display: block;
}

.page-index-core-features__btn-text-link:hover {
  text-decoration: underline;
}

.page-index-core-features__btn-view-all {
  background: var(--primary-color, #017439);
  color: #ffffff;
  border: 2px solid var(--primary-color, #017439);
  margin-top: 40px;
}

/* Section specific background colors */
.page-index-core-features__light-bg {
  background-color: var(--secondary-color, #FFFFFF);
  color: #333333;
}

.page-index-core-features__dark-bg {
  background-color: var(--primary-color, #017439);
  color: #ffffff;
}

/* Image styles */
.page-index-core-features img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images cover their area */
}

/* HERO Section */
.page-index-core-features__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 offset */
  background: linear-gradient(135deg, #017439, #000000); /* Darker gradient for hero */
}

.page-index-core-features__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-core-features__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-index-core-features__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* White text on dark hero background */
}

.page-index-core-features__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}