/* style/about.css */

/* Custom properties for colors */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-color: #C30808;
  --login-color: #C30808;
  --background-color: #FFFFFF; /* Matches shared.css --secondary-color for body */
  --register-login-font-color: #FFFF00;

  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-color); /* Ensure consistent background */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

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

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

.page-about__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

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

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

.page-about__image--centered {
  margin: 40px auto;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #aed8b9 100%); /* Lighter green gradient */
  color: var(--text-light);
}

.page-about__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  line-height: 1.6;
  color: var(--text-light);
}

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure minimum width for buttons */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background-color: var(--register-color); /* Custom color for register */
  color: var(--register-login-font-color); /* Custom font color */
  border: 2px solid var(--register-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background-color: #a00606; /* Slightly darker red */
  border-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--register-login-font-color); /* Custom font color */
  border: 2px solid var(--register-color); /* Use register color for consistency */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
  background-color: var(--register-color);
  color: var(--register-login-font-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about__grid-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-about__grid-item .page-about__image {
  margin-bottom: 25px;
}

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

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

/* History & Achievements Section */
.page-about__history-achievements {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 60px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  align-self: flex-start;
  padding-right: 60px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  align-self: flex-end;
  padding-left: 60px;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--text-light);
  border: 3px solid var(--register-color); /* Highlight with custom color */
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -8px; /* Half of width */
}

.page-about__timeline-item:nth-child(even)::after {
  left: -8px; /* Half of width */
}

.page-about__timeline-year {
  font-size: 22px;
  font-weight: bold;
  color: var(--register-login-font-color); /* Highlight year with custom font color */
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 16px;
  color: var(--text-light);
}

/* Core Values Section */
.page-about__core-values {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-about__value-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-top: 5px solid var(--primary-color);
}

.page-about__value-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__value-description {
  font-size: 16px;
  color: var(--text-dark);
}

/* Expert Team Section */
.page-about__expert-team {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-about__team-member {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 4px solid var(--register-login-font-color); /* Highlight with custom font color */
}

.page-about__member-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--register-login-font-color); /* Highlight name with custom font color */
  margin-bottom: 10px;
}

.page-about__member-role {
  font-size: 16px;
  color: var(--text-light);
}

/* Future Vision Section */
.page-about__future-vision {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-about__future-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}