/* style/about.css */

/* Base styles for the About page */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #017439; /* Brand primary color */
}

.page-about__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #555555;
}

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

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  font-size: 17px;
}

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

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Color scheme specific styles */
.page-about__dark-bg {
  background-color: #017439; /* Primary color */
  color: #ffffff; /* White text for dark background */
}

.page-about__dark-bg .page-about__section-title {
  color: #ffffff;
}

.page-about__dark-bg .page-about__section-description {
  color: #f0f0f0;
}

.page-about__light-bg {
  background-color: #ffffff; /* Secondary color (white) */
  color: #333333; /* Dark text for light background */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__btn-primary:hover {
  background: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-about__btn-register {
  background-color: #C30808; /* Specific register color */
  color: #FFFF00; /* Specific register font color */
  border: 2px solid #C30808;
}

.page-about__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__cta-center {
  margin-top: 50px;
}

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

/* 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 */
  overflow: hidden;
}

.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;
  position: relative;
  z-index: 1;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image */
  color: #ffffff;
}

.page-about__hero-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for prominence */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-about__cta-button {
  padding: 18px 45px;
  font-size: 20px;
  margin-top: 20px;
}

/* Mission and Vision Section */
.page-about__mission-vision .page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__mission-vision .page-about__card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__mission-vision .page-about__card-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-about__mission-vision .page-about__grid-image {
  grid-column: 1 / -1; /* Span across all columns */
  margin-top: 20px;
}

.page-about__mission-vision .page-about__grid-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

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

.page-about__why-choose .page-about__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-about__why-choose .page-about__feature-item img {
  
  
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes color */
}

.page-about__why-choose .page-about__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #017439;
}

/* Team Section */
.page-about__team .page-about__content-wrapper {
  gap: 60px;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling .page-about__content-wrapper {
  gap: 60px;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

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

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  color: #C30808;
  transform: rotate(180deg);
}

.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: #f9f9f9;
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-about__faq-answer p {
  margin: 0;
  padding: 0;
}

/* Contact CTA Section */
.page-about__contact-cta {
  padding: 80px 0;
}

.page-about__contact-cta .page-about__btn-primary {
  margin-right: 15px;
}

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

  .page-about__hero-description {
    font-size: 18px;
  }

  .page-about__section-title {
    font-size: 32px;
  }

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

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

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

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 28px;
  }

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

  .page-about__content-wrapper,
  .page-about__content-wrapper--reverse {
    gap: 30px;
  }

  .page-about__text-block {
    font-size: 16px;
  }

  .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__cta-button,
  .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 {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__why-choose .page-about__feature-grid {
    grid-template-columns: 1fr;
  }

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

  .page-about__faq-question {
    padding: 15px;
  }

  .page-about__faq-question h3 {
    font-size: 16px;
  }

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

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  
  .page-about__mission-vision .page-about__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 28px;
  }

  .page-about__section-title {
    font-size: 24px;
  }

  .page-about__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }

  .page-about__mission-vision .page-about__card-title {
    font-size: 22px;
  }
}