/* Featured Categories Section Styles */
.featured-categories {
    padding: 60px var(--spacing);
}

.category-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    justify-content: center;
    gap: var(--spacing);
}

.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
    width: 280px;
    height: 375px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18), 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.category-card .card-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    text-align: left !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card:hover .card-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    padding-bottom: 28px;
}

.category-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    letter-spacing: -0.2px;
    text-align: left;
    color: #fff;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-card .category-hint {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.category-pill .pill-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
}

.category-pill .pill-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .featured-categories {
        padding: 60px 15px;
        gap: 20px;
    }

    .category-cards-container {
        grid-template-columns: 1fr;
        justify-content: center;
        justify-items: center;
    }

    .category-card {
        width: 280px;
        height: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .featured-categories {
        padding: 50px 10px;
        gap: 16px;
    }

    .category-card {
        width: 250px;
        height: 300px;
    }

    .category-card h3 {
        font-size: 18px;
    }

    .category-card .card-content {
        padding: 16px 14px;
    }

    .category-card .cta-button {
        padding: 8px 20px;
        font-size: 14px;
    }
}