/* Suggested Tools Section */

#suggested-tools {
  margin: 2rem 0;
  padding: 1rem;
}

.suggested-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.suggested-card {
  width: 180px;               /* small card size */
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.8rem;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.suggested-card img {
  width: 100px;                /* icon size */
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

#suggested-tools h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #2c2c2c;   /* matches your main text color */
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.suggested-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.suggested-card h3 {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.suggested-card p {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
}

/* ===== Tools Article ===== */
.tools-article {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #2c2c2c;
    padding: 60px 50px; /* top/bottom 40px, left/right 50px */
    border-radius: 5px;
    border: 1px solid #e8e0f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);

    /* new additions */
    max-width: 1100px;   /* limit width for readability */
    margin: 50px auto;  /* center horizontally with space on top/bottom */
}

.tools-article h2 {
    color: #a17edc;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.tools-article h3 {
    color: #8a56e6;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.3em;
}

.tools-article p, 
.tools-article li {
    line-height: 1.7;
    font-size: 1.05em;
}

.tools-article ul, 
.tools-article ol {
    margin: 15px 0 20px 25px;
}

.tools-article strong {
    color: #2c2c2c;
}

.tools-article span {
    display: inline-block;
    margin-top: 10px;
}

.tools-article ul li::marker {
    color: #a17edc;
}

.tools-article ol li::marker {
    color: #8a56e6;
    font-weight: bold;
}

/* ===== Tools Article ===== */

/* ===== Category Tools Container ===== */
.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* ===== Tool Card ===== */
.tool-card {
  background: #fff;
  border-radius: 5px;
  border: 1px solid #e8e0f5;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tool-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card img {
  width: 100%;
  height: 160px; /* fixed height for uniform cards */
  object-fit: cover;
  border-bottom: 1px solid #e8e0f5;
}

.tool-card h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 10px 12px 5px;
  color: #ffffff;
}

.tool-card p {
  font-size: 1em;
  margin: 0 12px 12px;
  color: #555;
  flex-grow: 1;
}
