/* style/about.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a; /* From body background info */
  --btn-login-color: #EA7C07;
}

/* Base styles for the page content, considering body background is dark */
.page-about {
  color: var(--text-light); /* Light text on dark body background */
  background-color: var(--bg-dark); /* Ensure main content sections have a background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

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

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__text-block {
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-about__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-light);
}

.page-about__list-item {
  margin-bottom: 10px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--bg-dark); /* Ensure a background for the section */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-light);
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 8px;
  margin-top: 20px; /* Space below image */
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-about__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

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

.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, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-about__btn-secondary {
  background-color: var(--btn-login-color);
  color: var(--secondary-color);
  border: 2px solid var(--btn-login-color);
}

.page-about__btn-secondary:hover {
  background-color: darken(var(--btn-login-color), 10%);
  border-color: darken(var(--btn-login-color), 10%);
}

/* Intro Section */
.page-about__intro-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__intro-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__intro-section .page-about__text-block {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__history-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__grid-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__grid-layout--two-cols {
  grid-template-columns: 1fr 1fr;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
}

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

.page-about__content-wrapper {
  flex: 1;
}

/* Mission and Values Section */
.page-about__mission-values-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__mission-values-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__mission-values-section .page-about__sub-title {
  color: var(--primary-color);
}

.page-about__mission-values-section .page-about__list-item strong {
  color: var(--primary-color);
}

/* Security Section */
.page-about__security-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__security-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__security-section .page-about__list-item {
  color: var(--text-light);
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__team-section .page-about__section-title {
  color: var(--primary-color);
}

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

.page-about__team-member {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter background for cards */
  padding: 30px;
  border-radius: 8px;
  color: var(--text-light);
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--primary-color);
}

.page-about__member-name {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-about__member-role {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-about__member-bio {
  font-size: 0.9em;
  color: var(--text-light);
}

/* Future Section */
.page-about__future-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.page-about__future-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__future-section .page-about__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__faq-section .page-about__section-title {
  color: var(--primary-color);
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter background for FAQ items */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-item details > summary {
  list-style: none;
}

.page-about__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 0.95em;
  color: var(--text-light);
}

/* General dark/light background classes for contrast */
.page-about__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title,
.page-about__light-bg .page-about__text-block,
.page-about__light-bg .page-about__list-item,
.page-about__light-bg .page-about__faq-answer {
  color: var(--text-dark);
}

.page-about__light-bg .page-about__faq-question {
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-about__light-bg .page-about__faq-toggle {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__grid-layout {
    flex-direction: column;
  }

  .page-about__image-wrapper {
    margin-bottom: 30px;
  }
}

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

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

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-about__description {
    font-size: 1em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-content {
    padding: 30px 15px;
  }

  .page-about__intro-section,
  .page-about__history-section,
  .page-about__mission-values-section,
  .page-about__security-section,
  .page-about__team-section,
  .page-about__future-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

  /* Images responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers with images/content */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__history-section,
  .page-about__mission-values-section,
  .page-about__security-section,
  .page-about__team-section,
  .page-about__future-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-about__team-grid {
    grid-template-columns: 1fr;
  }
}