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

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #0d0d0d; /* Giả định màu nền body từ shared.css là màu tối */
  --button-login: #EA7C07;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Mặc định cho nền tối của hero */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, body đã xử lý header-offset */
  color: var(--text-light);
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Làm tối ảnh để văn bản dễ đọc hơn */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--secondary-color);
}

.page-about__btn-primary, .page-about__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-about__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.page-about__btn--large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

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

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-about__light-bg {
  background: var(--background-light);
  color: var(--text-dark);
}

.page-about__dark-bg {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-about__light-bg .page-about__section-title {
  color: var(--primary-color);
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__grid-title,
.page-about__dark-bg .page-about__product-title a,
.page-about__dark-bg .page-about__product-description,
.page-about__dark-bg .page-about__faq-qtext {
  color: var(--text-light);
}

.page-about__dark-bg .page-about__text-block a,
.page-about__light-bg .page-about__text-block a {
  color: var(--button-login); /* Màu liên kết nổi bật */
  text-decoration: underline;
}

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

.page-about__grid--reverse .page-about__grid-item:first-child {
  order: 2;
}

.page-about__grid--reverse .page-about__grid-item:last-child {
  order: 1;
}

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

.page-about__text-block {
  font-size: 1.05rem;
  margin-bottom: 15px;
  line-height: 1.7;
}

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

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

.page-about__value-card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  color: var(--text-dark);
}

.page-about__value-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

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

.page-about__value-description {
  font-size: 1rem;
  line-height: 1.6;
}

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

.page-about__product-card {
  background: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-about__product-card h3,
.page-about__product-card p {
  padding: 0 20px;
}

.page-about__product-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-about__product-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__product-title a:hover {
  text-decoration: underline;
}

.page-about__product-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__product-card .page-about__btn-secondary {
  margin: 0 20px 20px 20px;
  text-align: center;
  align-self: flex-start;
}

.page-about__promotions-content {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.page-about__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.page-about__promo-item {
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-about__promo-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-about__faq-section {
  padding-bottom: 60px;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background: var(--secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: var(--text-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: #f9f9f9;
}

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

.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-about__main-title {
    font-size: 2rem;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

  .page-about__grid--reverse .page-about__grid-item:first-child {
    order: initial;
  }
  
  .page-about__grid--reverse .page-about__grid-item:last-child {
    order: initial;
  }

  .page-about__image-content,
  .page-about__value-icon,
  .page-about__product-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__value-card,
  .page-about__product-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__values-grid,
  .page-about__products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__product-card .page-about__btn-secondary {
    width: calc(100% - 40px);
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}