/* --- Sidebar Styling --- */
.sidebar-card {
    background-color: #6e1b1b;
    /* Deep Maroon */
    color: #d89f89;
    /* Light Salmon/Gold text */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-title {
    font-size: 2.5rem;
    color: #e0cca3;
    margin-bottom: 10px;
    font-weight: normal;
}

.sidebar-divider {
    border-top: 1px dashed #d89f89;
    opacity: 0.5;
    margin: 15px 0 25px 0;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-list li a {
    text-decoration: none !important;
    color: #d89f89 !important;
}

.nav-list li:hover {
    color: #fff;
}

.nav-list li i {
    margin-right: 12px;
    border: 1px solid #d89f89;
    padding: 2px;
    border-radius: 2px;
    font-size: 0.8rem;
}

/* --- Main Content Styling --- */
.content-area {
    padding-left: 30px;
    color: #333;
}

.page-header {
    font-size: 2rem;
    color: #4a4a4a;
    margin-bottom: 30px;
    font-weight: normal;
}

/* Table Styling to match the lines */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.custom-table tr {
    border-bottom: 1px solid #888;
}

.custom-table td {
    padding: 15px 5px;
    vertical-align: top;
}

.custom-table tr:last-child {
    border-bottom: none;

    /* --- Sidebar Styling --- */
    .sidebar-card {
        background-color: #6e1b1b;
        /* Deep Maroon */
        color: #d89f89;
        /* Light Salmon/Gold text */
        border-radius: 8px;
        padding: 30px;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar-title {
        font-size: 2.5rem;
        color: #e0cca3;
        margin-bottom: 10px;
        font-weight: normal;
    }

    .sidebar-divider {
        border-top: 1px dashed #d89f89;
        opacity: 0.5;
        margin: 15px 0 25px 0;
    }

    .nav-list {
        list-style: none;
        padding: 0;
    }

    .nav-list li {
        margin-bottom: 15px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        cursor: pointer;
        transition: color 0.3s;
    }

    .nav-list li:hover {
        color: #fff;
    }

    .nav-list li i {
        margin-right: 12px;
        border: 1px solid #d89f89;
        padding: 2px;
        border-radius: 2px;
        font-size: 0.8rem;
    }

    /* --- Main Content Styling --- */
    .content-area {
        /* padding-left: 30px; */
        color: #333;
    }

    .page-header {
        font-size: 2rem;
        color: #4a4a4a;
        margin-bottom: 30px;
        font-weight: normal;
    }

    /* Table Styling to match the lines */
    .custom-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 1rem;
    }

    .custom-table tr {
        border-bottom: 1px solid #888;
    }

    .custom-table td {
        padding: 15px 5px;
        vertical-align: top;
    }

    .custom-table tr:last-child {
        border-bottom: none;
    }

    .col-num {
        width: 30px;
        font-weight: bold;
    }

    .col-label {
        font-weight: bold;
        width: 60%;
    }

    .col-value {
        text-align: right;
        font-weight: 500;
    }

    /* Adjusting for specific rows like dates */
    .date-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
}

.col-num {
    width: 30px;
    font-weight: bold;
}

.col-label {
    font-weight: bold;
    width: 60%;
}

.col-value {
    text-align: right;
    font-weight: 500;
}

/* Adjusting for specific rows like dates */
.date-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* General Styles for faculty and faculty cards */
.section-title {
    color: #2c3e50;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    font-size: 2.2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

/* Faculty Card Styles */
.faculty-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.faculty-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.faculty-image-wrapper {
    margin-bottom: 20px;
    text-align: center;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faculty-image {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 15px;
    border: 6px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.faculty-card:hover .faculty-image {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.placeholder-image {
    width: 200px;
    height: 240px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    border: 6px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.faculty-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 150px;
}

.faculty-name {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faculty-designation {
    color: #3498db;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.faculty-qualification {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 0;
    min-height: 2.8em;
}

/* Button Styles */
.btn-profile {
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
    letter-spacing: 0.3px;
    margin-top: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 12px 35px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ca1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.btn-outline-primary {
    border-color: #3498db;
    color: #3498db;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* Profile Unavailable */
.profile-unavailable {
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 25px;
    color: #95a5a6;
    font-weight: 500;
    font-size: 0.9rem;
    border: 2px dashed #bdc3c7;
    text-align: center;
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {

    .faculty-image,
    .placeholder-image {
        width: 180px;
        height: 220px;
    }

    .faculty-image-wrapper {
        height: 220px;
    }
}

@media (max-width: 992px) {

    .faculty-image,
    .placeholder-image {
        width: 160px;
        height: 200px;
    }

    .faculty-image-wrapper {
        height: 200px;
    }

    .faculty-name {
        font-size: 1.1rem;
        min-height: 2.6em;
    }
}

@media (max-width: 768px) {

    .faculty-image,
    .placeholder-image {
        width: 180px;
        height: 220px;
    }

    .faculty-image-wrapper {
        height: 220px;
    }

    .faculty-card {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {

    .faculty-image,
    .placeholder-image {
        width: 160px;
        height: 200px;
    }

    .faculty-image-wrapper {
        height: 200px;
    }

    .faculty-card {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .faculty-name {
        font-size: 1rem;
        min-height: 2.4em;
    }
}

/* Animation for Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Equal height cards container */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row>[class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Animation delay for sequential card appearance */
.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(1) .faculty-card {
    animation-delay: 0.1s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(2) .faculty-card {
    animation-delay: 0.2s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(3) .faculty-card {
    animation-delay: 0.3s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(4) .faculty-card {
    animation-delay: 0.4s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(5) .faculty-card {
    animation-delay: 0.5s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(6) .faculty-card {
    animation-delay: 0.6s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(7) .faculty-card {
    animation-delay: 0.7s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(8) .faculty-card {
    animation-delay: 0.8s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(9) .faculty-card {
    animation-delay: 0.9s;
}

.col-12.col-sm-6.col-md-4.col-lg-3:nth-child(10) .faculty-card {
    animation-delay: 1.0s;
}