/* style/about.css */

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

/* Base styles for the page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--anhem888-text-main); /* Light text on dark body background */
  background-color: var(--anhem888-background); /* Ensure body background is dark */
}

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--anhem888-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--anhem888-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-about__dark-section {
  background-color: var(--anhem888-deep-green);
  color: var(--anhem888-text-main);
  padding: 60px 0;
}

.page-about__card-bg-section {
  background-color: var(--anhem888-background);
  color: var(--anhem888-text-main);
  padding: 60px 0;
}

.page-about__light-text-section {
  background-color: var(--anhem888-background);
  color: var(--anhem888-text-main);
  padding: 60px 0;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-about__hero-content-container {
  position: relative; /* Ensure content is above image filter if needed, but not overlaying */
  z-index: 10;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Adjust to bring content up closer to image, but not over */
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for text block */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 58px);
  color: var(--anhem888-gold);
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--anhem888-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--anhem888-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: var(--anhem888-background);
  color: var(--anhem888-primary);
  border: 2px solid var(--anhem888-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
  background: var(--anhem888-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__card {
  background-color: var(--anhem888-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--anhem888-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__card-title {
  font-size: 24px;
  color: var(--anhem888-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 16px;
  color: var(--anhem888-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* History Section */
.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--anhem888-divider);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--anhem888-primary);
  border: 4px solid var(--anhem888-deep-green);
  top: 28px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -10px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -10px;
}

.page-about__timeline-title {
  font-size: 22px;
  color: var(--anhem888-gold);
  margin-bottom: 10px;
}

.page-about__timeline-text {
  font-size: 16px;
  color: var(--anhem888-text-secondary);
}

/* Products & Services */
.page-about__product-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-about__product-card {
  background-color: var(--anhem888-card-bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__btn-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--anhem888-primary);
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-link:hover {
  background-color: var(--anhem888-secondary);
}

/* Security & Support */
.page-about__info-block {
  background-color: var(--anhem888-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--anhem888-border);
  text-align: center;
}

.page-about__info-title {
  font-size: 26px;
  color: var(--anhem888-gold);
  margin-bottom: 15px;
}

.page-about__info-text {
  font-size: 16px;
  color: var(--anhem888-text-secondary);
  margin-bottom: 20px;
}

.page-about__info-image {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* Join Community Section */
.page-about__join-community-section {
  text-align: center;
}

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

.page-about__faq-item {
  background-color: var(--anhem888-card-bg);
  border: 1px solid var(--anhem888-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--anhem888-text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--anhem888-deep-green);
  color: var(--anhem888-gold);
  list-style: none;
  user-select: none;
}

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

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

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

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--anhem888-text-secondary);
  border-top: 1px solid var(--anhem888-divider);
  background-color: var(--anhem888-card-bg);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-bottom: 30px;
  }

  .page-about__hero-content-container {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-about__main-title {
    font-size: 28px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-title {
    font-size: 24px;
  }

  .page-about__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

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

  .page-about__timeline::before {
    left: 18px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    padding-right: 15px;
  }

  .page-about__timeline-item::after {
    left: 10px;
  }

  .page-about__timeline-item:nth-child(odd)::after {
    left: 10px;
    right: auto;
  }

  .page-about__timeline-title {
    font-size: 20px;
  }

  .page-about__timeline-text {
    font-size: 15px;
  }

  /* Image and Video responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__video-section {
    padding-top: 10px !important;
  }

  .page-about__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    font-size: 15px;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-content-container {
    margin-top: -50px;
  }
  .page-about__main-title {
    font-size: 24px;
  }
  .page-about__hero-description {
    font-size: 14px;
  }
  .page-about__section-title {
    font-size: 20px;
  }
  .page-about__section-description {
    font-size: 14px;
  }
  .page-about__timeline-item {
    padding-left: 50px;
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item::after {
    left: 7px;
  }
  .page-about__faq-question {
    font-size: 15px;
  }
}