/* style/about.css */

/* Custom Colors */
:root {
  --niceph-primary-color: #F2C14E;
  --niceph-secondary-color: #FFD36B;
  --niceph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --niceph-card-bg: #111111;
  --niceph-background: #0A0A0A;
  --niceph-text-main: #FFF6D6;
  --niceph-border: #3A2A12;
  --niceph-glow: #FFD36B;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--niceph-text-main); /* Light text on dark body background */
  background-color: var(--niceph-background);
}

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

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--niceph-primary-color);
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--niceph-text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  background-color: var(--niceph-background);
  padding-top: var(--header-offset, 120px); /* Desktop padding-top to clear fixed header */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 15px;
  text-align: center;
  max-width: 900px;
  box-sizing: border-box;
}

.page-about__hero-title {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--niceph-primary-color);
  line-height: 1.2;
  max-width: 100%;
  font-size: clamp(2.2em, 4vw, 3.5em);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--niceph-text-main);
}

.page-about__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background: var(--niceph-button-gradient);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--niceph-primary-color);
  border: 2px solid var(--niceph-primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--niceph-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Story & Vision Section */
.page-about__story-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

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

.page-about__story-text p {
  margin-bottom: 15px;
  color: var(--niceph-text-main);
}

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

.page-about__story-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Why Choose Us Section */
.page-about__dark-section {
  background-color: var(--niceph-card-bg);
}

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

.page-about__feature-card {
  background-color: var(--niceph-background);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--niceph-text-main);
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--niceph-primary-color);
}

.page-about__feature-card p {
  color: var(--niceph-text-main);
}

.page-about__feature-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__feature-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-content p {
  margin-bottom: 15px;
  color: var(--niceph-text-main);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__responsible-gaming-content a {
  color: var(--niceph-secondary-color);
  text-decoration: underline;
}

.page-about__responsible-gaming-content a:hover {
  color: var(--niceph-primary-color);
}

/* Technology Section */
.page-about__light-bg {
  background-color: var(--niceph-card-bg);
}

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

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

.page-about__technology-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__technology-text {
  flex: 1;
  min-width: 300px;
}

.page-about__technology-text p {
  margin-bottom: 15px;
  color: var(--niceph-text-main);
}

/* Join Community Section */
.page-about__join-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__join-card {
  background-color: var(--niceph-card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--niceph-text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__join-card h3 {
  color: var(--niceph-primary-color);
  margin-bottom: 15px;
}

.page-about__join-card p {
  color: var(--niceph-text-main);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-about__join-card .page-about__btn-primary {
  width: 100%;
  margin-top: auto;
}

/* Partnerships Section */
.page-about__partners-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-about__partner-logo-item {
  background-color: var(--niceph-background);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--niceph-border);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 167px;
  min-height: 127px;
}

.page-about__partner-logo-item img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(100%); /* Example to make logos monochrome, if desired */
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
   /* Fixed width for partner logos */
   /* Fixed height for partner logos */
  min-
  min-
}

.page-about__partner-logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

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

.page-about__faq-item {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: var(--niceph-background);
  color: var(--niceph-primary-color);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-about__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: var(--niceph-primary-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--niceph-secondary-color);
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--niceph-text-main);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px;
}

.page-about__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: var(--niceph-text-main);
}

/* Contact Section */
.page-about__contact-section .page-about__btn-primary {
  margin-top: 20px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* General text color for readability on main background */
.page-about p, .page-about li, .page-about span {
  color: var(--niceph-text-main);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-about__story-content,
  .page-about__technology-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile padding-top */
  }

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

  .page-about__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .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__hero-cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

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

  .page-about__partner-logo-item {
    min-width: unset;
    width: 45%; /* Adjust as needed for smaller screens */
    height: auto;
  }

  .page-about__partner-logo-item img {
    width: 100%;
    height: auto;
    min-width: unset;
    min-height: unset;
  }
}

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

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

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