/* style/resources-go88-tai-xiu-download-guide.css */

/* Root variables for color scheme */
:root {
  --go88-primary-color: #004080; /* Dark Blue */
  --go88-secondary-color: #FFD700; /* Gold */
  --go88-text-light: #ffffff; /* White text for dark backgrounds */
  --go88-text-dark: #333333; /* Dark text for light backgrounds */
  --go88-bg-dark: #121212; /* Body background from shared.css */
}

.page-resources-go88-tai-xiu-download-guide {
  color: var(--go88-text-light); /* Default text color for dark body background */
  background-color: var(--go88-bg-dark); /* Ensure consistency with body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources-go88-tai-xiu-download-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-resources-go88-tai-xiu-download-guide__center-text {
  text-align: center;
}

.page-resources-go88-tai-xiu-download-guide__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-resources-go88-tai-xiu-download-guide__section-title {
  font-size: 2.5em;
  color: var(--go88-secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources-go88-tai-xiu-download-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--go88-text-light);
}

/* Background color variations */
.page-resources-go88-tai-xiu-download-guide__dark-bg {
  background-color: var(--go88-primary-color);
  color: var(--go88-text-light);
}

.page-resources-go88-tai-xiu-download-guide__light-bg {
  background-color: var(--go88-text-light);
  color: var(--go88-text-dark);
}

.page-resources-go88-tai-xiu-download-guide__light-bg .page-resources-go88-tai-xiu-download-guide__section-title {
  color: var(--go88-primary-color);
}

.page-resources-go88-tai-xiu-download-guide__light-bg .page-resources-go88-tai-xiu-download-guide__section-description,
.page-resources-go88-tai-xiu-download-guide__light-bg p {
  color: var(--go88-text-dark);
}

/* Hero Section */
.page-resources-go88-tai-xiu-download-guide__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  min-height: 600px;
  background: linear-gradient(135deg, var(--go88-primary-color) 0%, #002a52 100%);
  color: var(--go88-text-light);
  position: relative;
  overflow: hidden;
}

.page-resources-go88-tai-xiu-download-guide__hero-content {
  max-width: 50%;
  z-index: 1;
  padding-right: 40px;
}

.page-resources-go88-tai-xiu-download-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--go88-secondary-color);
  font-weight: bold;
}

.page-resources-go88-tai-xiu-download-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--go88-text-light);
}

.page-resources-go88-tai-xiu-download-guide__hero-image-wrapper {
  max-width: 45%;
  text-align: right;
  z-index: 1;
}

.page-resources-go88-tai-xiu-download-guide__hero-image {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.page-resources-go88-tai-xiu-download-guide__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-go88-tai-xiu-download-guide__btn-primary,
.page-resources-go88-tai-xiu-download-guide__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources-go88-tai-xiu-download-guide__btn-primary {
  background-color: var(--go88-secondary-color);
  color: var(--go88-primary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources-go88-tai-xiu-download-guide__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources-go88-tai-xiu-download-guide__btn-secondary {
  background-color: transparent;
  color: var(--go88-text-light);
  border: 2px solid var(--go88-secondary-color);
}

.page-resources-go88-tai-xiu-download-guide__btn-secondary:hover {
  background-color: var(--go88-secondary-color);
  color: var(--go88-primary-color);
  transform: translateY(-2px);
}

.page-resources-go88-tai-xiu-download-guide__btn-icon {
  margin-left: 10px;
  font-size: 1.2em;
}

.page-resources-go88-tai-xiu-download-guide__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Features Grid */
.page-resources-go88-tai-xiu-download-guide__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-go88-tai-xiu-download-guide__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  background-color: var(--go88-text-light);
  color: var(--go88-text-dark);
}

.page-resources-go88-tai-xiu-download-guide__feature-item .page-resources-go88-tai-xiu-download-guide__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--go88-primary-color);
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-go88-tai-xiu-download-guide__feature-title {
  font-size: 1.8em;
  color: var(--go88-primary-color);
  margin-bottom: 15px;
}

.page-resources-go88-tai-xiu-download-guide__feature-description {
  font-size: 1em;
  color: var(--go88-text-dark);
}

/* Steps Grid */
.page-resources-go88-tai-xiu-download-guide__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-go88-tai-xiu-download-guide__step-item {
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent background for dark section */
  color: var(--go88-text-light);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources-go88-tai-xiu-download-guide__step-title {
  font-size: 1.6em;
  color: var(--go88-secondary-color);
  margin-bottom: 15px;
}

.page-resources-go88-tai-xiu-download-guide__step-item p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-go88-tai-xiu-download-guide__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Video Section */
.page-resources-go88-tai-xiu-download-guide__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 100%;
  box-sizing: border-box;
}

.page-resources-go88-tai-xiu-download-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-resources-go88-tai-xiu-download-guide__video-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: var(--go88-text-dark);
}

