/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches shared.css body background for consistency */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

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

/* Buttons */
.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;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

/* Sections */
.page-about__section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for sections */
  color: #ffffff;
}

.page-about__section.page-about__light-bg {
  background-color: #262626; /* Slightly lighter dark background */
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

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

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

.page-about__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #e0e0e0;
}

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

.page-about__list strong {
  color: #26A9E0;
}

/* Content Grid for text and image */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid:nth-of-type(even) {
  grid-template-columns: 1fr;
}

.page-about__image-block {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  margin: 0 auto; /* Center image in its block */
}

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

.page-about__feature-card {
  background-color: #262626;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__feature-card p {
  color: #e0e0e0;
}

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

.page-about__commitment-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__commitment-item p {
  color: #e0e0e0;
}

/* Careers Section */
.page-about__careers-cta {
  margin-top: 30px;
}

/* Contact Section */
.page-about__contact-info {
  text-align: center;
  margin-bottom: 40px;
}

.page-about__contact-info p {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-about__social-media {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.page-about__social-icon img {
  
  
  transition: transform 0.3s ease;
  min-
  min-
}

.page-about__social-icon img:hover {
  transform: translateY(-5px);
}

.page-about__contact-cta {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: #262626;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.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: #26A9E0; /* Brand color for question */
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

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

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

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__content-grid:nth-child(even) {
    grid-template-areas: "image text";
  }
  .page-about__content-grid:nth-child(odd) {
    grid-template-areas: "text image";
  }
  .page-about__content-grid:nth-child(even) .page-about__text-block { grid-area: text; }
  .page-about__content-grid:nth-child(even) .page-about__image-block { grid-area: image; }
  .page-about__content-grid:nth-child(odd) .page-about__text-block { grid-area: text; }
  .page-about__content-grid:nth-child(odd) .page-about__image-block { grid-area: image; }
}

@media (max-width: 1200px) {
  .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;
  }

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-about__section {
    padding: 50px 0;
  }

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

  .page-about__section-description {
    margin-bottom: 40px;
  }

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

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

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__image-block {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px;
  }

  .page-about__feature-grid, .page-about__commitment-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-card, .page-about__commitment-item {
    padding: 20px;
  }

  .page-about__contact-info {
    padding: 0 15px;
  }

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

  .page-about__faq-answer {
    padding: 0 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

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

/* Color contrast safety checks */
/* Body background is #121212 (dark), so text should be light */
.page-about {
  color: #ffffff; 
}

.page-about__card,
.page-about__feature-card,
.page-about__commitment-item,
.page-about__faq-item {
  background-color: #262626; /* Darker than body but still dark, so light text */
  color: #ffffff;
}

.page-about__section-title,
.page-about__sub-title,
.page-about__feature-title,
.page-about__commitment-title {
  color: #26A9E0; /* Brand color, provides good contrast on dark backgrounds */
}

.page-about__faq-question {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff; /* White text on brand color is good contrast */
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

/* Login button specific color */
.page-about__hero-cta-buttons .page-about__btn-primary:last-child {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-about__hero-cta-buttons .page-about__btn-primary:last-child:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}