﻿
.hod-img {
    width: 400px;
    height: 400px;
    border-radius: 40%;
}

/************************/
/* News Image Carousel */
/************************/
* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
}

.carousel {
    background: #EEE;
}

.carousel-cell {
    width: 100%; /* Ensures each cell takes full width */
    height: 100%; /* Set a fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-cell img {
        display: block;
        height: 200px;
    }

@media screen and ( min-width: 768px ) {
    .carousel-cell img {
        height: 100%;
    }
}


/***********************/
/* News Image Overlay */
/***********************/
.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* The actual image that covers the container area. */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zoom/crop the image so it always fills the container. */
    display: block;
}

/* The slightly dark overlay that sits at the bottom of the container. */
.dark-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.90), transparent);
}

/* The text that sits on top of the dark overlay. */
.text-overlay {
    position: absolute;
    bottom: 10px; /* Move up a bit from the container’s bottom. */
    left: 20px;
    color: #fff;
    font-size: 1.2em;
    z-index: 2; /* Make sure the text appears above the overlay. */
}

.text-outlined {
    color: #fff;
    text-shadow: -2px -2px 0 #000, 0 -2px 0 #000, 2px -2px 0 #000, 2px 0 0 #000, 2px 2px 0 #000, 0 2px 0 #000, -2px 2px 0 #000, -2px 0 0 #000;
}


/*****************/
/* Profile Card */
/*****************/
:root {
    --profile-card-width: 320px;
    --profile-img-height: 200px;
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
}


.profile-container {
    padding: 2rem 0;
}

.profile-card {
    width: var(--profile-card-width);
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    position: relative;
    padding-bottom: 60px; /* Make space for the button */
    min-height: 450px; /* Set a minimum height for consistency */
}

    .profile-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.profile-img-container {
    width: 100%;
    height: var(--profile-img-height);
    overflow: hidden;
    position: relative;
    background-color: #e9ecef;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.profile-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - var(--profile-img-height)); /* Fill remaining card space */
}

.profile-name {
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.profile-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.profile-specialization {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

    .profile-specialization i {
        margin-right: 5px;
    }

.profile-contact {
    font-size: 0.7rem;
    color: #495057;
    word-break: break-all;
}

    .profile-contact i {
        margin-right: 5px;
        color: var(--secondary-color);
    }

.search-container {
    margin-bottom: 2rem;
}

.department-filter {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .profile-card {
        width: 100%;
    }
}

.btn-view-profile .btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: absolute;
    bottom: 15px;
    left: 1.2rem;
    right: 1.2rem;
    width: auto;
}

    .btn-view-profile .btn:hover {
        background-color: #1a252f;
    }


/*******************/
/* Toggle content */
/*******************/
.toggle-content-btn {
    transition: all 0.3s ease;
}

.toggle-content-btn.collapsed::after {
    content: " ▼";
}

.toggle-content-btn:not(.collapsed)::after {
    content: " ▲";
}

