/* style/about.css */

/* Variables */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a1a;
  --bg-light: #f5f5f5;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

/* Base styles for page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-about__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  min-height: 70vh;
  overflow: hidden;
}

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

.page-about__hero-title {
  font-size: 3.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 900px;
}

.page-about__hero-description {
  font-size: 1.3em;
  color: var(--text-light);
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__faq-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Section Backgrounds */
.page-about__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 80px 0;
}

.page-about__light-bg .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__light-bg .page-about__section-text {
  color: var(--text-dark);
}

/* Story Section */
.page-about__story-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
}

/* Mission & Values Section */
.page-about__mission-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-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__card-text, .page-about__value-list {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-light);
}

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

.page-about__value-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

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

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

.page-about__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-dark);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.page-about__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Video Section */
.page-about__video-section {
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-about__video-cta {
  margin-top: 30px;
}

/* Team Section */
.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__team-member {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--primary-color);
}

.page-about__member-name {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 5px;
  font-weight: bold;
}

.page-about__member-role {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Fairness Section */
.page-about__fairness-section .page-about__btn-secondary {
  margin-top: 30px;
}

/* FAQ Section */
.page-about__faq-section {
  text-align: center;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--secondary-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  text-align: left;
  color: var(--text-dark);
}

.page-about__faq-button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 1px solid var(--primary-color);
  display: inline-block;
}

.page-about__faq-button:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__section-text {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__faq-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__container,
  .page-about__hero-section,
  .page-about__story-section,
  .page-about__mission-values-section,
  .page-about__why-choose-us-section,
  .page-about__video-section,
  .page-about__team-section,
  .page-about__fairness-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__image-content,
  .page-about__feature-icon,
  .page-about__team-avatar,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__card,
  .page-about__feature-item,
  .page-about__team-member {
    padding: 20px;
  }
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__hero-description {
    font-size: 0.95em;
  }
  .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }
  .page-about__member-name {
    font-size: 1.5em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__faq-button {
    font-size: 1em;
    padding: 12px 20px;
  }
}