/* Section Heading Style */
.section-heading {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: "";
    width: 100px;
    height: 3px;
    background-color: #ff6347; /* Tomato color for underline */
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Anime Grid (Inline Cards Layout) */
.anime-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Space between cards */
}

/* Each card will take up 1/6th of the width */
.anime-card {
    position: relative;
    width: calc(16.66% - 20px); /* 6 cards per row */
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.anime-card:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Rank number on image with icon */
.rank-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-number i {
    font-size: 14px;
    margin-left: 5px;
}

/* Anime Image */
.anime-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Overlay for text info */
.anime-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: all 0.3s ease;
    visibility: hidden; /* Initially hidden */
    opacity: 0;
}

/* Show overlay when hovering over the card */
.anime-card:hover .anime-card-overlay {
    visibility: visible;
    opacity: 1;
}

/* Title Styling */
.anime-card-overlay h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Information Styling */
.anime-card-info p {
    margin: 5px 0;
    font-size: 14px;
}

.anime-card-info i {
    margin-right: 8px;
    color: #ff6347; /* Tomato color for icons */
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    background-color: #f4f4f4;
    border-radius: 5px;
    margin: 0 5px;
}

.pagination a:hover {
    background-color: #ff6347;
    color: white;
}

.pagination span {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .anime-card {
        width: calc(20% - 20px); /* 5 cards per row */
    }
}

@media (max-width: 768px) {
    .anime-card {
        width: calc(33.33% - 20px); /* 3 cards per row */
    }
}

@media (max-width: 480px) {
    .anime-card {
        width: 100%; /* 1 card per row */
    }
}
