/* style/about.css */

/* Basic Reset & Body Styles (from shared.css, but ensuring text color for contrast) */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for sub-titles on light background */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__description,
.page-about p,
.page-about li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #ffffff; /* Default text color */
}

.page-about__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-about__list li {
  margin-bottom: 8px;
  color: #ffffff;
}

/* Section Backgrounds */
.page-about__dark-section {
  background-color: #1a1a1a; /* Dark background from body */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #ffffff; /* White background for contrast */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title,
.page-about__light-bg .page-about__description,
.page-about__light-bg p,
.page-about__light-bg li {
  color: #333333; /* Ensure dark text on light background */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Fallback background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

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

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
}

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

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

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

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

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

.page-about__btn-link {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
}

.page-about__btn-link:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

/* Content Grid for sections */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__text-block {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for text block on dark section */
  border-radius: 8px;
}

.page-about__light-bg .page-about__text-block {
  background-color: #f8f8f8; /* Light background for text block on light section */
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image-full {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-10px);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.page-about__value-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
}

/* Advantages Section */
.page-about__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-about__advantage-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-about__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-about__advantage-card .page-about__advantage-title {
  color: #017439;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-about__advantage-card p,
.page-about__advantage-card li {
  color: #333333;
}

/* Contact Section */
.page-about__contact-info {
  margin-top: 30px;
  font-size: 1.2em;
  text-align: center;
}

.page-about__contact-info p {
  margin-bottom: 10px;
}

.page-about__contact-us .page-about__btn-secondary {
  margin-top: 30px;
  border-color: #ffffff;
  color: #ffffff;
}

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

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

.page-about__faq-item {
  background-color: #f8f8f8;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  background-color: #e6f7ed; /* Light green background for question */
  border-bottom: 1px solid #d9d9d9;
}

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
  padding-top: 0;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: #333333;
}

.page-about__faq-answer .page-about__btn-link {
  margin-top: 10px;
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-about__faq-answer .page-about__btn-link:hover {
  background-color: #005a2b;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3.5em;
  }

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

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

  .page-about__sub-title {
    font-size: 1.6em;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  
  .page-about__content-grid .page-about__image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
}

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

  .page-about__hero-section {
    height: auto;
    min-height: 60vh;
    padding: 100px 0 60px 0; /* Adjust padding for mobile hero */
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    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__hero-buttons,
  .page-about__contact-us .page-about__container,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-about__sub-title {
    font-size: 1.4em;
  }

  .page-about__values-grid,
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-about__value-item,
  .page-about__advantage-card {
    padding: 20px;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__image-wrapper,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__advantages-grid,
  .page-about__faq-list,
  .page-about__contact-info {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__text-block {
    padding: 15px;
  }

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

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-about__sub-title {
    font-size: 1.2em;
  }
}