/* style/about.css */

/* Base styles for the page-about content */
.page-about {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color from custom palette */
  background-color: #B71C1C; /* Background color from custom palette */
}

.page-about a {
  color: #F4D34D;
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
}

/* Sections */
.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-about__dark-bg {
  background-color: #B71C1C;
  color: #FFF5E1;
}

.page-about__light-bg {
  background-color: #D32F2F; /* Card BG from custom palette */
  color: #FFF5E1;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #B71C1C;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

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

.page-about__intro-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333333; /* Dark text for contrast on bright button */
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  border-radius: 50px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #FFF5E1;
}

/* Text Blocks and Images */
.page-about__text-block {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #FFF5E1;
  text-align: justify;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

/* Feature List (Why Choose Us) */
.page-about__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__feature-item {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border color */
}

.page-about__feature-title {
  font-size: 1.5rem;
  color: #FFD86A; /* Gold-like color for emphasis */
  margin-bottom: 15px;
}

.page-about__feature-description {
  color: #FFF5E1;
  font-size: 1rem;
}

/* Values Grid */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__value-item {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border color */
}

.page-about__value-title {
  font-size: 1.4rem;
  color: #FFD86A;
  margin-bottom: 15px;
}

.page-about__value-description {
  color: #FFF5E1;
  font-size: 1rem;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-about__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD86A;
  cursor: pointer;
  background-color: #C91F17; /* Main color for summary background */
  border-bottom: 1px solid #E53935;
  list-style: none;
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none;   /* Disable text selection on iOS */
  -moz-user-select: none;      /* Disable text selection on Firefox */
  -ms-user-select: none;       /* Disable text selection on IE/Edge */
  user-select: none;           /* Disable text selection */
}

.page-about__faq-item[open] > .page-about__faq-question {
  border-bottom: 1px solid #F2B544;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFF5E1;
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1.1rem;
  color: #FFF5E1;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 25px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-about__intro-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }
  .page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-about__hero-section {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-about__hero-content {
    padding: 20px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-about__intro-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }

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

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

  .page-about__hero-image-wrapper,
  .page-about__container,
  .page-about__feature-list,
  .page-about__values-grid,
  .page-about__faq-list,
  .page-about__feature-item,
  .page-about__value-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-about__feature-list,
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-item,
  .page-about__value-item,
  .page-about__faq-item {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-about__faq-answer {
    font-size: 0.95rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-about__intro-description {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }
  .page-about__cta-button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/* Ensure no filter properties are used for images */
.page-about img {
  filter: none; /* Explicitly ensure no filter */
}

/* Contrast fixes if needed */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}