* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Gabarito", sans-serif;
    background: #f5f5f5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.logo {
    color: #973DE2;
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 8px 15px;
    width: 45%;
    background: #fafafa;
}

.search input {
    border: none;
    width: 100%;
    background: transparent;
    font-size: 16px;
}

.search input:focus {
    outline: none;
}

.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
}

.categories p {
    background: #A335F0;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
}

.hero img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.section {
    background: #fff;
    width: 90%;
    margin: 20px auto;
    padding: 25px;
    border-radius: 10px;
}

.sub {
    color: gray;
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: .2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card h3 {
    font-size: 16px;
    padding: 10px;
}

.card p {
    padding: 0 10px 10px;
    font-size: 14px;
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topics p {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fafafa;
}

.footer {
    background: #111;
    color: #fff;
    padding: 30px;
    margin-top: 40px;
}

.foot-links {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.foot-links p {
    padding: 6px 0;
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 15px;
}
