/* style/about.css */

/* Variables */
:root {
  --primary-color: #0A2342; /* Dark Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-dark: #0A2342;
  --border-color: #e0e0e0;
}

/* Base styling for the about page content */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

.page-about section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-about section:last-of-type {
  border-bottom: none;
}

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

.page-about .text-content {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
  color: #555555;
}

/* Hero Banner Section */
.page-about .hero-banner {
  position: relative;
  width: 100%;
  height: 500px; /* Increased height for better visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: var(--primary-color); /* Fallback background */
  padding: 0; /* Remove padding from general section */
  border-bottom: none;
}

.page-about .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly transparent to let text stand out */
  z-index: 1;
}

.page-about .hero-content-wrapper {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-about .hero-title {
  font-size: 52px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-about .hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-about .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about .cta-button:hover {
  background: #FFC107; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-about .intro-section {
  background-color: #ffffff;
}

.page-about .image-block {
  text-align: center;
  margin-top: 40px;
}

.page-about .content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-about .why-choose-us-section {
  background-color: var(--bg-light);
}

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

.page-about .feature-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about .card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about .card-text {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take available space */
}

.page-about .card-image {
  max-width: 100%; /* Ensure image fits card */
  height: 250px; /* Fixed height for consistency */
  width: 100%; /* Take full width */
  object-fit: cover; /* Cover the area, crop if needed */
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content is short */
}


/* Commitment Section */
.page-about .commitment-section {
  background-color: #ffffff;
}

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

.page-about .commitment-item {
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about .commitment-heading {
  font-size: 26px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about .commitment-text {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about .commitment-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-top: auto;
}

/* Call to Action Section */
.page-about .call-to-action-section {
  background: linear-gradient(135deg, var(--primary-color), #2c5282);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
}

.page-about .cta-content {
  max-width: 900px;
}

.page-about .call-to-action-section .section-title {
  color: var(--secondary-color);
  font-size: 42px;
}

.page-about .call-to-action-section .section-title::after {
  background-color: var(--text-light);
}

.page-about .call-to-action-section .text-content {
  color: #e0e0e0;
  font-size: 19px;
  margin-bottom: 40px;
}

.page-about .cta-button.primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  margin-right: 20px;
}

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

.page-about .cta-button.secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}


/* FAQ Section */
.page-about .faq-section {
  background-color: #ffffff;
}

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

.faq-item { /* No page-about prefix for faq-item, faq-question, faq-answer as per instruction from previous tasks that these are common JS selectors */
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.faq-question h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin: 0;
  font-weight: bold;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px; /* Initial padding 0 */
  background: #f9f9f9;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px 25px; /* Adjust padding when active */
  border-top: 1px solid var(--border-color);
}

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

.faq-answer p {
  margin-bottom: 10px;
  font-size: 17px;
  color: #555555;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-about .hero-title {
    font-size: 42px;
  }
  .page-about .hero-subtitle {
    font-size: 20px;
  }
  .page-about .section-title {
    font-size: 32px;
  }
  .page-about .cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-about .features-grid,
  .page-about .commitment-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about .card-title,
  .page-about .commitment-heading {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-about section {
    padding: 40px 0;
  }
  .page-about .hero-banner {
    height: 400px;
  }
  .page-about .hero-title {
    font-size: 36px;
  }
  .page-about .hero-subtitle {
    font-size: 18px;
  }
  .page-about .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about .text-content {
    font-size: 16px;
  }
  .page-about .cta-button {
    font-size: 16px;
    padding: 10px 25px;
    margin: 10px 0; /* Stack buttons on mobile */
  }
  .page-about .cta-button.primary {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .faq-question h3 {
    font-size: 18px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-about .hero-banner {
    height: 350px;
  }
}