/* style/about.css */

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

/* Base styles for the about page content */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Main text color for dark background */
  background-color: var(--page-bg); /* Page background color */
  line-height: 1.6;
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary);
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width for desktop */
  margin-bottom: 40px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-about__hero-description {
  font-size: 1.15em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-group {
  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;
  text-align: center;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Always white text on primary button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-about__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(242, 193, 78, 0.1);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* Mission, Vision, Values Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--page-bg);
}

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

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

.page-about__card-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-about__card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__card p {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

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

.page-about__value-list li::before {
  content: '✔';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

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

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

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

.page-about__feature-icon {
  width: 100%; /* Ensure images fill card width */
  max-width: 150px; /* Max width for icons */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  min-width: 200px; /* Min size for all content images */
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-about__feature-card p {
  font-size: 1em;
  color: var(--text-secondary);
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: var(--page-bg);
}

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

.page-about__team-member {
  background-color: var(--card-bg);
  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__team-photo {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: block;
  border: 3px solid var(--gold-color);
  object-fit: cover;
  min-width: 200px; /* Min size for all content images */
  min-height: 200px;
}

.page-about__member-name {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 5px;
  font-weight: 700;
}

.page-about__member-role {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-about__member-description {
  font-size: 0.95em;
  color: var(--text-main);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-about__responsibility-list li {
  background-color: var(--card-bg);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1.1em;
  position: relative;
  padding-left: 50px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__responsibility-list li::before {
  content: '❖';
  color: var(--secondary-color);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  font-weight: bold;
}

.page-about__outro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 50px auto 0 auto;
  color: var(--text-main);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--page-bg);
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-about__faq-qtext {
  flex-grow: 1;
}

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

.page-about__faq-answer {
  padding: 0 25px;
  font-size: 1em;
  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 */
  padding: 20px 25px 25px 25px;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom-color: transparent;
}

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

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

.page-about__faq-answer a:hover {
  color: var(--secondary-color);
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__hero-image-wrapper {
    margin-bottom: 30px;
  }

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

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__intro-text {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-about__card-grid,
  .page-about__feature-grid,
  .page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

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

  .page-about__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

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

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-about__cta-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-about__intro-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__team-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 50px 0;
  }

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

  .page-about__card-grid,
  .page-about__feature-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-icon,
  .page-about__team-photo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  /* Mobile image and video responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !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;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.5em;
  }

  .page-about__card-title {
    font-size: 1.5em;
  }

  .page-about__feature-title {
    font-size: 1.4em;
  }

  .page-about__member-name {
    font-size: 1.6em;
  }

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