/* style/about.css */

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

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__description-text {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-about__highlight {
  color: #FFFF00; /* Yellow for highlights */
  font-weight: bold;
}

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

.page-about__hero-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #FFFF00; /* Yellow for main title */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-about__intro-text {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  width: auto; /* Default width */
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #ffffff; /* Contrasting white text */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #E01010;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #FFFF00;
  color: #121212; /* Dark text on hover for contrast */
  transform: translateY(-2px);
}

/* Who We Are Section */
.page-about__who-we-are {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #f0f0f0;
}

.page-about__who-we-are .page-about__section-title {
  color: #FFFF00;
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

.page-about__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image has a minimum size */
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Mission Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
  background-color: #017439; /* Main brand color as background */
  color: #ffffff;
}

.page-about__mission-vision .page-about__section-title {
  color: #ffffff;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

.page-about__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFF00; /* Yellow for card titles */
  margin-bottom: 15px;
}

.page-about__card p {
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: #121212;
  color: #f0f0f0;
}

.page-about__why-choose-us .page-about__section-title {
  color: #FFFF00;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjusted to be larger, but still fit card */
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFF00; /* Yellow for feature titles */
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 16px;
  color: #e0e0e0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-about__responsible-gaming .page-about__section-title {
  color: #ffffff;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-about__faq-section .page-about__section-title {
  color: #FFFF00;
}

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

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

.page-about__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00;
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Join Us Section */
.page-about__join-us {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
  text-align: center;
}

.page-about__join-us .page-about__section-title {
  color: #FFFF00;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

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

  .page-about__hero-image {
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-about__intro-text {
    font-size: clamp(15px, 3vw, 18px);
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-about__description-text,
  .page-about__text-block p,
  .page-about__card p,
  .page-about__feature-item p,
  .page-about__faq-answer p {
    font-size: 15px;
  }

  .page-about__who-we-are,
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__join-us {
    padding: 60px 0;
  }

  .page-about__feature-icon {
    max-width: 200px; /* Ensure images are not too small but fit */
  }

  .page-about__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-wrapper,
  .page-about__text-block,
  .page-about__feature-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override padding for specific sections that might have full width content */
  .page-about__hero-section .page-about__container,
  .page-about__who-we-are .page-about__container,
  .page-about__mission-vision .page-about__container,
  .page-about__why-choose-us .page-about__container,
  .page-about__responsible-gaming .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__join-us .page-about__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-about__hero-content {
    padding: 0 15px;
  }

  .page-about__text-block {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(24px, 10vw, 32px);
  }
  .page-about__section-title {
    font-size: clamp(20px, 8vw, 28px);
  }
}