/* style/resources-may88-app-download-guide.css */

:root {
  --primary-color: #017439;
  --secondary-color: #C30808;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #ffffff;
  --background-color-dark: #017439;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-color: #FFFF00;
}

.page-resources-may88-app-download-guide {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Default text color for light backgrounds */
  background-color: var(--background-color-light);
  line-height: 1.6;
}

.page-resources-may88-app-download-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-may88-app-download-guide__section {
  padding: 60px 0;
}

.page-resources-may88-app-download-guide__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-resources-may88-app-download-guide__paragraph {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-may88-app-download-guide__center-text {
    text-align: center;
}

/* Hero Section */
.page-resources-may88-app-download-guide__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);
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a9e69 100%); /* Lighter green gradient */
  color: var(--text-color-light);
  overflow: hidden;
}

.page-resources-may88-app-download-guide__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-resources-may88-app-download-guide__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Adjust max-width for image */
}

.page-resources-may88-app-download-guide__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources-may88-app-download-guide__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-may88-app-download-guide__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-may88-app-download-guide__intro-text {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources-may88-app-download-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-may88-app-download-guide__cta-button {
  display: inline-block;
  padding: 18px 45px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 19px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-resources-may88-app-download-guide__btn-download {
  background: var(--button-register-bg);
  color: var(--button-text-color);
  border: 2px solid var(--button-register-bg);
}

.page-resources-may88-app-download-guide__btn-download:hover {
  background: #a80707;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-may88-app-download-guide__btn-register {
  background: var(--text-color-light);
  color: var(--primary-color);
  border: 2px solid var(--text-color-light);
}

.page-resources-may88-app-download-guide__btn-register:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #005a2d;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources-may88-app-download-guide__light-bg {
  background-color: var(--background-color-light);
  color: var(--text-color-dark);
}

.page-resources-may88-app-download-guide__dark-bg {
  background-color: var(--background-color-dark);
  color: var(--text-color-light);
}

.page-resources-may88-app-download-guide__dark-bg .page-resources-may88-app-download-guide__section-title {
  color: var(--text-color-light);
}

.page-resources-may88-app-download-guide__dark-bg .page-resources-may88-app-download-guide__paragraph {
  color: rgba(255, 255, 255, 0.9);
}

/* Feature Grid */
.page-resources-may88-app-download-guide__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-may88-app-download-guide__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-may88-app-download-guide__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-may88-app-download-guide__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-may88-app-download-guide__feature-item p {
  font-size: 16px;
  color: var(--text-color-dark);
  text-align: center;
}

/* Download Steps */
.page-resources-may88-app-download-guide__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-resources-may88-app-download-guide__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 35px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-may88-app-download-guide__step-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-color-light);
}

.page-resources-may88-app-download-guide__step-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-may88-app-download-guide__step-item ol {
  text-align: left;
  margin-bottom: 30px;
  padding-left: 25px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.page-resources-may88-app-download-guide__step-item ol li {
  margin-bottom: 10px;
}

.page-resources-may88-app-download-guide__btn-download-android,
.page-resources-may88-app-download-guide__btn-download-ios {
  background: var(--button-register-bg);
  color: var(--button-text-color);
  border: 2px solid var(--button-register-bg);
  padding: 14px 30px;
  font-size: 17px;
  width: fit-content;
}

.page-resources-may88-app-download-guide__btn-download-android:hover,
.page-resources-may88-app-download-guide__btn-download-ios:hover {
  background: #a80707;
  transform: translateY(-2px);
}

.page-resources-may88-app-download-guide__note-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 40px;
}

/* Offer Grid */
.page-resources-may88-app-download-guide__offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-may88-app-download-guide__offer-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-may88-app-download-guide__offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-may88-app-download-guide__offer-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-may88-app-download-guide__offer-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-may88-app-download-guide__offer-card p {
  font-size: 16px;
  color: var(--text-color-dark);
  text-align: center;
  margin-bottom: 25px;
}

.page-resources-may88-app-download-guide__btn-view-offers {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
  padding: 14px 30px;
  font-size: 17px;
  width: fit-content;
}

.page-resources-may88-app-download-guide__btn-view-offers:hover {
  background: #005a2d;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-resources-may88-app-download-guide__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-resources-may88-app-download-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-may88-app-download-guide__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 20px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources-may88-app-download-guide__faq-item.active .page-resources-may88-app-download-guide__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-resources-may88-app-download-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-light);
}

