/* Diwa Top India — Astra / cachedrop.net style white article theme */

:root {
  --cd-ink: #1d2327;
  --cd-heading: #16181c;
  --cd-muted: #62666e;
  --cd-line: #eeeeee;
  --cd-wash: #f7f8fa;
  --cd-red: #c62828;
  --cd-red-dark: #8b0000;
  --cd-red-soft: #fdecea;
  --cd-orange: #e64a19;
  --cd-yellow: #f1c40f;
  --cd-yellow-soft: #fffdf2;
  --cd-blue: #2c4a8a;
  --cd-nav: #3a5a9a;
  --cd-blue-soft: #eef4fd;
  --cd-link: #c62828;
  --cd-max: 1200px;
  --cd-content: 760px;
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--cd-ink);
  background: #f5f5f5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cd-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--cd-orange); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 0.75rem;
  color: var(--cd-heading);
}
p { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

/* ===== Main content card — soft wide shadow like cachedrop/Astra ===== */
main {
  max-width: var(--cd-max);
  margin: 1.25rem auto 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ===== Header (full-width white, reference menu) ===== */
.cd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--cd-line);
  max-width: none;
  margin: 0;
  box-shadow: none;
}
.cd-header__inner {
  max-width: var(--cd-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cd-logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cd-heading) !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  line-height: 1.15;
}
.cd-logo__img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.cd-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 1.75rem;
}
.cd-nav__item {
  position: relative;
}
.cd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cd-nav) !important;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  padding: 0.65rem 0;
  min-height: 44px;
}
.cd-nav__link:hover,
.cd-nav__item.is-open > .cd-nav__link,
.cd-nav__item:hover > .cd-nav__link {
  color: var(--cd-blue) !important;
}
.cd-nav__chev {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9aa3b2;
  margin-top: 2px;
}
/* Dropdown: hidden until hover — must stay out of flex flow */
.cd-nav__drop {
  display: none !important;
  position: absolute !important;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-top: 3px solid var(--cd-blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.cd-nav__item:hover > .cd-nav__drop,
.cd-nav__item.is-open > .cd-nav__drop {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.cd-nav__drop a {
  display: block;
  padding: 0.85rem 1.35rem;
  color: #333 !important;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.cd-nav__drop a:hover {
  background: #f7f8fa;
  color: var(--cd-blue) !important;
}
.cd-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--cd-blue);
  border-radius: 6px;
  padding: 0.4rem;
  font-weight: 700;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.cd-menu-toggle svg { width: 24px; height: 24px; }

/* ===== Page title bar (small H1 + hairline, like Astra) ===== */
.cd-page-title-bar {
  border-bottom: 1px solid var(--cd-line);
  padding: 0.9rem 1.15rem;
}
.cd-page-title-bar__inner { max-width: var(--cd-max); margin: 0 auto; }
.cd-page-title-bar h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cd-heading);
}

