.brands-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.brand-category {
    margin-bottom: 3rem;
}

.brand-category h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #003366;
}

.brand-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.brand-section {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
    scroll-margin-top: 2rem;
}

.brand-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.brand-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
    height: 20rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
}

.brand-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #003366;
}

.brand-card p {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
    font-size: 1rem;
}

.brand-card::-webkit-scrollbar {
    width: 0.25rem;
}

.brand-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.125rem;
}

.brand-card::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 0.125rem;
}

.btn-brand {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #003366;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn-brand:hover {
    background: #004080;
    color: white;
}

.brands-intro {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1400px) {
    .brands-grid {
        padding: 2rem 1rem;
    }
}

@media (max-width: 1200px) {
    .brand-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .brand-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .brand-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .brand-row {
        grid-template-columns: repeat(1, 1fr);
    }
}

.brands-nav {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.letter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #003366;
}

.letter-btn:hover {
    background: #003366;
    color: white;
    border-color: #003366;
    text-decoration: none;
}

.letter-btn.active {
    background: #003366;
    color: white;
    border-color: #003366;
}

.section-title {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #003366;
}

.brands-accordion {
    margin-bottom: 2rem;
}

.accordion-button {
    background: #f8f9fa;
    color: #003366;
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: #003366;
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.brand-list-alpha {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.brand-list-alpha li a {
    display: block;
    padding: 0.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.brand-list-alpha li a:hover {
    background: #f8f9fa;
    color: #003366;
}

@media (max-width: 768px) {
    .alphabet-nav {
        gap: 0.25rem;
    }
    
    .letter-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .brand-list-alpha {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@keyframes highlight {
    0% {
        background-color: rgba(0, 51, 102, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

.brand-section.highlight {
    animation: highlight 2s ease-out;
} 