/* style/about.css */

/* Base styles for the page content, ensuring light text on dark body background */
.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 */
}

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

/* Section styling */
.page-about__hero-section,
.page-about__mission-vision-section,
.page-about__values-section,
.page-about__journey-section,
.page-about__products-services-section,
.page-about__security-support-section,
.page-about__cta-final-section,
.page-about__faq-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

/* Specific background colors for sections */
.page-about__dark-section {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color for contrast */
}

/* Hero Section */
.page-about__hero-section {
  padding-top: calc(80px + var(--header-offset, 120px)); /* Account for fixed header */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 600px;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2; /* Subtle background image */
}

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

.page-about__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* General Titles */
.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  margin: 20px auto 0;
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width */
  max-width: 100%; /* Ensure button doesn't overflow */
}

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

.page-about__btn-primary:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Content Grids */
.page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-about__text-block {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card-like background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: #f0f0f0;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

/* Images within content */
.page-about__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* Light text for card content */
}

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

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

.page-about__card-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Journey Section */
.page-about__journey-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
  position: relative;
}

.page-about__journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #26A9E0;
  transform: translateX(-50%);
  z-index: 0;
}

.page-about__timeline-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  position: relative;
  color: #f0f0f0;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: #26A9E0;
  border-radius: 50%;
  top: 30px;
  z-index: 1;
  left: -28px; /* For left aligned items */
  border: 3px solid #1a1a2e; /* Match body background */
}

.page-about__journey-timeline .page-about__timeline-item:nth-child(odd) {
  text-align: right;
  padding-right: 40px;
}

.page-about__journey-timeline .page-about__timeline-item:nth-child(odd)::before {
  left: auto;
  right: -28px;
}

.page-about__timeline-item h3 {
  color: #26A9E0;
  margin-bottom: 10px;
}

/* Products & Services */
.page-about__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-about__product-card .page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for product images */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-about__product-card .page-about__card-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__product-card p {
  flex-grow: 1; /* Allow paragraph to take available space */
  margin-bottom: 20px;
}

.page-about__product-card .page-about__btn-secondary {
  align-self: flex-start; /* Align button to start */
  margin-top: auto; /* Push button to the bottom */
}


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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.3em;
  color: #ffffff;
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  color: #26A9E0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 20px 25px;
}

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

.page-about__faq-answer .page-about__btn-secondary {
  margin-top: 10px;
}

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

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

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

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

  /* Fixed header offset for mobile */
  .page-about__hero-section {
    padding-top: calc(40px + var(--header-offset, 120px)) !important; /* Adjust for smaller screens */
    min-height: 450px;
  }

  .page-about__hero-title {
    font-size: 2.2em;
    padding: 0 10px;
  }

  .page-about__hero-description {
    font-size: 1em;
    padding: 0 10px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-about__section-description {
    padding: 0 15px;
  }

  .page-about__sub-title {
    font-size: 1.4em;
  }

  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__product-grid,
  .page-about__journey-timeline {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__journey-timeline::before {
    left: 20px; /* Adjust timeline line position */
    transform: translateX(0);
  }

  .page-about__timeline-item {
    text-align: left !important; /* Force left alignment for all items */
    padding-left: 50px; /* Space for dot */
    padding-right: 25px;
  }

  .page-about__timeline-item::before {
    left: 15px !important; /* Align dot with line */
    right: auto !important;
    top: 25px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px; /* Add padding to buttons container */
  }

  /* Images, Videos, Buttons responsive rules for mobile */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__journey-section,
  .page-about__products-services-section,
  .page-about__security-support-section,
  .page-about__cta-final-section,
  .page-about__faq-section,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__product-grid,
  .page-about__journey-timeline,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed padding-left/right here to avoid double padding if container already has it */
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .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;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  
  .page-about__cta-buttons {
    flex-direction: column !important; /* Ensure vertical stacking for CTA buttons */
  }

  /* Ensure content area images are at least 200px wide for mobile, but responsive */
  .page-about__content-area img,
  .page-about__text-block img,
  .page-about__value-card img,
  .page-about__product-card img {
    min-width: 200px;
    max-width: 100% !important;
    height: auto !important;
  }
}