/* style/about.css */
/* 
   Body background color is var(--background) from shared.css.
   Based on the provided custom colors, Card BG is #11271B (dark), 
   Background is #08160F (dark).
   Therefore, text color should be light (#F2FFF6 or #A7D9B8).
*/

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding for visual separation */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(17, 39, 27, 0.85); /* Card BG with transparency for content readability */
  border-radius: 10px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  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);
}

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

/* Section Titles */
.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold, #F2C14E); /* Gold for section titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

/* Text Blocks */
.page-about__text-block {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  text-align: justify;
}

/* Introduction Section */
.page-about__introduction-section {
  background-color: var(--background-dark, #08160F); /* Dark background */
  padding-bottom: 60px;
  color: var(--text-main, #F2FFF6);
}

/* Values Section */
.page-about__values-section {
  background-color: var(--deep-green, #0A4B2C); /* Deep Green for this section */
  padding-bottom: 60px;
  color: var(--text-main, #F2FFF6);
}

.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(--card-bg, #11271B); /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #F2FFF6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px; /* Added for image minimum size requirement */
}

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

.page-about__value-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Commitment Section */
.page-about__commitment-section {
  background-color: var(--background-dark, #08160F);
  padding-bottom: 60px;
  color: var(--text-main, #F2FFF6);
}

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

.page-about__commitment-item {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
}

.page-about__commitment-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-about__commitment-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
  margin-left: 20px;
}

.page-about__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter border color for hover */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: var(--deep-green, #0A4B2C);
  padding-bottom: 60px;
  color: var(--text-main, #F2FFF6);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--background-dark, #08160F);
  padding-bottom: 60px;
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--card-bg, #11271B);
  transition: background-color 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--gold, #F2C14E);
}

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

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

/* For details/summary, hide default marker */
.page-about__faq-item summary {
  list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

/* CTA Section */
.page-about__cta-section {
  background-color: var(--background-dark, #08160F);
  padding-bottom: 80px;
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-about__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
  }

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

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

  .page-about__section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    padding-top: 40px;
    margin-bottom: 30px;
  }

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

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

  .page-about__value-card,
  .page-about__commitment-item,
  .page-about__faq-item {
    padding: 20px;
  }

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

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

  .page-about__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Reset margin for secondary button */
  }

  /* Image responsive rules */
  .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__hero-section,
  .page-about__values-section,
  .page-about__commitment-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

/* Image CSS for minimum size and no filter */
.page-about img {
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  filter: none; /* Ensure no filters are applied */
  -webkit-filter: none; /* Ensure no filters are applied for webkit */
}

/* Specific content area images to ensure min size */
.page-about__value-icon {
  min-width: 100px; /* Icons can be smaller than general content images, but still no tiny ones */
  min-height: 100px;
}

/* Text contrast fixes if needed (example, not active by default) */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}