/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

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

.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

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

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  font-weight: bold;
}

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login/Register color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-about__btn-tertiary:hover {
  background-color: #1a7fb2;
  border-color: #1a7fb2;
  transform: translateY(-2px);
}

.page-about__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__text-link:hover {
  color: #1a7fb2;
}

/* Mission & Vision */
.page-about__mission-vision .page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.page-about__mission-vision .page-about__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__mission-vision .page-about__card-title {
  color: #26A9E0;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-about__mission-vision .page-about__card-text {
  font-size: 1.1em;
}

/* History Timeline */
.page-about__history {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #26A9E0;
  transform: translateX(-50%);
}

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

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

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

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #26A9E0;
  border: 2px solid #ffffff;
  z-index: 1;
}

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

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

.page-about__timeline-year {
  font-size: 1.5em;
  color: #26A9E0;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Products Grid */
.page-about__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__products .page-about__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-about__products .page-about__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-about__products .page-about__card-title a:hover {
  text-decoration: underline;
}

.page-about__products .page-about__card-text {
  padding: 0 15px 15px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Security Section */
.page-about__security {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-about__security .page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.page-about__info-block {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
}

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

.page-about__info-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Promotions Section */
.page-about__promotions .page-about__grid-three-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.page-about__promo-text {
  padding: 0 15px 15px;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-about__promo-card .page-about__btn-tertiary {
  margin: 0 15px 15px;
}

/* Support Section */
.page-about__support {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-about__support .page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
  margin-bottom: 40px;
}

.page-about__support-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
}

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

.page-about__support-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-about__cta-center {
  margin-top: 40px;
}

/* Why Choose Section */
.page-about__why-choose {
  background-color: #26A9E0; /* Dark background from brand color */
  color: #ffffff; /* White text for dark background */
}

.page-about__why-choose .page-about__section-title {
  color: #FFFFFF;
}

.page-about__why-choose .page-about__section-description {
  color: #f0f0f0;
}

.page-about__reason-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-about__reason-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  border-left: 5px solid #FFFFFF;
}

.page-about__reason-item strong {
  color: #FFFFFF;
}

/* FAQ Section */
.page-about__faq {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__mission-vision .page-about__grid-two-columns,
  .page-about__security .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__timeline::before {
    left: 18px;
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }
  .page-about__timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 0;
  }
  .page-about__timeline-item:nth-child(odd)::before {
    left: 8px;
    right: auto;
  }
  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }
  .page-about__timeline-item:nth-child(even)::before {
    left: 8px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    height: 500px;
    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-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__section-description {
    font-size: 1em;
  }

  /* Mobile image and video responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__promo-card,
  .page-about__info-block,
  .page-about__support-item,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .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; /* Ensure no overflow */
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    font-size: 0.85em;
    padding: 10px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__card-title,
  .page-about__promo-title,
  .page-about__info-title,
  .page-about__support-title {
    font-size: 1.3em;
  }
  .page-about__timeline-year {
    font-size: 1.3em;
  }
  .page-about__timeline-description {
    font-size: 0.9em;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
}