/* style/about.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --border-color-dark-mode: rgba(255, 255, 255, 0.2);
  --hover-bg-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-about {
  color: var(--text-color-dark-bg); /* Body background is dark #050505 */
  background-color: #050505;
  font-family: Arial, sans-serif;
  line-height: 1.7;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
}

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

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }
}

.page-about__main-title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: 30px;
    margin-bottom: 20px;
  }
}

.page-about__intro-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  border-bottom: 1px solid var(--border-color-dark-mode);
}

.page-about__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

.page-about__intro-text strong {
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .page-about__intro-text {
    font-size: 16px;
  }
}

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

.page-about__dark-section {
  background-color: #0d0d0d;
  color: var(--text-color-dark-bg);
}

.page-about__vision-mission-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color-dark-mode);
}

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

.page-about__card {
  background: var(--card-bg-dark-mode);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark-mode);
}

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

.page-about__card--inverted {
  background: var(--card-bg-dark-mode);
  color: var(--text-color-dark-bg);
  border: 1px solid var(--border-color-dark-mode);
}

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

.page-about__card-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

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

@media (max-width: 768px) {
  .page-about__card {
    padding: 20px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__card-text {
    font-size: 15px;
  }
}

.page-about__values-section {
  padding: 80px 0;
  background-color: #050505;
  border-bottom: 1px solid var(--border-color-dark-mode);
}

.page-about__text-block {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .page-about__text-block {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

.page-about__values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-about__value-item {
  background: var(--card-bg-dark-mode);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color-dark-mode);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-about__value-description {
  font-size: 16px;
  color: var(--text-color-dark-bg);
}

@media (max-width: 768px) {
  .page-about__values-list {
    gap: 20px;
  }
  .page-about__value-item {
    padding: 25px;
  }
  .page-about__value-title {
    font-size: 20px;
  }
  .page-about__value-description {
    font-size: 15px;
  }
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, var(--secondary-color), #ff8c00);
  color: #000000; /* Ensure black text on golden button for contrast */
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
  border: none;
}

.page-about__cta-button:hover {
  background: linear-gradient(135deg, #ff8c00, var(--secondary-color));
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.6);
}

.page-about__cta-button--secondary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: var(--text-color-dark-bg);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.page-about__cta-button--secondary:hover {
  background: linear-gradient(135deg, #0056b3, var(--primary-color));
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.6);
}

@media (max-width: 768px) {
  .page-about__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }
}

.page-about__team-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color-dark-mode);
}

.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__team-member {
  background: var(--card-bg-dark-mode);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color-dark-mode);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.2);
}

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

.page-about__member-role {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 16px;
  color: var(--text-color-dark-bg);
}

@media (max-width: 768px) {
  .page-about__team-member {
    padding: 25px;
  }
  .page-about__member-photo {
    width: 120px;
    height: 120px;
  }
  .page-about__member-name {
    font-size: 20px;
  }
  .page-about__member-role {
    font-size: 16px;
  }
  .page-about__member-bio {
    font-size: 15px;
  }
}

.page-about__commitment-section {
  padding: 80px 0;
  background-color: #050505;
  border-bottom: 1px solid var(--border-color-dark-mode);
}

.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-about__commitment-item {
  background: var(--card-bg-dark-mode);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color-dark-mode);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__commitment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__commitment-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-about__commitment-description {
  font-size: 16px;
  color: var(--text-color-dark-bg);
}

@media (max-width: 768px) {
  .page-about__commitment-item {
    padding: 25px;
  }
  .page-about__commitment-icon {
    width: 70px;
    height: 70px;
  }
  .page-about__commitment-title {
    font-size: 20px;
  }
  .page-about__commitment-description {
    font-size: 15px;
  }
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: var(--text-color-dark-bg);
  background: rgba(255, 255, 255, 0.05);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark-bg);
}

.page-about__faq-question:hover {
  background: var(--hover-bg-dark-mode);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-about__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark-bg);
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

@media (max-width: 768px) {
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}

/* Responsive image styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}