  /* MODERN RESET */
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f3f4f6; /* Soft grey background makes white cards pop */
    color: #1f2937;
    margin: 0;
    padding: 40px 20px;
    line-height: 1.5;
  }

  /* HEADINGS */
  h1 {
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
  }
  
  .subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    font-size: 1.1rem;
  }

  /* GRID LAYOUT */
  .library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly wider cards */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* SLEEK CARD DESIGN */
  .activity-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px; /* Smooth rounded corners */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Very subtle shadow */
    border: 1px solid rgba(0,0,0,0.05); /* Barely visible border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* HOVER EFFECT: Lift and Glow */
  .activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(0,0,0,0.1);
  }

  /* TEXT STYLES */
  .activity-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3b82f6; /* Bright Blue */
    margin-bottom: 0.5rem;
  }

  h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .activity-desc {
    color: #4b5563;
    margin-bottom: 2rem;
  }

  /* BUTTON STYLING */
  .btn-link:hover {
    background-color: #000000;
  }

/* The Container (Just ensures buttons wrap if they run out of space) */
.action-grid {
  width: 100%;
  font-size: 0; /* Removes phantom spacing issues in Markdown */
  margin-top: 1.5rem;
}

/* The Buttons */
.btn-link {
  display: inline-block; /* Allows them to sit side-by-side */
  width: 48%;            /* Fits 2 per row (leaving 2% for gap) */
  margin-right: 2%;      /* The gap between left and right buttons */
  margin-bottom: 15px;   /* The gap between top and bottom rows */
  
  /* Visual Styling */
  background-color: #111827;
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem; /* Reset font size */
  text-align: center;
  box-sizing: border-box; /* Ensures padding doesn't break layout */
  vertical-align: middle;
}

/* Removes the margin from the right-side buttons so they fit perfectly */
.btn-link:nth-child(even) {
  margin-right: 0;
}

/* --- TOP TOOL BAR --- */
.tool-bar-container {
  max-width: 1200px;
  margin: 0 auto 3rem auto; /* Large gap below to separate from Activities */
  text-align: center;
}

.tool-header {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3af; /* Light grey label */
  margin-bottom: 1rem;
  display: block;
}

.tool-bar {
  display: flex;
  flex-wrap: nowrap;     /* Keep the tools on a single line */
  justify-content: center; /* Centers the bar */
  gap: 0.75rem;          /* Tighten spacing so all pills fit in one row */
  overflow-x: auto;      /* Prevent wrapping on smaller screens */
  -webkit-overflow-scrolling: touch;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 50px;   /* Full rounded "Pill" shape */
  text-decoration: none;
  color: #374151;        /* Dark grey text */
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

/* Hover Effect */
.tool-pill:hover {
  transform: translateY(-2px);
  background-color: #2563eb; /* USW Blue */
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tool-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Mobile Fix: On small screens, make them full width again */
@media (max-width: 600px) {
  .btn-link {
    width: 100%;
    margin-right: 0;
  }
}
