/* style/about.css */
.page-about {
  color: #ffffff; /* Default text color for the page, assuming body is dark */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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;
  text-align: center;
  overflow: hidden;
}

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

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

.page-about__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__intro-text {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  text-align: center;
}

.page-about__video-container {
  width: 100%; /* Important for desktop flex container */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 20px;
  border-radius: 8px;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
  text-align: center;
}

.page-about__section-title--centered {
  text-align: center;
}

.page-about__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-about__text-block--centered {
  text-align: center;
}

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

.page-about__mission-vision,
.page-about__game-categories,
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__why-choose,
.page-about__responsible-gaming,
.page-about__cta-bottom {
  padding: 60px 0;
}

/* Color themes */
.page-about__dark-bg {
  background-color: #26A9E0; /* Primary brand color for dark sections */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__card {
  background: #26A9E0; /* Default card background, using brand color */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in grid have equal height */
}

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

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

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

.page-about__features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Lighter background for features in dark section */
  padding: 25px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.page-about__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-about__category-card {
  background-color: #f0f0f0; /* Light background for category cards */
  color: #333333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-about__category-title a {
  color: #26A9E0; /* Brand color for category titles */
  text-decoration: none;
}

.page-about__category-title a:hover {
  text-decoration: underline;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-about__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-about__keyword {
  font-weight: bold;
  color: #FFD700; /* Highlight keywords */
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background: #f0f0f0; /* Light background for FAQ items */
  color: #333333;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #ddd;
  user-select: none;
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: #e0e0e0;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-about__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-about__cards-grid,
  .page-about__categories-grid,
  .page-about__responsible-cards,
  .page-about__features-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

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

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-top: 20px;
  }

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

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-about__text-block {
    font-size: 0.95rem;
    text-align: left;
  }

  .page-about__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-about__video-section,
  .page-about__mission-vision,
  .page-about__why-choose,
  .page-about__game-categories,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__cta-bottom {
    padding: 40px 0;
  }

  /* Mobile image responsive optimization */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__cards-grid,
  .page-about__categories-grid,
  .page-about__responsible-cards,
  .page-about__features-list,
  .page-about__category-card,
  .page-about__card,
  .page-about__feature-item,
  .page-about__faq-item,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
    padding-left: 0;
    padding-right: 0;
  }

  /* Specific padding for sections if needed to avoid content sticking to edges */
  .page-about__mission-vision .page-about__container,
  .page-about__why-choose .page-about__container,
  .page-about__game-categories .page-about__container,
  .page-about__responsible-gaming .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-bottom .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile video responsive optimization */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  /* Mobile button responsive optimization */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

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

  .page-about__faq-answer {
    font-size: 0.95rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-about__section-title {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }
  .page-about__cards-grid,
  .page-about__categories-grid,
  .page-about__responsible-cards,
  .page-about__features-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Ensure link color contrast */
.page-about a {
  color: #26A9E0;
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
}

.page-about__text-block a {
  color: #FFD700; /* Highlight links within text blocks */
}

.page-about__text-block a:hover {
  text-decoration: underline;
}

.page-about__card.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__card.page-about__light-bg .page-about__card-title {
  color: #26A9E0;
}

.page-about__responsible-cards .page-about__card {
  background-color: #f0f0f0; /* Light background for cards in responsible gaming section */
  color: #333333;
}

.page-about__responsible-cards .page-about__card .page-about__card-title {
  color: #26A9E0;
}