/* style/about.css */

/* --- General Styling for .page-about scope --- */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color, adjust per section for contrast */
  background-color: var(--background-color); /* Inherit from shared.css body */
}

/* Ensure text contrast on various backgrounds */
.page-about__dark-section {
  background-color: var(--deep-green-color); /* Deep Green */
  color: var(--text-main-color); /* Text Main */
}

.page-about__light-bg {
  background-color: var(--card-bg-color); /* Card BG */
  color: var(--text-main-color); /* Text Main */
}

/* Section padding */
.page-about__hero-section,
.page-about__introduction-section,
.page-about__history-section,
.page-about__mission-vision-section,
.page-about__core-values-section,
.page-about__security-section,
.page-about__social-responsibility-section,
.page-about__why-choose-section,
.page-about__cta-section,
.page-about__faq-section {
  padding: 60px 20px;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

/* Small top padding for the very first section, body handles header offset */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding as per instruction */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container takes full width up to max-width */
  box-sizing: border-box;
}

/* --- Hero Section --- */
.page-about__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__main-title {
  font-size: clamp(2rem, 5vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main-color); /* Text Main */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__description {
  font-size: 1.1rem;
  color: var(--text-secondary-color); /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, var(--button-color-start) 0%, var(--button-color-end) 100%); /* Button gradient */
  color: var(--text-main-color); /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--text-main-color); /* Text Main */
  border: 2px solid var(--border-color); /* Border */
}

.page-about__btn-secondary:hover {
  background-color: var(--border-color); /* Border */
  color: var(--text-main-color); /* Text Main */
}

/* --- Section Titles and Text Blocks --- */
.page-about__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main-color); /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title--white {
  color: #ffffff;
}

.page-about__text-block {
  font-size: 1rem;
  color: var(--text-secondary-color); /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__text-block--white {
  color: #f2fff6; /* Slightly lighter for dark background */
}

.page-about__image-content {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-about__image-centered {
  margin-left: auto;
  margin-right: auto;
}

/* --- Mission Vision Grid --- */
.page-about__vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background-color: var(--card-bg-color); /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color); /* Text Main for card content */
  border: 1px solid var(--border-color); /* Border */
}

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

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-color); /* Gold */
  margin-bottom: 15px;
  text-align: center;
}

.page-about__card-text {
  font-size: 1rem;
  color: var(--text-secondary-color); /* Text Secondary */
  text-align: justify;
}

/* --- Core Values --- */
.page-about__value-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-about__value-item {
  background-color: var(--card-bg-color); /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  color: var(--text-main-color); /* Text Main */
  border: 1px solid var(--border-color); /* Border */
  transition: transform 0.2s ease;
}

.page-about__value-item:hover {
  transform: translateY(-3px);
}

.page-about__value-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-color); /* Gold */
  margin-bottom: 10px;
}

.page-about__value-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color); /* Text Secondary */
}

/* --- Security and Social Responsibility Layouts --- */
.page-about__security-content,
.page-about__responsibility-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .page-about__security-content {
    flex-direction: row;
  }
  .page-about__responsibility-content {
    flex-direction: row-reverse; /* Image on right for social responsibility */
  }
  .page-about__security-text,
  .page-about__responsibility-text {
    flex: 1;
  }
  .page-about__security-content .page-about__image-content,
  .page-about__responsibility-content .page-about__image-content {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

/* --- Why Choose Section --- */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* --- CTA Section --- */
.page-about__cta-section .page-about__container {
  background-color: var(--deep-green-color); /* Deep Green */
  border-radius: 15px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__cta-section .page-about__cta-group {
  margin-top: 30px;
}

/* --- FAQ Section --- */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: var(--card-bg-color); /* Card BG */
  border: 1px solid var(--divider-color); /* Divider */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color); /* Text Main */
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  color: var(--gold-color); /* Gold */
  list-style: none; /* Hide default marker for details */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -khtml-user-select: none; /* Disable text selection on Konqueror */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Standard syntax */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for details */
}

.page-about__faq-item summary:hover {
  background-color: rgba(var(--gold-color-rgb), 0.05); /* Slight hover effect */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--text-main-color); /* Text Main */
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color); /* Text Secondary */
  border-top: 1px solid var(--divider-color); /* Divider */
}

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

.page-about__link {
  color: var(--glow-color); /* Glow */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__link:hover {
  color: var(--gold-color); /* Gold */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-about__section-title {
    margin-bottom: 30px;
  }

  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__history-section,
  .page-about__mission-vision-section,
  .page-about__core-values-section,
  .page-about__security-section,
  .page-about__social-responsibility-section,
  .page-about__why-choose-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 40px 15px;
  }

  /* Images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image {
    height: 300px;
    margin-bottom: 20px;
  }

  .page-about__security-content,
  .page-about__responsibility-content {
    flex-direction: column;
  }
  .page-about__security-content .page-about__image-content,
  .page-about__responsibility-content .page-about__image-content {
    max-width: 100%;
    margin-top: 20px;
  }

  /* Buttons */
  .page-about__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-group,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* FAQ */
  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px;
  }

  /* Video (if any, though none in this specific page) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__video-section {
    padding-top: 10px !important;
  }
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Color Variables from prompt */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  
  /* Button Colors */
  --button-color-start: #2AD16F;
  --button-color-end: #13994A;

  /* Background Colors */
  --card-bg-color: #11271B;
  --background-color: #08160F; /* Body background from shared.css will likely override */

  /* Text Colors */
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;

  /* Border Colors */
  --border-color: #2E7A4E;

  /* Other Colors */
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;

  /* RGB values for hover effects */
  --gold-color-rgb: 242, 193, 78; /* F2C14E */
}

/* --- Body background color from shared.css is unknown, assuming it's dark based on provided color scheme. --- */
/* So, text colors for page-about should be light. The current setup aligns with this. */
/* If body background were light, these colors would need to be inverted. */
/* The provided color scheme is dark, so text-main is #F2FFF6 (light) and text-secondary is #A7D9B8 (light-medium green). */
/* These should provide good contrast on the dark backgrounds like #08160F, #11271B, #0A4B2C. */