/* style/about-us.css */
:root {
  --page-about-us-primary-color: #26A9E0;
  --page-about-us-secondary-color: #FFFFFF;
  --page-about-us-text-dark: #333333;
  --page-about-us-text-light: #FFFFFF;
  --page-about-us-login-color: #EA7C07;
  --page-about-us-background-light: #f5f5f5; /* Matching body default from shared */
  --page-about-us-background-white: #FFFFFF;
}

.page-about-us {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--page-about-us-text-dark); /* Default text color for light body background */
  background-color: var(--page-about-us-background-light); /* Ensure consistency if body bg is overridden */
}

/* Hero Section */
.page-about-us__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: var(--page-about-us-primary-color);
  color: var(--page-about-us-text-light);
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  overflow: hidden;
}

.page-about-us__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin-right: 40px; /* Adjust for image */
}

.page-about-us__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-about-us-text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.page-about-us__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-about-us__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
}

.page-about-us__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* General Container */
.page-about-us__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Section Titles */
.page-about-us__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 60px;
  color: var(--page-about-us-primary-color);
  position: relative;
}

.page-about-us__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-about-us-login-color);
  border-radius: 2px;
}

/* Mission & Vision Section */
.page-about-us__mission-vision-section {
  background-color: var(--page-about-us-background-white);
  padding: 60px 0;
}

.page-about-us__mission-vision-section .page-about-us__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about-us__card {
  background-color: var(--page-about-us-background-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: var(--page-about-us-text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about-us__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about-us__card-title {
  font-size: 1.8em;
  color: var(--page-about-us-primary-color);
  margin-bottom: 20px;
}

.page-about-us__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about-us__card-text {
  font-size: 1em;
  line-height: 1.7;
  text-align: justify;
}

/* Values Section */
.page-about-us__values-section {
  background-color: var(--page-about-us-primary-color); /* Darker background */
  color: var(--page-about-us-text-light);
  padding: 80px 0;
}

.page-about-us__values-section .page-about-us__section-title {
  color: var(--page-about-us-text-light);
}

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

.page-about-us__value-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-about-us__value-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-about-us__value-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-about-us-text-light);
}

.page-about-us__value-description {
  font-size: 1em;
  line-height: 1.7;
  text-align: justify;
}

/* Why Choose Us Section */
.page-about-us__why-choose-us-section {
  background-color: var(--page-about-us-background-white);
  padding: 60px 0;
}

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

.page-about-us__feature-item {
  background-color: var(--page-about-us-background-white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about-us__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about-us__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about-us__feature-title {
  font-size: 1.5em;
  color: var(--page-about-us-primary-color);
  margin-bottom: 15px;
}

.page-about-us__feature-description {
  font-size: 1em;
  line-height: 1.7;
  text-align: justify;
}

/* Responsible Gaming Section */
.page-about-us__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--page-about-us-background-light);
  text-align: center;
}

.page-about-us__content-block {
  max-width: 800px;
  margin: 0 auto;
}

.page-about-us__content-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

/* History Section */
.page-about-us__history-section {
  padding: 80px 0;
  background-color: var(--page-about-us-background-white);
}

.page-about-us__history-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-about-us__history-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

.page-about-us__history-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}


/* FAQ Section */
.page-about-us__faq-section {
  padding: 80px 0;
  background-color: var(--page-about-us-background-light);
}

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

.page-about-us__faq-item {
  background-color: var(--page-about-us-background-white);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-about-us__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-about-us-primary-color);
  cursor: pointer;
  background-color: var(--page-about-us-background-white);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about-us__faq-question:hover {
  background-color: #eaf6ff; /* Lighter shade of primary */
}

.page-about-us__faq-item[open] > .page-about-us__faq-question {
  background-color: #eaf6ff;
}

.page-about-us__faq-qtext {
  flex-grow: 1;
}

.page-about-us__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about-us__faq-item[open] .page-about-us__faq-toggle {
  transform: rotate(45deg); /* Changes + to x or similar */
}

.page-about-us__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--page-about-us-text-dark);
}

