.m-brand-row {
    display: flex;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 18px;
    gap: 18px; /* space between columns */
    flex-wrap: wrap; /* ensures responsiveness on smaller screens */
}

.m-brand-logo-price-links {
    flex: 0 0 200px; /* fixed width for logo/price column */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px; /* space between logo, price, and button */
}

.m-brand-logo {
    max-width: 100%;
    height: auto;
}

.m-brand-price,
.m-brand-link {
    text-align: center;
}

.m-brand-details {
    flex: 1; /* takes remaining space */
    display: flex;
    flex-direction: column;
    gap: 9px;
}


.m-brand-name {margin: 0px; font-size: 1.5em;}

.m-brand-description, .m-brand-why-we-like p, .m_brand_pros_cons p, .m_brand_pros_cons ul {
    font-size: 14px;
    line-height: 1.5em;
}

.m-brand-row p {
    margin: 0;
}

/* Collapse all text initially */
.m-brand-why-we-like > p,
.m_brand_pros_cons > .m-brand-pros,
.m_brand_pros_cons > .m-brand-cons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0;
}

/* Make headlines look clickable */
.m-brand-why-we-like h3, .m_brand_pros_cons h3 {
    cursor: pointer;
    user-select: none;
    position: relative;
    margin: 0px;
    font-size: 1em;
    font-family: inherit;
}

.m-brand-why-we-like h3 span, .m_brand_pros_cons h3 span {
    display: inline-block;
    transform: rotate(90deg) scaleY(2);
	    transform-origin: center center; /* sets origin to the center of the span */
}

/* On click, expand content using :focus-within hack */
.m-brand-why-we-like:focus-within > p,
.m-brand-why-we-like.expanded > p,
.m_brand_why_we_like.expanded > p,
.m_brand_pros_cons.expanded > .m-brand-pros,
.m_brand_pros_cons.expanded > .m-brand-cons {
    max-height: 2000px; /* enough to show full content */
    padding: 8px 0;
}

/* Optional: rotate arrow when expanded */
.m-brand-why-we-like.expanded h3 span,
.m_brand_pros_cons.expanded h3 span {
  transform: rotate(270deg) scaleY(2);
    transform-origin: center center;
    margin-left: 3px;

}


/* Optional: make columns stack on very small screens */
@media (max-width: 600px) {
    .m-brand-row {
        flex-direction: column;
        align-items: center;
    }

    .m-brand-logo-price-links {
        flex: none;
        width: 100%;
    }

    .m-brand-details {
        width: 100%;
    }
}
