:root {
  --primary-brand-color: #C91F17;
  --secondary-brand-color: #E53935;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --section-bg: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
}

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

.page-about__section {
  padding: 60px 20px;
  background: var(--section-bg);
  color: var(--text-main-color);
}

.page-about__dark-section {
  background: var(--deep-red-color);
  color: var(--light-text-color);
}

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

.page-about__section-title {
  font-size: 3em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -1px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-about__sub-title {
  font-size: 2em;
  color: var(--gold-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small fixed top padding */
  background: var(--deep-red-color);
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border: 4px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px var(--glow-color);
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-about__main-title {
  font-weight: bold;
  color: var(--gold-color);
  line-height: 1.2;
  text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
}

.page-about__description {
  font-size: 1.2em;
  color: var(--light-text-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--btn-gradient);
  color: var(--dark-text-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* Card Grid */
.page-about__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-about__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main-color);
}

/* List Styles */
.page-about__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__list li {
  background: var(--card-bg);
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.1em;
  display: flex;
  align-items: center;
  border-left: 5px solid var(--border-color);
  color: var(--text-main-color);
}

.page-about__list li strong {
  color: var(--gold-color);
  margin-right: 8px;
}

/* Feature Grid */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--light-text-color);
  border: 1px solid var(--border-color);
}

.page-about__feature-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-item p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--light-text-color);
}

/* Security Section */
.page-about__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  border: 4px solid var(--border-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Game Grid */
.page-about__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__game-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__game-card p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main-color);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
  margin-left: 5px;
  margin-right: 5px;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-about__btn-secondary {
  background: var(--deep-red-color);
  color: var(--light-text-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background: var(--primary-brand-color);
}

/* Support Section */
.page-about__support-section .page-about__btn-primary {
  margin-top: 20px;
  margin-bottom: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__btn-secondary {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--gold-color);
}

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: var(--primary-brand-color);
  border-color: var(--gold-color);
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--border-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly darker background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-main-color);
  font-size: 1em;
  line-height: 1.7;
}

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

.page-about__faq-answer .page-about__btn-primary {
  margin-top: 15px;
  margin-bottom: 0;
  padding: 8px 20px;
  font-size: 0.9em;
}

/* CTA Bottom Section */
.page-about__cta-bottom-section {
  text-align: center;
  padding: 80px 20px;
  background: var(--deep-red-color);
}

.page-about__cta-bottom-section .page-about__section-title {
  color: var(--gold-color);
}

.page-about__cta-bottom-section .page-about__text-block {
  color: var(--light-text-color);
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-about__cta-bottom-section .page-about__cta-button,
.page-about__cta-bottom-section .page-about__btn-secondary {
  margin: 10px;
  max-width: 300px;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__sub-title {
    font-size: 1.8em;
  }
  .page-about__hero-image {
    margin-bottom: 20px;
  }
  .page-about__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-about__description {
    font-size: 1.1em;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-about__card-grid, .page-about__feature-grid, .page-about__game-grid {
    gap: 20px;
  }
  .page-about__list li {
    font-size: 1em;
    padding: 12px 20px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-image {
    border-radius: 8px;
    margin-bottom: 20px;
  }
  .page-about__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__cta-button {
    padding: 10px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-about__text-block {
    font-size: 0.95em;
    text-align: left;
  }
  .page-about__card-grid, .page-about__feature-grid, .page-about__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card, .page-about__feature-item, .page-about__game-card {
    padding: 20px;
  }
  .page-about__card-title, .page-about__feature-title, .page-about__game-title {
    font-size: 1.5em;
  }
  .page-about__list li {
    font-size: 0.95em;
    padding: 10px 15px;
  }
  .page-about__security-image {
    border-radius: 8px;
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__game-card a {
    display: block;
    margin-bottom: 10px;
  }
  .page-about__game-card a:last-child {
    margin-bottom: 0;
  }
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 1em;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
  .page-about__cta-bottom-section {
    padding: 50px 15px;
  }
  .page-about__cta-bottom-section .page-about__cta-button,
  .page-about__cta-bottom-section .page-about__btn-secondary {
    margin: 8px 0;
    max-width: 100% !important;
  }
  .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__container > * {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-content {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__security-image, .page-about__card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__main-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }
  .page-about__list li {
    font-size: 0.9em;
  }
  .page-about__card-title, .page-about__feature-title, .page-about__game-title {
    font-size: 1.3em;
  }
  .page-about__faq-qtext {
    font-size: 0.9em;
  }
  .page-about__faq-toggle {
    font-size: 20px;
    width: 20px;
  }
}