/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color); /* Inherited from shared, assumes light for default text */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  width: 90%;
  color: #FFF5E1; /* Text Main color */
  padding: 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-about__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

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

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #C91F17; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
}

.page-about__paragraph {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__card {
  background-color: #D32F2F; /* Card BG color */
  color: #FFF5E1; /* Text Main color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #F2B544; /* Border color */
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold-like color for emphasis */
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #FFF5E1;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.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: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
  color: #FFF5E1;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(242, 181, 68, 0.5); /* Semi-transparent border */
}

.page-about__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD86A;
}

.page-about__feature-text {
  font-size: 1em;
  line-height: 1.7;
  color: #FFF5E1;
}

.page-about__responsible-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-about__responsible-item {
  flex: 1 1 calc(50% - 30px);
  min-width: 300px;
  background-color: #D32F2F;
  color: #FFF5E1;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #F2B544;
}

.page-about__item-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD86A;
}

.page-about__item-text {
  font-size: 1em;
  line-height: 1.7;
  color: #FFF5E1;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #C91F17; /* Primary color */
  cursor: pointer;
  background-color: #f9f9f9;
  user-select: none;
  list-style: none;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #E53935; /* Secondary color */
}

.page-about__faq-item[open] .page-about__faq-question .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
  background-color: #ffffff;
}

/* Color contrast classes */
.page-about__dark-bg {
  background-color: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main color */
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-card {
  background-color: #D32F2F;
  color: #FFF5E1;
}

.page-about__text-main {
  color: #FFF5E1;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    max-width: 700px;
  }
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__card-title, .page-about__feature-title, .page-about__item-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    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__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    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__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-section {
    padding-top: 10px; /* Adjust for mobile */
    padding-bottom: 40px;
  }
  .page-about__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    width: 100%;
  }
  .page-about__hero-image {
    filter: brightness(0.5); /* Slightly darker on mobile for better text contrast */
  }
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__card-grid, .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__responsible-item {
    flex: 1 1 100%;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 10px 20px 20px;
  }
}