/* FAQ Section */
.page-resources-go88-tai-xiu-download-guide__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-go88-tai-xiu-download-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-go88-tai-xiu-download-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--go88-secondary-color);
  font-weight: bold;
  background-color: var(--go88-primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-go88-tai-xiu-download-guide__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1.2em;
}

.page-resources-go88-tai-xiu-download-guide__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--go88-secondary-color);
}

.page-resources-go88-tai-xiu-download-guide__faq-item.active .page-resources-go88-tai-xiu-download-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-go88-tai-xiu-download-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--go88-text-light);
}

.page-resources-go88-tai-xiu-download-guide__faq-item.active .page-resources-go88-tai-xiu-download-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-resources-go88-tai-xiu-download-guide__faq-answer p {
  margin: 0;
  color: var(--go88-text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-go88-tai-xiu-download-guide__hero-title {
    font-size: 2.8em;
  }

  .page-resources-go88-tai-xiu-download-guide__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-resources-go88-tai-xiu-download-guide__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header spacing */
  }

  .page-resources-go88-tai-xiu-download-guide__hero-content,
  .page-resources-go88-tai-xiu-download-guide__hero-image-wrapper {
    max-width: 100%;
    padding: 0;
  }

  .page-resources-go88-tai-xiu-download-guide__hero-title {
    font-size: 2.2em;
    margin-top: 20px;
  }

  .page-resources-go88-tai-xiu-download-guide__hero-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-resources-go88-tai-xiu-download-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-go88-tai-xiu-download-guide__btn-primary,
  .page-resources-go88-tai-xiu-download-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-go88-tai-xiu-download-guide__section-title {
    font-size: 2em;
  }

  .page-resources-go88-tai-xiu-download-guide__container,
  .page-resources-go88-tai-xiu-download-guide__content-block,
  .page-resources-go88-tai-xiu-download-guide__faq-list,
  .page-resources-go88-tai-xiu-download-guide__video-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  
  .page-resources-go88-tai-xiu-download-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-go88-tai-xiu-download-guide video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content area images must be >= 200px. This ensures they are not shrunk below it. */
  .page-resources-go88-tai-xiu-download-guide__feature-icon,
  .page-resources-go88-tai-xiu-download-guide__step-image {
    min-width: 200px;
    min-height: 200px;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain; /* Ensure full image is visible if aspect ratio changes */
  }

  .page-resources-go88-tai-xiu-download-guide__faq-question,
  .page-resources-go88-tai-xiu-download-guide__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Fixes (if needed) - using dark body background, light text is default */
.page-resources-go88-tai-xiu-download-guide p,
.page-resources-go88-tai-xiu-download-guide li,
.page-resources-go88-tai-xiu-download-guide__content-block {
  color: var(--go88-text-light);
}

.page-resources-go88-tai-xiu-download-guide__light-bg p,
.page-resources-go88-tai-xiu-download-guide__light-bg li,
.page-resources-go88-tai-xiu-download-guide__light-bg .page-resources-go88-tai-xiu-download-guide__content-block {
  color: var(--go88-text-dark);
}

/* Ensure image filters are not used */
.page-resources-go88-tai-xiu-download-guide img {
  filter: none !important;
}