/* style/about.css */

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
  background-color: #f8f8f8; /* Slightly off-white background for content sections */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__section-title {
  color: #8B0000; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Main color for accent */
  border-radius: 2px;
}

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #8B0000, #FFD700);
  color: #ffffff;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-about__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Main brand color */
  color: #8B0000; /* Auxiliary color for text */
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-about__hero-image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px; /* Adjust max-width as needed for visual balance */
  margin-top: 40px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

/* Story Section */
.page-about__story-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-about__mission-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__mission-image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image wrapper has a minimum size */
}

.page-about__mission-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-about__mission-content {
  flex: 1;
}

.page-about__mission-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__mission-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-about__mission-item::before {
  content: '✓';
  color: #FFD700; /* Main brand color */
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-about__value-card {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
}

.page-about__value-title {
  font-size: 1.5em;
  color: #8B0000; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-about__value-description {
  font-size: 1em;
  color: #555555;
}

.page-about__security-image-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-about__security-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, #FFD700, #8B0000);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__cta-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-about__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: #8B0000; /* Auxiliary color */
  padding: 18px 45px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button:hover {
  background-color: #f0f0f0;
  color: #8B0000;
  transform: translateY(-5px);
}

.page-about__cta-image-wrapper {
  max-width: 1000px;
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-about__cta-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__mission-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-about__mission-content {
    order: 1; /* Move content above image on smaller screens */
  }
  .page-about__mission-image-wrapper {
    order: 2;
    margin-top: 40px;
  }
  .page-about__mission-item {
    padding-left: 0;
  }
  .page-about__mission-item::before {
    position: static;
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__text-content {
    font-size: 1em;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  .page-about__cta-title {
    font-size: 2.2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__cta-button {
    padding: 15px 30px;
    font-size: 1.2em;
  }
  
  /* Ensure images are responsive and do not overflow */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
  .page-about__hero-image,
  .page-about__mission-image,
  .page-about__security-image,
  .page-about__cta-image {
    max-width: 100%;
    height: auto;
  }
  .page-about__hero-image-wrapper,
  .page-about__mission-image-wrapper,
  .page-about__security-image-wrapper,
  .page-about__cta-image-wrapper {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
}