/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

 /*Set top spacing for post headers */
.single .page-header {
    padding-top: 30px; 
    margin-top: 30px;
    margin-bottom: -10px;
}


.tool-featured img {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 6.5px;
}

.tool-categories {
  margin-bottom: 15px;
}

.tool-cat {
  display: inline-block;
  text-decoration: underline;
  font-size: 15px;
}

.tool-excerpt {
  font-style: italic;
  margin-top: 15px;
  margin-bottom: 25px;
}

.tool-info {
  border-radius: 10px;
  padding: 5px;
}

/* ===== Category Page Grid ===== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
  align-items: flex-start;
}

.tool-item {
  background: #EBE7FF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 13px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.tool-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ===== Fixed image size for grid items ===== */
.tool-thumb {
  width: 100%;
  max-width: 500px; /* ensures consistent width */
  height: 280px; /* fixed height */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D8D8F5; /* optional subtle background for non-filled areas */
  overflow: hidden;
  border-radius: 10px;
}

.tool-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps full image visible (no crop, no distortion) */
  object-position: center;
  display: block;
}

.tool-title {
  margin: 10px;
  font-size: 20px;
  letter-spacing: 1px;
  color: #000;
}

.tool-title:hover {
  color: #9359B3;
}