/* style/about.css */

/* Base styles for the about page */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__text-block p {
  margin-bottom: 1em;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-about__text-block strong {
  color: #26A9E0; /* Highlight keywords with brand color */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  filter: none !important;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  background: rgba(18, 18, 18, 0.7); /* Slightly darker background for hero content to ensure contrast */
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Call to Action Buttons */
.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__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't exceed container width */
}

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

.page-about__btn-primary:hover {
  background-color: #1a7bb0; /* Darker shade on hover */
  border-color: #1a7bb0;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand primary color for text */
  border: 2px solid #26A9E0;
}

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

.page-about__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

/* Image styles */
.page-about__image-full {
  display: block;
  width: 100%;
  height: auto;
  margin: 40px 0;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  filter: none !important;
}

.page-about__image-centered {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  filter: none !important;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__grid-layout--reverse {
  grid-template-columns: 1fr 1fr; /* Default order */
}

.page-about__grid-layout img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  filter: none !important;
}

/* Core Values Section */
.page-about__dark-section {
  background-color: #1a1a1a; /* Darker background for contrast */
  padding: 80px 20px;
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #26A9E0; /* Brand color on dark background */
}

.page-about__dark-section .page-about__text-block p {
  color: #f0f0f0;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-about__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card p {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #121212; /* Match body background for consistency */
  padding: 60px 20px;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: #26A9E0; /* Brand color for questions */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: #f0f0f0;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.03);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-about__grid-layout--reverse {
    grid-template-columns: 1fr;
  }
  .page-about__grid-layout .page-about__image-right,
  .page-about__grid-layout .page-about__image-left {
    order: -1; /* Image appears first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is correct */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-area {
    padding: 40px 15px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  /* Mobile responsive images, videos, and containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
    filter: none !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-content,
  .page-about__faq-list,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .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; /* Prevent horizontal scroll */
  }
  .page-about__grid-layout,
  .page-about__values-grid {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section padding is correct */
  }
}

/* Ensure content area images are not styled smaller than 200px */
.page-about__content-area img,
.page-about__text-block img,
.page-about__card img {
  min-width: 200px;
  min-height: 200px;
  width: auto;
  height: auto;
  filter: none !important;
}

.page-about__light-bg {
  background-color: #1a1a1a; /* Adjusted for dark theme */
  color: #ffffff;
}