/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#121212), so text should be light */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for sections */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #262626; /* Dark grey for contrast on dark body */
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 25px;
  color: #26A9E0; /* Brand primary color for titles */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #1a1a1a; /* Dark background for hero */
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Ensure image wrapper does not exceed max width */
  margin-bottom: 20px;
}

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

.page-about__hero-content {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: 3.2em;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1e87b8;
  border-color: #1e87b8;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__login-btn {
  background-color: #EA7C07;
  border-color: #EA7C07;
  color: #ffffff;
}

.page-about__login-btn:hover {
  background-color: #c96706;
  border-color: #c96706;
}

.page-about__btn-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.page-about__btn-link:hover {
  color: #1e87b8;
}

/* Flex containers for two-column layouts */
.page-about__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__flex-container:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text order */
}

.page-about__content-column,
.page-about__image-column {
  flex: 1;
}

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

/* List styles */
.page-about__value-list,
.page-about__commitment-list,
.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 700px;
  text-align: left;
}

.page-about__list-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent background for list items */
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1.05em;
  color: #f0f0f0;
  border-left: 4px solid #26A9E0;
}

/* Products Grid */
.page-about__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__product-card {
  background-color: #1a1a1a; /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #ffffff;
}

.page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin: 15px 20px 10px;
}

.page-about__card-text {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-about__product-card .page-about__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  max-width: none; /* Override max-width for full card width */
}

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

/* Team Section */
.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__team-member {
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  color: #ffffff;
}

.page-about__member-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__member-name {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__member-role {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-about__faq-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #262626; /* Darker background for question */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: #333333;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: #f0f0f0;
  line-height: 1.8;
  background-color: #1a1a1a;
}

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

/* Details element specific styling for FAQ */
.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−'; /* Change to minus when open */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }

  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__flex-container:nth-child(even) {
    flex-direction: column; /* Reset alternation on smaller screens */
  }

  .page-about__content-column, .page-about__image-column {
    flex: none;
    width: 100%;
  }

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

  .page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__flex-container,
  .page-about__products-grid,
  .page-about__team-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-about__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1.1em;
    margin-bottom: 25px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-about__flex-center {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__product-card .page-about__btn-secondary {
    width: 100%;
    margin: 0;
    padding: 12px 20px;
  }

  .page-about__product-card {
    padding-bottom: 20px; /* Add padding to bottom for button spacing */
  }

  .page-about__card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-about__list-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }

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

  .page-about__faq-answer {
    font-size: 1em;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__section-title {
    font-size: 1.6em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}