:root {
    --primary: #3a86ff;
    --secondary: #8338ec;
    --dark: #212529;
    --light: #f8f9fa;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/** {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
/*}*/

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
    /*padding: 20px;*/
}

/*header {*/
/*    text-align: center;*/
/*    margin-bottom: 40px;*/
/*    padding: 20px 0;*/
/*}*/

h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.category-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.blog-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.read-more {
    display: inline-block;
    background: #2ea3f2;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
}

.author {
    display: flex;
    align-items: center;
}

.author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.date {
    display: flex;
    align-items: center;
}

.date i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
}