.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/background/pink-blue-0.png'); /* Set background image */
    background-size: cover;
    background-position: center;
    z-index: -1; /* Place behind other content */
}

.parent-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
}

.work.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
    align-items: center;
}

.work.card-grid > * {
    min-width: 250px; /* Ensure items don't shrink below this width */
    max-width: 100%;  /* Ensure items don't exceed their container */
    background: #f0f0f0; /* Optional: Add background for visibility */
    padding: 20px;
    text-align: center;
}

/* Individual Card Styling */
.work.card-grid > * {
    min-width: 250px; /* Ensure items don't shrink below this width */
    max-width: 100%;  /* Ensure items don't exceed their container */
}

.work .card {
    width: 100%;
    max-width: 300px;
    padding: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Square aspect ratio */
    border-radius: 0px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); Shadow for depth */
}

/* Card Image Background */
.work .card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease; /* Smooth zoom transition */
}

/* Hover Effect: Zoom the Image */
.work .card:hover .card-image {
    transform: scale(1.1); /* Zoom in the image */
}

/* Overlay Card (Slides Up on Hover) */
.work .card-overlay {
    position: absolute;
    bottom: -100%; /* Start below the card */
    left: 0;
    right: 0;
    height: 100%;
    background: #e64a19; /* Semi-transparent black */
    color: white;
    padding: 20px;
    box-sizing: border-box;
    transition: bottom 0.5s ease; /* Smooth slide-up transition */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-overlay img{
    width: 100%;
    max-width: 70px;
}   


.card-overlay a{
    width: 100%;height: 100%;display: flex;flex-direction: column;align-items: center;
}

/* Show Overlay on Hover */
.work .card:hover .card-overlay {
    bottom: 0; /* Slide up to cover the image */
}

/* Title Styling */
.work .card-overlay h3 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* Body Text Styling */
.work .card-overlay p {
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.5;
    max-width: 200px;
    color: #ffffff;
    text-align: justify;
}

/* Learn More Button Styling */
.work .card-overlay a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Hover Effect for Button */
.work .card-overlay a:hover {
    background-color: #e64a19; /* Darker orange on hover */
}
.work .card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}