/* blog.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.blog-header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    animation: fadeInDown 1s ease forwards;
}

.blog-header .logo {
    width: 200px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: bounce 2s infinite;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 1.2rem;
}

/* BLOG GRID */
.blog-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease forwards;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.blog-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.blog-card h3 {
    font-size: 1.3rem;
    padding: 15px 20px 5px;
    color: #2575fc;
}

.blog-card .date {
    font-size: 0.85rem;
    color: #888;
    padding: 0 20px 10px;
}

.blog-card .excerpt {
    font-size: 0.95rem;
    padding: 0 20px 15px;
    color: #555;
}

.blog-card .read-more {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background: #ff5f6d;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card .read-more:hover {
    background: #ffc371;
    color: #333;
    transform: translateY(-3px);
}

/* CTA TO DASHBOARD */
.blog-cta {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    animation: fadeIn 1.5s ease forwards;
}

.blog-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.blog-cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.join-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    color: #fff;
    background-color: #ff5f6d;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.join-btn:hover {
    background-color: #ffc371;
    color: #333;
    transform: translateY(-5px);
}

/* FOOTER */
.blog-footer {
    text-align: center;
    padding: 40px 20px;
    background: #2575fc;
    color: #fff;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .blog-grid {
        flex-direction: column;
        align-items: center;
    }
}