/* ===== Feature block: big title + subtitle + square hero image ===== */
.cd-feature {
  background: #fff;
  padding: 2.25rem 1.5rem 2.5rem;
  text-align: center;
}
.cd-feature__inner { max-width: 980px; margin: 0 auto; }
.cd-feature__title {
  font-size: clamp(1.45rem, 3.8vw, 2.05rem);
  margin-bottom: 0.65rem;
  color: var(--cd-heading);
}
.cd-feature__sub {
  color: var(--cd-muted);
  font-size: 1.02rem;
  margin: 0 auto 1.75rem;
  max-width: 56ch;
}
.cd-feature__media {
  margin: 0 auto;
  max-width: 860px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(20, 20, 30, 0.16);
}
.cd-feature__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ===== Plain-text CTA links (as seen in PDF, not buttons) ===== */
.cd-cta-links {
  text-align: center;
  padding: 1.75rem 1.15rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.cd-cta-links a {
  color: var(--cd-heading);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.cd-cta-links a:hover { color: var(--cd-red); }

/* ===== Secondary rounded image (diwa-top-game.webp) ===== */
.cd-media-block { padding: 0.5rem 1.5rem 2.25rem; text-align: center; }
.cd-media-block__inner {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(20, 20, 30, 0.16);
}
.cd-media-block__inner img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ===== Welcome bonus card (yellow border) ===== */
.cd-bonus-card {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 1.75rem 1.5rem;
  border: 2px solid var(--cd-yellow);
  background: var(--cd-yellow-soft);
  border-radius: 16px;
  text-align: center;
}
.cd-bonus-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cd-orange);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.cd-bonus-card__label {
  color: var(--cd-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.cd-bonus-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cd-red);
  font-size: clamp(2.4rem, 7vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.cd-bonus-card__note { color: var(--cd-muted); font-size: 0.92rem; margin: 0; }

/* ===== Screenshots row ===== */
.cd-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 auto 2rem;
  max-width: 720px;
  padding: 0 1.15rem;
}
.cd-shots img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--cd-line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* ===== Buttons (used for in-copy download CTAs) ===== */
.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cd-btn:hover { transform: translateY(-1px); }
.cd-btn--red { background: var(--cd-red); color: #fff !important; }
.cd-btn--red:hover { background: var(--cd-red-dark); color: #fff !important; }
.cd-btn--yellow { background: var(--cd-yellow); color: #3b2b00 !important; }
.cd-btn--outline { background: transparent; color: var(--cd-heading) !important; border: 2px solid var(--cd-line); }
.cd-btn--outline:hover { border-color: var(--cd-red); color: var(--cd-red) !important; }

/* ===== Sections / layout ===== */
.cd-section { padding: clamp(2rem, 4vw, 3rem) 1.15rem; }
.cd-section--wash { background: var(--cd-wash); }
.cd-wrap { max-width: var(--cd-max); margin: 0 auto; }
.cd-section__head { text-align: center; max-width: 42rem; margin: 0 auto 2rem; }
.cd-section__head h2 { border-bottom: none !important; }
.cd-section__head p { color: var(--cd-muted); margin: 0; }

/* ===== Prose (long-form article content) ===== */
.cd-prose {
  max-width: var(--cd-content);
  margin: 0 auto;
  padding: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}
.cd-prose--wide { max-width: 800px; }
.cd-prose a { font-weight: 700; }
.cd-prose h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  margin-top: 2.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--cd-red);
  scroll-margin-top: 5rem;
}
.cd-prose h2:first-child { margin-top: 0; }
.cd-prose h3 {
  font-size: 1.12rem;
  margin-top: 1.75rem;
  color: var(--cd-heading);
}
.cd-prose h3.cd-numbered { color: var(--cd-red-dark); }
.cd-prose ul { margin: 0 0 1.1rem; }
.cd-prose > ol {
  margin: 0 0 1.1rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--cd-red);
}
.cd-prose > ol > li { padding-left: 0.5rem; }
.cd-prose > ol > li strong { color: var(--cd-heading); }

/* Section heading used outside .cd-prose wrappers (still gets red underline) */
.cd-section h2:not(.cd-cta-band h2) {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--cd-red);
  scroll-margin-top: 5rem;
}

/* ===== Callout boxes ===== */
.cd-callout {
  background: var(--cd-wash);
  border-left: 3px solid var(--cd-blue);
  padding: 1rem 1.15rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--cd-ink);
  margin: 1.5rem 0;
}
.cd-callout strong { color: var(--cd-blue); }
.cd-callout--warn { border-left-color: var(--cd-red); background: var(--cd-red-soft); }
.cd-callout--warn strong { color: var(--cd-red-dark); }
.cd-callout--notice { border-left-color: var(--cd-blue); background: var(--cd-blue-soft); }

