/* style/about.css */

/* Custom Properties for theme colors (should be in shared.css, but for demonstration) */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #008000; /* Green */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark-1: #0d0d0d; /* Assuming this is the body background from shared.css */
  --bg-dark-2: #1a1a1a;
}

/* Global page-about scope, set text color for dark body background */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark-1); /* Ensure it contrasts with the body background */
  padding-top: 120px; /* Desktop: Space for fixed header */
}

/* --- Section Styling --- */
.page-about__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #FFCC00 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-dark); /* Dark text on light/brand background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-about__hero-container,
.page-about__introduction-container,
.page-about__values-container,
.page-about__advantages-container,
.page-about__faq-container,
.page-about__news-container,
.page-about__final-cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-about__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

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

.page-about__dark-section .page-about__section-title {
  color: var(--primary-color); /* Gold color on dark background */
}

.page-about__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

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

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-about__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-about__cta-button--primary:hover {
  background: #E5C300;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-about__cta-button--secondary:hover {
  background: #006600;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-about__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* --- Introduction Section --- */
.page-about__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-dark-2); /* Darker background for contrast */
  color: var(--text-light);
  margin-bottom: 40px;
}

.page-about__introduction-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.page-about__introduction-content p {
  flex: 1;
  font-size: 17px;
}

.page-about__image {
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* --- Values Section --- */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--bg-dark-1); /* Body background for this section */
  margin-bottom: 40px;
}

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

.page-about__value-card {
  background: var(--bg-dark-2); /* Slightly lighter dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__value-card p {
  font-size: 16px;
  color: #cccccc;
}

/* --- Advantages Section --- */
.page-about__advantages-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Green background */
  color: var(--text-light);
  margin-bottom: 40px;
}

.page-about__advantages-section .page-about__section-title {
  color: var(--primary-color); /* Gold on green background */
}

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

.page-about__advantage-item {
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background on green */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__advantage-item p {
  font-size: 16px;
  color: #e0e0e0;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark-1); /* Body background */
  margin-bottom: 40px;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-dark-2); /* Darker background for question */
  border: 1px solid #333333;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-about__faq-question:hover {
  background: #2a2a2a;
  border-color: #555555;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color); /* Gold for question text */
}

.page-about__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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 15px;
  opacity: 0;
  background: #222222; /* Slightly different dark background for answer */
  color: #cccccc;
  border-radius: 0 0 5px 5px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* --- News Section --- */
.page-about__news-section {
  padding: 80px 0;
  background-color: var(--bg-dark-2);
  color: var(--text-light);
  margin-bottom: 40px;
}

.page-about__news-intro {
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

.page-about__news-item {
  background: var(--bg-dark-1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-about__news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-about__news-link {
  text-decoration: none;
  color: inherit;
}

.page-about__news-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-about__news-title:hover {
  color: #FFCC00;
}

.page-about__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-about__news-date {
  font-size: 13px;
  color: #888888;
  align-self: flex-end;
}

/* --- Final CTA Section --- */
.page-about__final-cta-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Gold background */
  text-align: center;
  color: var(--text-dark);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__final-cta-section .page-about__section-title {
  color: var(--text-dark);
}

.page-about__final-cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-about__final-cta-description .page-about__text-link {
  color: var(--secondary-color);
}

.page-about__final-cta-description .page-about__text-link:hover {
  color: #006600;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__hero-description,
  .page-about__news-intro,
  .page-about__final-cta-description {
    font-size: 16px;
  }
  .page-about__introduction-content {
    flex-direction: column;
    text-align: center;
  }
  .page-about__image {
    max-width: 80%;
    margin-top: 30px;
  }
}

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

  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__values-section,
  .page-about__advantages-section,
  .page-about__faq-section,
  .page-about__news-section,
  .page-about__final-cta-section {
    padding: 60px 0;
  }

  .page-about__hero-container,
  .page-about__introduction-container,
  .page-about__values-container,
  .page-about__advantages-container,
  .page-about__faq-container,
  .page-about__news-container,
  .page-about__final-cta-container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__card-icon {
    width: 80px;
    height: 80px;
  }

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

  /* FAQ Mobile */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  /* News Mobile */
  .page-about__news-image {
    height: 180px;
  }
  .page-about__news-title {
    font-size: 18px;
  }
  .page-about__news-excerpt {
    font-size: 14px;
  }
}

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

/* Ensure all containers with images/buttons are responsive on mobile */
@media (max-width: 768px) {
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__values-section,
  .page-about__advantages-section,
  .page-about__faq-section,
  .page-about__news-section,
  .page-about__final-cta-section,
  .page-about__value-card,
  .page-about__advantage-item,
  .page-about__news-item {
    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__image,
  .page-about__card-icon,
  .page-about__news-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}