/* style/about.css */

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

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

.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__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--deep-green-color);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

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

.page-about__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color); /* Using gold for main title for prominence */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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(--button-gradient);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  filter: brightness(1.1);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-about__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

/* Mission & Vision Section */
.page-about__mission-vision {
  background-color: var(--text-main); /* Light background for contrast */
  color: var(--background-color); /* Dark text on light background */
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__mission-vision .page-about__section-title {
  color: var(--background-color);
}

.page-about__mission-vision .page-about__description {
  color: var(--background-color);
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-about__grid-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-about__item-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__grid-item p {
  margin-bottom: 15px;
  color: #333333;
}

/* Values & Commitment Section */
.page-about__values-commitment {
  background-color: var(--card-bg); /* Dark background */
  color: var(--text-main); /* Light text */
}

.page-about__values-commitment .page-about__section-title {
  color: var(--text-main);
}

.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(--deep-green-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-about__value-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes color */
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--glow-color);
}

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

.page-about__cta-buttons--center {
  margin-top: 50px;
}

/* Security & Features Section */
.page-about__security-features {
  background-color: var(--text-main); /* Light background */
  color: var(--background-color); /* Dark text */
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__security-features .page-about__section-title {
  color: var(--background-color);
}

.page-about__security-features .page-about__description {
  color: #333333;
}

.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-about__feature-item .page-about__item-title {
  color: var(--primary-color);
}

.page-about__feature-item p {
  color: #333333;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  background-color: var(--deep-green-color); /* Dark background */
  color: var(--text-main); /* Light text */
}

.page-about__responsible-gaming .page-about__section-title,
.page-about__responsible-gaming .page-about__item-title {
  color: var(--gold-color);
}

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

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

.page-about__responsible-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--border-color);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--text-main); /* Light background */
  color: var(--background-color); /* Dark text */
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__faq-section .page-about__section-title {
  color: var(--background-color);
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--background-color);
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-about__faq-question::-webkit-details-marker { /* For <summary> tag */
  display: none;
}

.page-about__faq-question:hover {
  background-color: #f0f0f0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  padding-top: 10px;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 2000px; /* For <details> tag */
  padding-top: 10px;
}

/* Footer Placeholder Styling (for content below main) */
.page-about__footer-placeholder {
  height: 100px; /* Example height for footer area */
  background-color: var(--background-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  border-top: 1px solid var(--divider-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-about__grid,
  .page-about__values-grid,
  .page-about__feature-grid,
  .page-about__responsible-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__grid-item,
  .page-about__value-card,
  .page-about__feature-item,
  .page-about__responsible-item {
    padding: 25px;
  }

  .page-about__item-title {
    font-size: 1.6em;
  }
}

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

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

  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about__hero-content {
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

  .page-about__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-about__description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-about__container,
  .page-about__grid-item,
  .page-about__value-card,
  .page-about__feature-item,
  .page-about__responsible-item,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  /* Image responsive for mobile */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers with images are responsive */
  .page-about__hero-image-wrapper,
  .page-about__value-card,
  .page-about__grid-item,
  .page-about__feature-item,
  .page-about__responsible-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}