/* style/resources-w88-brand-story.css */

/* Base styles and color contrast */
.page-resources-w88-brand-story {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
}

.page-resources-w88-brand-story__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-w88-brand-story__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-w88-brand-story__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #CC0000; /* Red underline */
  border-radius: 2px;
}

.page-resources-w88-brand-story__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-w88-brand-story__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light grey for body text on dark background */
}

.page-resources-w88-brand-story__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-resources-w88-brand-story__list-highlight {
  color: #FFD700;
}

.page-resources-w88-brand-story__btn-primary,
.page-resources-w88-brand-story__btn-secondary,
.page-resources-w88-brand-story__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-w88-brand-story__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
  border: 2px solid #CC0000;
}

.page-resources-w88-brand-story__btn-primary:hover {
  background-color: #FFD700;
  border-color: #FFD700;
  color: #000000;
}

.page-resources-w88-brand-story__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-w88-brand-story__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

.page-resources-w88-brand-story__btn-text {
  color: #FFD700;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}

.page-resources-w88-brand-story__btn-text:hover {
  color: #CC0000;
}

/* Hero Section */
.page-resources-w88-brand-story__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources-w88-brand-story__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-resources-w88-brand-story__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-resources-w88-brand-story__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-resources-w88-brand-story__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-resources-w88-brand-story__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-w88-brand-story__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro Video Section */
.page-resources-w88-brand-story__intro-video-section {
  padding: 80px 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources-w88-brand-story__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 800px;
  background-color: #000;
}

.page-resources-w88-brand-story__video-wrapper a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-resources-w88-brand-story__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-resources-w88-brand-story__video-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-top: 20px;
}

/* History Section */
.page-resources-w88-brand-story__history-section {
  padding: 80px 0;
}

.page-resources-w88-brand-story__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources-w88-brand-story__image-text-block .page-resources-w88-brand-story__content-image {
  flex: 1;
  min-width: 400px;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-w88-brand-story__text-content {
  flex: 1;
}

/* Values Section */
.page-resources-w88-brand-story__values-section {
  padding: 80px 0;
  background-color: rgba(204, 0, 0, 0.1);
}

.page-resources-w88-brand-story__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-w88-brand-story__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources-w88-brand-story__value-card .page-resources-w88-brand-story__card-title {
  color: #FFD700;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-resources-w88-brand-story__value-card .page-resources-w88-brand-story__card-description {
  color: #f0f0f0;
}

.page-resources-w88-brand-story__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
}

/* Product Ecosystem Section */
.page-resources-w88-brand-story__product-ecosystem-section {
  padding: 80px 0;
}

.page-resources-w88-brand-story__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-w88-brand-story__product-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources-w88-brand-story__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-w88-brand-story__product-card .page-resources-w88-brand-story__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-resources-w88-brand-story__product-card .page-resources-w88-brand-story__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources-w88-brand-story__product-card .page-resources-w88-brand-story__card-title a:hover {
  text-decoration: underline;
}

.page-resources-w88-brand-story__product-card .page-resources-w88-brand-story__card-description {
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources-w88-brand-story__cta-center {
  text-align: center;
  margin-top: 60px;
}

/* Security & Tech Section */
.page-resources-w88-brand-story__security-tech-section {
  padding: 80px 0;
  background-color: rgba(204, 0, 0, 0.1);
}

.page-resources-w88-brand-story__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-w88-brand-story__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources-w88-brand-story__feature-card .page-resources-w88-brand-story__card-title {
  color: #FFD700;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-resources-w88-brand-story__feature-card .page-resources-w88-brand-story__card-description {
  color: #f0f0f0;
}

/* Social Responsibility Section */
.page-resources-w88-brand-story__social-responsibility-section {
  padding: 80px 0;
  text-align: center;
}

/* Future Vision Section */
.page-resources-w88-brand-story__future-vision-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* FAQ Section */
.page-resources-w88-brand-story__faq-section {
  padding: 80px 0;
}

.page-resources-w88-brand-story__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources-w88-brand-story__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources-w88-brand-story__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-w88-brand-story__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-w88-brand-story__faq-item.active .page-resources-w88-brand-story__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-resources-w88-brand-story__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources-w88-brand-story__faq-item.active .page-resources-w88-brand-story__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px 25px;
}

.page-resources-w88-brand-story__faq-answer p {
  margin-bottom: 10px;
}

.page-resources-w88-brand-story__faq-answer a {
  color: #CC0000;
  text-decoration: underline;
}

.page-resources-w88-brand-story__faq-answer a:hover {
  color: #FFD700;
}

/* CTA Section */
.page-resources-w88-brand-story__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #CC0000;
  color: #ffffff;
}

.page-resources-w88-brand-story__cta-section .page-resources-w88-brand-story__section-title {
  color: #ffffff;
}

.page-resources-w88-brand-story__cta-section .page-resources-w88-brand-story__section-title::after {
  background-color: #FFD700;
}

.page-resources-w88-brand-story__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Images responsiveness */
.page-resources-w88-brand-story img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-resources-w88-brand-story__hero-title {
    font-size: 3em;
  }
  .page-resources-w88-brand-story__hero-description {
    font-size: 1.1em;
  }
  .page-resources-w88-brand-story__section-title {
    font-size: 2em;
  }
  .page-resources-w88-brand-story__sub-title {
    font-size: 1.6em;
  }
  .page-resources-w88-brand-story__image-text-block {
    flex-direction: column;
  }
  .page-resources-w88-brand-story__image-text-block .page-resources-w88-brand-story__content-image {
    min-width: unset;
    width: 100%;
  }
}

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

  .page-resources-w88-brand-story__container {
    padding: 0 15px !important;
  }

  .page-resources-w88-brand-story__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-w88-brand-story__hero-content {
    padding: 20px;
  }

  .page-resources-w88-brand-story__hero-title {
    font-size: 2em;
  }

  .page-resources-w88-brand-story__hero-description {
    font-size: 1em;
  }

  .page-resources-w88-brand-story__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
}