/* ============================================================
   A-LIST SECTION (Top 5 Showcase)
   ============================================================ */

.a-list-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Page background color */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    text-align: center;
    margin-bottom: 40px;
}
.section-title .highlight {
    color: #222; /* Title highlight color */
}

/* 5-Column Grid */
.a-list-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Card Design (FIXED HEIGHT) */
.a-list-card {
    position: relative;
    height: 380px; /* HEIGHT CHOTI KAR DI GAYI HAI */
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.a-list-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Background Image */
.card-background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.a-list-card:hover .card-background-image {
    transform: scale(1.1);
}

/* Gradient Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    z-index: 1;
}

/* Card Content (FIXED POSITIONING) */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    color: #ffffff;
}

/* Rank Badge (PROFESSIONAL LOOK) */
.a-list-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    z-index: 3;
}
.a-list-badge .rank-badge-star {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.a-list-badge .rank-badge-number {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Badge Colors (STAR SVG FILL COLORS) */
.rank-1 .rank-badge-star { fill: #FFD700; } /* Gold */
.rank-2 .rank-badge-star { fill: #C0C0C0; } /* Silver */
.rank-3 .rank-badge-star { fill: #CD7F32; } /* Bronze */
.rank-n .rank-badge-star { fill: #6c757d; } /* Grey */

/* Text inside Card (FIXED) */
.celebrity-name {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.celebrity-profession {
    font-size: 12px;
    text-transform: uppercase;
    color: #f0f0f0;
    letter-spacing: 0.5px;
}

/* Hover Button (STYLE ADDED BACK) */
.hover-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #ff3d6d; /* Example pink color */
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    white-space: nowrap;
}
.a-list-card:hover .hover-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.a-list-card:hover .card-content {
    opacity: 0; /* Optional: hide name on hover to show button clearly */
}


/* Responsive (Mobile Fix) */
@media (max-width: 1200px) {
    .a-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .a-list-card:nth-child(4), .a-list-card:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .a-list-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .a-list-card {
        height: 280px;
    }
    .a-list-card:nth-child(3), .a-list-card:nth-child(4) {
        display: block;
    }
    .a-list-card:nth-child(5) {
        display: none;
    }
    .celebrity-name { font-size: 18px; }
}