﻿
.carousel-item {
    position: relative;
    width: 100%;
    height: auto; /* height adjusts based on image */
    display: flex;
    justify-content: center;
    align-items: center;
}

    .carousel-item img {
        width: 100%;
        height: auto; /* maintain aspect ratio */
        object-fit: contain; /* no cropping */
    }

/* Center caption perfectly */
.carousel-caption {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: fff;
    text-align: center;
    font-weight: 600;
    width: 90%; /* allow some padding */
    padding: 0 15px;
    line-height: 1.2;
    font-size: 45px;
    font-weight: 600;
    /*text-shadow: 4px 4px 4px #bab4b4e0;*/
}

/* Media queries for responsiveness */
@media (max-width: 1500px) {
    .carousel-caption {
        font-size: 45px;
        top: 53%;
    }
}

@media (max-width: 1200px) {
    .carousel-caption {
        font-size: 45px;
        top: 50%;
    }
}

@media (max-width: 992px) {
    .carousel-caption {
        font-size: 45px;
        top: 50%;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        font-size: 30px;
        top: 52%;
    }
}

@media (max-width: 575px) {
    .carousel-caption {
        font-size: 20px;
        top: 52%;
    }
}

@media (max-width: 430px) {
    .carousel-caption {
        font-size: 18px;
        top: 48%;
    }
}

@media (max-width: 375px) {
    .carousel-caption {
        font-size: 17px;
        top: 44%;
    }
}

/* Optional: your card and table styles */
body {
    background-color: #f8f9fa;
}

.custom-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.table th, .table td {
    vertical-align: middle !important;
}

@media(max-width:768px) {
    .legacy-info {
        padding: 0 25px 0 25px;
    }
}

@media(max-width:575px) {
    .highlight-info {
        text-align: justify;
        padding: 0 10px 0 10px;
    }

    .highlight-heading {
        position: relative;
        display: inline-block;
        color: #b22b2f;
        font-weight: 700;
        margin-bottom: 1.25rem;
        padding: 0 0px 0 10px;
    }
}

body {
    background-color: #faf7f5;
}

.leader-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.leader-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.leader-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 25px 18px;
    text-align: center;
    width: 92%;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: height 0.4s ease, padding 0.4s ease;
    height: 90px;
    overflow: hidden;
}

.leader-card:hover .leader-info {
    height: 180px;
    padding: 20px;
}

.leader-name {
    font-weight: 600;
    font-size: 17px;
    color: #000;
    margin-bottom: 4px;
}

.leader-title {
    font-size: 17px;
    color: #6c757d;
    margin-bottom: 12px;
}

.leader-actions {
    display: flex;
    justify-content: space-around;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-wrap: wrap;
    gap: 10px;
}

    .leader-actions a {
        text-decoration: none;
    }

.leader-card:hover .leader-actions {
    opacity: 1;
}

.leader-actions div {
    text-align: center;
    font-size: 15px;
    color: #000;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 500;
}

.leader-actions i {
    display: block;
    font-size: 22px;
    margin-bottom: 5px;
}

.leaders-section {
    padding: 60px 0;
    max-width: 1200px;
}

.leader-divider {
    border: none;
    border-top: 2px solid #ccc;
    margin: 1px 0 0px;
    width: 100%;
}

@media (max-width: 576px) {
    .leader-info {
        width: 94%;
    }
}

@media (max-width: 496px) {
    .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.hero-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: justify;
}

.highlight {
    font-weight: 600;
    color: #b02a37;
}

.section-title {
    font-weight: 700;
    color: #b02a37;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.institution-card {
    border: 1.5px solid #b02a37;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: #fff;
    color: #b02a37;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    font-size: 17px;
    min-height: 113px;
    padding: 20px;
}
    /*user-select: none;*/

    .institution-card:hover {
        background-color: #b02a37;
        color: #fff;
        box-shadow: 0 5px 15px rgba(176, 42, 55, 0.5);
        transform: translateY(-5px);
    }

footer {
    margin-top: 4rem;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

.vision_mission_breadcrumb {
    position: relative;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

img.img-fuild.bred-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media(max-width:1024px) {
    img.img-fuild.bred-img {
        height: auto;
        width: 100%;
        object-fit: cover;
    }

    .vision_mission_breadcrumb {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

.bredcurmb-container {
    padding: 30px 0 30px 118px;
}

    .bredcurmb-container .tp-breadcrumb__title {
        color: #b22b2f;
        position: relative;
    }

        .bredcurmb-container .tp-breadcrumb__title:after {
            content: '';
            position: absolute;
            width: 8%;
            height: 5px;
            border-radius: 10px;
            background-image: linear-gradient(to right, #b22b2f, #d1a550);
            background-position: center;
            bottom: 0;
            left: 0;
        }

@media screen and (max-width: 991px) {
    .bredcurmb-container .tp-breadcrumb__title:after {
        width: 23%;
    }

    .bredcurmb-container {
        margin-bottom: 40px;
    }
}

.leader-card.no-hover:hover .leader-info {
    height: 90px; /* same as default */
    padding: 25px 18px; /* same as default */
}

.leader-card.no-hover:hover .leader-actions {
    opacity: 0; /* keep actions hidden */
}
