.mid-area-brand {
    max-height: auto;
    width: 100%;
    background-color: ;
    overflow-y: ;
    scrollbar-width: none;
}

.company-brands {
    background-color: ;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
}

.brand-card {
    position: relative;
    width: auto;
    height: 35vh;
    border-radius: 1rem;
    background-color: #000000;
    overflow: hidden;
    filter: dop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    cursor: pointer;
}


/* Image scaling effect */

.brand-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-card:hover .brand-image {
    transform: scale(1.08);
}


/* Gradient overlay to make text readable */

.brand-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: ;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: #ffffff;
}


/* Brand Meta Info */

.brand-badge {
    align-self: flex-start;
    width: auto;
    backdrop-filter: blur(4px);
    font-size: clamp(0.4rem, 0.6rem, 0.8rem);
    font-weight: 600;
    overflow-wrap: break-word;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 0.7rem;
    padding: 0.3rem 0.8rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.brand-title {
    font-size: clamp(1rem, 1.3rem, 1.6rem);
    font-weight: 700;
    margin-bottom: 4px;
    margin-left: 0.7rem;
    margin-top: 0.5rem;
    padding: 0 0.8rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}


/* Dynamic expandable area */

.brand-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
}

.brand-description {
    background-color: ;
    overflow: hidden;
    font-size: 0.7rem;
    line-height: 1.1;
    text-align: justify;
    color: white;
    margin: 0.6rem 0;
    padding: 0.5rem;
    letter-spacing: 0.1;
}

.brand-btn {
    display: inline-block;
    text-align: center;
    background-color: #ffffff;
    color: #000000;
    padding: 0.5rem 0.5rem;
    margin: 0 0.5rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.brand-btn:hover {
    background-color: #e2e2e2;
}


/* Hover States to trigger dynamic expansion */

.brand-card:hover .brand-details {
    grid-template-rows: 1fr;
    opacity: 1;
}

.brand-card:hover .brand-title {
    opacity: 0;
}

.brand-card:hover .brand-badge {
    opacity: 0;
}

@media (max-width: 768px) {
    .brand-description {
        font-size: 0.75rem;
        line-height: 1.2;
        margin: 0.6rem 0;
        padding: 0.8rem;
        letter-spacing: 0.1;
    }
}