/* ===== Feature card grid ===== */
.cd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cd-card {
  background: #fff;
  border: 1px solid var(--cd-line);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.cd-card__icon { font-size: 2.1rem; margin-bottom: 0.75rem; line-height: 1; }
.cd-card h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.cd-card p { margin: 0; color: var(--cd-muted); font-size: 0.92rem; }

/* ===== Tables ===== */
.cd-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  background: #fff;
  margin: 1.25rem 0 1.75rem;
}
.cd-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.cd-table th, .cd-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--cd-line);
  text-align: left;
}
.cd-table th {
  background: var(--cd-wash);
  color: var(--cd-heading);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cd-table tr:last-child td { border-bottom: 0; }

/* Maroon GAME TITLE / GAME DETAILS table */
.cd-table-wrap--game { border: 1px solid #d8d8d8; border-radius: 0; max-width: 600px; }
.cd-table--game { min-width: 320px; }
.cd-table--game th, .cd-table--game td {
  border: 1px solid #dcdcdc;
  padding: 0.75rem 0.9rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}
.cd-table--game thead th {
  background: var(--cd-red-dark);
  color: #fff;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.cd-table--game tbody td:first-child {
  text-align: left;
  text-transform: uppercase;
  color: #111;
  white-space: nowrap;
  width: 42%;
  background: #fafafa;
}
.cd-table--game tbody td:last-child { text-align: center; color: #111; }
.cd-table--game a.cd-game-link { color: var(--cd-red); text-decoration: underline; font-weight: 700; }
.cd-table--game a.cd-game-link:hover { color: var(--cd-red-dark); }

/* ===== FAQ accordion ===== */
.cd-faq details {
  background: #fff;
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 0.6rem;
}
.cd-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--cd-heading);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cd-faq summary::-webkit-details-marker { display: none; }
.cd-faq summary::after {
  content: "+";
  color: var(--cd-red);
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cd-faq details[open] summary::after { content: "\2212"; }
.cd-faq details p { margin: 0.75rem 0 0; color: var(--cd-muted); }

/* ===== Closing CTA band ===== */
.cd-cta-band {
  background: var(--cd-wash);
  border: 1px solid var(--cd-line);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cd-cta-band h2 { margin: 0 0 0.35rem; font-size: 1.3rem; border: 0 !important; padding: 0 !important; }
.cd-cta-band p { margin: 0; color: var(--cd-muted); }

/* ===== Simple content page hero (About / Disclaimer follow same feature block) ===== */
.cd-content {
  max-width: var(--cd-content);
  margin: 0 auto;
  padding: 2.25rem 1.15rem 3.5rem;
  font-size: 1.02rem;
  line-height: 1.8;
}
.cd-content h2 {
  margin-top: 2.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--cd-red);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}
.cd-content h2:first-of-type { margin-top: 0; }
.cd-lang-switch { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0 0; }

/* ===== Footer (Astra-clean, light) ===== */
.cd-footer {
  background: #ffffff;
  border-top: 1px solid var(--cd-line);
  padding: 2.5rem 1.15rem 1.25rem;
  max-width: none;
  margin: 0;
  box-shadow: none;
}
.cd-footer__inner {
  max-width: var(--cd-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.cd-footer__brand p { margin: 0.75rem 0 0; max-width: 40ch; font-size: 0.92rem; color: var(--cd-muted); }
.cd-footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.cd-footer__nav a { color: var(--cd-ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.cd-footer__nav a:hover { color: var(--cd-red); }
.cd-footer__legal {
  max-width: var(--cd-max);
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cd-line);
  font-size: 0.85rem;
  color: var(--cd-muted);
  text-align: center;
}
.cd-footer__legal p { margin: 0 0 0.35rem; }
.cd-footer__legal a { color: var(--cd-muted); }
.cd-footer__legal a:hover { color: var(--cd-red); }

@media (max-width: 900px) {
  .cd-grid-3, .cd-grid-2 { grid-template-columns: 1fr 1fr; }
  main {
    margin: 0.75rem 0.75rem 1.75rem;
    border-radius: 10px;
  }
  .cd-menu-toggle { display: inline-flex; }
  .cd-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .cd-header.is-open .cd-nav { display: flex; }
  .cd-nav__item { border-bottom: 1px solid var(--cd-line); }
  .cd-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0;
  }
  .cd-nav__drop {
    position: static !important;
    display: none !important;
    border-top: 0;
    box-shadow: none;
    background: #fafafa;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .cd-nav__item.is-open > .cd-nav__drop {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .cd-nav__item:hover > .cd-nav__drop {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .cd-nav__item.is-open:hover > .cd-nav__drop {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .cd-nav__drop a {
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-top: 1px solid var(--cd-line);
  }
  .cd-footer__inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .cd-grid-3, .cd-grid-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cd-btn { transition: none; }
}

/* ===== Compatibility styles for utility templates (contact / download / register / 404) ===== */
.cd-page-hero {
  background: var(--cd-wash);
  border-bottom: 1px solid var(--cd-line);
  text-align: center;
  padding: 2.5rem 1.15rem;
}
.cd-page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.cd-page-hero p { color: var(--cd-muted); margin: 0; }
.cd-notice {
  background: var(--cd-yellow-soft);
  border-left: 4px solid var(--cd-yellow);
  padding: 1rem 1.1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--cd-ink);
  margin: 1.5rem 0;
}
.cd-notice--warn { background: var(--cd-red-soft); border-left-color: var(--cd-red); }
.cd-steps { display: grid; gap: 0.85rem; }
.cd-step {
  background: #fff;
  border: 1px solid var(--cd-line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.cd-btn--purple, .cd-btn--orange { background: var(--cd-red); color: #fff !important; }
.cd-btn--purple:hover, .cd-btn--orange:hover { background: var(--cd-red-dark); color: #fff !important; }
.cd-token { font-weight: 700; color: var(--cd-red-dark); }
