/* Base styles for About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-about__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD86A; /* Gold color for titles */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-bottom: 40px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height */
}

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

.page-about__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #FFD86A; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #ffffff; /* Button text white */
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--large {
  padding: 18px 40px;
  font-size: 22px;
}

.page-about__cta-button--outline {
  background: transparent;
  border: 2px solid #FFD86A;
  color: #FFD86A;
  margin-left: 20px;
}

.page-about__cta-button--outline:hover {
  background: #FFD86A;
  color: #B71C1C;
}

.page-about__about-overview p, .page-about__security-tech p, .page-about__customer-support p, .page-about__responsible-gaming p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-about__about-overview strong, .page-about__security-tech strong, .page-about__customer-support strong, .page-about__responsible-gaming strong {
  color: #FFD86A;
}

.page-about__card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF5E1;
  height: 100%; /* Ensure cards in grid have equal height */
  box-sizing: border-box;
}

.page-about__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD86A;
  margin-bottom: 15px;
}

.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.page-about__core-values .page-about__section-title {
  margin-bottom: 40px;
}

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

.page-about__value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

.page-about__value-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__value-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD86A;
  margin-bottom: 10px;
}

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

.page-about__product-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
  max-width: 100%;
  height: auto;
}

.page-about__product-card .page-about__product-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFD86A;
  padding: 0 20px;
  margin-bottom: 10px;
}

.page-about__product-card p {
  font-size: 15px;
  color: #FFF5E1;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #FFD86A;
  color: #B71C1C; /* Deep Red for contrast */
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Push to bottom */
  margin-bottom: 20px;
  margin-left: 20px;
  border: none;
  cursor: pointer;
  max-width: calc(100% - 40px); /* Adjust for padding */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-secondary:hover {
  background: #F4D34D;
  color: #7A0E0E;
}

.page-about__security-list, .page-about__support-channels, .page-about__responsible-features {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-about__security-list li, .page-about__support-channels li, .page-about__responsible-features li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-about__security-list li strong, .page-about__support-channels li strong, .page-about__responsible-features li strong {
  color: #FFD86A;
}

.page-about__faq-section .page-about__section-title {
  margin-bottom: 30px;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1;
}

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;
  color: #FFD86A;
  font-weight: 600;
}

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: #E53935; /* Auxiliary color for hover */
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD86A;
  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: #C91F17; /* Main color for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
  font-size: 16px;
}

.page-about__cta-final {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-about__cta-final .page-about__description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Media Queries --- */

/* Mandatory @media (max-width: 1023px) for game trial reset (even if not on this page) */
@media (max-width: 1023px) {
  .page-about__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__hero-brand,
  .page-about__hero-jackpot {
    display: none !important;
  }
  .page-about__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__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-topbar,
  .page-about__game-trial-bottombar {
    display: none !important;
  }
  .page-about__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__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__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-about__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* Mandatory @media (min-width: 1024px) for PC 3-column layout (even if not on this page) */
@media (min-width: 1024px) {
  .page-about__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__hero-brand,
  .page-about__hero-jackpot,
  .page-about__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-about__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-about__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-about__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-about__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mandatory @media (max-width: 768px) for mobile adaptations */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__cta-button,
  .page-about__cta-button--outline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 20px;
    font-size: 18px;
  }
  .page-about__cta-button--outline {
    margin-top: 15px;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__grid-two-cols,
  .page-about__grid-values,
  .page-about__grid-products {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__value-item {
    padding: 20px;
  }
  .page-about__value-icon {
    width: 100px;
    height: 100px;
  }
  .page-about__product-image {
    height: 180px;
  }
  .page-about__btn-secondary {
    max-width: calc(100% - 40px) !important;
    width: calc(100% - 40px) !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

/* Additional common CSS for game trial overlay (even if not on this page) */
.page-about__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-about__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-about__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-about__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-about__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
}
.page-about__reward-modal[hidden] {
  display: none !important;
}
.page-about__reward-modal-content {
  background-color: #D32F2F;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  color: #FFF5E1;
}
.page-about__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFD86A;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}
.page-about__reward-modal-title {
  font-size: 28px;
  color: #FFD86A;
  margin-bottom: 15px;
}
.page-about__reward-modal-text {
  font-size: 16px;
  margin-bottom: 25px;
}
.page-about__reward-modal-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #B71C1C;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.page-about__reward-modal-button:hover {
  background: #F4D34D;
}