:root {
  --main-color: #11A84E;
  --auxiliary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color */
  background-color: var(--background); /* Default background color */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 700px; /* Limit hero image height */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 200px; /* Push content down to avoid overlapping image top */
  padding: 40px;
  background: rgba(8, 22, 15, 0.8); /* Card BG: #11271B, but slightly darker for overlay */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold); /* Use gold for main title */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.page-about__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
}

.page-about__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
}

.page-about__cta-button--secondary:hover {
  background: var(--main-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}


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

.page-about__heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--gold);
  position: relative;
  padding-bottom: 15px;
}

.page-about__heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--main-color);
  border-radius: 2px;
}

.page-about__intro-section,
.page-about__history-section,
.page-about__values-section,
.page-about__security-section,
.page-about__team-section,
.page-about__responsible-gaming-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: var(--background); /* Deep Green: #08160F */
  color: var(--text-main);
}

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

.page-about__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-about__text-block h3 {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

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

.page-about__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

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

.page-about__value-card {
  background-color: var(--card-bg); /* Card BG: #11271B */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__value-title {
  font-size: 1.5rem;
  color: var(--main-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__value-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-color);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

/* Call to Action Section */
.page-about__cta-section {
  text-align: center;
  background: linear-gradient(to right, var(--deep-green), var(--main-color));
  padding: 60px 20px;
  color: #ffffff;
}

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

.page-about__cta-section .page-about__heading::after {
  background-color: #ffffff;
}

.page-about__cta-section .page-about__description {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-about__content-wrapper--reversed {
    flex-direction: column; /* Revert to column for smaller screens */
  }

  .page-about__image-block {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-content {
    padding: 30px 20px;
    margin-top: 150px;
  }

  .page-about__main-title {
    font-size: 2rem;
  }

  .page-about__description {
    font-size: 1rem;
  }

  .page-about__heading {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .page-about__intro-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__security-section,
  .page-about__team-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 60px 0;
  }

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

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

  .page-about__value-title {
    font-size: 1.3rem;
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 18px 20px;
  }

  .page-about__faq-answer {
    padding: 0 20px 18px;
  }

  /* Force responsive for images, videos, buttons */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__image-block,
  .page-about__text-block,
  .page-about__values-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* Video specific mobile styles, if any */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-about__video-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
  }
  
  .page-about__cta-button,
  .page-about__btn-primary,
  .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;
    /* Padding already handled by .page-about__container etc. if button is inside */
  }
  
  .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;
  }
  
  .page-about__hero-image {
    max-height: 400px;
  }
  .page-about__hero-content {
    margin-top: 100px; /* Adjust for smaller screens */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.6rem;
  }
  .page-about__heading {
    font-size: 1.6rem;
  }
  .page-about__cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }
  .page-about__cta-button--large {
    font-size: 1.1rem;
    padding: 15px 25px;
  }
}