/* style/about.css */

/* Base styles for the page-about content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Main content area will inherit body bg */
}

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

/* Section styling */
.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: calc(80px + var(--header-offset, 120px)); /* Apply header offset */
  min-height: 600px;
  overflow: hidden;
  background-color: #017439; /* Use brand color for hero background */
  color: #ffffff;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-about__main-heading {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for register/login buttons */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #e00b0b;
  color: #ffffff;
  border-color: #e00b0b;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Links within text */
.page-about__inline-link {
  color: #FFFF00; /* Highlight important links */
  text-decoration: underline;
}

.page-about__inline-link:hover {
  color: #e00b0b;
}

/* Introduction Section */
.page-about__introduction {
  padding: 60px 0;
  background-color: #ffffff; /* White background for this section */
  color: #333333; /* Dark text for white background */
}

.page-about__introduction .page-about__section-title {
  color: #017439; /* Brand color for title on white background */
}

/* Values Section */
.page-about__values-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on green */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__value-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Highlight card titles */
  margin-bottom: 15px;
}

.page-about__card-description {
  font-size: 1em;
  line-height: 1.7;
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light gray background */
  color: #333333; /* Dark text */
}

.page-about__advantages-section .page-about__section-title {
  color: #017439;
}

.page-about__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

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

.page-about__list-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__list-item p {
  margin-bottom: 15px;
}

.page-about__link-more {
  display: inline-block;
  color: #C30808; /* Use register/login button color for emphasis */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__link-more:hover {
  color: #017439;
}

/* Vision Section */
.page-about__vision-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
  text-align: center;
}

.page-about__vision-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-about__responsible-gaming .page-about__section-title {
  color: #017439;
}

.page-about__responsible-gaming .page-about__btn-primary {
  margin-top: 30px;
}

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-about__cta-content {
  max-width: 800px;
}

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

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

.page-about__faq-section .page-about__section-title {
  color: #017439;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #eaf7ed; /* Light background for question */
  border-bottom: 1px solid #e0e0e0;
}

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

.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); /* Rotate '+' to 'x' or '-' */
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

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

/* For <details> tag, hide default marker */
.page-about__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* For Webkit browsers */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-heading {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__list-heading {
    font-size: 1.5em;
  }
}

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

  .page-about__container {
    padding: 0 15px !important; /* Mobile padding */
  }
}