/* style/about.css */
/* body đã có padding-top: var(--header-offset) từ shared.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Default text color for dark background */
  background-color: var(--color-background); /* Default background */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Slightly dim the image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
  margin-top: 100px; /* Adjust to push content below the image top */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__intro-text {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--color-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensures button adapts to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

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

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--color-gold);
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2.2vw, 2em);
  color: var(--color-primary);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
}

.page-about p {
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.page-about__value-list,
.page-about__milestone-list,
.page-about__future-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-about__value-list li,
.page-about__milestone-list li,
.page-about__future-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.page-about__value-list li::before,
.page-about__milestone-list li::before,
.page-about__future-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

.page-about__value-list li strong,
.page-about__milestone-list li strong,
.page-about__future-list li strong {
  color: var(--color-text-main);
}

.page-about__mission-vision-section {
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__mission-vision-section .page-about__section-title,
.page-about__mission-vision-section .page-about__sub-title {
  color: var(--color-primary);
  text-shadow: none;
}

.page-about__mission-vision-section p,
.page-about__mission-vision-section li,
.page-about__mission-vision-section li strong {
  color: #333333;
}

.page-about__offerings-section {
  background-color: #f0f0f0; /* Another light background */
  color: #333333;
}

.page-about__offerings-section .page-about__section-title,
.page-about__offerings-section .page-about__section-description {
  color: var(--color-primary);
  text-shadow: none;
}

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

.page-about__offering-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--color-deep-green);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  color: #555555;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__card-button {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__card-button:hover {
  background-color: var(--color-secondary);
}

.page-about__cta-bottom {
  margin-top: 60px;
}

.page-about__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-about__faq-section {
  background-color: #f8f8f8;
  color: #333333;
}

.page-about__faq-section .page-about__section-title {
  color: var(--color-primary);
  text-shadow: none;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--color-deep-green);
  cursor: pointer;
  background-color: #fdfdfd;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: #f0f0f0;
  border-bottom: none;
}

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

.page-about__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--color-primary);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

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

/* Ensure details summary marker is hidden */
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-item summary {
  list-style: none;
}

.page-about__cta-final-section {
  padding: 100px 0;
  background-color: var(--color-deep-green); /* Darker green background */
}

.page-about__cta-content {
  max-width: 800px;
}

.page-about__cta-final-section .page-about__section-title,
.page-about__cta-final-section .page-about__intro-text {
  color: var(--color-text-main);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-about__cta-button--primary {
  background: var(--button-gradient);
  color: var(--color-text-main);
  border: none;
}

.page-about__cta-button--secondary {
  background: transparent;
  color: var(--color-text-main);
  border: 2px solid var(--color-gold);
}

.page-about__cta-button--secondary:hover {
  background: var(--color-gold);
  color: var(--color-background);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__hero-content {
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-content {
    padding: 20px;
  }
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__offerings-grid {
    grid-template-columns: 1fr;
  }
  .page-about__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button,
  .page-about__card-button,
  .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__hero-image,
  .page-about__content-image,
  .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__offerings-section,
  .page-about__commitment-section,
  .page-about__achievements-future-section,
  .page-about__faq-section,
  .page-about__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__cta-button--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 10px 20px 15px;
  }
}