/* Base styles for About Us page */
.page-about-us {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background */
}

.page-about-us__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about-us__section-spacing {
  padding: 40px 0;
}

.page-about-us__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F2C14E; /* Main Color */
}

.page-about-us__section-title--light {
  color: #FFF6D6;
}

.page-about-us__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD36B; /* Auxiliary Color */
}

.page-about-us__description {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.page-about-us__description--light {
  color: #FFF6D6;
}

/* Hero Section */
.page-about-us__hero-section {
  padding-top: 10px; /* Small top spacing, not --header-offset */
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about-us__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about-us__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-about-us__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2C14E;
  line-height: 1.2;
}

/* Buttons */
.page-about-us__btn-primary,
.page-about-us__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about-us__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #333333; /* Dark text for contrast on light gradient */
  border: 2px solid #3A2A12;
  margin-right: 15px;
}

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

.page-about-us__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E;
}

.page-about-us__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

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

/* Mission Section */
.page-about-us__mission-section .page-about-us__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about-us__mission-section .page-about-us__text-block {
  flex: 1;
}

.page-about-us__mission-section .page-about-us__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #FFF6D6;
}

.page-about-us__mission-section .page-about-us__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about-us__mission-section .page-about-us__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Why Choose Us Section - Features Grid */
.page-about-us__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about-us__card {
  background: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.page-about-us__card:hover {
  transform: translateY(-5px);
}

.page-about-us__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about-us__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD36B; /* Auxiliary Color */
}

.page-about-us__card p {
  font-size: 15px;
  color: #FFF6D6;
}

/* Values Section */
.page-about-us__dark-section {
  background: #F2C14E; /* Main Color */
  color: #ffffff; /* Forced white text */
}

.page-about-us__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-about-us__value-item {
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background */
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about-us__value-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-about-us__value-item p {
  font-size: 16px;
  color: #FFF6D6;
}

/* History Section */
.page-about-us__history-section .page-about-us__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about-us__history-section .page-about-us__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-about-us__history-section .page-about-us__text-block {
  flex: 1;
}

.page-about-us__history-section .page-about-us__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #FFF6D6;
}

.page-about-us__history-section .page-about-us__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about-us__history-section .page-about-us__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* CTA Box */
.page-about-us__cta-box {
  background: #111111; /* Card BG */
  padding: 50px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #3A2A12;
}

/* FAQ Section */
details.page-about-us__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border Color */
  overflow: hidden;
  background: #111111; /* Card BG */
}
details.page-about-us__faq-item summary.page-about-us__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;
  color: #FFF6D6;
}
details.page-about-us__faq-item summary.page-about-us__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about-us__faq-item summary.page-about-us__faq-question:hover {
  background: #1A1A1A;
}
.page-about-us__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Auxiliary Color */
}
.page-about-us__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-about-us__faq-item .page-about-us__faq-answer {
  padding: 0 20px 20px;
  background: #0A0A0A; /* Background */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
  font-size: 16px;
}

/* Responsive Design */

/* --- START OF HOMEPAGE SPECIFIC CSS TEMPLATE (MUST BE INCLUDED) --- */
@media (max-width: 1023px) {
  .page-about-us__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-about-us__hero-brand,
  .page-about-us__hero-jackpot {
    display: none !important;
  }
  .page-about-us__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-about-us__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about-us__game-trial-topbar,
  .page-about-us__game-trial-bottombar {
    display: none !important;
  }
  .page-about-us__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about-us__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-about-us__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-about-us__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-about-us__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-about-us__hero-brand,
  .page-about-us__hero-jackpot,
  .page-about-us__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about-us__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-about-us__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-about-us__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-about-us__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-about-us__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* --- END OF HOMEPAGE SPECIFIC CSS TEMPLATE --- */

/* General Mobile Adaptation for About Us page */
@media (max-width: 768px) {
  .page-about-us__container {
    padding: 0 15px;
  }

  .page-about-us__main-title {
    font-size: 36px;
  }

  .page-about-us__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-about-us__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about-us__description,
  .page-about-us__text-block p,
  .page-about-us__card p,
  .page-about-us__value-item p {
    font-size: 15px;
  }

  .page-about-us__hero-content {
    padding: 30px 15px;
  }

  .page-about-us__btn-primary,
  .page-about-us__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    margin-right: 0; /* Remove right margin for stacked buttons */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about-us__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-about-us__mission-section .page-about-us__content-wrapper,
  .page-about-us__history-section .page-about-us__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-about-us__features-grid,
  .page-about-us__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about-us__card {
    padding: 20px;
  }

  .page-about-us__card-title {
    font-size: 20px;
  }

  .page-about-us__value-title {
    font-size: 20px;
  }

  .page-about-us__cta-box {
    padding: 30px 20px;
  }

  details.page-about-us__faq-item summary.page-about-us__faq-question {
    padding: 15px;
  }
  .page-about-us__faq-qtext {
    font-size: 16px;
  }
  .page-about-us__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-about-us__faq-item .page-about-us__faq-answer {
    padding: 0 15px 15px;
  }

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

  .page-about-us__hero-image-wrapper,
  .page-about-us__mission-section .page-about-us__image-block,
  .page-about-us__history-section .page-about-us__image-block,
  .page-about-us__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
}