/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0a0a0a; /* Match body background for consistency */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for image container */
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1; /* Ensure content is above any potential background elements */
  color: #ffffff;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

.page-about__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  text-align: center;
  flex-grow: 1; /* Allow buttons to grow */
  max-width: 220px; /* Max width for individual buttons on larger screens */
}

.page-about__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* General Section Styles */
.page-about__section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Default section background, same as body */
  color: #ffffff; /* Default text color */
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for section titles */
}

.page-about__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

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

/* Mission & Vision Section */
.page-about__mission-vision {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr; /* Explicitly set for desktop */
}

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: #161616; /* Darker background for this section */
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__feature-card p {
  color: #e0e0e0;
}

/* Values Section */
.page-about__values {
  background-color: #0a0a0a;
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__value-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Limit icon size */
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: contain;
}

.page-about__value-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

/* Our Team Section */
.page-about__our-team {
  background-color: #1a1a1a;
}

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

.page-about__team-member {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__team-photo {
  width: 100%;
  height: auto;
  max-width: 200px;
  height: 200px; /* Fixed height for team photos */
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__member-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #26A9E0;
}

.page-about__member-role {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.95rem;
  color: #c0c0c0;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling {
  background-color: #0a0a0a;
}

.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__content-flex .page-about__text-block {
  flex: 1;
  min-width: 300px;
  color: #e0e0e0;
}

.page-about__content-flex .page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-about__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-about__list li {
  margin-bottom: 8px;
}

.page-about__btn-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about__btn-link:hover {
  background-color: #1e87c0;
}

/* FAQ Section */
.page-about__faq {
  background-color: #1a1a1a;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-about__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  margin-left: 15px;
  color: #26A9E0;
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
}

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

.page-about__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Bottom CTA Section */
.page-about__cta-bottom {
  background-color: #26A9E0; /* Brand color background for strong CTA */
  color: #ffffff;
  text-align: center;
}

.page-about__cta-bottom .page-about__section-title {
  color: #ffffff; /* White title on brand color background */
}

.page-about__cta-bottom .page-about__section-description {
  color: #ffffff;
}

.page-about__cta-bottom .page-about__btn-primary {
  background-color: #EA7C07; /* Custom color for Login/Register type action */
  border-color: #EA7C07;
}

.page-about__cta-bottom .page-about__btn-primary:hover {
  background-color: #d46f06;
  border-color: #d46f06;
}

.page-about__cta-bottom .page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-about__cta-bottom .page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__content-grid {
    grid-template-columns: 1fr; /* Stack on smaller desktops/tablets */
  }

  .page-about__content-grid--reverse {
    grid-template-columns: 1fr; /* Keep stacking */
  }

  .page-about__content-grid--reverse .page-about__image-wrapper {
    order: -1; /* Image appears first in stacked order */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    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-left: 15px;
    padding-right: 15px;
  }

  .page-about__section {
    padding: 50px 15px;
  }

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

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

  .page-about__content-grid {
    gap: 30px;
  }

  .page-about__content-grid--reverse .page-about__image-wrapper {
    order: -1;
  }

  .page-about__content-flex {
    flex-direction: column; /* Stack items */
    gap: 30px;
  }

  /* Image responsiveness for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsiveness for mobile */
  .page-about__section,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__text-block,
  .page-about__feature-card,
  .page-about__value-card,
  .page-about__team-member,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow on containers */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already has padding-top */
  }

  /* Specific rule for team photos to maintain aspect ratio on mobile if needed, but still responsive */
  .page-about__team-photo {
    max-width: 150px !important; /* Smaller size for mobile */
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
  }
  
  .page-about__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

/* Ensure no image filters */
.page-about img {
  filter: none !important; /* Ensure no CSS filters are applied to images */
}