/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

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

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

.page-about__section--mission,
.page-about__section--history,
.page-about__section--security,
.page-about__section--future-vision {
  background-color: #FFFFFF;
  color: #333333;
}

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

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

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

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

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #f0f0f0; /* Fallback background if image fails */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-about__main-title {
  font-size: 3em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

/* Grid Layout */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid-layout--reverse {
  grid-template-areas: "image text";
}

.page-about__grid-layout--reverse .page-about__text-block {
  grid-area: text;
}

.page-about__grid-layout--reverse .page-about__image-block {
  grid-area: image;
}

.page-about__text-block p {
  margin-bottom: 1em;
  font-size: 1.05em;
}

.page-about__image-block {
  text-align: center;
}

.page-about__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__product-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-about__dark-section .page-about__product-card {
  background-color: rgba(255, 255, 255, 0.9);
}

.page-about__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-about__product-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-about__product-card p {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Feature List */
.page-about__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

.page-about__feature-item h3 {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__feature-item p {
  color: #555555;
}

/* CTA Section */
.page-about__cta-content {
  text-align: center;
  padding: 40px 20px;
}

.page-about__cta-content .page-about__section-title {
  margin-bottom: 20px;
}

.page-about__cta-content .page-about__section-description {
  margin-bottom: 40px;
  color: #ffffff;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1a8ccb;
  border-color: #1a8ccb;
}

/* Special login button color */
a[href*="login.html"].page-about__btn-primary,
a[href*="login.html"].page-about__btn-secondary {
  background-color: #EA7C07;
  border-color: #EA7C07;
  color: #ffffff;
}

a[href*="login.html"].page-about__btn-secondary {
  background-color: #ffffff;
  color: #EA7C07;
  border-color: #EA7C07;
}

a[href*="login.html"].page-about__btn-primary:hover,
a[href*="login.html"].page-about__btn-secondary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__main-title {
    font-size: 2.5em;
  }

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

  .page-about__grid-layout {
    grid-template-columns: 1fr;
    grid-template-areas: unset; /* Reset for smaller screens */
  }

  .page-about__grid-layout--reverse .page-about__text-block,
  .page-about__grid-layout--reverse .page-about__image-block {
    grid-area: unset;
  }
  
  .page-about__image-block {
    order: -1; /* Image first on mobile for reversed layout */
    margin-bottom: 30px;
  }

  .page-about__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .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__main-title {
    font-size: 2em;
  }

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

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

  /* Images responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of container */
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-about__image-block,
  .page-about__product-card,
  .page-about__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Buttons responsiveness */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    overflow: hidden !important;
  }

  .page-about__product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}