/* style/about.css */

:root {
  --primary-color: #007BFF; /* Deep Blue */
  --secondary-color: #FFC107; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #0056b3; /* Darker shade of primary for contrast */
  --border-color: #e0e0e0;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

.page-about .section-title {
  text-align: center;
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 50px;
  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: var(--secondary-color);
  border-radius: 2px;
}

.page-about .cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
}

.page-about .cta-button.primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-about .cta-button.primary:hover {
  background: var(--background-dark);
  border-color: var(--background-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-about .cta-button.secondary {
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 20px;
}

.page-about .cta-button.secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-about .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-dark) 100%);
  padding: 80px 0;
  color: var(--text-light);
  text-align: center;
}

.page-about .hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about .hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-about .hero-content p {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* Mission & Vision Section */
.page-about .section-mission-vision {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-about .section-mission-vision .content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-about .section-mission-vision .text-content {
  flex: 2;
}

.page-about .section-mission-vision .text-content h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about .section-mission-vision .text-content p {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-about .section-mission-vision .image-content {
  flex: 1;
  text-align: center;
}

.page-about .section-mission-vision .image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* Why Choose Us Section */
.page-about .section-why-choose-us {
  padding: 80px 0;
  background-color: #f0f4f8; /* Slightly different light background */
}

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

.page-about .feature-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about .feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-about .feature-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
  width: 100%; /* Override fixed width to ensure min size applies */
  height: auto; /* Override fixed height to ensure min size applies */
}

.page-about .feature-item h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about .feature-item p {
  font-size: 1em;
  color: var(--text-dark);
}

/* Commitment Section */
.page-about .section-commitment {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-about .section-commitment .content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-about .section-commitment .content-wrapper.reverse {
  flex-direction: row-reverse;
}

.page-about .section-commitment .text-content {
  flex: 2;
}

.page-about .section-commitment .text-content p {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-about .section-commitment .image-content {
  flex: 1;
  text-align: center;
}

.page-about .section-commitment .image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* FAQ Section */
.page-about .section-faq {
  padding: 80px 0;
  background-color: #f0f4f8;
}

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

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  font-size: 1.25em;
  color: var(--primary-color);
  margin: 0;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 25px;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

/* Final CTA Section */
.page-about .section-cta-final {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--primary-color) 100%);
  color: var(--text-light);
  text-align: center;
}

.page-about .section-cta-final .section-title {
  color: var(--secondary-color);
}

.page-about .section-cta-final p {
  font-size: 1.15em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about .section-cta-final .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about .hero-content h1 {
    font-size: 2.8em;
  }
  .page-about .section-title {
    font-size: 2em;
  }
  .page-about .section-mission-vision .content-wrapper,
  .page-about .section-commitment .content-wrapper {
    flex-direction: column;
  }
  .page-about .section-mission-vision .text-content,
  .page-about .section-mission-vision .image-content,
  .page-about .section-commitment .text-content,
  .page-about .section-commitment .image-content {
    flex: none;
    width: 100%;
  }
  .page-about .section-commitment .content-wrapper.reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about .hero-section {
    padding: 60px 0;
  }
  .page-about .hero-content h1 {
    font-size: 2.2em;
  }
  .page-about .hero-content p {
    font-size: 1em;
  }
  .page-about .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-about .cta-button.secondary {
    margin-left: 10px;
  }
  .page-about .section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-about .section-mission-vision,
  .page-about .section-why-choose-us,
  .page-about .section-commitment,
  .page-about .section-faq,
  .page-about .section-cta-final {
    padding: 60px 0;
  }
  .page-about .feature-item {
    padding: 20px;
  }
  .page-about .feature-item h3 {
    font-size: 1.3em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 20px;
  }
  .page-about .section-cta-final .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about .cta-button.secondary {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .page-about .hero-content h1 {
    font-size: 1.8em;
  }
  .page-about .section-title {
    font-size: 1.5em;
  }
  .page-about .feature-grid {
    grid-template-columns: 1fr;
  }
}