/* style/about.css */

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

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Assume body background is dark */
}

.page-about__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main);
}

.page-about__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: var(--background-dark);
  border-bottom: 1px solid var(--divider-color);
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .page-about__content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-about__card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-about__card-title {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
}

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

.page-about__feature-item {
  text-align: center;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  padding: 10px;
  box-shadow: 0 0 15px rgba(34, 199, 104, 0.4);
}

.page-about__feature-title {
  font-size: clamp(20px, 2.5vw, 24px);
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__feature-item p {
  color: var(--text-secondary);
}

.page-about__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* Values Section */
.page-about__values-section {
  background-color: var(--background-dark);
  border-bottom: 1px solid var(--divider-color);
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 768px) {
  .page-about__values-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-about__values-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-about__value-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__value-title {
  font-size: clamp(20px, 2.5vw, 24px);
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__value-item p {
  color: var(--text-secondary);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
}

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

@media (min-width: 992px) {
  .page-about__responsible-gaming-content {
    flex-direction: row;
    text-align: left;
  }
  .page-about__responsible-gaming-text {
    flex: 1;
  }
  .page-about__responsible-gaming-image-wrapper {
    flex: 1;
    text-align: right;
  }
}

.page-about__responsible-gaming-text {
  color: var(--text-main);
}

.page-about__responsible-gaming-text p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-about__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-about__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-about__list li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.page-about__list li strong {
  color: var(--text-main);
}

.page-about__text-link {
  color: var(--gold-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: var(--primary-color);
}

.page-about__responsible-gaming-image-wrapper {
  text-align: center;
}

.page-about__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-color);
}

/* Security Section */
.page-about__security-section {
  background-color: var(--background-dark);
  border-bottom: 1px solid var(--divider-color);
}

.page-about__security-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .page-about__security-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-about__security-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-about__security-item p {
  color: var(--text-secondary);
}

.page-about__security-item a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-about__security-item a:hover {
  color: var(--primary-color);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
}

.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);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: clamp(18px, 2.5vw, 20px);
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: var(--deep-green);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 0 25px 20px;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.page-about__faq-item summary {
  list-style: none;
}

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

/* Final CTA Section */
.page-about__final-cta-section {
  background-color: var(--background-dark);
  padding-bottom: 80px;
}

.page-about__cta-content {
  text-align: center;
}

.page-about__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
  margin-top: 30px;
  margin-right: 15px;
}

.page-about__cta-button--secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
  margin-top: 30px;
}

.page-about__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.3);
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 36px;
  }
  .page-about__main-title {
    font-size: 48px;
  }
}

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

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

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

  .page-about__section-title {
    font-size: 28px;
  }

  .page-about__section-description {
    font-size: 16px;
  }

  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-about__hero-section {
    min-height: 400px;
    padding-bottom: 60px;
  }

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

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

  .page-about__responsible-gaming-content {
    flex-direction: column;
  }

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

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

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

  .page-about__cta-button--large,
  .page-about__cta-button--secondary {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 15px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-about__cta-button--large:last-child,
  .page-about__cta-button--secondary:last-child {
    margin-bottom: 0;
  }

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

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure images are never smaller than 200px in content areas on desktop */
.page-about__feature-icon,
.page-about__responsible-gaming-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-about img:not(.page-about__hero-image) {
  filter: none;
}

/* Hero image filter is intentional for text readability */