/* style/about.css */

/* Variables and Base Styles */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa; /* A very light grey for contrast on dark body */
  --bg-dark-card: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  --btn-login-color: #EA7C07;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Fixed Header Offset - applied to the first content section if body padding is not set by shared.css */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}


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

/* Sections */
.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-about__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 80px 0;
}

.page-about__light-bg .page-about__section-title {
  color: var(--primary-color);
}

.page-about__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%); /* Example gradient with primary color */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
  max-width: 100%; /* Image responsiveness */
  height: auto; /* Image responsiveness */
  display: block;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: var(--btn-login-color); /* Using #EA7C07 for primary action */
  color: var(--text-light);
  border: 2px solid var(--btn-login-color);
}

.page-about__btn-primary:hover {
  background-color: #d16b06; /* Darken on hover */
  border-color: #d16b06;
}

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

.page-about__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

/* Content Sections */
.page-about__content-section .page-about__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 100%; /* Image responsiveness */
}

.page-about__image-center {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 100%; /* Image responsiveness */
}


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

.page-about__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.page-about__card {
  background-color: var(--bg-dark-card); /* For dark sections */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  color: var(--text-light); /* Default to light text for cards on dark sections */
}

.page-about__light-bg .page-about__card {
  background-color: var(--secondary-color); /* White background for cards on light sections */
  color: var(--text-dark);
}

.page-about__card-title,
.page-about__value-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__card-text,
.page-about__value-description {
  font-size: 1em;
  line-height: 1.7;
}

/* Team Section */
.page-about__team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__team-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--primary-color);
  max-width: 100%; /* Image responsiveness */
}

.page-about__team-name {
  font-size: 1.5em;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.page-about__team-role {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 15px;
}

/* Commitment Section */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__commitment-item {
  background-color: var(--bg-dark-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: var(--text-light);
  text-align: left;
}

.page-about__commitment-heading {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__commitment-text {
  font-size: 1em;
  line-height: 1.7;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 100px 0;
}

.page-about__cta-content {
  max-width: 800px;
}

.page-about__cta-title {
  font-size: 2.8em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  color: var(--primary-color);
  user-select: none;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }

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

  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center buttons when stacked */
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__dark-section,
  .page-about__light-bg {
    padding: 50px 0;
  }

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

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__value-title {
    font-size: 1.5em;
  }

  .page-about__team-avatar {
    width: 200px !important;
    height: 200px !important;
  }

  .page-about__team-name {
    font-size: 1.3em;
  }

  .page-about__commitment-heading {
    font-size: 1.3em;
  }

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

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

  /* Image responsiveness for all images within .page-about */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images or content in mobile */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__value-item,
  .page-about__team-member,
  .page-about__commitment-item,
  .page-about__faq-item,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific for button groups if they are flex */
  .page-about__cta-buttons {
    flex-direction: column !important; /* Force column for multiple buttons */
    gap: 10px;
  }

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

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

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
}

/* Ensure no filter is used on images */
.page-about img {
  filter: none !important;
}

/* Content area image CSS dimensions lower bound (200px) */
.page-about__content-area img,
.page-about__text-block img,
.page-about__card img,
.page-about__value-item img,
.page-about__team-member img,
.page-about__commitment-item img,
.page-about__tech-security-section img,
.page-about__history-section img,
.page-about__future-section img {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow width to be flexible, but not below min-width */
    height: auto; /* Allow height to be flexible, but not below min-height */
    object-fit: cover; /* Ensure image covers the area without distortion */
}