/* ============================================================
   xe8 — Phase 2 SEO Expandable Content Blocks
   Used on: homepage (en/ms/zh)
   ============================================================ */

/* ---- Learn More strip (below hero) ---- */
.seo-strip {
  background: #f8fafc;
  padding: 18px 0;
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
}
.seo-strip details {
  max-width: 880px;
  margin: 0 auto;
}
.seo-strip summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: #1e3a8a;
  font-weight: 600;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.seo-strip summary::-webkit-details-marker { display: none; }
.seo-strip summary::before {
  content: '+';
  color: #f97316;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.seo-strip details[open] summary::before { content: '−'; }
.seo-strip .seo-strip-text {
  padding: 12px 14px 4px;
  font-size: 14px;
  line-height: 1.75;
  color: #374151;
}
.seo-strip .seo-strip-text p { margin-bottom: 12px; }

/* ---- Game Category Descriptions row ---- */
.cat-desc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  margin-top: 28px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.cat-desc-item {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 8px;
}
.cat-desc-item summary {
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: #1e3a8a;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-desc-item summary::-webkit-details-marker { display: none; }
.cat-desc-item summary::after {
  content: '+';
  color: #f97316;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.cat-desc-item[open] summary::after { content: '−'; }
.cat-desc-item .cat-desc-text {
  padding: 0 16px 14px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

/* ---- Why Choose xe8 section ---- */
.why-xe8 {
  padding: 50px 0;
  background: #ffffff;
}
.why-xe8-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #1e3a8a;
}
.why-xe8-sub {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 30px;
}
.why-xe8-list {
  max-width: 820px;
  margin: 0 auto;
}
.why-xe8-item {
  border-bottom: 1px solid #e5e7eb;
}
.why-xe8-item summary {
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1e3a8a;
  font-size: 15px;
}
.why-xe8-item summary::-webkit-details-marker { display: none; }
.why-xe8-item summary::after {
  content: '▾';
  color: #f97316;
  transition: transform 0.2s ease;
  font-size: 14px;
}
.why-xe8-item[open] summary::after { transform: rotate(180deg); }
.why-xe8-item .why-content {
  padding: 0 4px 18px;
  color: #4b5563;
  line-height: 1.75;
  font-size: 14px;
}

/* ---- Homepage FAQ accordion (rich snippet) ---- */
.home-faq {
  background: #f8fafc;
  padding: 60px 0;
}
.home-faq-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #1e3a8a;
}
.home-faq-sub {
  text-align: center;
  color: #6b7280;
  margin-bottom: 32px;
  font-size: 14px;
}
.home-faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.home-faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.home-faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: #1e3a8a;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: #f97316;
  font-weight: bold;
  line-height: 1;
}
.home-faq-item[open] summary::after { content: '−'; }
.home-faq-item .faq-answer {
  padding: 0 22px 20px;
  color: #4b5563;
  line-height: 1.75;
  font-size: 14px;
}
.home-faq-more {
  text-align: center;
  margin-top: 28px;
}
.home-faq-more a {
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

/* ---- Footer SEO content block ---- */
.footer-seo {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  margin-top: 20px;
}
.footer-seo summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.footer-seo summary::-webkit-details-marker { display: none; }
.footer-seo summary::before {
  content: '▾';
  color: #f97316;
  font-size: 11px;
}
.footer-seo[open] summary::before { content: '▴'; }
.footer-seo .footer-seo-text {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.8;
  max-width: 1100px;
}

/* ---- Internal SEO link style (consistent across blocks) ---- */
.seo-link {
  color: #1e3a8a;
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 138, 0.4);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.seo-link:hover {
  color: #f97316;
  text-decoration-color: #f97316;
}
.footer-seo .seo-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.footer-seo .seo-link:hover {
  color: #f97316;
  text-decoration-color: #f97316;
}

/* ---- Mobile adjustments ---- */
@media (max-width: 640px) {
  .why-xe8-title,
  .home-faq-title { font-size: 22px; }
  .home-faq-item summary,
  .why-xe8-item summary { font-size: 14px; }
}
