/* style/about.css */

/* Variables (if any are needed, otherwise shared.css handles them) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #f9f9f9;
  --bg-color-dark: #26A9E0; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
}

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default dark text for light body background */
  background-color: var(--secondary-color); /* Default light background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-about__container--content {
  padding: 40px 20px;
}

.page-about__hero-intro {
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* A bit stronger gradient for hero */
  color: var(--text-color-light);
  text-align: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure hero has correct padding top */
  position: relative;
  z-index: 1; /* Ensure content is above any potential background issues */
}

.page-about__main-title {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-about__intro-text {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: #d46a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-about__section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.page-about__section:nth-of-type(even) {
  background-color: var(--bg-color-light);
}

.page-about__dark-section {
  background-color: var(--bg-color-dark);
  color: var(--text-color-light);
}

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-about__section-title--light {
  color: var(--text-color-light);
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 40px auto;
  color: var(--text-color-dark);
}

.page-about__section-description--light {
  color: var(--text-color-light);
}

/* Vision Section */
.page-about__vision-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__vision-content .page-about__text-block {
  flex: 1;
}

.page-about__vision-content .page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__vision-content .page-about__image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Values Grid */
.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.15); /* Slightly transparent white for dark section */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-about__value-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-about__value-item p {
  font-size: 16px;
  color: var(--text-color-light);
  opacity: 0.9;
}

/* History Timeline */
.page-about__history-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding-left: 30px;
  border-left: 3px solid var(--primary-color);
}

.page-about__timeline-item {
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 0 0 3px var(--primary-color);
}

.page-about__timeline-year {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.page-about__timeline-description {
  font-size: 16px;
  color: var(--text-color-dark);
}

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

.page-about__product-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-about__product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

.page-about__product-card h3 {
  padding: 20px 25px 10px;
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-about__product-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__product-card h3 a:hover {
  color: #007bb5; /* Slightly darker primary on hover */
}

.page-about__product-card p {
  padding: 0 25px 25px;
  font-size: 16px;
  color: var(--text-color-dark);
}

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

.page-about__security-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark section */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__security-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.page-about__security-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-about__security-item p {
  font-size: 16px;
  color: var(--text-color-light);
  opacity: 0.9;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: var(--bg-color-light);
  border-color: #d0d0d0;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #000000;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Use !important and large value */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--bg-color-light);
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-answer p {
  font-size: 16px;
  color: var(--text-color-dark);
  margin-bottom: 0;
}

.page-about__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #007bb5;
}

/* CTA Section at the end */
.page-about__section--cta {
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Similar to hero */
  color: var(--text-color-light);
  text-align: center;
  padding: 80px 0;
}

.page-about__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__cta-button--large {
  padding: 18px 50px;
  font-size: 22px;
  background: #EA7C07; /* Login color for CTA */
  color: var(--text-color-light);
}

.page-about__cta-button--large:hover {
  background: #d46a00;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 38px;
  }
  .page-about__intro-text {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__vision-content {
    flex-direction: column;
  }
  .page-about__vision-content .page-about__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-about__hero-intro {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    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__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__values-grid,
  .page-about__product-grid,
  .page-about__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-item,
  .page-about__security-item {
    padding: 25px;
  }

  .page-about__value-title,
  .page-about__security-title {
    font-size: 20px;
  }

  .page-about__history-timeline {
    margin: 40px auto;
    padding-left: 20px;
    border-left: 2px solid var(--primary-color);
  }

  .page-about__timeline-item {
    padding-left: 20px;
  }

  .page-about__timeline-item::before {
    left: -23px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
  }

  .page-about__timeline-year {
    font-size: 20px;
  }

  .page-about__product-card img {
    
  }

  .page-about__product-card h3 {
    font-size: 20px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-question h3 {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  .page-about__section--cta {
    padding: 50px 15px;
  }

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

  /* Mobile image specific rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-intro { /* Ensure hero intro also adapts */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right should be handled by .page-about__container */
  }

  /* Ensure text block within vision content doesn't overflow */
  .page-about__vision-content .page-about__text-block {
    width: 100%;
  }
}