/* Branch Cards - Florya Theme Consistent Styling */

/* Title Section Styling */
.team-list .title-wrap p {
    margin-top: 1.38889vw;
    font-size: 1.25vw;
    color: #373f4d;
    opacity: 0.7;
}

@media screen and (max-width: 960px) {
    .team-list .title-wrap p {
        margin-top: 4vw;
        font-size: 4vw;
    }
}

/* Grid Layout Override for Branch Cards */
.team-list .team-list-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.38889vw;
    margin: 0;
}

@media screen and (max-width: 1200px) {
    .team-list .team-list-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 960px) {
    .team-list .team-list-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vw;
    }
}

@media screen and (max-width: 600px) {
    .team-list .team-list-wrap {
        grid-template-columns: 1fr;
        gap: 5.33333vw;
    }
}

/* Branch Card Container */
.team-list .team-list-wrap .team-item.branch-card {
    width: 100%;
    padding: 0;
    margin-bottom: 0;
}

.branch-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    border-radius: 1.38889vw;
    overflow: hidden;
    box-shadow: 0 0.27778vw 1.11111vw rgba(55, 63, 77, 0.08);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(247, 69, 171, 0.1);
    position: relative;
}

@media screen and (max-width: 960px) {
    .branch-card {
        border-radius: 5.33333vw;
    }
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.27778vw;
    background: linear-gradient(90deg, #f745ab 0%, #ff7ac6 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.branch-card:hover {
    transform: translateY(-0.55556vw);
    box-shadow: 0 1.11111vw 2.22222vw rgba(247, 69, 171, 0.15);
    border-color: rgba(247, 69, 171, 0.25);
}

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

/* Inner Content */
.branch-card .team-item-inner {
    padding: 1.66667vw 1.52778vw 1.94444vw;
    display: flex;
    flex-direction: column;
    min-height: 18.05556vw;
}

@media screen and (max-width: 960px) {
    .branch-card .team-item-inner {
        padding: 6.4vw 5.33333vw 7.46667vw;
        min-height: auto;
    }
}

/* Branch Name */
.branch-name {
    font-family: Inter;
    font-size: 1.18056vw;
    font-weight: 700;
    color: #2c3547;
    margin-bottom: 0.41667vw;
    line-height: 1.3;
    transition: color 0.2s ease-in-out;
}

@media screen and (max-width: 960px) {
    .branch-name {
        font-size: 4.53333vw;
        margin-bottom: 1.6vw;
    }
}

.branch-card:hover .branch-name {
    color: #f745ab;
}

/* Branch Location */
.branch-location {
    font-family: HWCigarsTrial;
    font-size: 1.52778vw;
    font-weight: normal;
    color: #f745ab;
    margin-bottom: 1.11111vw;
    display: flex;
    align-items: center;
    gap: 0.41667vw;
}

@media screen and (max-width: 960px) {
    .branch-location {
        font-size: 5.86667vw;
        margin-bottom: 4.26667vw;
        gap: 1.6vw;
    }
}

.branch-location::before {
    content: '';
    display: inline-block;
    width: 0.55556vw;
    height: 0.55556vw;
    background: #f745ab;
    border-radius: 50%;
    flex-shrink: 0;
}

@media screen and (max-width: 960px) {
    .branch-location::before {
        width: 2.13333vw;
        height: 2.13333vw;
    }
}

/* Doctor List Section */
.doctor-list {
    margin-bottom: 1.11111vw;
    font-size: 0.97222vw;
    line-height: 1.6;
    color: #373f4d;
    background: linear-gradient(135deg, #faf8f5 0%, #f8f3ee 100%);
    padding: 1.04167vw 1.11111vw;
    border-radius: 0.69444vw;
    border-left: 0.20833vw solid #f745ab;
    flex-grow: 1;
}

@media screen and (max-width: 960px) {
    .doctor-list {
        margin-bottom: 4.26667vw;
        font-size: 3.73333vw;
        padding: 4vw 4.26667vw;
        border-radius: 2.66667vw;
        border-left-width: 0.8vw;
    }
}

.doctor-list strong {
    color: #f745ab;
    font-weight: 600;
    font-size: 0.83333vw;
    text-transform: uppercase;
    letter-spacing: 0.06944vw;
    display: block;
    margin-bottom: 0.41667vw;
}

@media screen and (max-width: 960px) {
    .doctor-list strong {
        font-size: 3.2vw;
        letter-spacing: 0.26667vw;
        margin-bottom: 1.6vw;
    }
}

/* Branch Address */
.branch-address {
    font-size: 0.90278vw;
    color: #6b7280;
    margin-bottom: 1.25vw;
    line-height: 1.5;
    min-height: 2.77778vw;
    display: flex;
    align-items: flex-start;
    gap: 0.41667vw;
}

@media screen and (max-width: 960px) {
    .branch-address {
        font-size: 3.46667vw;
        margin-bottom: 4.8vw;
        min-height: auto;
        gap: 1.6vw;
    }
}

.branch-address::before {
    content: '';
    display: inline-block;
    width: 0.97222vw;
    height: 0.97222vw;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f745ab' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 0.13889vw;
    opacity: 0.6;
}

@media screen and (max-width: 960px) {
    .branch-address::before {
        width: 3.73333vw;
        height: 3.73333vw;
        margin-top: 0.53333vw;
    }
}

/* Branch Actions */
.branch-actions {
    text-align: center;
    margin-top: auto;
}

/* Button Styling - Outline Style */
.button.small.outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55556vw;
    background: transparent;
    border: 0.13889vw solid #f745ab;
    color: #f745ab;
    padding: 0.69444vw 1.38889vw;
    font-size: 0.90278vw;
    font-weight: 600;
    border-radius: 2.77778vw;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    min-width: 8.33333vw;
}

@media screen and (max-width: 960px) {
    .button.small.outline {
        gap: 2.13333vw;
        border-width: 0.53333vw;
        padding: 2.66667vw 5.33333vw;
        font-size: 3.46667vw;
        border-radius: 10.66667vw;
        min-width: auto;
        width: 100%;
    }
}

.button.small.outline::before {
    content: '';
    display: inline-block;
    width: 0.97222vw;
    height: 0.97222vw;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f745ab' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.2s ease-in-out;
}

@media screen and (max-width: 960px) {
    .button.small.outline::before {
        width: 3.73333vw;
        height: 3.73333vw;
    }
}

.button.small.outline:hover {
    background: linear-gradient(135deg, #f745ab 0%, #ff7ac6 100%);
    color: #fff;
    border-color: #f745ab;
    transform: scale(1.02);
    box-shadow: 0 0.27778vw 0.83333vw rgba(247, 69, 171, 0.3);
}

.button.small.outline:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Disabled Button State */
.button.small.outline.disabled,
.button.disabled {
    opacity: 0.4;
    pointer-events: none;
    border-color: #9ca3af;
    color: #9ca3af;
    cursor: not-allowed;
}

.button.small.outline.disabled::before,
.button.disabled::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Staggered Animation for Cards */
.branch-card[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(1.38889vw);
}

.branch-card[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Different delays for staggered effect */
.team-list-wrap .branch-card:nth-child(4n+1) { transition-delay: 0s; }
.team-list-wrap .branch-card:nth-child(4n+2) { transition-delay: 0.05s; }
.team-list-wrap .branch-card:nth-child(4n+3) { transition-delay: 0.1s; }
.team-list-wrap .branch-card:nth-child(4n+4) { transition-delay: 0.15s; }

/* Focus States for Accessibility */
.button.small.outline:focus {
    outline: none;
    box-shadow: 0 0 0 0.20833vw rgba(247, 69, 171, 0.4);
}

/* Mobile specific adjustments */
@media screen and (max-width: 600px) {
    .branch-card .team-item-inner {
        padding: 5.33333vw 4.8vw 6.4vw;
    }

    .branch-name {
        font-size: 5.06667vw;
    }

    .branch-location {
        font-size: 6.4vw;
    }

    .doctor-list {
        font-size: 4vw;
    }

    .branch-address {
        font-size: 3.73333vw;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .doctor-list {
    border-left: none;
    border-right: 0.20833vw solid #f745ab;
}

@media screen and (max-width: 960px) {
    [dir="rtl"] .doctor-list {
        border-right-width: 0.8vw;
    }
}

[dir="rtl"] .branch-location {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .branch-address {
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
}

[dir="rtl"] .button.small.outline {
    flex-direction: row-reverse;
}
