 a.conclusion-link {
  text-decoration: none;   /* removes underline */
       /* purple color */
}

a.conclusion-link:hover {
  text-decoration: underline;  /* optional: underline on hover */
              /* optional: lighter purple on hover */
} 

.conclusion-link-box {
  display: inline-block;       /* makes it shrink to content */
  padding: 0.5rem 1rem;        /* space inside the box */
  border: 2px solid #800080;   /* purple border */
  border-radius: 5px;          /* rounded corners */
  text-decoration: none;       /* removes underline */
  color: #800080;        /* purple text */
  font-weight: bold;
  text-align: center;
  transition: all 0.2s ease;
}

.conclusion-link-box:hover {
  background-color: #f5e6ff;   /* light purple on hover */
  color: #4b004b;              /* darker purple text on hover */
}

.post-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1rem;              /* keep minimal padding */
  margin: 1.5rem 0;
  background-color: transparent;
  display: inline-block;       /* box wraps content width */
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 100%;             /* ensures it doesn’t overflow page */
}

.post-box:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
}

.post-box h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.post-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.post-logo {
  width: 80px;         /* adjust size */
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}.post-box-link a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.post-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: transparent;
  display: inline-block;        /* fits content width */
  max-width: 100%;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;              /* indicates clickability */
}

.post-box:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
}

.post-logo {
  width: 60px;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.post-box h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.post-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.category-card {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  min-height: 3.2rem;
  background-color: transparent;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}

.category-card h3 {
  margin: 0;
  font-size: 1rem;
  flex: 1;
}

.category-card .cat-meta {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
  width: 200px;
  text-align: center;
}

.category-card .cat-completion {
  font-weight: bold;
  font-size: 0.95rem;
  margin: 0;
  width: 110px;
  text-align: right;
}

.challenge-nav {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
}

.nav-button {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  transition: 0.2s;
}

.nav-button:hover {
  background: rgba(0,0,0,0.05);
}

/* ── Mobile fixes ── */

/* Prevent white overscroll borders on iOS */
html {
  background-color: #fff;
}

@media (prefers-color-scheme: dark) {
  html {
    background-color: #222;
  }
}

/* Make post boxes full width on mobile */
@media (max-width: 576px) {
  .post-box {
    display: block;
    width: 100%;
  }

  /* Stack category card content vertically on small screens */
  .category-card {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .category-card h3 {
    width: 100%;
    flex: unset;
  }

  .category-card .cat-meta {
    width: auto;
    text-align: left;
    font-size: 0.8rem;
  }

  .category-card .cat-completion {
    width: auto;
    text-align: left;
    font-size: 0.85rem;
    margin-left: auto;
  }

  /* Prevent nav buttons from overflowing */
  .challenge-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}
