:root {
    --primary-orange: #ff6b35;
    --primary-blue: #2c3e50;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.15);
    --overlay-bg: rgba(0,0,0,0.75);
    --text-light: rgba(255,255,255,0.9);
    --text-lighter: rgba(255,255,255,0.7);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.section-team {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

.work_h1 h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-orange), #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
}

.work_h1 h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ff8c42);
    border-radius: 2px;
}

.work_h1 h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Swiper Container - FIXED */
.swiper-container {
    padding: 60px 20px; /* Increased top/bottom padding */
    position: relative;
    max-width: 1400px; /* Container max-width */
    margin: 0 auto;
}

/* Swiper Wrapper */
.branch-swiper {
    padding: 40px 0 60px 0; /* Internal padding for better spacing */
    overflow: visible; /* Allow slides to extend */
}

.branch-swiper .swiper-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.swiper-slide {
    width: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    flex: 0 0 auto;
}

/* Branch Cards */
.branch-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0; /* Prevent shrinking */
}

.branch-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.branch-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.branch-card:hover img {
    transform: scale(1.1);
}

/* Overlay */
.branch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--overlay-bg), rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.branch-card:hover .branch-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.branch-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.branch-address {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
}

.branch-hours {
    font-size: 0.95rem;
    color: var(--text-lighter);
    font-weight: 400;
}

/* Location Icon */
.location-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
}

.branch-card:hover .location-icon {
    opacity: 1;
    transform: scale(1);
}

/* Swiper Styles - FIXED */
.swiper {
    padding: 0 !important; /* Override default padding */
    touch-action: pan-y;
}

.swiper-slide {
    width: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
    min-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Pagination - Positioned better */
.swiper-pagination {
    bottom: 20px !important; /* Fixed position from bottom */
    text-align: center;
}

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-orange) !important;
    transform: scale(1.3);
}

/* Animations */
@keyframes glow {
    0% { text-shadow: 0 0 20px rgba(255,107,53,0.3); }
    100% { text-shadow: 0 0 30px rgba(255,107,53,0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.branch-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.branch-card:nth-child(2) { animation: float 6s ease-in-out infinite 1s; }
.branch-card:nth-child(3) { animation: float 6s ease-in-out infinite 2s; }

/* Responsive */
@media (max-width: 1200px) {
    .swiper-container {
        padding: 50px 15px;
    }
}

@media (max-width: 768px) {
    .work_h1 h1 {
        font-size: 2.2rem;
    }
    
    .swiper-container {
        padding: 40px 10px;
    }
    
    .branch-swiper {
        padding: 30px 0 50px 0;
    }
    
    .branch-card {
        height: 340px;
    }
}

@media (max-width: 480px) {
    .swiper-container {
        padding: 30px 5px;
    }
    
    .branch-card {
        height: 320px;
    }
}
