/* style/about.css */
:root {
  --primary-color: #0A2239;
  --secondary-color: #E0B400;
  --accent-color: #DC143C;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --bg-dark: #1a1a2e; /* From shared.css body background */
}

.page-about {
  color: var(--text-on-dark); /* Default text color for page content on dark body background */
  background-color: var(--bg-dark);
  padding-bottom: 60px;
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold color for section titles */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-top: 20px;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
  background: var(--primary-color); /* Dark blue background for hero */
  color: var(--text-on-dark); /* Light text for contrast */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-content {
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* Gold for main title */
}

.page-about__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on gold button */
}

.page-about__cta-button--primary:hover {
  background: #f0c520;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

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

/* Brand Section */
.page-about__brand-section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.page-about__brand-overview {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__brand-text-intro {
  flex: 1;
  line-height: 1.8;
  font-size: 17px;
}

.page-about__brand-image-wrapper {
  flex: 1;
  min-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__pillar-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards on dark body */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__pillar-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-about__pillar-item p,
.page-about__pillar-item li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--text-on-dark);
}

.page-about__value-list,
.page-about__product-list,
.page-about__contact-channels {
  list-style-type: none;
  padding-left: 0;
  margin-top: 15px;
}

.page-about__value-list li,
.page-about__product-list li,
.page-about__contact-channels li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-about__value-list li::before,
.page-about__product-list li::before,
.page-about__contact-channels li::before {
  content: '✔'; /* Custom bullet point */
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background: var(--primary-color); /* Dark blue background */
  color: var(--text-on-dark);
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter on dark blue */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-on-dark);
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--secondary-color); /* Gold for FAQ questions */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--text-on-dark);
  transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.02); /* Very subtle background for answer */
  color: var(--text-on-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Blog Section */
.page-about__blog-section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

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

.page-about__blog-item {
  background: rgba(255, 255, 255, 0.08); /* Card background on dark body */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height cards */
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__blog-image-wrapper {
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-about__blog-item-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-about__blog-content {
  padding: 20px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-about__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold for blog titles */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-about__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-about__blog-item-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-top: auto;
}

.page-about__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__brand-overview {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__brand-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-bottom: 40px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .page-about__brand-section, .page-about__faq-section, .page-about__blog-section {
    padding: 60px 0;
  }
  .page-about__brand-pillars {
    gap: 30px;
  }
  .page-about__pillar-title {
    font-size: 20px;
  }
  .page-about__pillar-item p, .page-about__pillar-item li {
    font-size: 15px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  .page-about__blog-list {
    grid-template-columns: 1fr;
  }
  .page-about__blog-item-title {
    font-size: 18px;
  }
  .page-about__blog-item-excerpt {
    font-size: 14px;
  }
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__brand-image-wrapper,
  .page-about__blog-image-wrapper,
  .page-about__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__hero-description {
    font-size: 15px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__pillar-title {
    font-size: 18px;
  }
  .page-about__blog-item-title {
    font-size: 16px;
  }
}