/* style/about.css */

/* Root variables for page-specific colors, ensuring BEM naming is respected by not defining global --primary-color etc. here */
/* Instead, use the custom colors directly or infer from shared.css */

.page-about {
  /* Default text color for light background (from shared.css --secondary-color: #FFFFFF) */
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--secondary-color); /* Should be #FFFFFF from shared.css */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-bg {
  background-color: var(--primary-color); /* #017439 */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: var(--secondary-color); /* #FFFFFF */
  color: #333333;
}

.page-about__dark-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-about__heading {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #017439; /* Default heading color */
}

.page-about__heading--white {
  color: #ffffff;
}

.page-about__sub-heading {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #017439; /* Default sub-heading color */
}

.page-about__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__paragraph--white {
  color: #ffffff;
}

/* Hero Section */
.page-about__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); /* Desktop and Mobile */
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure container takes full width for responsive */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px; /* Constrain content width */
  margin-bottom: 30px;
}

.page-about__hero-title {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__hero-image {
  width: 100%;
  margin-top: 30px; /* Space between content and image */
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* For mobile responsiveness */
}

.page-about__btn-register {
  background: #C30808; /* Custom Register color */
  color: #FFFFFF; /* Prioritize contrast over #FFFF00 for WCAG AA */
}

.page-about__btn-register:hover {
  background: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-login {
  background: #C30808; /* Custom Login color */
  color: #FFFFFF; /* Prioritize contrast over #FFFF00 for WCAG AA */
}

.page-about__btn-login:hover {
  background: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image Block */
.page-about__image-block {
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* List styles */
.page-about__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 700px;
  text-align: left;
}

.page-about__list-item {
  background-color: #f9f9f9;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Features Grid */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card img {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain image width within card */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__feature-description {
  font-size: 16px;
  color: #555555;
}

/* Commitment Grid */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__commitment-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-about__commitment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-about__commitment-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__commitment-description {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
}