/* style/about.css */

/* Core styles for the page-about content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is #111 from shared.css */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #000000, #FFD700); /* Blend brand colors */
  overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px; /* Ensure image corners match container */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-about__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.page-about__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #FFD700; /* Gold button */
  color: #000000; /* Black text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: #e0b800; /* Darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-about__cta-button--gold {
    background: #FFD700;
    color: #000000;
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #FFD700; /* Gold for titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__section-title--light {
  color: #FFD700; /* Gold for titles on dark background */
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: #0a0a0a; /* Slightly lighter than body for contrast */
  padding: 80px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-about__mission-card,
.page-about__vision-card {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__mission-card:hover,
.page-about__vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__mission-card img,
.page-about__vision-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__card-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-about__mission-card p,
.page-about__vision-card p {
  font-size: 1.05em;
  color: #e0e0e0;
  text-align: justify;
}

/* Why Choose Section */
.page-about__why-choose-section {
  background-color: #000000; /* Primary color as background */
  padding: 80px 0;
}

.page-about__dark-section {
    background-color: #000000; /* Ensure dark background */
    color: #ffffff; /* Ensure light text */
}

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

.page-about__feature-item {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__feature-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-about__feature-item p {
  font-size: 1em;
  color: #e0e0e0;
  text-align: justify;
}

.page-about__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: #0a0a0a;
  padding: 80px 0;
}

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

.page-about__text-block {
  flex: 1;
  color: #e0e0e0;
}

.page-about__text-block p {
  margin-bottom: 20px;
  font-size: 1.05em;
  text-align: justify;
}

.page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__image-block img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__learn-more-link {
  display: inline-block;
  margin-top: 20px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__learn-more-link:hover {
  color: #e0b800;
  border-color: #e0b800;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #000000; /* Primary color for FAQ section */
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #2a2a2a;
  border-color: #555555;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for questions */
  pointer-events: none; /* Prevent h3 from blocking click */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent toggle from blocking click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #111111;
  color: #e0e0e0;
  border-radius: 0 0 10px 10px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  text-align: justify;
}
.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }

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

  .page-about__content-grid {
    grid-template-columns: 1fr;
  }

  .page-about__content-wrapper {
    flex-direction: column;
  }

  .page-about__image-block img {
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__container {
    padding: 40px 15px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__feature-item {
    padding: 20px;
  }

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

  .page-about__text-block p {
    font-size: 0.95em;
  }

  .page-about__image-block img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Mobile adjustments */
  .page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-question h3 {
    font-size: 1em;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-about__faq-answer {
    padding: 0 20px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-container,
  .page-about__hero-image,
  .page-about__hero-content,
  .page-about__mission-card,
  .page-about__vision-card,
  .page-about__feature-item,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__faq-question,
  .page-about__faq-answer,
  .page-about__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Remove extra padding from elements that already have it */
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
}