@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

header {
    background: #333;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 3rem;
    animation: fadeInDown 1s ease-in-out;
}

header p {
    font-size: 1.2rem;
    animation: fadeInUp 1s ease-in-out;
}

main {
    width: 80%;
    margin: 0 auto;
    padding-bottom: 2rem;
}

#posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleIn 0.5s ease-in-out forwards;
    opacity: 0;
    transform: scale(0.95);
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card h2 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    font-size: 1.5rem;
}

.post-card p {
    font-size: 1rem;
    color: #666;
}

.post-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}