/* === CARD GRID - LAYOUT ONLY === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === PAGE CARD - LAYOUT & STRUCTURE === */
.page-card {
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease-in-out;
  /* Visual properties moved to dark_mode.css for theme consistency */
}

.page-card:hover {
  transform: translateY(-2px);
  /* Shadow effects moved to dark_mode.css */
}

/* === CARD CONTENT - LAYOUT ONLY === */
.card-emoji {
  font-size: var(--emoji-size, 4rem);
  margin-bottom: 1rem;
}

.card-logo {
  max-height: 100px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
}

.logo-wrapper {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* === CTA BUTTONS - LAYOUT ONLY === */
.cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  /* Colors and backgrounds moved to dark_mode.css */
}

/* === CTA BOX - LAYOUT ONLY === */
.cta-box {
  padding: 3rem 2rem;
  border-radius: 12px;
  margin: 3rem auto;
  max-width: 900px;
  text-align: center;
  /* Visual styling moved to dark_mode.css */
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.cta-box p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* === Aggressive, theme-matched lists (works when UL/OL has .markdown-block itself) === */
.markdown-block ul,
.page-card .markdown-block ul,
ul.markdown-block {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.25rem;
  width: 100%;
  overflow-wrap: break-word;
}

.markdown-block ul li,
.page-card .markdown-block ul li,
ul.markdown-block > li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 2rem;
  line-height: 1.6;
}

.markdown-block ul li::before,
.page-card .markdown-block ul li::before,
ul.markdown-block > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-gold, #f4c542);
  box-shadow:
    0 0 0 3px rgba(244, 197, 66, 0.15),
    0 6px 12px var(--shadow-light, rgba(0, 0, 0, 0.1));
  z-index: 1;
}

/* Sub-lists */
.markdown-block ul ul,
ul.markdown-block ul {
  margin-top: 0.25rem;
}

.markdown-block ul ul li,
ul.markdown-block ul > li {
  padding-left: 2rem;
}

.markdown-block ul ul li::before,
ul.markdown-block ul > li::before {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent-secondary, #666);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

/* Ordered lists (also handle ol.markdown-block) */
.markdown-block ol,
.page-card .markdown-block ol,
ol.markdown-block {
  list-style: none;
  counter-reset: zl-ol;
  padding-left: 0;
  margin: 1rem 0 1.25rem;
  width: 100%;
  overflow-wrap: break-word;
}

.markdown-block ol li,
.page-card .markdown-block ol li,
ol.markdown-block > li {
  counter-increment: zl-ol;
  position: relative;
  padding-left: 2.5rem;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.markdown-block ol li::before,
.page-card .markdown-block ol li::before,
ol.markdown-block > li::before {
  content: counter(zl-ol);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  min-width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light, #fff);
  background: var(--accent-primary, #333);
  border: 1px solid var(--border-primary, #ccc);
  border-radius: 999px;
  box-shadow: 0 4px 8px var(--shadow-light, rgba(0, 0, 0, 0.1));
  z-index: 1;
}

/* Hover “energy” */
.markdown-block li:hover::before,
ul.markdown-block > li:hover::before,
ol.markdown-block > li:hover::before {
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.25);
}

/* Optional checkmark list */
.markdown-block ul.list--check li::before,
ul.markdown-block.list--check > li::before {
  content: "✔";
  width: auto;
  height: auto;
  background: transparent;
  color: var(--accent-gold, #f4c542);
  font-weight: 800;
  font-size: 1rem;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: none;
  padding-left: 0.2rem;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .markdown-block ul li,
  .page-card .markdown-block ul li,
  ul.markdown-block > li {
    padding-left: 1.5rem;
  }

  .markdown-block ol li,
  .page-card .markdown-block ol li,
  ol.markdown-block > li {
    padding-left: 2rem;
  }

  .markdown-block ul li::before,
  .page-card .markdown-block ul li::before,
  ul.markdown-block > li::before {
    width: 0.4rem;
    height: 0.4rem;
  }

  .markdown-block ol li::before,
  .page-card .markdown-block ol li::before,
  ol.markdown-block > li::before {
    min-width: 1.2rem;
    height: 1.2rem;
    font-size: 0.8rem;
  }
}