.mid-area-brand{
  max-height: 70vh;
  width: 100%;
  background-color:;
  overflow-y: scroll;
  scrollbar-width: none;

}

.company-brands{
    background-color:;
    width:100%;
    max-height:70vh;
    height:auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap:3%;
    overflow-y: scroll;
    scrollbar-width: none;
    padding:0 2rem;
    padding-top:2rem;
    padding-bottom: 2rem;
    filter:drop-shadow(2px 1px 3px rgb(53, 52, 52));
  }
 
.brand-card {
  position: relative;
  width:auto;
  height: 35vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background-color: #050505;
  
}

/* 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;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left:0.7rem;
  padding: 0 0.8rem ;
  opacity: 1;
  transition:  opacity 0.3s ease;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  margin-left:0.7rem;
  margin-top:0.5rem;
  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 {
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1;
  color: rgba(255, 255, 255, 1);
  margin: 0.2rem;
  padding: 0.4rem;
}

.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;
}