body.brand-page {
    background-color: #f8fafc;
}

.brand-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 4rem 0;
}

.brand-hero-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.brand-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.brand-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.brand-hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.brand-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-weight: 600;
}

.brand-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.brand-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.brand-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.brand-button.primary {
    background: #ffffff;
    color: #312e81;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.brand-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.18);
}

.brand-button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.brand-button.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.brand-button.tertiary {
    background: #2563eb;
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
}

.brand-button.link {
    background: transparent;
    color: #2563eb;
    border-radius: 0;
    padding: 0;
}

.brand-hero-media {
    display: flex;
    justify-content: center;
}

.brand-logo-wrapper {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.brand-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo-placeholder {
    font-size: 4rem;
    font-weight: 700;
}

.brand-meta {
    margin-top: -80px;
    padding-bottom: 3rem;
}

.brand-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.brand-meta-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.brand-meta-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.brand-meta-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.brand-meta-card p,
.brand-meta-card a {
    color: #475569;
    font-weight: 500;
    word-break: break-word;
}

.brand-meta-card a {
    color: #2563eb;
    text-decoration: none;
}

.brand-overview {
    padding: 3rem 0;
}

.brand-overview .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.brand-overview-content h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: #1f2937;
}

.brand-overview-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
}

.brand-insights h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.brand-insights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.brand-insights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #475569;
}

.brand-insights li i {
    color: #22c55e;
}

.brand-related {
    padding: 3rem 0;
    background: #f1f5f9;
}

.brand-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-related-header h2 {
    font-size: 1.75rem;
    color: #1f2937;
}

.brand-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.brand-directory-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.1);
}

.brand-directory-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.brand-directory-card-header img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-directory-initial {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.brand-directory-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.brand-directory-card p {
    color: #64748b;
}

.brand-directory-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.brand-directory-card.is-hidden {
    display: none;
}

.brand-directory-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.brand-directory-search {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.brand-directory-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
}

.brand-directory-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.brand-directory-filter select {
    border: none;
    outline: none;
    font-weight: 600;
    background: transparent;
    color: #1f2937;
}

.brand-directory-empty {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5f5;
    color: #475569;
    margin-top: 1.5rem;
}

.brand-directory-empty i {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 0.75rem;
}

.brand-contact {
    padding: 3rem 0 4rem;
}

.brand-contact-card {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 25px 45px rgba(30, 64, 175, 0.2);
}

.brand-contact-card p {
    font-size: 1.05rem;
    margin: 1rem 0 2rem;
    opacity: 0.95;
}

.brand-directory-hero {
    padding-bottom: 3rem;
}

.brand-directory-hero .brand-hero-container {
    grid-template-columns: 1fr;
}

.brand-directory-hero .brand-hero-description {
    max-width: 720px;
}

@media (max-width: 768px) {
    .brand-hero h1 {
        font-size: 2.2rem;
    }

    .brand-hero-meta {
        gap: 0.75rem;
    }

    .brand-hero-meta span {
        width: 100%;
        justify-content: center;
    }

    .brand-hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .brand-meta {
        margin-top: -40px;
    }

    .brand-directory-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-directory-filter,
    .brand-directory-search {
        width: 100%;
    }

    .brand-directory-filter {
        justify-content: space-between;
    }
}
