.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-about__hero-content-wrapper {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  position: relative; /* Ensure content is above image if z-index is used */
  z-index: 1;
}

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

.page-about__main-title {
  font-size: clamp(2em, 4vw, 2.5em); /* Use clamp for H1 font size */
  font-weight: bold;
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  max-width: 100%;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red text for primary button */
  border: 2px solid #F2B544; /* Custom border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Sections */
.page-about__dark-section {
  background-color: #D32F2F; /* Card BG color for dark sections */
  color: #FFF5E1;
  padding: 60px 0;
}

.page-about__story-section,
.page-about__why-choose-us-section,
.page-about__responsible-gaming-section,
.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 40px;
  color: #FFCC66; /* Glow color for section titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__story-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__story-content p {
  font-size: 1.05em;
  color: #FFF5E1;
  text-align: justify;
}

.page-about__story-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Section */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-about__feature-card {
  background-color: #D32F2F; /* Card BG color */
  color: #FFF5E1;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  min-height: 250px; /* Ensure cards have some height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 2px solid #F2B544; /* Custom border */
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F4D34D; /* Gold color for card titles */
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 1em;
  color: #FFF5E1;
}

.page-about__features-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.05em;
  color: #FFF5E1;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Gold color for secondary button text */
  border: 2px solid #FFD86A; /* Gold border */
}

.page-about__btn-secondary:hover {
  background-color: #FFD86A;
  color: #7A0E0E; /* Deep Red text on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-about__cta-section {
  background-color: #B71C1C; /* Main background color */
  color: #FFF5E1;
}

.page-about__cta-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #FFF5E1;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__story-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__hero-content-wrapper {
    padding: 20px 15px;
  }
  .page-about__main-title {
    font-size: clamp(1.6em, 6vw, 2em);
    margin-bottom: 15px;
  }
  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__story-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__story-content p {
    text-align: left; /* Align text left on mobile for better readability */
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__story-image,
  .page-about__features-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons responsive */
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    overflow: hidden !important;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.4em, 7vw, 1.8em);
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
}