/* style/about.css */

/* General page styling */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

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

/* Highlighted text */
.page-about__highlight {
  color: var(--secondary-color, #FFD700); /* Gold color for highlights */
}

/* Section styling */
.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff; /* Ensure title is white on dark background */
}

/* --- H1 Title Section --- */
.page-about__title-section {
  position: relative;
  padding: 120px 0 80px; /* Desktop padding-top for fixed header */
  background: linear-gradient(135deg, var(--primary-color, #1A237E), #0d0d0d); /* Dark blue gradient */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-about__cta-button--primary {
  background: var(--secondary-color, #FFD700); /* Gold */
  color: #1A237E; /* Dark blue text for contrast */
}

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

.page-about__cta-button--secondary {
  background: var(--primary-color, #1A237E); /* Dark blue */
  color: #ffffff; /* White text */
  border: 2px solid var(--secondary-color, #FFD700); /* Gold border */
}

.page-about__cta-button--secondary:hover {
  background: #0d124b; /* Darker blue */
  border-color: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Brand Introduction Section --- */
.page-about__brand-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
}

.page-about__dark-section {
  background-color: var(--primary-color, #1A237E); /* Dark blue background */
  color: #ffffff;
}

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

.page-about__brand-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__brand-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  /* filter: brightness(0.9); /* Slight darkening for aesthetic, not color change */
}

.page-about__brand-item-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--secondary-color, #FFD700); /* Gold title */
}

.page-about__brand-item p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-about__value-list,
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__value-list li,
.page-about__commitment-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 16px;
  color: #e0e0e0;
}

.page-about__value-list li::before,
.page-about__commitment-list li::before {
  content: '✓';
  color: var(--secondary-color, #FFD700);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__inline-link {
  color: var(--secondary-color, #FFD700);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__inline-link:hover {
  color: #e0b800;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
}

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

/* FAQ container style */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a; /* Slightly lighter dark background for FAQ item */
}

/* FAQ default state - answer hidden */
.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;
  color: #e0e0e0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height to ensure expansion */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important for priority, large enough for any content */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--primary-color, #1A237E); /* Dark blue background for expanded answer */
  border-radius: 0 0 5px 5px;
  color: #ffffff;
}

/* Question style */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #3a3a3a; /* Darker background for question */
  border: 1px solid #4a4a4a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

.page-about__faq-question:active {
  background: #5a5a5a;
}

/* Question title style */
.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: #ffffff; /* White text for question */
}

/* Toggle icon */
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #FFD700); /* Gold toggle */
  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: #ffffff; /* White when active */
  transform: rotate(180deg); /* Rotate for minus sign effect */
}

/* --- Blog List Section --- */
.page-about__blog-section {
  padding: 80px 0;
  background-color: var(--primary-color, #1A237E); /* Dark blue background */
  color: #ffffff;
}

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

.page-about__blog-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  /* filter: brightness(0.9); /* Slight darkening for aesthetic, not color change */
}

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

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

.page-about__blog-item-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--secondary-color, #FFD700); /* Gold title */
  line-height: 1.3;
}

.page-about__blog-item-excerpt {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-about__cta-buttons--center {
    justify-content: center;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__blog-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__title-section {
    padding: 100px 0 60px; /* Mobile padding-top for fixed header */
    min-height: 300px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important; /* Force full width on mobile */
    box-sizing: border-box !important; /* Force full width on mobile */
    white-space: normal !important; /* Ensure text wraps */
    word-wrap: break-word !important; /* Ensure text wraps */
  }

  .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-item {
    padding: 25px;
  }
  .page-about__brand-image {
    height: 180px;
  }
  .page-about__brand-item-title {
    font-size: 20px;
  }
  .page-about__brand-item p,
  .page-about__value-list li,
  .page-about__commitment-list li {
    font-size: 15px;
  }

  /* FAQ Mobile Adjustments */
  .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-item-title {
    font-size: 18px;
  }
  .page-about__blog-item-excerpt {
    font-size: 14px;
  }
  .page-about__blog-image {
    height: 180px;
  }
  /* Image responsive fix */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}