/* =========================================================
   style.css  —  index.html (home page) only
   Header, footer, base and heading bars come from common.css
   ========================================================= */

body.page-index {
  --page-bg: #1f6b1f;       /* whole home page is green */
  --pill-bg: #2e7d32;       /* lighter bars so they show on the green */
  --radius-pill: 50px;
}

/* ================= HERO ================= */
.hero {
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 800;
}

.hero p {
  margin: 0 auto 30px;
  font-size: 18px;
  line-height: 1.6;
  color: #ddd;
}

/* Big blue call-to-action button (hero + conclusion) */
.hero-btn {
  display: block;
  width: 80%;
  max-width: 900px;
  margin: 30px auto 0;
  padding: 16px 25px;
  background: linear-gradient(90deg, #2d7be5, #1e5fd1);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transition: 0.3s ease;
}

.hero-btn:hover {
  background: linear-gradient(90deg, #1e5fd1, #1547a5);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
  transform: scale(1.02);
}

/* ================= INFO TABLE ================= */
.info-section {
  padding: 40px 20px;
}

.info-box {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
}

.info-box table {
  width: 100%;
  border-collapse: collapse;
}

.info-box td {
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ddd;
}

/* ================= TABLE OF CONTENTS ================= */
.toc-container {
  width: 70%;
  margin: 30px auto;
  overflow: hidden;
  background: #fff;
  border: 2px solid #2e7d32;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.toc-header {
  display: flex;
  justify-content: space-between;
  padding: 18px 25px;
  background: #f9fff9;
  color: #1d5f1d;
  font-weight: bold;
  cursor: pointer;
}

.toc-header:hover {
  background: #e8f5e9;
}

.toc-content {
  display: none;
  padding: 20px;
  background: #fff;
}

.toc-container.open .toc-content {
  display: block;
}

.toc-content ul {
  padding-left: 0;
  list-style: none;
}

.toc-content li {
  margin: 10px 0;
}

.toc-content a {
  color: var(--link);
  text-decoration: none;
}

.toc-content a:hover {
  text-decoration: underline;
}

/* Sections the table of contents jumps to */
#overview,
#screenshots,
#features,
#download-guide,
#login-register,
#faqs {
  scroll-margin-top: 20px;
}

/* ================= SECTION BANDS ================= */
.overview,
.features-section,
.download-section,
.login-section,
.play-section {
  padding: 60px 0;
}

.screenshots-section {
  padding: 50px 0;
}

/* ================= WHITE / GREY CONTENT BOXES ================= */
.overview-box,
.features-box,
.download-box,
.login-box,
.play-box {
  width: 70%;
  margin: auto;
  padding: 30px;
  background: #f5f5f5;
  border-radius: 20px;
}

.overview-box {
  background: #fff;
  line-height: 1.8;
  color: #333;
}

.overview-box p {
  margin-bottom: 15px;
}

/* ================= HEADING BARS (size / spacing only) ================= */
.overview-title,
.screenshot-title {
  width: 60%;
  margin: 0 auto 30px;
  font-size: 28px;
}

.features-title {
  width: 80%;
  margin: 0 auto 20px;
  font-size: 26px;
}

.download-title,
.login-title,
.play-title {
  margin-bottom: 20px;
  font-size: 26px;
}

/* ================= FIGURES (image + caption) ================= */
.overview-image,
.download-image,
.login-image,
.play-image {
  margin: 20px 0;
  text-align: center;
}

.overview-image img,
.download-image img,
.login-image img,
.play-image img {
  width: 200px;
  border-radius: 10px;
}

.overview-image span,
.download-image span,
.login-image span,
.play-image span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

/* ================= SCREENSHOTS ================= */
.screenshot-container {
  display: flex;
  gap: 20px;
  width: 80%;
  margin: auto;
  padding: 30px;
  overflow-x: auto;
  background: #f1f1f1;
  border-radius: 20px;
}

.screenshot-container img {
  flex-shrink: 0;
  width: 180px;
  height: 360px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

.screenshot-container img:hover {
  transform: scale(1.05);
}

/* ================= FEATURES ================= */
.features-intro {
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

.feature-item {
  margin-bottom: 25px;
}

.feature-item h3 {
  margin-bottom: 8px;
  font-size: 22px;
  color: #1d5f1d;
}

.feature-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ================= DOWNLOAD / LOGIN / PLAY TEXT ================= */
.download-text,
.login-text {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.play-intro {
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.7;
}

.download-steps,
.login-steps {
  margin-left: 20px;
  margin-bottom: 30px;
}

.download-steps li,
.login-steps li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.download-note,
.login-note,
.play-note {
  margin-top: 15px;
  font-size: 15px;
  color: #333;
}

.download-text a,
.login-note a {
  color: var(--link);
  font-weight: bold;
  text-decoration: none;
}

.play-step {
  margin-bottom: 25px;
}

.play-step h3 {
  margin-bottom: 8px;
  font-size: 20px;
  color: #1d5f1d;
}

.play-step p {
  line-height: 1.6;
  color: #333;
}

.play-image {
  margin: 25px 0;
}

/* ================= REFER & EARN / TIPS ================= */
.step-title {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 700;
  color: #1d5f1d;
}

.step-title::before {
  content: "\2714 ";
  font-weight: bold;
  color: #2e7d32;
}

.tips-intro {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.tips-list {
  padding-left: 0;
  list-style: none;
}

.tips-list li {
  margin: 10px 0;
  padding: 12px 15px;
  background: #f9f9f9;
  font-size: 16px;
  color: #333;
  border-left: 5px solid #2e7d32;
  border-radius: 10px;
}

/* ================= CONCLUSION ================= */
.conclusion-btn {
  margin: 30px 0;
  text-align: center;
}

.contact-line {
  font-size: 15px;
  text-align: center;
}

.contact-line a {
  color: #2e7d32;
  font-weight: bold;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* ================= FAQ ================= */
.content-box {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 25px;
  background: #f4f4f4;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.content-box .section-title {
  margin-bottom: 30px;
  font-size: 28px;
}

.faq-item {
  margin-bottom: 15px;
  padding: 15px 20px;
  background: #fff;
  border-left: 5px solid #1e6b1e;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.faq-item:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #1e6b1e;
  cursor: pointer;
}

.faq-item p {
  display: none;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.faq-item.active p {
  display: block;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .toc-container,
  .overview-box,
  .features-box,
  .download-box,
  .login-box,
  .play-box,
  .overview-title,
  .screenshot-title,
  .features-title {
    width: 92%;
  }

  .overview-box,
  .features-box,
  .download-box,
  .login-box,
  .play-box {
    padding: 20px;
  }

  .overview-title,
  .screenshot-title,
  .features-title,
  .download-title,
  .login-title,
  .play-title {
    font-size: 22px;
  }

  .overview,
  .features-section,
  .download-section,
  .login-section,
  .play-section {
    padding: 40px 0;
  }

  .screenshot-container {
    width: 92%;
    padding: 20px;
  }

  .content-box {
    width: 92%;
    padding: 20px 15px;
  }

  .content-box .section-title {
    font-size: 22px;
  }

  .faq-item h3 {
    font-size: 16px;
  }

  .faq-item p {
    font-size: 14px;
  }
}
