.brand-card {
    display: flex;
    align-items: center;
    align-self: stretch;
    border-radius: 6px;
    border: 1px solid #C9C9C9;
    background: #FFF;
    width: 1216px;
    max-width: 100%;
    min-height: 180px;
    padding: 0;

    .brand-logo-wrapper {
        display: flex;
        width: 300px;
        height: 100%;
        padding: 28px 40px;
        justify-content: center;
        align-items: flex-start;
        background: #F8F8F8;
        border-radius: 6px;
    }

    .brandImage {
        width: 207.439px;
        height: 122px;
        aspect-ratio: 207.44/70.00;
        object-fit: contain;
    }

    .brand-details-wrapper {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 40px 40px 24px 40px;
        width: calc(100% - 300px);
        align-items: flex-start;
        gap: 24px;
        flex: 1 0 0;
        position: relative;
    }

    .arrow-link {
        position: absolute;
        right: 25.436px;
        top: 55.958px;
        padding: 15px;
        display: none;
    }

    .arrow-link:before {
        content: '';
        height: 36px;
        width: 14.4px;
        display: inline-block;
        background-position: center;
        background-image: url("../icons/CaretDownHover.svg");
        pointer-events: none;
    }

    .brand-subtitle {
        display: flex;
        height: 62px;
        width: 714px;
        max-width: 100%;
        flex-direction: column;
        justify-content: center;
        flex-shrink: 0;
    }

    .brand-subtitle p {
        color: #002B46;
        font-family: Inter;
        font-size: 22px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .more-info-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-details-text {
        all: unset;
        cursor: pointer;
        color: #002B46;
        font-family: Inter;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 19px;
        display: flex;
        align-items: center;
        column-gap: 4px;
    }

    .brand-details-text:after {
        content: '';
        width: 24px;
        height: 24px;
        display: inline-block;
        background-image: url("../icons/CaretDownOpen.svg");
        transition-duration: 0.2s;
        transform: rotate(180deg);
        background-size: contain;
    }

    .brand-details-text[aria-expanded="true"]:after {
        transform: rotate(0deg);
        transition-duration: 0.2s;
    }

    .more-info-brand-container.collapse {
        transition: min-height 0.35s ease;
    }

    .more-info-content {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        margin-top: 20px;
        margin-bottom: 16px;
    }

    .description-block {
        color: #002B46;
        font-family: Inter;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 1.56;
        margin: 0;
    }

    .more-info-brand-link {
        color: #002B46;
        font-family: Inter;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%; /* 21.6px */
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: none;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
        margin: 0;
    }

    .brand-categories-wrapper {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        align-self: stretch;
    }

    .brand-categories-title {
        color: #002B46;
        font-family: Inter;
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
        line-height: 19px;
        margin: 0;
    }

    .brand-category-wrapper {
        display: flex;
        column-gap: 8px;
    }

    .brand-category-link {
        color: #002B46;
        font-family: Inter;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%; /* 21.6px */
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: none;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
    }

    .brand-category-wrapper i {
        content: '';
        display: inline-block;
        background-image: url("../icons/category-icon.svg");
        width: 17.818px;
        min-width: 17.818px;
        height: 20px;
    }

    @media (max-width: 768px) {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
        min-height: 264px;

        .brand-logo-wrapper {
            width: 100%;
            height: 116px;
            align-items: center;
            border-radius: 6px 6px 0 0;
        }

        .brandImage {
            width: 177.805px;
            height: 60px;
            aspect-ratio: 177.80/60.00;
        }

        .brand-details-wrapper {
            padding: 24px 20px;
            width: 100%;
        }

        .brand-subtitle {
            height: 57px;
            width: 100%;
        }

        .brand-subtitle p {
            font-size: 16px;
            line-height: 120%;
            -webkit-line-clamp: 3;
        }

        .brand-details-text {
            font-size: 14px;
        }

        .brand-details-text:after {
            width: 18px;
            height: 18px;
            background-position: center;
        }

        .more-info-content {
            row-gap: 16px;
            margin-top: 12px;
            margin-bottom: 8px;
        }

        .description-block {
            font-size: 14px;
        }

        .more-info-brand-link {
            font-size: 16px;
        }

        .brand-categories-wrapper {
            margin-top: 16px;
            gap: 12px;
        }

        .brand-categories-title {
            font-size: 14px;
        }

        .brand-category-link {
            font-size: 16px;
            line-height: 140%;
        }

    }
}

@media (min-width: 768px) {
    .brand-card:hover .arrow-link{
        display: block;
        transition-duration: 0.2s;
    }
}
.brand-card.hidden {
    display: none;
}

@media (max-width: 768px) {
    .brand-card:not(:has(.brand-logo-wrapper)) {
        min-height: unset;
    }
}
