/* --- Hero Section Styling --- */
.hero-section {
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
}

.hero-section h1 {
  font-weight: 800;
  color: #2c3e50;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.25rem;
  color: #5a6c7d;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Project Card Enhancements --- */
/* Target the Quarto grid cards */
.quarto-grid-item.card {
  transition: all 0.3s ease; /* Smooth animation */
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Soft baseline shadow */
  background-color: #ffffff;
  overflow: hidden; /* Ensures image rounded corners stay clean */
}

/* Eye-catching hover effect */
.quarto-grid-item.card:hover {
  transform: translateY(-8px); /* Lifts the card up */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Deep drop shadow */
  border-color: #cbd5e1;
}

/* Thumbnail image styling */
.quarto-grid-item .card-img-top {
  object-fit: cover; /* Ensures images fill the space without distortion */
  border-bottom: 1px solid #f1f5f9;
}

/* Typography inside the cards */
.quarto-grid-item .card-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: #1e293b;
  margin-top: 0.5rem;
}

.quarto-grid-item .card-subtitle {
  font-weight: 400;
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.5;
}

/* Category 'Pills' Styling */
.listing-category {
  background-color: #e0f2fe !important; /* Soft blue background */
  color: #0369a1 !important; /* Dark blue text */
  font-weight: 600;
  border: none !important;
  border-radius: 20px !important;
  padding: 0.35em 0.8em !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}