/* style/about.css */

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#121212), so use light text */
  background-color: transparent; /* Main section will use its own background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
}

.page-about__dark-bg {
  background-color: rgba(38, 169, 224, 0.8);
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Subtle overlay */
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #26A9E0;
}

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

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-10px);
}

.page-about__value-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__value-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Offerings Section */
.page-about__offerings-section {
  padding: 80px 0;
}

.page-about__offerings-section .page-about__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 50px;
}

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

.page-about__offering-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-about__offering-card:hover {
  transform: translateY(-10px);
}

.page-about__offering-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__offering-card h3,
.page-about__offering-card p,
.page-about__btn-text {
  padding: 0 20px;
}

.page-about__offering-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-about__offering-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-about__btn-text {
  display: block;
  text-align: right;
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 20px;
}

.page-about__btn-text:hover {
  text-decoration: underline;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-about__why-choose-us-section .page-about__section-title {
  color: #ffffff;
}

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

.page-about__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__advantage-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__advantage-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  font-size: 0.95em;
}

.page-about__btn-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.page-about__btn-link:hover {
  text-decoration: underline;
}

/* CTA Bottom Section */
.page-about__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #121212; /* Dark background for strong CTA */
  color: #ffffff;
}

.page-about__cta-bottom-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-about__cta-bottom-description {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.15em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 20px;
  }
  .page-about__hero-section {
    min-height: 500px;
    padding-bottom: 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__mission-section,
  .page-about__values-section,
  .page-about__offerings-section,
  .page-about__why-choose-us-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    padding: 50px 0;
  }
  .page-about__content-grid {
    gap: 30px;
  }
  .page-about__values-grid,
  .page-about__offerings-grid,
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-about__offering-image {
    height: 200px;
  }
  .page-about__advantage-icon {
    width: 80px;
    height: 80px;
  }
  
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-block,
  .page-about__offering-card,
  .page-about__advantage-item,
  .page-about__hero-section .page-about__container,
  .page-about__mission-section .page-about__container,
  .page-about__values-section .page-about__container,
  .page-about__offerings-section .page-about__container,
  .page-about__why-choose-us-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-bottom-section .page-about__container
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title,
  .page-about__cta-bottom-title {
    font-size: 1.5em;
  }
  .page-about__value-title,
  .page-about__offering-title,
  .page-about__advantage-title {
    font-size: 1.3em;
  }
  .page-about__faq-title {
    font-size: 1em;
  }
}