:root {
  --primary-color: #003366; /* Dark Blue */
  --secondary-color: #FFCC00; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --background-dark: #0d0d0d;
  --border-color: #e0e0e0;
}

/* Base styles for the About Us page content */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text for dark body background */
  background-color: var(--background-dark); /* Assume dark body background from shared.css */
  padding-top: 120px; /* Spacing for fixed header on desktop */
}

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

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light); /* Default to light text */
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-about__tagline {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
}

/* --- Hero Section --- */
.page-about__hero-section {
  padding: 80px 0;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-section .page-about__tagline {
  font-size: 22px;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-about__cta-button--primary:hover {
  background: #e6b800; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-about__cta-button--secondary:hover {
  background: rgba(255, 204, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-about__brand-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__brand-content p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-dark);
}

.page-about__values-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-about__values-list li {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-about__values-list strong {
  color: var(--primary-color);
}

.page-about__brand-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Features Section --- */
.page-about__features-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-about__features-section .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__features-section .page-about__tagline {
  color: #e0e0e0;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: var(--text-light);
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filters */
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-about__feature-description {
  font-size: 16px;
  color: #e0e0e0;
}

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

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

.page-about__faq-section .page-about__tagline {
  color: var(--text-dark);
}

.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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 {
  transform: rotate(45deg); /* Change to X or rotate */
  color: var(--secondary-color);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
}

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

.page-about__blog-section .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__blog-section .page-about__tagline {
  color: #e0e0e0;
}

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

.page-about__blog-item {
  background: rgba(255, 255, 255, 0.08);
  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;
}

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

.page-about__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-about__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no color filters */
}

.page-about__blog-content-wrapper {
  padding: 20px;
}

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

.page-about__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-about__blog-item-date {
  font-size: 14px;
  color: #999999;
  display: block;
  text-align: right;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 42px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-about__feature-title {
    font-size: 20px;
  }
  .page-about__blog-item-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 100px !important; /* Spacing for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .page-about__hero-section,
  .page-about__brand-section,
  .page-about__features-section,
  .page-about__faq-section,
  .page-about__blog-section {
    padding: 40px 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__tagline {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__sub-title {
    font-size: 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__brand-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__feature-icon {
    width: 70px;
    height: 70px;
  }
  .page-about__feature-title {
    font-size: 18px;
  }
  
  .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-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  
  .page-about__blog-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__blog-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-about__blog-item-title {
    font-size: 16px;
  }
  .page-about__blog-item-excerpt {
    font-size: 14px;
  }
  .page-about__blog-list {
    gap: 20px;
  }
  .page-about__view-all-button-wrapper .page-about__cta-button {
    width: auto !important; /* Allow button to shrink if content is small */
    min-width: 180px;
  }

  /* General image responsive styles for all images within .page-about */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers for images/buttons are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}