* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f4f7fb;
    color: #1f2933;
}

/* HEADER */
.header {
    background: #0f172a;
    color: #fff;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.logo span {
    color: #22c55e;
}

.header nav a {
    color: #cbd5e1;
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
}

.header nav a:hover {
    color: #22c55e;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1e3a8a, #312e81, #065f46);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.hero p {
    max-width: 600px;
    margin: auto;
    font-size: 16px;
    opacity: 0.9;
}

.search-box {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.search-box input {
    width: 320px;
    padding: 12px;
    border: none;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.search-box button {
    padding: 12px 20px;
    border: none;
    background: #22c55e;
    color: #0f172a;
    font-weight: bold;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

/* CATEGORIES */
.categories {
    margin: 40px auto;
    text-align: center;
}

.categories button {
    margin: 6px;
    padding: 10px 18px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
    font-size: 13px;
}

.categories .active {
    background: #22c55e;
    color: #0f172a;
    border: none;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 40px 60px;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.card p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1e40af;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* FOOTER */
.footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 16px;
    font-size: 12px;
}
