/* style/about.css */

/* Base styles for the About Us page */
.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 from shared.css */
}

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

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

.page-about__dark-bg {
  background-color: #000000; /* Dark background for contrast */
  color: #ffffff;
}

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

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

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

.page-about__intro-text {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-about__text-block {
  text-align: left;
  font-size: 1.1em;
  margin-bottom: 20px;
  color: inherit;
}

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

.page-about__text-small {
  font-size: 0.9em;
  margin-top: 20px;
  color: #cccccc;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

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

.page-about__btn-tertiary:hover {
  background-color: #c26505;
  border-color: #c26505;
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-about__btn-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 15px;
}

.page-about__btn-link:hover {
  text-decoration: underline;
}

.page-about__link {
  color: #26A9E0;
  text-decoration: none;
}

.page-about__link:hover {
  text-decoration: underline;
}

/* Content Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

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

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__image--center {
  display: block;
  margin: 40px auto 0 auto;
}

/* Timeline */
.page-about__timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
  padding-bottom: 60px;
  flex-wrap: wrap;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #26A9E0;
  top: 15px;
  left: 0;
  z-index: 0;
}

.page-about__timeline-item {
  flex: 1;
  padding: 20px;
  position: relative;
  z-index: 1;
  text-align: center;
  background: #000000;
  border-radius: 8px;
  margin: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #26A9E0;
  border: 3px solid #000000;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.page-about__timeline-year {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* Values Grid */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
}

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

.page-about__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-about__card-title a:hover {
  text-decoration: underline;
}

/* Games Grid */
.page-about__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  text-align: center;
  overflow: hidden;
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Support Channels */
.page-about__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__channel-card {
  text-align: center;
}

/* Responsible Gambling List */
.page-about__responsible-gambling-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 30px;
  color: #333333;
}

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

.page-about__list-item::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Benefits Grid */
.page-about__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* CTA Section */
.page-about__cta-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  color: #26A9E0;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #333333;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 3.5em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__content-grid,
  .page-about__content-grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-about__content-grid--reverse .page-about__image-block {
    order: -1;
  }
  .page-about__timeline {
    flex-direction: column;
    align-items: center;
  }
  .page-about__timeline::before {
    width: 2px;
    height: calc(100% - 30px);
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
  }
  .page-about__timeline-item {
    width: 90%;
    max-width: 500px;
    margin: 20px 0;
    padding: 25px;
  }
  .page-about__timeline-item::before {
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
  }
}

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