/* style/about.css */

/* Base styles for the About page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

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

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

.page-about__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 120px 0 80px 0; /* Adjusted for header offset */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand color as background */
}

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  z-index: 1;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
}

.page-about__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-about__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Grid Layouts */
.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-about__grid--team {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card styles */
.page-about__card {
  background-color: #1a1a1a; /* Darker background for cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.page-about__card--dark {
  background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color */
  border: 1px solid #017439;
  color: #ffffff;
}

.page-about__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__card p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-about__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Dark section styling */
.page-about__dark-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

/* Mission & Vision Section */
.page-about__mission-vision .page-about__card {
  align-items: center;
  text-align: center;
}

/* Team Section */
.page-about__team-member {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #017439;
}

.page-about__team-name {
  font-size: 1.5em;
  margin-bottom: 5px;
  color: #ffffff;
}

.page-about__team-role {
  font-size: 1.1em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__team-bio {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-about__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #005f2e;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #2a2a2a;
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Responsive Design */

/* Desktop specific adjustments */
@media (min-width: 1025px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
  }
}

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

  .page-about__section-title {
    font-size: 2.5em;
  }

  .page-about__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    padding-bottom: 40px;
  }

  .page-about__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-about__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__card-image {
    height: auto;
  }

  /* Button responsive */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 1.5em;
  }

  .page-about__team-avatar {
    width: 120px;
    height: 120px;
  }

  .page-about__team-name {
    font-size: 1.3em;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
  }
}