.brand-card-flex {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}
.brand-items-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.brand-items-container a {
    border: none;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    z-index: 1;
    /* Gradient border using background and pseudo-element technique */
    background: linear-gradient(#f8f9fa, #f8f9fa) padding-box,
    linear-gradient(170deg, #6CEEB0 8.64%, #1EE3F2 93.84%) border-box;
    border: 2px solid transparent;
}

.icon-hover {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.icon-hover .normal-icon,
.icon-hover .hover-icon {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-hover .normal-icon {
    position: relative;
    z-index: 2;
}

.icon-hover .hover-icon {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100px);
    z-index: 1;
}

/* Hover Effects */
.brand-item:hover .normal-icon {
    transform: translateY(-100px);
}

.brand-item:hover .hover-icon {
    opacity: 1;
    transform: translateY(0);
}


.brand-title {
    display: none;
    opacity: 0;
    margin: 0;
}

.heading-section img{
    width: 142px;
    height: 56px;
}

.heading-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-card-footer {
    text-align: center;
    border-top: 1px solid #36CEEB;
    padding-top: 20px;
    width: 95%;
}




/* ===== TOOLTIP STYLES ===== */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
	min-width: 200px;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Tooltip arrow */
.tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

/* Top tooltip */
.tooltip.top {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
}

.tooltip.top.show {
    transform: translateX(-50%) translateY(0);
}

.tooltip.top::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: rgba(0, 0, 0, 0.9);
}

.icon-hover.desktop-icon {
    display: block;
    visibility: visible;
    opacity: 1;
}

.icon-hover.mobile-icon {
    display: none;
    visibility: hidden;
    opacity: 0;
}

@media screen and (max-width: 450px) {
	

    .brand-item{

        gap: 8px;
    }
    .brand-title {
        display: inline-block;
        opacity: 1;
    }

    .icon-hover.desktop-icon {
        display: none;
        visibility: hidden;
        opacity: 0;
    }

    .icon-hover.mobile-icon {
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .brand-items-container a {
        width: 100%;
    }

    .brand-card-footer {
        overflow: hidden;
		width: 100%;
    }
	
}