/* style/about.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

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

.page-about {
  /* Body background is #08160F (dark), so main text color should be light */
  color: var(--text-main-color); /* #F2FFF6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color); /* #08160F */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px; /* Small top padding, relying on body for header offset */
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Using clamp for responsive H1 */
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 600px; /* Limit max width for button group */
  margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  flex-grow: 1;
  max-width: 250px; /* Max width for individual buttons */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text on dark green gradient */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px var(--glow-color);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* Primary color text on transparent/light background */
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* General Section Styling */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--gold-color); /* Default for dark sections */
}

.page-about__sub-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color); /* Default for dark sections */
}

/* Dark Background Section */
.page-about__dark-bg {
  background-color: var(--background-color); /* #08160F */
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-about__dark-bg p {
  color: var(--text-secondary-color);
}

/* Light Background Section */
.page-about__light-bg {
  background-color: var(--text-main-color); /* #F2FFF6 (light) */
  color: var(--deep-green-color); /* #0A4B2C (dark text for contrast) */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title {
  color: var(--deep-green-color); /* Darker green for titles on light background */
}

.page-about__light-bg .page-about__description,
.page-about__light-bg p,
.page-about__light-bg li {
  color: var(--deep-green-color); /* Darker green for text on light background */
}

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

.page-about__grid-layout--two-cols {
  grid-template-columns: 1fr 1fr;
}

.page-about__card {
  background-color: var(--card-bg-color); /* #11271B */
  color: var(--text-main-color); /* #F2FFF6 */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

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

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

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-about__feature-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.page-about__feature-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--glow-color);
}

.page-about__text-block {
  padding: 20px 0;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary-color);
}

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

.page-about__image-block .page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Contact Section */
.page-about__contact-section {
  text-align: center;
}

.page-about__contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-about__contact-item {
  background-color: var(--card-bg-color); /* #11271B */
  color: var(--text-main-color); /* #F2FFF6 */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__contact-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-about__contact-item p {
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-about__social-media {
  margin-top: 60px;
}

.page-about__social-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__grid-layout--two-cols {
    grid-template-columns: 1fr;
  }
}

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

  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-about__description {
    font-size: 1rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-about__container {
    padding: 30px 15px;
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-about__sub-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  /* Image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__card,
  .page-about__container,
  .page-about__introduction-section,
  .page-about__advantages-section,
  .page-about__commitment-section,
  .page-about__contact-section,
  .page-about__text-block,
  .page-about__contact-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-about__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__grid-layout--reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }

  .page-about__contact-info {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__contact-item {
    max-width: 100%;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none !important;
}

/* Ensure content area images are not too small */
.page-about__content-area img,
.page-about__card img,
.page-about__image-block img {
  min-width: 200px;
  min-height: 200px;
}