body{
    background-color: var(--color-bg);
}

/* ==========================================================================
   RECENT PROJECTS GRID — (recentprojects.php)
   Defines the responsive card grid that displays all portfolio items.
   ========================================================================== */


.recent-projects-container {
  max-width: 1200px;
  /* Constrains content for better readability */
  margin: 0 auto;
  /* Centers container horizontally */
  padding: 3rem 1rem;
  /* Adds breathing room on all sides */
}

/* --- Section Header --- */
.recent-projects-header {
  font-family: var(--font-body);
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
}

/* --- Grid Wrapper --- */
.recent-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  /* Responsive grid */
  gap: 2rem;
  /* Space between cards */
}

/* --- Individual Project Card --- */
.recent-projects-grid-card {
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth hover animation */
}

/* Lift card visually on hover */
.recent-projects-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

/* --- Card Content Area --- */
.recent-projects-grid-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* --- Card Title --- */
.recent-projects-grid-title {
  font-family: var(--font-body);
  font-size: var(--font-size-grid-title);
  font-weight: var(--font-weight-strong);
  color: var(--color-text);
  margin-bottom: 0.5rem;
  
}

/* --- Card Image --- */
.recent-projects-grid-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Ensures consistent proportions */
  object-fit: cover;
  display: block;
}

/* --- Card Description --- */
.recent-projects-grid-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* --- View Project Button --- */
.recent-projects-grid-button {
  display: block;
  width: 90%;
  margin: 0 auto;
  text-align: center;
  background-color: var(--color-accent);
  color: white;
  text-decoration: none;
  font-weight: var(--font-weight-strong);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
  
}

/* Darken button on hover */
.recent-projects-grid-button:hover {
  background-color: var(--color-secondary);
}
.recent-projects-grid-buttons{
  display: flex;
  gap: 1px;
  flex-direction: column;
}