.categories {
    width: 90%;
    margin: 2rem auto;
}

.explore-heading {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-left: 4px solid orangered;
    padding-left: 1rem;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    background: transparent;
    padding: 0;
    height: auto;
}

.float-container {
    border-radius: 12px;
    overflow: hidden;
    background: #2c2c2c;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.float-container:hover {
    transform: translateY(-5px);
    border: 2px solid orangered;
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}

.float-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.no-img {
    width: 100%;
    height: 180px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #444;
}

.float-text {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: #2c2c2c;
    margin: 0;
}

a:has(.float-container) {
    text-decoration: none;
}

.error {
    color: #fff;
    background-color: #c0392b;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    grid-column: 1 / -1;
}