   .card-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
      
    }

    .card {
        background-color: rgba(243, 244, 244, 0.85);
     color: black;
        border-radius: 20px;
        padding: 40px;
        width: 320px;
        position: relative;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
           opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* Subject Tags */
    .subject-tag {
        position: absolute;
        top: -14px;
        left: 20px;
        background-color:  rgba(163, 0, 0, 0.85);
        color: white;
        padding:  18px;
        font-size: 13px;
        font-weight: bold;
        border-radius: 4px;
        letter-spacing: 1px;
        height: 50px;
    }
    .subject-tag.chemistry {
        background-color: rgba(163, 0, 0, 0.85);
    }
    .subject-tag.biology {
        background-color:  rgba(163, 0, 0, 0.85);
    }

    /* Profile Image */
    .profile-img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px dashed white;
        padding: 5px;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Name */
    .card h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    /* Description */
    .card p {
        font-size: 14px;
        line-height: 1.5;
        margin-top: 8px;
        color: #dfe6e9;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .card-container {
            flex-direction: column;
            align-items: center;
        }
    }


.profile-img {
    display: block;
    margin: 0 auto; /* horizontal center if image takes full width in column */
}





/* Hover effect */
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Keyframes for fade and slide up */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: stagger animation for each card */
.card-container .card:nth-child(1) { --delay: 0s; }
.card-container .card:nth-child(2) { --delay: 0.2s; }
.card-container .card:nth-child(3) { --delay: 0.4s; }

.img-portfolio{
    height: 100%;
    width: 100%;
    object-fit: cover;
}


/* faculty */



    .other-hero{
       background: linear-gradient(90deg, rgba(0, 82, 165, 0.85), rgba(163, 0, 0, 0.85))
    }