/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

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

.page-about__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #B71C1C; /* Custom background color for hero section */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image to maintain aspect ratio */
  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;
  margin: 20px auto 0;
  padding: 0 20px;
  color: #FFF5E1; /* Light text for dark hero background/image */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #FFF5E1;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; 
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #C91F17; /* Main brand color for titles */
}

.page-about__intro-section,
.page-about__responsible-gaming-section,
.page-about__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333;
}

.page-about__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-about__why-us-section {
  padding: 60px 0;
  background-color: #C91F17; /* Main brand color for dark section */
  color: #FFF5E1;
}

.page-about__why-us-section .page-about__section-title {
  color: #FFF5E1;
}

.page-about__feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__feature-item {
  background-color: #D32F2F; /* Card BG custom color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-about__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-about__feature-description {
  font-size: 1rem;
  color: #FFF5E1;
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: #C91F17; /* Main brand color for text */
  text-decoration: none;
  border: 2px solid #C91F17; /* Border custom color */
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  white-space: normal; 
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about__btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Styles */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-about__hero-description {
    font-size: 1rem;
  }
  .page-about__section-title {
    font-size: 2rem;
  }
  .page-about__feature-list {
    gap: 20px;
  }
  .page-about__feature-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px !important;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }
  .page-about__hero-content {
    margin-top: 15px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem) !important;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px;
  }
  .page-about__intro-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__why-us-section {
    padding: 40px 0 !important;
  }
  .page-about__paragraph {
    font-size: 0.95rem;
  }
  .page-about__content-image {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__feature-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px;
  }
  .page-about__feature-item {
    padding: 20px !important;
  }
  .page-about__feature-title {
    font-size: 1.3rem !important;
  }
  .page-about__faq-item summary.page-about__faq-question {
    padding: 15px !important;
  }
  .page-about__faq-qtext {
    font-size: 15px !important;
  }
  .page-about__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
    height: 24px !important;
    margin-left: 10px !important;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px !important;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}