@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");
/* Fancy Team Box */
.team-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
    overflow: hidden;
    border: 2px solid #e3e3e3;
    max-width: 300px; /* Smaller width */
    margin: 0 auto;
}

.team-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

/* Full-width square image */
.team-img {
    width: 100%;
    aspect-ratio: 0 / 1;
    object-fit: cover;
    border-bottom: 4px solid #0d6efd;
    transition: 0.4s ease;
}

.team-box:hover .team-img {
    transform: scale(1.05);
    border-color: #0a58ca;
}

/* Content */
.team-box-content {
    padding: 15px 20px; /* smaller padding */
    text-align: center;
}

.team-box h5 {
    margin-top: 8px;
    font-size: 1rem; /* smaller font */
    color: #0d6efd;
}

.team-box p {
    font-size: 0.8rem; /* smaller font */
}

/* underline */
.team-box h5::after {
    content: "";
    width: 40px; /* smaller line */
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    display: block;
    margin: 8px auto;
    border-radius: 10px;
}

/* Social Icons */
.team-social a {
    display: inline-block;
    margin: 3px;
    font-size: 16px; /* smaller icons */
    color: #0d6efd;
    transition: 0.3s;
}

.team-social a:hover {
    color: #6610f2;
    transform: translateY(-2px);
}

/* ===========================
   ANIMATED CONNECTING LINES
   =========================== */
@keyframes glowFlow {
    0% {
        box-shadow: 0 0 4px #0d6efd;
        background: #0d6efd;
    }
    50% {
        box-shadow: 0 0 10px #6610f2;
        background: #6610f2;
    }
    100% {
        box-shadow: 0 0 4px #0d6efd;
        background: #0d6efd;
    }
}

.tree-line-vertical {
    width: 2px;
    height: 35px;
    margin: 0 auto;
    animation: glowFlow 2s infinite;
    border-radius: 10px;
}
.tree-line-horizontal2 {
    width: 50%;
    height: 2px;
    margin: 0 auto;
    animation: glowFlow 2s infinite;
    border-radius: 10px;
}
.tree-line-horizontal {
    width: 60%;
    height: 2px;
    margin: 0 auto;
    animation: glowFlow 2s infinite;
    border-radius: 10px;
}

.center-row {
    display: flex;
    justify-content: center;
}
