.branch-section {
    background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--vifa-text-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--vifa-primary-color);
    margin-bottom: 60px;
    font-weight: 400;
}

/* Đảm bảo swiper-wrapper và swiper-slide có chiều cao đồng đều */
.branch-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.branch-slider .swiper-slide {
    height: auto;
    display: flex;
}

.branch-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transform: scale(0.97);
    transition: all 0.5s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(190, 138, 96, 0.15);
}

.branch-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.branch-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-card:hover .branch-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.branch-card:hover .overlay {
    opacity: 1;
}

.btn-map {
    background: var(--vifa-primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(190, 138, 96, 0.3);
}

.btn-map:hover {
    background: var(--vifa-text-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 49, 51, 0.3);
}

.branch-content {
    padding: 24px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.branch-content h3 {
    font-size: 1.4rem;
    color: var(--vifa-text-color);
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.branch-content p {
    font-size: 0.95rem;
    color: var(--vifa-text-color);
    margin: 8px 0;
    line-height: 1.6;
    opacity: 0.85;
}

.branch-content p strong {
    color: var(--vifa-primary-color);
    font-weight: 600;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--vifa-primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: var(--vifa-main-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(235, 171, 51, 0.3);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: var(--vifa-primary-color);
    opacity: 0.4;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--vifa-primary-color);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .branch-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .branch-img {
        height: 180px;
    }

    .branch-content {
        padding: 20px;
    }

    .branch-content h3 {
        font-size: 1.2rem;
    }

    .branch-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .branch-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .branch-img {
        height: 160px;
    }
}
