/* ==============================
   GLOBAL STYLES
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f5f5f5;
}

/* ==============================
   HERO SECTION
============================== */
.blog-hero {
    position: relative;
    height: 60vh;
    background: url('./soft.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    top: 0;
    left: 0;
}

.blog-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
}

.blog-text h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==============================
   BLOG CARDS
============================== */
.blog-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 50px 70px;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

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

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-info {
    padding: 20px;
}

.blog-info h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.blog-info p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 20px;
}

.read-btn {
    background: #ff9800;
    padding: 10px 20px;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.read-btn:hover {
    background: #e08500;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */

/* Tablet */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px;
    }

    .blog-text h1 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .blog-hero {
        height: 50vh;
    }

    .blog-text h1 {
        font-size: 1.7rem;
    }

    .blog-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .blog-card img {
        height: 180px;
    }
}
