/* style/about.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #26A9E0;
  --button-login-color: #EA7C07;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--secondary-color); /* Default light background */
}

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

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

.page-about__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-about__content-block {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  min-width: 200px; /* Ensure images are not too small */
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-about__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__text-block--light {
  color: var(--text-color-light);
}

.page-about__text-center {
  text-align: center;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #4db0e8 100%); /* Lighter blue gradient */
  color: var(--text-color-light);
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-light);
  text-align: center;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login-color); /* Use login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: #e06c00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Security Section */
.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-about__list-item {
  font-size: 17px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-about__list-item::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary:hover {
  background: #1f8ec4;
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__flex-container {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__flex-container--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 17px;
    margin-bottom: 20px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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 {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 16px;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  .page-about__value-card {
    padding: 20px;
  }
  .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    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__feature-list {
    padding-left: 0;
  }
  .page-about__list-item {
    padding-left: 25px;
  }
}