/* style/about.css */

:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --accent-color: #E53E3E; /* For CTA buttons */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #0A192F;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: #ffffff; /* Default body background is white */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  color: var(--text-light);
  overflow: hidden;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
  padding: 0;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  z-index: 1;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color); /* Red for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-about__cta-button:hover {
  background: #c02a2a; /* Darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* Section Titles */
.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-color);
}

.page-about__dark-bg .page-about__section-title {
  color: var(--secondary-color);
}

/* Content Wrappers */
.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-about__content-wrapper:nth-of-type(even) {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__image-content {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image-content--right {
  margin-left: 20px; /* Adjust spacing */
}

.page-about__image-content--left {
  margin-right: 20px; /* Adjust spacing */
}

/* Background Colors */
.page-about__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-about__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-about__dark-bg p, .page-about__dark-bg li {
  color: #f0f0f0;
}

/* Mission, Vision, Values Section */
.page-about__mission-vision-section .page-about__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__value-card h3 {
  color: var(--secondary-color);
  font-size: 24px;
  margin-bottom: 15px;
}

.page-about__value-card ul {
  list-style: none;
  padding-left: 0;
}

.page-about__value-card li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.page-about__value-card li::before {
  content: '✔';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 0;
}

/* Why Choose Section */
.page-about__why-choose-section .page-about__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-about__feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

/* Conclusion Section */
.page-about__conclusion-section {
  text-align: center;
  padding: 80px 20px;
}

.page-about__conclusion-text {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-about__contact-prompt {
  margin-top: 30px;
  font-size: 18px;
  color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }

  .page-about__intro-description {
    font-size: 18px;
  }

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

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .page-about__content-wrapper:nth-of-type(even) {
    flex-direction: column;
  }

  .page-about__image-content {
    max-width: 80%;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding: 60px 15px 40px;
  }

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

  .page-about__intro-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .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-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .page-about__values-grid, .page-about__feature-grid {
    gap: 20px;
  }

  .page-about__value-card, .page-about__feature-card {
    padding: 25px;
  }

  .page-about__value-card h3, .page-about__feature-title {
    font-size: 20px;
  }

  .page-about__conclusion-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-section,
  .page-about__history-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__achievements-section,
  .page-about__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-about__hero-section .page-about__container,
  .page-about__history-section .page-about__container,
  .page-about__mission-vision-section .page-about__container,
  .page-about__why-choose-section .page-about__container,
  .page-about__commitment-section .page-about__container,
  .page-about__team-section .page-about__container,
  .page-about__achievements-section .page-about__container,
  .page-about__conclusion-section .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}