.branch-card {
    min-height: 350px;
    border-radius: 16px;
    transition:
        transform 0.4s cubic-bezier(.25,1.25,.5,1.05),
        box-shadow 0.4s cubic-bezier(.25,1.25,.5,1.05);
    background-repeat: no-repeat;
    padding: 2rem 1rem 4rem 1rem;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}
.branch-card:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.branch-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #1689421f;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}
.branch-card:hover::before {
    opacity: 1;
}
.branch-card-title {
    position: absolute;
    left: 0;
    bottom: 24px;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    z-index: 2;
    padding-left: 10px;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 70%;
}
@media (max-width: 768px) {
    .branch-card-title {
        font-size: 1.1rem;
        bottom: 12px;
        padding-left: 5px;
        height: 60%;
    }
}
.branch-team-card-btn {
    position: absolute;
    bottom: 24px;
    right: 0;
    min-width: 160px;
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 40px;
    background: linear-gradient(90deg, #168942 50%, #ffffff1f 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px #1689421f;
    transition:
        background 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    z-index: 2;
    font-family: 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
}
.branch-team-card-btn i {
    font-size: 1.3rem;
    animation: bounceIn 1s;
}
.branch-team-card-btn:hover, .branch-team-card-btn:focus {
    background: linear-gradient(90deg, #168942 50%, #ffffff1f 100%);
    box-shadow: 0 8px 32px #1689421f;
    text-decoration: none;
    color: #fff;
}
.branch-team-card-btn::after {
    content: "→";
    margin-left: 0.7rem;
    font-size: 1.2rem;
    transition: margin-left 0.2s;
}
.branch-team-card-btn:hover::after {
    margin-left: 1.2rem;
}
@media (max-width: 768px) {
    .branch-card {
        min-height: 250px;
        padding: 1rem 0.5rem 3rem 0.5rem;
    }
    .branch-card-title {
        font-size: 1.1rem;
        top: 18px;
        padding-left: 5px;
    }
    .branch-team-card-btn {
        min-width: 110px;
        font-size: 0.95rem;
        padding: 0.5rem 1.2rem;
    }
}
