/* ===== HERO ===== */
.hero {
    height: 260px;
    background: url('images/hero.jpg') center/cover no-repeat;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.hero p {
    font-size: 15px;
    opacity: .9;
}

/* ===== FILTERS ===== */
.filters {
    max-width: 1400px;
    margin: 50px auto 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 15px;
}

.filters button {
    padding: 8px 18px;
    border: 1.8px solid #0d6efd;
    background: #fff;
    color: #0d6efd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: .3s;
}

.filters button.active,
.filters button:hover {
    background: #0d6efd;
    color: #fff;
}

/* ===== GRID ===== */
.grid {
    max-width: 1400px;
    margin: 30px auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

/* ===== CARD ===== */
.card {
    border: 5px solid #3b43a7;
    cursor: pointer;
    transition: .4s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

/* ===== RESPONSIVE ===== */
@media(max-width:600px) {
    .hero h1 {
        font-size: 30px
    }
}