/* style/about.css */

/* Base styles for the About page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css, explicitly set for context */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted padding-top to account for header offset */
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

/* Sections */
.page-about__mission-vision,
.page-about__why-choose-us,
.page-about__responsible-gambling,
.page-about__security-fairness,
.page-about__faq-section,
.page-about__cta-bottom {
  padding: 80px 0;
}

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

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Inherit from section background */
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: inherit;
}

.page-about__content-area {
  padding: 0 20px;
}

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

.page-about__grid-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-about__grid-reverse .page-about__grid-item:first-child {
  order: 2;
}

.page-about__grid-reverse .page-about__grid-item:last-child {
  order: 1;
}

.page-about__grid-item {
  text-align: left;
}

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

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

.page-about__item-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__item-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: inherit;
}

.page-about__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 20px;
  color: inherit;
}

/* 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-bottom: 50px;
}

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlighted color for feature titles */
}

.page-about__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  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: #e02020;
  border-color: #e02020;
  color: #ffffff;
}

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

/* Call to Action Bottom */
.page-about__cta-bottom {
  text-align: center;
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-about__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-about__cta-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f8f8f8;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: #333333;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__cta-title {
    font-size: 2.2em;
  }
  .page-about__grid,
  .page-about__grid-reverse {
    grid-template-columns: 1fr;
  }
  .page-about__grid-reverse .page-about__grid-item:first-child {
    order: 1;
  }
  .page-about__grid-reverse .page-about__grid-item:last-child {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: var(--header-offset, 120px) 20px 60px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 0.95em;
  }
  .page-about__item-title {
    font-size: 1.5em;
  }
  .page-about__item-text,
  .page-about__text-block,
  .page-about p,
  .page-about li {
    font-size: 1em;
  }
  .page-about__feature-list {
    grid-template-columns: 1fr;
  }
  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-bottom {
    padding: 40px 0;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__cta-text {
    font-size: 1em;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-title {
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px;
  }

  /* Mobile specific image handling */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__responsive-image-wrapper,
  .page-about__container,
  .page-about__grid-item,
  .page-about__feature-item,
  .page-about__faq-item,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}