/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f4f4f4; /* Inherit from shared or explicitly set */
}

.page-about__section {
  padding: 60px 0;
}

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

.page-about__section-title {
  font-size: 36px;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 28px;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  background: linear-gradient(135deg, #FFD700, #000000); /* Blend brand colors */
  color: #ffffff; /* White text on dark/gold background */
  overflow: hidden; /* Prevent image overflow */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any potential background effects */
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Primary brand color */
  color: #000000; /* Black text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
}

.page-about__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* General Introduction Section */
.page-about__introduction {
  background-color: #ffffff; /* Light background for content */
  color: #333333;
  padding: 80px 0;
}

.page-about__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__image-left {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum image size */
  max-width: 600px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

/* Core Values Section */
.page-about__core-values {
  background-color: #000000; /* Auxiliary brand color */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__core-values .page-about__section-title {
  color: #FFD700; /* Gold title on black background */
}

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

.page-about__value-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on black */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 215, 0, 0.15); /* Gold tint on hover */
}

.page-about__value-title {
  font-size: 22px;
  color: #FFD700; /* Gold for value titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Products and Services Section */
.page-about__products-services {
  background-color: #f9f9f9; /* Slightly off-white for contrast */
  color: #333333;
  padding: 80px 0;
}

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

.page-about__service-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  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;
}

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

.page-about__service-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum image size */
}

.page-about__service-card .page-about__card-title {
  font-size: 20px;
  font-weight: bold;
  color: #000000;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-about__service-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-about__service-card .page-about__card-link {
  display: inline-block;
  padding: 10px 20px;
  background: #FFD700;
  color: #000000;
  text-decoration: none;
  border-radius: 0 0 12px 12px; /* Bottom corners only */
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-about__service-card .page-about__card-link:hover {
  background: #e6c200;
}

/* Security and Support Section */
.page-about__security-support {
  background-color: #000000;
  color: #ffffff;
  padding: 80px 0;
}

.page-about__security-support .page-about__section-title {
  color: #FFD700;
}

.page-about__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-about__security-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-about__security-icon {
  width: 250px; /* Adjusted to meet min 200x200 requirement */
  height: 187px; /* Adjusted to meet min 200x200 requirement */
  object-fit: cover; /* Change to cover for larger images */
  margin-bottom: 20px;
  display: inline-block;
}

.page-about__security-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__security-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-about__cta-bottom {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 13px 38px; /* Adjust padding to match primary button visually */
}

.page-about__btn-secondary:hover {
  background: #FFD700;
  color: #000000;
  border-color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #FFD700; /* Gold background for question */
  color: #000000; /* Black text for contrast */
  border: 1px solid #FFD700;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.page-about__faq-question:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  border-color: #e6c200;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #000000; /* Explicitly black for contrast */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #000000; /* Black for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about__faq-item.active .page-about__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #000000; /* Black background when active */
  color: #FFD700; /* Gold text when active */
  border-color: #000000;
}

.page-about__faq-item.active .page-about__faq-question h3,
.page-about__faq-item.active .page-about__faq-toggle {
  color: #FFD700; /* Gold text when active */
}

.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 25px;
  opacity: 0;
  background: #fdfdfd;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 44px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__sub-title {
    font-size: 24px;
  }
  .page-about__image-text-block {
    flex-direction: column;
    text-align: center;
  }
  .page-about__image-left {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image {
    border-radius: 8px;
  }

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

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

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section {
    padding: 40px 0;
  }

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

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

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

  .page-about__image-text-block {
    gap: 20px;
  }

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

  .page-about__service-card img {
     /* Adjust height for mobile cards */
  }
  .page-about__security-icon {
    width: 200px !important; /* Enforce minimum size on mobile */
    height: 150px !important; /* Enforce minimum size on mobile */
  }

  /* Button responsive rules */
  .page-about__cta-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-bottom .page-about__cta-button,
  .page-about__cta-bottom .page-about__btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ responsive */
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  /* General image container handling for mobile overflow prevention */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-text-block,
  .page-about__values-grid,
  .page-about__services-grid,
  .page-about__security-grid,
  .page-about__faq-list,
  .page-about__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Remove padding for the container itself, as sections already have it */
  .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }
  /* Re-add padding to the content elements inside container for better spacing */
  .page-about__container > p,
  .page-about__container > h2,
  .page-about__container > .page-about__image-text-block,
  .page-about__container > .page-about__values-grid,
  .page-about__container > .page-about__services-grid,
  .page-about__container > .page-about__security-grid,
  .page-about__container > .page-about__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none !important;
}