/* style/about.css */

.page-about {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

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

.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0 0%, #1a1a2e 100%);
  color: #ffffff;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

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

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

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

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

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

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

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0; /* Light text for dark body background */
}

.page-about__dark-section .page-about__text-block {
  color: #f0f0f0;
}

.page-about__mission-vision-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Inherit body background */
  color: #f0f0f0;
}

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

.page-about__grid-2-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-about__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* Light text on dark card */
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.7;
  text-align: justify;
  color: #e0e0e0;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
  color: #e0e0e0;
}

.page-about__value-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-about__value-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__history-section {
  padding: 60px 0;
  background-color: #20203a; /* Slightly lighter dark background */
  color: #f0f0f0;
}

.page-about__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-about__diverse-products-section {
  padding: 60px 0;
  background-color: #1a1a2e;
  color: #f0f0f0;
}

.page-about__security-section {
  padding: 60px 0;
  background-color: #20203a;
  color: #f0f0f0;
}

.page-about__feature-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__feature-text {
  font-size: 1em;
  color: #e0e0e0;
  text-align: center;
}

.page-about__experience-section {
  padding: 60px 0;
  background-color: #1a1a2e;
  color: #f0f0f0;
}

.page-about__content-block {
  text-align: left;
}

.page-about__content-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__content-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-align: justify;
}

.page-about__download-button {
  margin-top: 20px;
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__download-button:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

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

.page-about__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}

.page-about__video-section {
  padding: 60px 0;
  background-color: #20203a;
  text-align: center;
  color: #f0f0f0;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-about__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.page-about__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e;
  color: #f0f0f0;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

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

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

.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;
  background-color: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
  text-align: justify;
}

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

.page-about__faq-answer p {
  margin: 0;
  color: #e0e0e0;
}

.page-about__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #26A9E0 100%);
  color: #ffffff;
}

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

.page-about__cta-description {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ----- Responsive Design ----- */

@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__grid-2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .page-about__cta-title {
    font-size: 2.2em;
  }
}

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

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

  .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% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-about__text-block {
    font-size: 0.95em;
  }

  .page-about__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__grid-2-cols {
    grid-template-columns: 1fr;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.5em;
  }

  .page-about__card-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-about__image-full-width {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-about__feature-title {
    font-size: 1.3em;
  }

  .page-about__content-title {
    font-size: 1.6em;
  }

  .page-about__content-text {
    font-size: 1em;
  }

  .page-about__image-responsive {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-about__video-section {
    padding: 40px 0;
  }

  .page-about__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__video-link,
  .page-about__video {
    width: 100% !important;
    height: 100% !important;
  }

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

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

  .page-about__cta-bottom-section {
    padding: 60px 15px;
  }

  .page-about__cta-title {
    font-size: 2em;
  }

  .page-about__cta-description {
    font-size: 1em;
  }
}

/* Ensure all images are responsive and not smaller than 200px display size */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Min-width/height for content area images, not for icons */
  min-width: 200px; /* Applies to all img, will be overridden by specific icon classes if needed */
  min-height: 200px;
}

/* Override min-size for specific icons that are part of the content but are small by design, if they must be used */
.page-about__feature-icon {
  min-width: 80px; /* Allow smaller icons if they are explicitly categorized as icons and used decoratively */
  min-height: 80px;
  width: 100px; /* Actual size for display */
  height: 100px;
}

@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__feature-icon {
    max-width: 80px !important;
    width: 80px !important;
    height: 80px !important;
    min-width: unset !important; /* Allow icons to be smaller than 200px on mobile */
    min-height: unset !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-block,
  .page-about__image-wrapper,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__faq-item,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Text color for specific background colors */
.page-about__light-bg {
  background: #ffffff;
  color: #333333; 
}

.page-about__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-about__medium-bg {
  background: #FFFFFF;
  color: #000000;
}