.page-resources-may88-app-download-guide__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-resources-may88-app-download-guide__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* 问题标题样式 */
.page-resources-may88-app-download-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--text-color-light);
}

/* 切换图标 */
.page-resources-may88-app-download-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-color-light);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-may88-app-download-guide__faq-item.active .page-resources-may88-app-download-guide__faq-toggle {
  transform: rotate(45deg); /* Change to X on active */
  color: var(--button-text-color);
}

/* Final CTA Section */
.page-resources-may88-app-download-guide__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #e0e0e0, #f8f8f8);
}

.page-resources-may88-app-download-guide__cta-bottom .page-resources-may88-app-download-guide__section-title {
  color: var(--primary-color);
}

.page-resources-may88-app-download-guide__btn-final-download {
  background: var(--button-register-bg);
  color: var(--button-text-color);
  border: 2px solid var(--button-register-bg);
  padding: 18px 50px;
  font-size: 20px;
  margin-top: 30px;
}

.page-resources-may88-app-download-guide__btn-final-download:hover {
  background: #a80707;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-may88-app-download-guide__main-title {
    font-size: 42px;
  }
  .page-resources-may88-app-download-guide__section-title {
    font-size: 32px;
  }
  .page-resources-may88-app-download-guide__intro-text {
    font-size: 18px;
  }
  .page-resources-may88-app-download-guide__cta-button {
    padding: 16px 40px;
    font-size: 18px;
  }
  .page-resources-may88-app-download-guide__feature-title,
  .page-resources-may88-app-download-guide__step-title,
  .page-resources-may88-app-download-guide__offer-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-resources-may88-app-download-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-may88-app-download-guide__hero-image img {
    border-radius: 8px;
  }
  .page-resources-may88-app-download-guide__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-resources-may88-app-download-guide__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-resources-may88-app-download-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-may88-app-download-guide__cta-button,
  .page-resources-may88-app-download-guide__btn-download-android,
  .page-resources-may88-app-download-guide__btn-download-ios,
  .page-resources-may88-app-download-guide__btn-view-offers,
  .page-resources-may88-app-download-guide__btn-final-download {
    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-resources-may88-app-download-guide__section {
    padding: 40px 0;
  }
  .page-resources-may88-app-download-guide__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-resources-may88-app-download-guide__paragraph {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-resources-may88-app-download-guide__container {
    padding: 0 15px;
  }
  .page-resources-may88-app-download-guide__feature-grid,
  .page-resources-may88-app-download-guide__download-steps,
  .page-resources-may88-app-download-guide__offer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-resources-may88-app-download-guide__feature-item,
  .page-resources-may88-app-download-guide__step-item,
  .page-resources-may88-app-download-guide__offer-card {
    padding: 25px;
  }
  .page-resources-may88-app-download-guide__feature-title,
  .page-resources-may88-app-download-guide__step-title,
  .page-resources-may88-app-download-guide__offer-title {
    font-size: 20px;
  }
  .page-resources-may88-app-download-guide__faq-question {
    padding: 15px;
  }
  .page-resources-may88-app-download-guide__faq-question h3 {
    font-size: 16px;
  }
  .page-resources-may88-app-download-guide__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources-may88-app-download-guide__faq-item.active .page-resources-may88-app-download-guide__faq-answer {
    padding: 15px !important;
  }
  .page-resources-may88-app-download-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-may88-app-download-guide__section,
  .page-resources-may88-app-download-guide__card,
  .page-resources-may88-app-download-guide__container,
  .page-resources-may88-app-download-guide__cta-buttons,
  .page-resources-may88-app-download-guide__button-group,
  .page-resources-may88-app-download-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-may88-app-download-guide__main-title {
    font-size: 32px;
  }
  .page-resources-may88-app-download-guide__cta-button {
    padding: 14px 30px;
    font-size: 16px;
  }
  .page-resources-may88-app-download-guide__section-title {
    font-size: 24px;
  }
  .page-resources-may88-app-download-guide__feature-title,
  .page-resources-may88-app-download-guide__step-title,
  .page-resources-may88-app-download-guide__offer-title {
    font-size: 18px;
  }
  .page-resources-may88-app-download-guide__btn-final-download {
    padding: 16px 40px;
    font-size: 18px;
  }
}