:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg-color: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main-color: #1F2D3D;
  --text-custom-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-about {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Use custom color */
  background: var(--background-color); /* Use custom color */
  line-height: 1.6;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 50px; /* Small top padding, larger bottom padding */
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Use brand colors */
  color: #ffffff; /* White text for dark background */
  overflow: hidden;
}

.page-about__hero-image-container {
  width: 100%;
  max-height: 600px; /* Max height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Default cover for desktop */
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-about__hero-content {
  position: relative; /* Not absolute, to flow below image */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

/* General Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__faq-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Crucial for button width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
}

.page-about__btn-primary {
  background: var(--button-gradient); /* Custom button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--primary-color); /* Brand color text */
  border: 2px solid var(--primary-color); /* Border with brand color */
}

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  color: #1a4da3;
  border-color: #1a4da3;
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-main-color); /* Use custom color */
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 80px 0;
  background-color: var(--card-bg-color); /* Use custom color */
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__content-block {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-about__content-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-main-color); /* Use custom color */
}

.page-about p {
  margin-bottom: 15px;
  color: var(--text-main-color); /* Use custom color */
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__value-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-main-color); /* Use custom color */
}

.page-about__value-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color); /* Brand color for checkmark */
  font-weight: bold;
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 80px 0;
  background-color: var(--background-color); /* Use custom background color */
}

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

.page-about__advantage-card {
  background-color: var(--card-bg-color); /* Custom card background color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px; /* Ensure cards have some height */
}

.page-about__advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__advantage-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size for all images */
  min-height: 200px; /* Min size for all images */
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
  display: block;
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color); /* Use custom color */
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: var(--card-bg-color); /* Use custom color */
}

.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.page-about__commitment-item {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--background-color); /* Use custom background color */
}

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

.page-about__faq-item {
  background-color: var(--card-bg-color); /* Custom card background color */
  border: 1px solid var(--border-color); /* Custom border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color); /* Custom text color */
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default details marker */
}

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

.page-about__faq-question:hover {
  background-color: #f9f9f9;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color); /* Brand color */
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-main-color); /* Custom text color */
  border-top: 1px solid var(--border-color); /* Custom border color */
  margin-top: -1px; /* Overlap border */
}

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

.page-about__faq-link {
  margin-top: 10px;
  display: inline-flex; /* Ensure button styling */
  min-width: auto; /* Override min-width for smaller context */
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Brand colors */
  color: #ffffff;
}

.page-about__cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__cta-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping */
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Global image styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* Default for all images unless specified */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) - General adjustments */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 15px;
  }

  .page-about__section-title {
    margin-bottom: 40px;
  }

  .page-about__hero-content {
    padding: 0 15px;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-grid--reverse {
    flex-direction: column; /* Revert to column for smaller screens */
  }

  .page-about__advantage-card {
    min-height: auto; /* Allow height to adjust */
  }

  .page-about__commitment-grid {
    grid-template-columns: 1fr; /* Stack columns */
  }

  .page-about__faq-question {
    padding: 18px 20px;
    font-size: 1.1rem;
  }

  .page-about__faq-answer {
    padding: 0 20px 18px;
  }
}


/* Mobile (max-width: 768px) - Must include all required sections */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-about__hero-image-container {
    max-height: 400px; /* Adjust max height for mobile hero */
    margin-bottom: 20px;
  }

  .page-about__hero-image {
    object-fit: contain !important; /* Force contain for mobile hero image */
    height: auto !important; /* Ensure height adjusts */
    aspect-ratio: unset !important; /* Remove aspect ratio if set */
    max-height: none !important; /* Remove max height if set */
    width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__faq-link,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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;
    min-width: unset; /* Allow buttons to shrink */
  }

  .page-about__hero-cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  /* Section Titles */
  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Content Grid (Introduction) */
  .page-about__content-grid {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }

  .page-about__content-subtitle {
    font-size: 1.5rem;
  }
}