/* style/about.css */

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

.page-about {
  color: var(--nustar-text-main); /* Ensure text is readable on dark background */
  background-color: var(--nustar-background); /* Explicitly set for content area */
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--nustar-background);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--nustar-secondary);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-about__intro-text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--nustar-text-main);
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--nustar-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--nustar-secondary);
  border: 2px solid var(--nustar-secondary);
  margin-left: 20px;
}

.page-about__btn-secondary:hover {
  background: var(--nustar-secondary);
  color: var(--nustar-card-bg);
  transform: translateY(-2px);
}

.page-about__mission-vision-section,
.page-about__story-section,
.page-about__why-choose-section,
.page-about__responsible-gaming-section,
.page-about__cta-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--nustar-background);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--nustar-secondary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-about__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: var(--nustar-text-main);
}

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

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

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

.page-about__image-block {
  flex: 1;
  min-width: 200px; /* Enforce min-width for image block */
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-about__sub-title,
.page-about__feature-title,
.page-about__info-title {
  font-size: 1.6rem;
  color: var(--nustar-primary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__text-block p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--nustar-text-main);
}

.page-about__text-block a {
  color: var(--nustar-primary);
  text-decoration: underline;
}

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

.page-about__feature-card,
.page-about__info-card {
  background-color: var(--nustar-card-bg);
  border: 1px solid var(--nustar-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.page-about__feature-card:hover,
.page-about__info-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-card p,
.page-about__info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--nustar-text-main);
}

.page-about__feature-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-about__cta-text {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 40px;
  color: var(--nustar-text-main);
}

.page-about__cta-text a {
  color: var(--nustar-primary);
  text-decoration: underline;
}

.page-about__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: var(--nustar-card-bg);
  border: 1px solid var(--nustar-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.1rem;
  color: var(--nustar-text-main);
  margin: 0;
  font-weight: 600;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  color: var(--nustar-primary);
  font-weight: 700;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--nustar-text-main);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__content-grid {
    flex-direction: column;
    text-align: center;
  }

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

  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }

  .page-about__sub-title {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

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

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .page-about__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-about__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-about__section-description {
    font-size: 0.95rem;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .page-about__features-grid,
  .page-about__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-about__feature-card,
  .page-about__info-card {
    padding: 25px;
  }

  .page-about__feature-title,
  .page-about__info-title {
    font-size: 1.4rem;
  }

  .page-about__text-block p,
  .page-about__feature-card p,
  .page-about__info-card p,
  .page-about__faq-answer p {
    font-size: 0.9rem;
  }

  .page-about__image-block img,
  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }
  
  .page-about__container,
  .page-about__hero-content,
  .page-about__image-block,
  .page-about__text-block,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__faq-title {
    font-size: 1rem;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px;
  }
}