:root {
  --primary-color: #C91F17; /* Main Red */
  --secondary-color: #E53935; /* Auxiliary Red */
  --card-bg: #D32F2F; /* Card Background */
  --bg-color: #B71C1C; /* Section Background */
  --text-main-color: #FFF5E1; /* Main Text Color */
  --border-color: #F2B544; /* Border Color */
  --glow-color: #FFCC66; /* Glow Color */
  --gold-color: #F4D34D; /* Gold Color */
  --deep-red-color: #7A0E0E; /* Deep Red */

  /* Default text colors for contrast */
  --dark-text: #333333;
  --light-text: #ffffff;
}

/* Global styles for .page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--bg-color); /* Main background for the page */
}

.page-about__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-about__container {
  max-width: 100%;
  padding: 0 15px; /* Add some padding for content inside containers */
  box-sizing: border-box;
}

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

.page-about__subsection-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__text {
  font-size: 17px;
  margin-bottom: 15px;
  color: var(--text-main-color); /* Ensure text is visible on dark background */
}

.page-about a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* body handles padding-top for fixed header, this is for section spacing */
  background-color: var(--deep-red-color); /* A darker background for the hero section itself */
  overflow: hidden; /* Ensure no image overflow issues */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto; /* Ensure responsive height */
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  filter: brightness(0.8); /* Slightly darken image for text contrast, not color change */
  min-width: 200px; /* Enforce minimum image width */
  min-height: 200px; /* Enforce minimum image height */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin-top: 20px; /* Space between image and content */
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Use clamp for H1 font size */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--gold-color);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  max-width: 900px; /* Limit width to prevent overly long lines */
  margin-left: auto;
  margin-right: auto;
}

.page-about__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-main-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: var(--dark-text); /* Dark text on light button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
}

/* List styles */
.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-about__list-item:hover {
  transform: translateY(-5px);
}

.page-about__list-item strong {
  color: var(--gold-color);
  font-size: 18px;
}

.page-about__list-item p {
  color: var(--text-main-color);
  margin-top: 10px;
}

/* History Section */
.page-about__history-grid {
  display: flex;
  gap: 30px;
  align-items: center;
}

.page-about__history-text {
  flex: 1;
}

.page-about__history-image-wrapper {
  flex: 1;
  min-width: 200px; /* Minimum size for image container */
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image width */
  min-height: 200px; /* Enforce minimum image height */
}

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

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

.page-about__commitment-item:hover {
  transform: translateY(-5px);
}

.page-about__commitment-item .page-about__image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__item-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__item-description {
  font-size: 16px;
  color: var(--text-main-color);
}

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

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

.page-about__team-member:hover {
  transform: translateY(-5px);
}

.page-about__team-avatar {
  width: 150px; /* Actual display size */
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--gold-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce generation size */
  min-height: 200px; /* Enforce generation size */
}

.page-about__member-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__member-role {
  font-size: 16px;
  color: var(--glow-color);
  margin-bottom: 10px;
}

.page-about__member-bio {
  font-size: 15px;
  color: var(--text-main-color);
}

/* Why Choose Section */
.page-about__advantages-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__advantages-list .page-about__list-item {
  padding: 25px;
}

.page-about__list-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__list-description {
  font-size: 16px;
  color: var(--text-main-color);
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: var(--deep-red-color); /* Darker hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
  border-radius: 0 0 8px 8px;
}
details.page-about__faq-item .page-about__faq-answer p {
  color: var(--text-main-color);
  font-size: 16px;
}

/* Conclusion Section */
.page-about__conclusion-content {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
}
.page-about__conclusion-content .page-about__section-title {
  color: var(--gold-color);
  margin-bottom: 25px;
}
.page-about__conclusion-content .page-about__text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 50px 15px;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .page-about__subsection-title {
    font-size: 24px;
  }
  .page-about__history-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* Fixed header padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-image {
    border-radius: 4px;
  }
  .page-about__main-title {
    font-size: clamp(28px, 8vw, 38px);
    margin-bottom: 10px;
  }
  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
  }
  .page-about__section {
    padding: 30px 15px;
  }
  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .page-about__subsection-title {
    font-size: 22px;
  }
  .page-about__text {
    font-size: 15px;
  }
  .page-about__list-item {
    padding: 15px;
    margin-bottom: 10px;
  }
  .page-about__list-item strong {
    font-size: 16px;
  }
  .page-about__list-item p {
    font-size: 14px;
  }

  .page-about__commitment-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    gap: 20px;
  }
  .page-about__commitment-item,
  .page-about__team-member {
    padding: 20px;
  }
  .page-about__item-title {
    font-size: 20px;
  }
  .page-about__item-description {
    font-size: 15px;
  }
  .page-about__team-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }
  .page-about__member-name {
    font-size: 18px;
  }
  .page-about__member-role {
    font-size: 15px;
  }
  .page-about__member-bio {
    font-size: 14px;
  }

  /* FAQ */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 15px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
  details.page-about__faq-item .page-about__faq-answer p {
    font-size: 14px;
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Keep minimum for generation, but allow scaling */
    min-height: 200px !important;
  }

  .page-about__section,
  .page-about__container,
  .page-about__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button container responsive */
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
  }
}

/* Ensure no filter is used for images for color change */
.page-about img {
  filter: none; /* Reset any potential filter */
}
.page-about__hero-image {
  filter: brightness(0.8); /* Allow slight darkening for text contrast */
}

/* Content area image size lower bound check */
.page-about img:not(.page-about__team-avatar) { /* Exclude team avatars from general rule if they are smaller for display */
    min-width: 200px;
    min-height: 200px;
}
.page-about__team-avatar {
    min-width: 200px; /* Still enforce generation size */
    min-height: 200px;
    /* The actual display size is smaller, handled by width/height attributes or other CSS */
}

/* Contrast fixes for general text on background */
.page-about h1, .page-about h2, .page-about h3, .page-about h4 {
  color: var(--gold-color); /* Ensures good contrast on deep red background */
}
.page-about p, .page-about li {
  color: var(--text-main-color); /* Ensures good contrast on deep red background */
}