.page-about {
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure image is not too small */
  max-height: 600px; /* Limit hero image height */
}

.page-about__hero-content {
  max-width: 900px;
  margin-top: 40px; /* Spacing between image and text */
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #FFB04D; /* Glow color for emphasis */
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__subtitle {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6; /* Text Main */
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A; /* Auxiliary color border */
}

.page-about__btn-secondary:hover {
  background-color: #FFA53A;
  color: #0D0E12; /* Background color */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.2);
}

.page-about__btn-link {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background-color: #FF8C1A; /* Main color */
  color: #FFF3E6; /* Text Main */
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 600;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-link:hover {
  background-color: #FFA53A; /* Auxiliary color */
  transform: translateY(-1px);
}

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

.page-about__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
  font-weight: 700;
}

.page-about__section-description {
  font-size: 1.1rem;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Story Section */
.page-about__story-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

.page-about__story-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-about__story-text {
  flex: 2;
  min-width: 300px;
}

.page-about__story-text p {
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
}

.page-about__story-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.page-about__story-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 60px 0;
}

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

.page-about__feature-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border color */
}

.page-about__feature-icon {
  width: 200px; /* Adjusted to meet min 200px requirement */
  height: 200px; /* Adjusted to meet min 200px requirement */
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-about__feature-title {
  font-size: 1.4rem;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-text {
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
}

/* Gaming Offerings Section */
.page-about__gaming-offerings {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

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

.page-about__game-card {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__game-title {
  font-size: 1.5rem;
  color: #FF8C1A; /* Main color */
  margin-bottom: 10px;
  padding: 0 20px;
  font-weight: 600;
}

.page-about__game-text {
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  padding: 0 20px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 60px 0;
}

.page-about__responsible-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-about__responsible-text {
  flex: 2;
  min-width: 300px;
}

.page-about__responsible-text p {
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
}

.page-about__responsible-image {
  flex: 1;
  min-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Team Section */
.page-about__team-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

.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: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__team-photo {
  width: 200px; /* Adjusted to meet min 200px requirement */
  height: 200px; /* Adjusted to meet min 200px requirement */
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
}

.page-about__member-name {
  font-size: 1.4rem;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__member-role {
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
}

.page-about__team-description {
  margin-top: 40px;
  text-align: center;
  color: #FFF3E6; /* Text Main */
  font-size: 1.1rem;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FF8C1A; /* Main color */
  list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #FFA53A; /* Auxiliary color */
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
  line-height: 1.5;
}

/* CTA Bottom Section */
.page-about__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: #0D0E12; /* Background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 15px;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-top: 30px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-about__subtitle {
    font-size: 1rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link,
  .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 !important; /* Add padding for mobile readability */
    padding-right: 15px !important;
  }

  .page-about__story-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-top: 40px;
  }

  .page-about__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-about__features-grid,
  .page-about__game-categories,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-icon,
  .page-about__team-photo {
    width: 200px !important;
    height: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-about__game-image {
    height: 180px !important;
  }

  .page-about__faq-item summary {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-about__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure image takes full width */
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure containers do not overflow */
  .page-about__container,
  .page-about__hero-section,
  .page-about__story-section,
  .page-about__why-choose-us,
  .page-about__gaming-offerings,
  .page-about__responsible-gaming,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-bottom,
  .page-about__feature-card,
  .page-about__game-card,
  .page-about__team-member,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  /* Hero section content padding is already handled by its own rule */
  .page-about__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-about__hero-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}