body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
  }
  .hero {
    position: relative;
    background: url('https://www.aboutcoffee.org/wp-content/uploads/2024/10/ripe-coffee-cherries-on-branch-of-coffee-tree.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero .container {
    position: relative;
    z-index: 2; /* Ensures text is above the overlay */
}
.card {
    width: 300px; /* Set a consistent width */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    background: #fff;
}

.card:hover {
    transform: scale(1.05);
}

.card-img {
    width: 100%; /* Ensures the image takes full width of the card */
    height: 200px; /* Set a fixed height for uniformity */
    object-fit: cover; /* Crops the image to fit the area without distortion */
    aspect-ratio: 3 / 2; /* Ensures a consistent aspect ratio */
}

.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h3 {
    margin: 10px 0;
    font-size: 18px;
}

.card-content p {
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .card {
        width: 100%; /* Full width on smaller screens */
    }
    .card-img {
        height: 150px; /* Reduce image height for better mobile experience */
    }
}
