* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.branches-container {

    width: 100%;
}

.single-branch {
    height: 312px;
    width: 306px;
    background-color: #fff;
    border-radius: 12px;
    transition: all 0.3s linear;
    margin-block: 36px;
    overflow: hidden;
}

.branch-image {
    width: 100% !important;
    height: 155px !important;
    background-color: rebeccapurple;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
}

.branch-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-block: 8px 24px;
    margin-inline: 25px;
    text-align: center;
}
.branches-container .glide__slide{
    display:flex;
    justify-content:center;
    align-items:center;
}

.branch-name {
    font-size: 18px;
    font-weight: 700;
    color: #2f2f2f;
}

.branch-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 600;
    color: #646464;
}

.phone-n1 {
    border-left: 1px solid #ffa600;
    padding-left: 6px;
}

.branch-address {
    font-size: 16px;
    font-weight: 600;
    color: #646464;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* number of lines to show */
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.hovered {
    box-shadow: -4px 4px 24px 0px #A90E0633;
    height: 380px;
    margin-block: 0;
    overflow: hidden;
}

.branch-btn {
    visibility: hidden;
    opacity: 0;
    width: 256px;
    height: 48px;
    background-color: #A90E06;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    outline: none;
    border-radius: 10px;
    margin-top: 10px;
    transition: opacity 0.2s linear;
    cursor: pointer;
}

.hovered .branch-btn {
    visibility: visible;
    opacity: 1;
}

.branches-container .glide__slides {
    padding-bottom: 20px;
}

@media screen and (max-width: 720px) {
    .single-branch {
        width: 250px;
    }
    .branch-info {
        margin-inline: 20px;
    }
    .branch-btn {
        width: 100%;
    }
}
@media screen and (max-width: 580px) {
    .single-branch {
        position: relative;
        width: 200px;
        height: 400px;
        margin-block: 0;
    }
    .branch-info {
        margin-inline: 10px;
        margin-block:22px;
    }
    .branch-name {
        font-size: 16px;
    }
    .branch-phone {
        flex-direction: column;
        gap: 16px;
        font-size: 12px;
    }
    .phone-n1 {
        border: none;
        padding: 0;
    }
    .branch-address {
        font-size: 12px;
    }
    .branch-btn {
        width: 160px;
        position: absolute;
        bottom: 20px;
        font-size: 14px;
        height: 37px;
        visibility: visible;
        opacity: 1;
    }
}
@media screen and (max-width: 440px) {
    .single-branch {
        width: 160px;
    }
    .branch-btn {
        width: 127px;
    }
}
