/* ==========================================================================
   SpinDost (spindost.co.in) - Clean Theme Inspired by TashanWin Layout
   ========================================================================== */

:root {
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-body: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent-orange: #ff9500;
  --accent-red: #ff4500;
  --accent-green: #01875f;
  --accent-green-dark: #006042;
  --luminous-grad: linear-gradient(135deg, #ff6900 0%, #cf2e2e 100%);
  --green-grad: linear-gradient(135deg, #01875f 0%, #006042 100%);
  --bronze-grad: linear-gradient(110deg, #24140d 0%, #4a2b18 55%, #70421f 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --max-width: 1140px;
  --content-width: 820px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #176d3a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

a:hover {
  color: #cf2e2e;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Top Header Action Bar (TashanWin Above-Header Style, APK Download Focused) ── */
.above-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
}

.above-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.top-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.top-pill-btn.green {
  background: var(--green-grad);
  box-shadow: 0 2px 8px rgba(1, 135, 95, 0.25);
}

.top-pill-btn.amber {
  background: var(--luminous-grad);
  box-shadow: 0 2px 8px rgba(207, 46, 46, 0.25);
}

.top-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ── Main Sticky Header ── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-branding a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.custom-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.site-title-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.4px;
}

.site-title-text span {
  color: var(--accent-green);
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 6px;
  text-decoration: none !important;
  text-transform: capitalize;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #f1fff5;
  color: var(--accent-green);
}

.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 20px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 12px 20px 18px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none !important;
  text-transform: capitalize;
}

.mobile-nav a.active,
.mobile-nav a:hover {
  background: #f1fff5;
  color: var(--accent-green);
}

@media (max-width: 880px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Main Content Container ── */
.site-content {
  flex: 1 0 auto;
  padding: 28px 16px 56px;
}

.article-card {
  max-width: var(--content-width);
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 34px 32px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.entry-title {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.25;
}

.entry-content p {
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-body);
}

/* Centered App Image (TashanWin 214px Rounded Style) */
.hero-image-wrap {
  text-align: center;
  margin: 22px auto 24px;
}

.hero-image-wrap img {
  width: 214px;
  height: 214px;
  margin: 0 auto;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  border: 3px solid #ffffff;
}

/* ── CTA Buttons (Download & APK Only) ── */
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px auto 24px;
}

.sd-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 270px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sd-cta-btn.green {
  background: var(--green-grad);
  box-shadow: 0 5px 16px rgba(1, 135, 95, 0.35);
}

.sd-cta-btn.luminous {
  background: var(--luminous-grad);
  box-shadow: 0 5px 16px rgba(207, 46, 46, 0.32);
}

.sd-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

/* ── Neon Copy Promo Box (Reference .bdg-copy-item) ── */
.sd-copy-item {
  width: 100%;
  max-width: 600px;
  margin: 18px auto 24px;
  padding: 12px 14px;
  background: #071b0c;
  border: 1px solid #39ff14;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sd-copy-content {
  flex: 1;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  word-break: break-word;
}

.sd-copy-btn {
  flex-shrink: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 7px;
  background: #39ff14;
  color: #031006;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sd-copy-btn:active {
  transform: scale(0.96);
}

/* ── Information Table (2-Column Centered) ── */
.sd-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.sd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  table-layout: fixed;
}

.sd-table th,
.sd-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: center;
  word-break: break-word;
}

.sd-table th {
  background: #f8fafc;
  color: var(--text-dark);
  font-weight: 800;
}

.sd-table tr:nth-child(even) td {
  background: #fbfcfd;
}

/* ── Compact Green Table of Contents (Reference .tw-toc) ── */
.sd-toc {
  width: 100%;
  max-width: 650px;
  margin: 20px auto 24px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #ffffff, #f1fff5);
  border: 1px solid #a3d6b3;
  border-left: 3px solid #20864c;
  border-radius: 11px;
  box-shadow: 0 3px 12px rgba(18, 100, 48, 0.07);
}

.sd-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sd-toc-title {
  color: #176d3a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.sd-toc-toggle {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #34512b;
  background: linear-gradient(135deg, #ffe99b, #e6b944);
  border: 1px solid #d4a932;
  border-radius: 6px;
  cursor: pointer;
}

.sd-toc-toggle:hover {
  background: #f6d56c;
}

.sd-toc-nav {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #d5eadd;
}

.sd-toc-nav[hidden] {
  display: none !important;
}

.sd-toc-items {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.sd-toc-items li {
  margin: 6px 0;
  padding-left: 2px;
  line-height: 1.45;
  color: #207346;
}

.sd-toc-items a {
  color: #207346;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.sd-toc-items a:hover {
  color: #aa801a;
  text-decoration: underline;
}

/* ── Signature Warm Dark-Bronze H2 Banners (Reference .entry-content h2) ── */
.entry-content h2 {
  background: var(--bronze-grad);
  color: #ffe4bd !important;
  padding: 12px 16px;
  border: 1px solid #a66b32;
  border-left: 6px solid #ffae42;
  border-bottom: 3px solid #d88a32;
  border-radius: 8px;
  box-shadow: 0 0 7px rgba(255, 174, 66, 0.35), 0 0 15px rgba(166, 107, 50, 0.25);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.38;
  margin: 28px 0 16px;
  text-align: center;
  scroll-margin-top: 84px;
}

.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 18px 0 10px;
  scroll-margin-top: 84px;
}

.sd-list {
  padding-left: 22px;
  margin: 12px 0 18px;
}

.sd-list li {
  margin-bottom: 9px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-body);
}

/* ── Accordion FAQs (Reference .aagb__accordion_container) ── */
.sd-faq-list {
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sd-faq-item {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #ffffff;
}

.sd-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: rgba(227, 223, 223, 0.25);
  padding: 14px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
}

.sd-faq-item summary::-webkit-details-marker {
  display: none;
}

.sd-faq-plus {
  font-size: 18px;
  font-weight: 700;
  color: #4a2b18;
  transition: transform 0.2s ease;
}

.sd-faq-item[open] .sd-faq-plus {
  transform: rotate(45deg);
}

.sd-faq-body {
  padding: 14px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  border-top: 1px solid #f1f5f9;
}

.closing-note {
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  margin: 26px 0 6px;
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-dark);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* ── Footer ── */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 26px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-menu a {
  font-size: 14px;
  color: var(--text-dark);
  text-transform: capitalize;
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

/* ── Scroll to Top ── */
#scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background: var(--accent-green);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99;
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 640px) {
  .article-card {
    padding: 22px 16px;
  }
  .entry-content h2 {
    font-size: 18.5px;
    padding: 10px 12px;
  }
  .sd-cta-btn {
    width: 100%;
    min-width: 0;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-menu {
    justify-content: center;
  }
}
