/* Community Distributors Template Styles */

.community-distributors {
    background-color: var(--color-black);
    color: #ffffff;
    text-wrap: balance;

    & .page-title {
        text-transform: uppercase;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    & .section-subcontent {
        margin-bottom: var(--spacing-lg);
        p{text-align: center;}
    }
    
    /* Centered pink note above card grid */
    & .test-strips-note {
        color: var(--color-pink);
        text-align: center;
        font-weight: bold;
        margin: 0 0 var(--spacing-md);
    }
    
    & .distributors {
        display: flex;
        justify-content: center;
        flex-flow: row wrap;
        margin-top: 40px;
    }
    
    & .distributor {
        background: linear-gradient(to bottom, #000000 0%, #181818 100%);
        padding: calc(var(--spacing-md) + var(--spacing-xs));
        margin: 0 1rem 2rem;
        text-align: left;
        width: 100%;
        border-radius: var(--border-radius-secondary);
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        position: relative;
        
        &:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }
        
        & .name {
            color: var(--color-yellow);
            margin-bottom: var(--spacing-sm);
        }
        
        & .details {
            text-align: left;
        }
        
        & .address {
            line-height: 1.5;
            color: #ffffff;
        }
        
        & .phone {
            margin-top: var(--spacing-sm);
            margin-bottom: var(--spacing-sm);
            color: #ffffff;
        }
        
        & .website a,
        & .directions a {
            color: var(--color-yellow);
            text-decoration: none;
            display: inline-block;
            transition: all 0.2s ease;
            
            &:hover {
                text-decoration: underline;
            }
        }
        
        & .test-strips {
            margin-top: var(--spacing-sm);
            padding-top: var(--spacing-sm);
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            font-weight: bold;
            color: var(--color-pink);
            text-align: center;
            font-size: 1.2rem;
        }
    }
}

/* Responsive styles */
@media screen and (min-width: 576px) {
    .community-distributors {
        & .distributor {
            width: calc(50% - 2rem);
        }
    }
}

@media screen and (min-width: 768px) {
    .community-distributors {
        & .distributor {
            width: calc(33.33% - 2rem);
        }
    }
}

@media screen and (min-width: 992px) {
    .community-distributors {
        & .distributor {
            width: calc(25% - 2rem);
        }
    }
}
