:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --light: #ecf0f1;
    --dark: #1a252f;
    --accent: #3498db;
}


.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1543727039-9a0270d1b4c3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin: 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 0.5rem;
    font-weight: 500;
}

select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.case-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, height 0.8s;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);

}

.case-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}



.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.case-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.difficulty {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.difficulty.easy {
    background-color: #2ecc71;
    color: white;
}

.difficulty.medium {
    background-color: #f39c12;
    color: white;
}

.difficulty.hard {
    background-color: #e74c3c;
    color: white;
}

.duration {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.case-content p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: left;
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.players {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination a {
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary);
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}


@media (max-width: 768px) {

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    select {
        width: 100%;
    }
}