/* style/about.css */

/* Custom Colors */
:root {
  --af88-primary: #11A84E;
  --af88-secondary: #22C768;
  --af88-bg-card: #11271B;
  --af88-bg-main: #08160F;
  --af88-text-main: #F2FFF6;
  --af88-text-secondary: #A7D9B8;
  --af88-border: #2E7A4E;
  --af88-glow: #57E38D;
  --af88-gold: #F2C14E;
  --af88-divider: #1E3A2A;
  --af88-deep-green: #0A4B2C;
  --af88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--af88-text-main); /* Default text color for dark background */
  background-color: var(--af88-bg-main); /* Assumed from shared.css body background */
  line-height: 1.6;
}

/* General Section Styles */
.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-section {
  background-color: var(--af88-bg-main);
  color: var(--af88-text-main);
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--af88-primary);
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: var(--af88-gold);
  max-width: 800px;
  margin: 0 auto 20px;
}

.page-about__description {
  font-size: 1.1em;
  color: var(--af88-text-secondary);
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-about__text-block {
  font-size: 1.05em;
  color: var(--af88-text-main);
  margin-bottom: 20px;
  text-align: left;
}

/* Buttons */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--af88-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-about__btn-secondary:hover {
  background: var(--af88-secondary);
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
  overflow: hidden;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-about__feature-card {
  background-color: var(--af88-bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--af88-text-main);
  height: 100%;
}

.page-about__card-bg {
  background-color: var(--af88-bg-card);
  border: 1px solid var(--af88-border);
}

.page-about__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 1.6em;
  color: var(--af88-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-description {
  font-size: 1em;
  color: var(--af88-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-about__value-item {
  background-color: var(--af88-bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--af88-text-main);
}

.page-about__value-title {
  font-size: 1.5em;
  color: var(--af88-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__value-description {
  font-size: 1em;
  color: var(--af88-text-secondary);
}

/* Technology Section */
.page-about__tech-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-about__tech-content .page-about__text-block {
  flex: 1;
}

.page-about__tech-image {
  flex: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__faq-item {
  background-color: var(--af88-bg-card);
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 20px 30px;
  border: 1px solid var(--af88-border);
  color: var(--af88-text-main);
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--af88-primary);
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--af88-gold);
}

.page-about__faq-answer {
  padding-top: 15px;
  font-size: 1em;
  color: var(--af88-text-secondary);
  line-height: 1.7;
  text-align: justify;
}

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

/* Final CTA */
.page-about__cta-final .page-about__description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-about__tech-content {
    flex-direction: column;
  }
  .page-about__tech-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px !important; /* Mobile padding */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 15px; /* For stacked buttons */
  }
  .page-about__feature-grid, .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__feature-image, .page-about__tech-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-about__feature-card, .page-about__value-item, .page-about__faq-item {
    padding: 20px;
  }
  .page-about__faq-item summary {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    font-size: 0.95em;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__feature-card,
  .page-about__value-item,
  .page-about__tech-content,
  .page-about__faq-list,
  .page-about__cta-final,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}