body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Slider */
.sliderstylebranch{
    width: 100%;
    /* padding-top: 100px; */
    background-color: #FFE2B0;
    position: relative;
    height: 60vh;

}
.sliderstylebranch .slides{
    object-fit: cover;
    display: inline-block;
    width: 100%;
    height: 60vh;

}
.sliderstylebranch .slide-cover{
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(36, 14, 0, 0) 0%, #391c0e 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sliderstylebranch .slide-cover .text{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fadcc3;
    font-family: "Varela Round", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 80px;
}
.sliderstylebranch .slide-cover .text a{
    text-decoration: none;
    cursor: pointer;
    color: #fffcf3;
    transition: color ease 0.2s;
}

.sliderstylebranch .slogan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sliderstylebranch .slogan {
    font-size: 60px;
    color: #fffaed;
    margin-top: 10px;
    font-family: Pacifico;
    line-height: 1.5;
}
.sliderstylebranch .slide-cover .text a:hover{
    color: #ffb97c;
}


/* Filiallar */
.branch-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 80px 20px;
    background: linear-gradient(180deg, #fbdbbc, #f8cfa8);
    justify-content: center;
}

.cardbranch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    max-width: 300px; /* Maksimum eni */
}

.cardbranch::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cardbranch:hover::before {
    opacity: 1;
}

.cardbranch:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.card-imagebr {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-imagebr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.card:hover .card-image img {
    transform: scale(1.1) rotate(-2deg);
}
.card-textbr {
    height: 180px;
    width: 100%;
    background: linear-gradient(135deg, #e2a56b, #c97b50);
    color: #fff;
    padding: 25px;
    text-align: center;
    position: relative;
}

@media (max-width: 1200px) {
    .branch-container {
        grid-template-columns: repeat(3, 1fr); /* 3 sütun */
        justify-content: center;
    }
    .cardbranch{
        margin-left: 27px;
    }
}

/* Ekran 900px və daha kiçik olduqda (2 sütuna düşəcək) */
@media (max-width: 900px) {
    .branch-container {
        grid-template-columns: repeat(2, 1fr); /* 2 sütun */
        justify-content: center;
    }
}

/* Ekran 600px və daha kiçik olduqda (1 sütuna düşəcək) */
@media (max-width: 600px) {
    .branch-container {
        grid-template-columns: repeat(1, 1fr); /* 1 sütun */
        justify-content: center;
    }
    .cardbranch{
        margin-left: 35px;
    }
}

.card-textbr .card-title {
    font-size: 1.5rem;
    /* margin-bottom: 12px; */
    font-family: "Varela Round", sans-serif;
    color: #fffcf5;
    letter-spacing: 1px;
}

.card-textbr.card-body {
    font-size: 1.2rem;
    font-family: "Varela Round", sans-serif;
}

.card-textbr .branch-button {
    border: none;
    border-radius: 25px;
    background: linear-gradient(145deg, #9e4a32, #ba5e42);
    padding: 10px 25px;
    margin-top: 15px;
    cursor: pointer;
    font-family: 'Varela Round', sans-serif;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15),
    -4px -4px 10px rgba(255, 255, 255, 0.6);
}

.card-textbr .branch-button a {
    color: #f8e7da;
    text-decoration: none;
}

.card-textbr .branch-button:hover {
    background: linear-gradient(145deg, #8d3e28, #a74e36);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15),
    -2px -2px 5px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}




@media (max-width: 850px) {
    .sliderstyle {
        height: 50vh;
    }

    .sliderstyle .slides {
        height: 50vh;
    }

    .slide-cover {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 10px;
    }

    .slogan {
        font-size: 40px;
        text-align: center;
        word-wrap: break-word;
    }

    .slide-cover .text {
        font-size: 16px;
        line-height: 50px;
    }
}

@media (max-width: 480px) {
    .sliderstyle {
        height: 40vh;
    }

    .sliderstyle .slides {
        height: 40vh;
    }

    .slide-cover {
        padding: 0 5px;
    }

    .slogan {
        font-size: 30px;
    }

    .slide-cover .text {
        font-size: 14px;
        line-height: 40px;
    }
}

@media (max-width: 320px) {
    .sliderstyle {
        height: 35vh;
    }

    .branch-container .card-imagebr{
        width: 280px;
    }

    .sliderstyle .slides {
        height: 35vh;
    }

    .slide-cover {
        padding: 0 5px;
    }

    .slogan {
        font-size: 22px;
    }

    .slide-cover .text {
        font-size: 12px;
        line-height: 30px;
    }
}




