:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-about {
    color: var(--text-main);
    background-color: var(--deep-navy);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, relying on body for --header-offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    margin-top: -150px; /* Pull content slightly over image for visual effect, but not overlap main text */
    padding: 0 20px;
    max-width: 800px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__intro-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    background: var(--btn-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    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 {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__section {
    padding: 60px 0;
    background-color: var(--deep-navy);
    border-bottom: 1px solid var(--divider-color);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

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

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__content-grid--reverse {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
}

.page-about__text-block {
    flex: 1;
}

.page-about__text-block p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-about__text-block strong {
    color: var(--text-main);
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block;
}

.page-about__why-choose {
    background-color: var(--card-bg);
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-about__feature-card {
    background-color: var(--deep-navy);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-about__feature-icon {
    width: 100%;
    max-width: 150px; /* Maintain aspect ratio, but limit width */
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 5px;
}

.page-about__feature-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-about__btn-secondary:hover {
    background: rgba(29, 95, 209, 0.1);
    color: var(--text-main);
    transform: translateY(-2px);
}

.page-about__commitments .page-about__content-wrapper p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Styles */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}
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: rgba(29, 95, 209, 0.1);
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  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: var(--deep-navy);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.page-about__contact-cta {
    text-align: center;
    padding-bottom: 80px;
}

.page-about__contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- General Image & Container Responsiveness --- */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-about__section,
.page-about__container,
.page-about__content-grid,
.page-about__features-grid,
.page-about__cta-group,
.page-about__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Styles --- */
@media (max-width: 1023px) {
  /* These rules are for homepage trial, included as per prompt's CSS field example */
  .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;
  }
}

@media (min-width: 1024px) {
  /* These rules are for homepage trial, included as per prompt's CSS field example */
  .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;
  }
  /* Placeholder for homepage promo/hot-games/brand-intro/winner-ticker if this were index.html */
  /* .page-about__promo-strip { margin-top: 16px; } */
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 20px;
    }
    .page-about__hero-content {
        margin-top: -80px;
    }
    .page-about__main-title {
        font-size: 2rem;
    }
    .page-about__intro-text {
        font-size: 1rem;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-about__content-grid,
    .page-about__content-grid--reverse {
        flex-direction: column;
        gap: 25px;
    }
    .page-about__text-block p {
        font-size: 0.95rem;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-title {
        font-size: 1.2rem;
    }
    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__contact-description {
        font-size: 1rem;
    }
    details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
    .page-about__faq-qtext { font-size: 1rem; }
    details.page-about__faq-item .page-about__faq-answer { padding: 0 15px 15px; }

    /* Mobile image adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-image-wrapper,
    .page-about__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Placeholder for homepage promo/hot-games/brand-intro/winner-ticker if this were index.html */
    /* .page-about__promo-strip-track { grid-template-columns: repeat(4,1fr); overflow-x:hidden; } */
    /* .page-about__hot-games-grid { grid-template-columns: repeat(2,1fr); } */
    /* .page-about__brand-intro { display: block; } */
    /* .page-about__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999; } */
}