/* Container for the alphabet index */
#available_alphabets {
    position: sticky;
    top: 70px; /* Adjust based on navbar height */
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 20px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
    justify-content: center;
    gap: 10px;
}

/* Individual Alphabet links */
.alpha-link {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    background: #f8f9fa;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e9ecef;
}

.alpha-link:hover {
    background: #000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: #000;
}

/* Section Header (The letter) */
.alphabet-seperator {
    padding: 10px 0;
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.alphabet-seperator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

/* Main Cards Container */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Individual Brand Card wrapper */
.brand-item {
    background: white;
    border-radius: 20px;
    padding: 25px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f3f5;
    position: relative;
    z-index: 1;
}

.brand-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.brand-item:hover {
    transform: translateY(-10px);
    border-color: transparent;
}

.brand-item:hover::before {
    opacity: 1;
}

.brand-action-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Brand Image Area */
.brand-img {
    width: 110px;
    height: 110px;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.brand-item:hover .brand-img {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.brand-img img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brand-item:hover .brand-img img {
    transform: scale(1.15);
}

/* Brand Name Text */
.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
    text-align: center;
    margin: 0;
    transition: color 0.3s ease;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.brand-item:hover .brand-name {
    color: #000;
}

/* Avatar For Missing Logos */
.brand-img .split-name {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Different gradients for missing logos based on n-th child logic in JS or CSS */
.brand-item:nth-child(even) .brand-img .split-name {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}
.brand-item:nth-child(3n) .brand-img .split-name {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.brand-item:nth-child(4n) .brand-img .split-name {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}