/* style/about.css */

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

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

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

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

.page-about__dark-section {
  background-color: var(--page-about-background);
  color: var(--page-about-text-main);
}

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

.page-about__heading {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-about-text-main);
  line-height: 1.2;
}

.page-about__light-bg .page-about__heading, 
.page-about__light-bg .page-about__subheading {
  color: var(--page-about-primary-color);
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-about-text-secondary);
}

.page-about__light-bg .page-about__description {
  color: #555555;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for slight visual spacing */
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-about__hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 800;
  color: var(--page-about-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-about__hero-content-wrapper .page-about__description {
  font-size: 1.2em;
  max-width: 700px;
  margin-bottom: 30px;
  color: var(--page-about-text-secondary);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

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

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

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(var(--page-about-primary-color), 0.4);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--page-about-primary-color);
  border: 2px solid var(--page-about-primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--page-about-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(var(--page-about-primary-color), 0.2);
}

/* History & Mission Section */
.page-about__history-mission .page-about__content-area {
  text-align: left;
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__subheading {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-about-text-main);
}

.page-about__light-bg .page-about__subheading {
  color: var(--page-about-primary-color);
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* Core Values Section */
.page-about__core-values .page-about__description {
  color: var(--page-about-text-secondary);
}

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

.page-about__value-card {
  background-color: var(--page-about-card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-about-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__value-icon {
  width: 150px; /* Min size for images is 200px, so this is just for the 'icon' representation */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-about-text-main);
}

.page-about__value-card p {
  font-size: 1em;
  color: var(--page-about-text-secondary);
  line-height: 1.6;
}

/* Products & Services Section */
.page-about__products-services .page-about__content-area {
  text-align: left;
}

.page-about__product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__product-list li {
  margin-bottom: 30px;
}

.page-about__product-list li:last-child {
  margin-bottom: 0;
}

.page-about__product-list li h3 {
  margin-bottom: 10px;
}

.page-about__product-list li p {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling .page-about__content-area {
  text-align: left;
}

.page-about__responsible-gambling .page-about__text-block p {
  color: var(--page-about-text-secondary);
}

/* Partners & Tech Section */
.page-about__partners-tech .page-about__content-area {
  text-align: left;
}

.page-about__tech-focus {
  margin-top: 40px;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--page-about-deep-green);
}

.page-about__cta-content .page-about__heading {
  color: var(--page-about-text-main);
}

.page-about__cta-content .page-about__description {
  color: var(--page-about-text-secondary);
}

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

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-about-primary-color);
  list-style: none;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__hero-section {
    min-height: 500px;
  }
  .page-about__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__heading {
    font-size: 2em;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__subheading {
    font-size: 1.5em;
  }
  .page-about__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }
  .page-about__hero-image-wrapper {
    height: 100%;
  }

  /* Image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__hero-content-wrapper .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  /* Button responsive */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .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-left: 15px;
    padding-right: 15px;
  }
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    overflow: hidden !important;
  }
  .page-about__cta-buttons {
    display: flex;
  }

  .page-about__value-icon {
    width: 200px; /* Ensure minimum size */
    height: 200px;
  }
}

@media (max-width: 480px) {
  .page-about__heading {
    font-size: 1.8em;
  }
  .page-about__subheading {
    font-size: 1.3em;
  }
  .page-about__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
  }
}