/* style/about.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --background-light: #F4F7FB;
  --card-bg: #FFFFFF;
  --text-main: #1F2D3D;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--background-light);
}

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-about__heading {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about__sub-heading {
  font-size: 28px;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-about__text {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-main);
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top spacing as body handles header offset */
  background-color: var(--background-light);
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: 3.2em; /* Using em for relative sizing, will be clamped */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.6);
}

.page-about__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
}

/* General Introduction */
.page-about__general-introduction .page-about__text {
  text-align: left;
  font-size: 17px;
}

/* History and Milestones */
.page-about__history-milestones {
  background-color: var(--card-bg);
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__content-flex--reverse {
  flex-direction: row-reverse;
}

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

.page-about__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-about__text-content {
  flex: 2;
}

/* Mission and Vision */
.page-about__mission-vision {
  background-color: var(--background-light);
}

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

.page-about__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-about__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-text {
  font-size: 15px;
  color: var(--text-main);
}

.page-about__core-values {
  margin-top: 60px;
  text-align: left;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__value-item {
  font-size: 16px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--text-main);
}

.page-about__value-item::before {
  content: '✔';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Team Section */
.page-about__team-section {
  background: var(--primary-color);
  color: #ffffff;
}

.page-about__team-section .page-about__heading {
  color: #ffffff;
}

.page-about__team-section .page-about__text {
  color: #ffffff;
  text-align: left;
}

/* Why Choose Us */
.page-about__why-choose-us {
  background-color: var(--card-bg);
}

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

.page-about__feature-item {
  text-align: left;
}

.page-about__feature-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__feature-text {
  font-size: 15px;
  color: var(--text-main);
}

.page-about__cta-bottom {
  margin-top: 60px;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--background-light);
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f0f6ff; /* Lighter hover for contrast */
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: #f9fbfd; /* Slightly different background for answer */
  border-radius: 0 0 10px 10px;
  text-align: left;
  font-size: 15px;
  color: var(--text-main);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__heading {
    font-size: 32px;
  }
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__description {
    font-size: 1.1em;
  }
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__image-wrapper {
    margin-bottom: 30px;
  }
  .page-about__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-image img {
    border-radius: 4px;
  }
  .page-about__main-title {
    font-size: 2em; /* Smaller font size for mobile */
    margin-bottom: 15px;
  }
  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
  }

  .page-about__section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__sub-heading {
    font-size: 22px;
  }
  .page-about__text {
    font-size: 15px;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__value-item {
    font-size: 15px;
  }
  .page-about__image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px;
  }
  .page-about__faq-answer p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__heading {
    font-size: 24px;
  }
  .page-about__sub-heading {
    font-size: 20px;
  }
  .page-about__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-about__card-grid, .page-about__features-grid {
    grid-template-columns: 1fr;
  }
}