/* style/about.css */

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

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--rubik88-text-main); /* Default text color for dark background */
  background-color: var(--rubik88-background);
}

.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
  color: var(--rubik88-text-main);
  margin-bottom: 1rem;
}

.page-about a {
  color: var(--rubik88-gold);
  text-decoration: none;
}

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

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.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.2em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--rubik88-gold);
}

.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--rubik88-text-secondary);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background: var(--rubik88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--rubik88-gold);
  border: 2px solid var(--rubik88-gold);
}

.page-about__btn-secondary:hover {
  background-color: var(--rubik88-gold);
  color: var(--rubik88-background);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--rubik88-gold);
}

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

.page-about__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--rubik88-text-main);
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__text-block {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__text-block p {
  margin-bottom: 1em;
  color: var(--rubik88-text-main);
}

.page-about__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--rubik88-text-main);
}

.page-about__list li {
  margin-bottom: 0.5em;
}

.page-about__list li strong {
  color: var(--rubik88-gold);
}

/* Section Specific Styles */
.page-about__introduction-section,
.page-about__security-section,
.page-about__promotions-section,
.page-about__future-section {
  padding: 80px 0;
  background-color: var(--rubik88-card-bg); /* Darker background for sections */
  color: var(--rubik88-text-main);
}

.page-about__games-section,
.page-about__customer-service-section,
.page-about__responsibility-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--rubik88-background);
  color: var(--rubik88-text-main);
}

.page-about__game-category {
  background-color: var(--rubik88-deep-green);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--rubik88-border);
}

.page-about__game-title {
  font-size: clamp(1.6em, 2.8vw, 2.4em);
  color: var(--rubik88-gold);
  margin-bottom: 20px;
}

.page-about__game-category p {
  color: var(--rubik88-text-secondary);
  margin-bottom: 20px;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: var(--rubik88-deep-green);
  border: 1px solid var(--rubik88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-item[open] {
  background-color: var(--rubik88-card-bg);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--rubik88-text-main);
  transition: color 0.3s ease;
}

.page-about__faq-question:hover {
  color: var(--rubik88-gold);
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome */
.page-about__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  text-align: center;
  color: var(--rubik88-gold);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  color: var(--rubik88-gold);
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--rubik88-text-secondary);
}

.page-about__faq-answer p {
  margin-bottom: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-image-wrapper {
    max-height: 500px;
  }
}

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

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

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

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

  .page-about__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 1em;
  }

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

  .page-about__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-about__introduction-section,
  .page-about__games-section,
  .page-about__security-section,
  .page-about__customer-service-section,
  .page-about__promotions-section,
  .page-about__responsibility-section,
  .page-about__future-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-about__game-category {
    padding: 20px;
    margin-bottom: 30px;
  }

  .page-about__game-title {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

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

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

  /* Ensure all image containers are responsive */
  .page-about__hero-image-wrapper,
  .page-about__game-category,
  .page-about__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

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

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