/* style/about.css */

/* Root variables for consistent theming */
:root {
  --primary-color: #0A192F; /* Deep tech blue */
  --secondary-color: #FFD700; /* Luxurious gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa; /* Light grey for sections */
  --background-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
}

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

/* Fixed header padding */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* Desktop padding-top to clear fixed header */
  padding-top: 180px; /* Adjust based on actual shared header height */
  background: linear-gradient(135deg, var(--primary-color), #1a2a47); /* Darker gradient */
  color: var(--text-light);
}

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

.page-about__hero-content {
  text-align: center;
}

.page-about__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold title for impact */
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-image {
  width: 100%;
  max-width: 800px;
}

.page-about__hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark text on gold */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.page-about__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-medium);
}

/* General Section Styles */
.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: var(--background-white); /* White background for good contrast */
  color: var(--text-dark);
}

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

.page-about__card {
  background: var(--background-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-light);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color); /* Added for better definition */
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-about__card-img {
  width: 100%; /* Ensure image fills card width */
  max-width: 300px; /* Limit max width for smaller images */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block; /* Remove extra space below image */
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__card-description a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}
.page-about__card-description a:hover {
  color: var(--secondary-color);
}

/* Why Choose Us Section (Dark Background) */
.page-about__why-choose-us {
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
  padding: 60px 20px;
}

.page-about__why-choose-us .page-about__section-title {
  color: var(--secondary-color); /* Gold title on dark background */
}

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

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-about__feature-icon {
  width: 100%; /* Ensure image fills container width */
  max-width: 150px; /* Max width for feature icons */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold text */
  margin-bottom: 10px;
}

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

.page-about__feature-description a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}
.page-about__feature-description a:hover {
  color: #fff;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--background-light); /* Light background for FAQ */
  padding: 60px 20px;
  color: var(--text-dark);
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: var(--background-white);
  color: var(--text-dark);
  font-size: 16px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-about__faq-question:hover {
  background: #f0f0f0;
  border-color: #c0c0c0;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color); /* Question title in primary color */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
  border-color: var(--secondary-color);
}

.page-about__faq-answer p {
  margin-bottom: 0;
}

.page-about__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}
.page-about__faq-answer a:hover {
  color: var(--secondary-color);
}

/* Highlight keyword for specific emphasis, but maintain language rule */
.page-about__highlight-keyword {
  font-weight: bold;
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 38px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* Mobile padding-top to clear fixed header */
  .page-about__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust based on actual shared header height */
    padding-bottom: 40px;
  }

  .page-about__hero-container {
    gap: 30px;
  }

  .page-about__hero-title {
    font-size: 30px;
  }

  .page-about__hero-description {
    font-size: 16px;
  }

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__container {
    padding: 20px 15px;
  }

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

  .page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 22px;
  }

  .page-about__feature-item {
    padding: 25px;
  }

  .page-about__feature-title {
    font-size: 20px;
  }

  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap; /* Allow question text to wrap */
  }
  
  .page-about__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px); /* Adjust width to make space for toggle */
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  /* Universal image responsive styles for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}