/* style/about.css */

/* Base Styles */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body background is handled by shared.css */
}

.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-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__paragraph,
.page-about__list-item,
.page-about__card-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__list {
  list-style: disc inside;
  padding-left: 20px;
}

.page-about__list-item {
  margin-bottom: 8px;
}

.page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

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

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

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

/* Color Schemes */
.page-about__dark-bg {
  background-color: #0a0a0a; /* Matches body background */
  color: #ffffff;
}

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

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title {
  color: #017439;
}

.page-about__light-bg .page-about__paragraph,
.page-about__light-bg .page-about__list-item,
.page-about__light-bg .page-about__card-text {
  color: #333333;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -120px; /* Overlap slightly with image for visual flow, but not on text */
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text */
  border-radius: 10px;
  padding-top: 80px;
  padding-bottom: 40px;
}

.page-about__main-title {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive font size */
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

/* Intro Section */
.page-about__intro-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-about__intro-section .page-about__sub-title {
  color: #017439;
}

/* Advantages Section */
.page-about__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__advantage-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__advantage-card .page-about__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__advantage-card .page-about__card-text {
  color: #f0f0f0;
  font-size: 1em;
}

/* Responsibility Section */
.page-about__responsibility-section {
  background-color: #ffffff;
  color: #333333;
}

.page-about__responsibility-section .page-about__section-title {
  color: #017439;
}

.page-about__responsibility-section .page-about__sub-title {
  color: #017439;
}

.page-about__responsibility-section .page-about__paragraph {
  color: #333333;
}

/* Team Section */
.page-about__team-section .page-about__content-wrapper {
  flex-direction: row-reverse; /* Image on left, text on right */
}

/* Contact Section */
.page-about__contact-section {
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__contact-details {
  margin-top: 30px;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.page-about__contact-item {
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -80px;
  }

  .page-about__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

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

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

  .page-about__paragraph,
  .page-about__list-item,
  .page-about__card-text {
    font-size: 1em;
  }

  .page-about__advantage-card {
    padding: 25px;
  }

  .page-about__advantage-card .page-about__card-title {
    font-size: 1.3em;
  }
}

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

  .page-about__container {
    padding: 0 15px !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }

  .page-about__hero-image {
    filter: brightness(0.6);
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 40px 15px 30px !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* General Images and Containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  .page-about__sub-title {
    font-size: 1.4em !important;
  }

  .page-about__paragraph,
  .page-about__list-item,
  .page-about__card-text {
    font-size: 0.95em;
  }

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__text-block,
  .page-about__image-block {
    flex: none;
    width: 100%;
  }

  /* Buttons and Button Containers */
  .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;
    margin: 8px 0 !important;
    padding: 10px 15px !important;
  }

  .page-about__hero-content .page-about__btn-primary {
    padding: 12px 20px !important;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Advantages Grid (Product/Gameshow) */
  .page-about__advantages-grid {
    grid-template-columns: 1fr !important; /* Single column for cards */
    gap: 20px;
  }

  .page-about__advantage-card {
    padding: 20px;
  }

  .page-about__advantage-card .page-about__card-title {
    font-size: 1.2em;
  }

  /* Other content modules */
  .page-about__contact-details {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 1em;
  }
}