/* style/about.css */

/* Variables for consistency */
:root {
  --page-about-primary-color: #0A2239;
  --page-about-secondary-color: #E0B020;
  --page-about-text-dark: #333333;
  --page-about-text-light: #ffffff;
  --page-about-bg-light: #f4f4f4; /* Matches body background */
  --page-about-bg-dark: #0A2239;
  --page-about-border-light: #e0e0e0;
}

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

/* Fixed header offset */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default, overridden by media query for mobile if needed */
}

/* Sections styling */
.page-about__section {
  padding: 80px 0;
  text-align: center;
}

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

.page-about__mission-vision-section,
.page-about__history-section,
.page-about__commitment-section,
.page-about__cta-final-section {
  background-color: var(--page-about-bg-dark);
  color: var(--page-about-text-light);
}

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

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

/* Container for content width */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titles */
.page-about__section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--page-about-primary-color);
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title--light {
  color: var(--page-about-text-light);
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-about-secondary-color);
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 28px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--page-about-primary-color);
}

.page-about__sub-title--light {
  color: var(--page-about-text-light);
}

.page-about__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--page-about-primary-color);
}

.page-about__card-title--light {
  color: var(--page-about-text-light);
}

/* Text blocks and paragraphs */
.page-about__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify; /* Justify text for professional look */
}

.page-about__text-block--light {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust padding for hero */
  background: var(--page-about-bg-dark); /* Dark background for hero */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden; /* Ensure image doesn't overflow */
  border-radius: 8px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  filter: none !important; /* Ensure no CSS filter on images */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--page-about-text-light); /* Light text on dark hero */
}

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

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--page-about-secondary-color);
  color: var(--page-about-primary-color); /* Dark text on gold button */
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: #ffc107; /* Slightly brighter gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--gold {
  background: var(--page-about-secondary-color);
  color: var(--page-about-primary-color);
}

.page-about__cta-button--gold:hover {
  background: #ffc107;
}

/* Flex Group for text and image */
.page-about__flex-group {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-about__flex-group--reverse {
  flex-direction: row-reverse;
}

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

.page-about__image-wrapper {
  flex: 1;
  min-width: 200px; /* Minimum size for image wrappers */
}

.page-about__image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Enforce minimum display size for content images */
  min-height: 200px;
  filter: none !important; /* Ensure no CSS filter on images */
}

/* Core Values Grid */
.page-about__values-grid,
.page-about__commitment-grid,
.page-about__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__card {
  background-color: var(--page-about-text-light); /* White card background on light body */
  color: var(--page-about-text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-about__dark-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  color: var(--page-about-text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__dark-card .page-about__card-title {
  color: var(--page-about-secondary-color); /* Gold title on dark card */
}

/* Timeline for History Section */
.page-about__timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  text-align: left;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.page-about__timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 24px;
  height: 24px;
  background-color: var(--page-about-secondary-color);
  border-radius: 50%;
  border: 4px solid var(--page-about-dark-bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.page-about__timeline-year {
  font-size: 20px;
  font-weight: 700;
  color: var(--page-about-secondary-color);
  margin-bottom: 5px;
}

.page-about__timeline-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
}

/* Feature List */
.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-about__feature-item {
  font-size: 17px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: var(--page-about-text-dark);
}

.page-about__feature-item::before {
  content: '✔'; /* Checkmark icon */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--page-about-primary-color);
  font-weight: bold;
}

/* CTA Final Section */
.page-about__cta-final-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--page-about-primary-color), #2a4e6e); /* Dark blue gradient */
  color: var(--page-about-text-light);
}

.page-about__cta-final-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--page-about-bg-light);
  color: var(--page-about-text-dark);
  text-align: left;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--page-about-text-light); /* White background for FAQ item */
  border: 1px solid var(--page-about-border-light);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--page-about-text-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--page-about-primary-color); /* Dark blue question text */
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}