.faculty-card {
    border: 2px solid var(--primary-color); /* Sharp border with a dark gray color */
    border-radius: 0px; /* Ensures sharp edges */
    padding: 15px;
    text-align: center;
    width: 100%;
    max-width: 320px; /* Keeps the cards uniform */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.faculty-card:hover {
    transform: translateY(-5px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.faculty-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid var(--primary-color); }

.faculty-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    color: #3652A5;
}

.text-designation {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    text-align: center;
}
.email-icon {
    font-size: 17px; /* Adjust size */
    color: var(--text-color); /* Default color */
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}
.email-container:hover .email-icon {
    color: #0a58ca; /* Change color on hover */
    transform: scale(1.1); /* Subtle effect on hover */
}

.email-link {
    color: var(--text-color);
    text-decoration: none;
}

.email-link:hover {
    text-decoration: none;
}

.link {
    display: inline-block;
    position: relative;
    margin-top: 10px;
    font-weight: bold;
    color: #4f56dd;
    text-decoration: none;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

.link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #C69C6D, rgba(255, 215, 0, 0.3));
    box-shadow: 0px 4px 10px rgba(255, 215, 0, 0.6);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.link:hover {
    color: hsl(237, 100%, 38%);
}

.link:hover::after {
    width: 100%;
    left: 0;
}

@media (max-width: 768px) {
    .faculty-card {
        max-width: 100%;
        margin: 10px auto;
        padding: 10px;
    }

    .faculty-card-image img {
        height: 200px;
    }

    .faculty-card-title {
        font-size: 1rem;
    }

    .text-designation {
        font-size: 0.95rem;
    }

    .email-icon {
        font-size: 17px;
    }

    .link {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faculty-card-image img {
        height: 180px;
    }

    .faculty-card-title {
        font-size: 0.95rem;
    }

    .text-designation {
        font-size: 0.9rem;
    }

    .link {
        font-size: 0.9rem;
    }
}














