/* =============================================
   SECTION HEADER (shared style)
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-accent);
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-dark);
}
.section-header p {
    color: #6B7280;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   CATEGORIES SECTION
   ============================================= */
.categories-section {
    padding: 80px 0;
    background: var(--color-light);
}

/* ── Grid ─────────────────────────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ── Card ─────────────────────────────────── */
.category-card {
    position: relative;
    height: 280px;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background: var(--color-dark);
}

.category-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.7;
}
.category-card:hover .category-bg {
    transform: scale(1.1);
    opacity: 0.5;
}

/* ── Overlay text ─────────────────────────── */
.category-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px;
    color: white;
}
.category-overlay h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 5px;
    border-left: 4px solid var(--color-accent);
    padding-left: 15px;
}
.category-overlay p {
    font-size: 0.9rem;
    color: #d1d5db;
    padding-left: 19px;
}

/* ── Arrow icon (appears on hover) ───────── */
.cat-link-icon {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition);
}
.category-card:hover .cat-link-icon {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
}