.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #f8f8f8);
}

.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__dark-bg {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__section-description,
.page-about__dark-bg p,
.page-about__dark-bg h2,
.page-about__dark-bg h3 {
  color: #FFF5E1; /* Ensure all text elements are light */
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__section-title {
  font-size: 3.2em;
  font-weight: bold;
  color: #C91F17;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__dark-bg .page-about__section-title {
  color: #F4D34D; /* Gold for titles on dark background */
}

.page-about__section-description {
  font-size: 1.2em;
  color: #666666;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__dark-bg .page-about__section-description {
  color: #FFF5E1;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

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

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

.page-about__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-50px); /* Lift content slightly over image bottom */
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: #C91F17;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-about__intro-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for gold button */
  border: none;
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 216, 106, 0.6);
}

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #C91F17;
  border: 2px solid #C91F17;
  box-shadow: 0 4px 10px rgba(201, 31, 23, 0.2);
}

.page-about__btn-secondary:hover {
  background-color: #C91F17;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(201, 31, 23, 0.4);
}

/* Story Section */
.page-about__story-section .page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

.page-about__story-section .page-about__image-block {
  flex: 1;
}

.page-about__story-section .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__story-section p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section .page-about__section-title {
  color: #C91F17;
}

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

.page-about__benefit-item {
  background-color: #D32F2F; /* Card BG color */
  color: #FFF5E1; /* Text Main color */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #E53935;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__benefit-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold for titles on cards */
}

.page-about__benefit-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #FFF5E1;
}

/* Values Section */
.page-about__values-section .page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__values-section .page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-about__values-section .page-about__image-block {
  flex: 1;
}

.page-about__values-section .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__values-section p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #FFF5E1;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__section-title {
  color: #C91F17;
}

.page-about__responsible-gaming-content {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: left;
}

.page-about__responsible-gaming-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555555;
}

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

.page-about__team-member {
  background-color: #D32F2F; /* Card BG color */
  color: #FFF5E1; /* Text Main color */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #E53935;
}

.page-about__team-member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #F4D34D; /* Gold border */
}

.page-about__team-member-name {
  font-size: 1.4em;
  font-weight: bold;
  color: #F4D34D; /* Gold for team member names */
  margin-bottom: 5px;
}

.page-about__team-member-role {
  font-size: 0.95em;
  color: #FFF5E1;
}

.page-about__team-outro {
  margin-top: 40px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #FFF5E1;
}

/* CTA Section */
.page-about__cta-section .page-about__section-title {
  color: #C91F17;
}

/* FAQ Section */
.page-about__faq-section {
  text-align: left;
}

.page-about__faq-section .page-about__section-title {
  color: #F4D34D; /* Gold for titles on dark background */
  text-align: center;
}

.page-about__accordion {
  max-width: 900px;
  margin: 40px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(252,139,0,0.5);
}

.page-about__accordion-item {
  border-bottom: 1px solid rgba(252,139,0,0.25);
}

.page-about__accordion-item:last-child {
  border-bottom: none;
}

.page-about__accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #D32F2F; /* Card BG color */
  color: #F4D34D; /* Gold for FAQ titles */
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-about__accordion-title:hover {
  background-color: #E53935; /* Auxiliary color on hover */
}

.page-about__accordion-toggle {
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform 0.3s ease;
}

.page-about__accordion-toggle::before,
.page-about__accordion-toggle::after {
  content: '';
  position: absolute;
  background-color: #F4D34D;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-about__accordion-toggle::before {
  width: 2px;
  height: 100%;
}

.page-about__accordion-toggle::after {
  width: 100%;
  height: 2px;
}

.page-about__accordion-item.is-active .page-about__accordion-toggle::before {
  transform: translate(-50%, -50%) rotate(90deg); /* Rotate to make it a horizontal line */
}

.page-about__accordion-item.is-active .page-about__accordion-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg); /* Keep horizontal */
}

.page-about__accordion-inner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  background-color: #B71C1C; /* Background color for inner content */
  padding: 0 25px;
  color: #FFF5E1;
}

.page-about__accordion-item.is-active .page-about__accordion-inner {
  max-height: 2000px; /* Large enough to accommodate content */
  padding: 20px 25px;
}

.page-about__accordion-inner p {
  font-size: 1em;
  line-height: 1.7;
  color: #FFF5E1;
}

.page-about__footer-placeholder {
  background-color: #7A0E0E; /* Deep Red for footer placeholder */
  color: #FFF5E1;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
}

.page-about__copyright {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    transform: translateY(-30px);
    margin: 0 15px;
  }

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

  .page-about__story-section .page-about__content-wrapper,
  .page-about__values-section .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-about__story-section .page-about__text-block,
  .page-about__story-section .page-about__image-block,
  .page-about__values-section .page-about__text-block,
  .page-about__values-section .page-about__image-block {
    flex: none;
    width: 100%;
  }

  .page-about__benefits-grid,
  .page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-about__accordion-title {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__hero-content {
    padding: 30px 15px;
    transform: translateY(-20px);
    margin-left: 15px;
    margin-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__intro-text {
    font-size: 1em;
  }

  /* CTA Buttons */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* General Section & Container */
  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* Story & Values Sections */
  .page-about__story-section .page-about__content-wrapper,
  .page-about__values-section .page-about__content-wrapper {
    gap: 20px;
  }

  .page-about__story-section p,
  .page-about__values-section p,
  .page-about__responsible-gaming-content p,
  .page-about__team-outro {
    font-size: 1em;
    line-height: 1.6;
  }

  /* Benefits & Team Grids */
  .page-about__benefits-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__benefit-item,
  .page-about__team-member {
    padding: 20px;
  }

  .page-about__benefit-title {
    font-size: 1.4em;
  }

  .page-about__team-member-photo {
    width: 120px;
    height: 120px;
  }

  /* FAQ Accordion */
  .page-about__accordion {
    margin: 30px auto;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__accordion-title {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-about__accordion-inner {
    padding: 0 20px;
  }

  .page-about__accordion-item.is-active .page-about__accordion-inner {
    padding: 15px 20px;
  }

  /* Image responsiveness for all images within .page-about */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__story-section .page-about__image-block,
  .page-about__values-section .page-about__image-block,
  .page-about__team-member-photo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}