/* For details/summary, hide default marker */
.page-about-us__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-about-us__faq-item summary::marker {
  display: none;
}


/* CTA Section */
.page-about-us__cta-section {
  background-color: var(--page-about-us-primary-color);
  color: var(--page-about-us-text-light);
  padding: 80px 20px;
  text-align: center;
}

.page-about-us__cta-section .page-about-us__section-title {
  color: var(--page-about-us-text-light);
}

.page-about-us__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Buttons */
.page-about-us__btn-primary,
.page-about-us__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
  box-sizing: border-box;
}

.page-about-us__btn-primary {
  background-color: var(--page-about-us-login-color); /* Use login color for primary CTA */
  color: var(--page-about-us-text-light);
  border: 2px solid var(--page-about-us-login-color);
}

.page-about-us__btn-primary:hover {
  background-color: #d16b06; /* Darker shade of login color */
  border-color: #d16b06; /* Darker shade of login color */
  transform: translateY(-2px);
}

.page-about-us__btn-secondary {
  background-color: transparent;
  color: var(--page-about-us-text-light);
  border: 2px solid var(--page-about-us-text-light);
}

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

/* Sticky CTA Buttons */
.page-about-us__sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-about-us__sticky-btn {
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  font-size: 1em;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about-us__sticky-btn--register {
  background-color: var(--page-about-us-login-color); /* Login color for register */
  color: var(--page-about-us-text-light);
}

.page-about-us__sticky-btn--register:hover {
  transform: translateY(-3px);
  background-color: #d16b06; /* Darker shade of login color */
}

.page-about-us__sticky-btn--login {
  background-color: var(--page-about-us-primary-color);
  color: var(--page-about-us-text-light);
}

.page-about-us__sticky-btn--login:hover {
  transform: translateY(-3px);
  background-color: #2087b3; /* Darker shade of primary color */
}

/* General image styling for content area */
.page-about-us img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about-us__hero-title {
    font-size: 3em;
  }
  .page-about-us__hero-content {
    margin-right: 0;
  }
}

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

  .page-about-us__hero-section {
    min-height: 500px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-about-us__hero-content {
    max-width: 100%;
    margin-right: 0;
  }

  .page-about-us__hero-title {
    font-size: 2.5em;
  }

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

  .page-about-us__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-about-us__btn-primary,
  .page-about-us__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about-us__container {
    padding: 30px 15px;
  }

  .page-about-us__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .page-about-us__section-title::after {
    bottom: -10px;
  }

  .page-about-us__mission-vision-section .page-about-us__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about-us__values-grid,
  .page-about-us__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about-us__card, 
  .page-about-us__value-item,
  .page-about-us__feature-item {
    padding: 25px;
  }

  .page-about-us__responsible-gaming-section,
  .page-about-us__history-section,
  .page-about-us__faq-section,
  .page-about-us__cta-section {
    padding: 50px 15px;
  }

  .page-about-us__content-block,
  .page-about-us__history-text {
    font-size: 1em;
  }

  .page-about-us__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-about-us__faq-answer {
    font-size: 1em;
    padding: 0 20px 15px 20px;
  }

  .page-about-us__cta-description {
    font-size: 1.1em;
  }

  /* Mobile image, video, button responsiveness */
  .page-about-us img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about-us video,
  .page-about-us__video { /* Assuming a video class if used */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about-us__section,
  .page-about-us__card,
  .page-about-us__container,
  .page-about-us__video-section,
  .page-about-us__video-container,
  .page-about-us__video-wrapper,
  .page-about-us__cta-buttons,
  .page-about-us__button-group,
  .page-about-us__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about-us__sticky-cta {
    flex-direction: row; /* Horizontal for mobile bottom */
    width: calc(100% - 40px); /* 100% width minus 2x20px right/left */
    left: 20px;
    justify-content: space-around;
  }

  .page-about-us__sticky-btn {
    flex: 1; /* Distribute space evenly */
    max-width: 48%; /* To allow for two buttons side by side */
    padding: 10px 15px;
  }
}