/* Basic styling for project cards */
.project-card {
    position: relative;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-card__image {
  /* reset any previous height */
  height: 0 !important;

  /* 4:3 aspect ratio = 3 ÷ 4 × 100% = 75% */
  padding-bottom: 75% !important;

  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 5px !important;
}

.project-card__image img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}



/* Client Logo */
.project-card__logo {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2;
    border-radius: 5px;
    overflow: hidden;
}

.project-card__logo img {
    width: 100%;
    opacity: 75%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 5px;
}

/* Project Details */
.project-card__details {
    text-decoration: none;
    outline: none;
    text-align: left;
    padding-top: 5px;
}

.project-card:focus,
.project-card:hover,
.project-card:active {
    text-decoration: none;
    outline: none;
}

/* Project Date */
.project-card__date {
    font-size: 12px;
    color: #888;
    margin: 0;
    font-weight: 400;
}

/* Client Name Styling */
.project-card__client {
    font-size: 16px;         /* Base desktop size */
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #8eb63e;
    transition: color 0.3s ease;
}

.project-card__client:hover {
    color: #5c8f28; /* Slightly darker green on hover */
}

/* Responsive Font for Tablets and Smaller */
@media (max-width: 1024px) {
    .project-card__client {
        font-size: 14px;
    }
}
