﻿/* Blog Styles */

.blog-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.blog-header {
    margin-bottom: 3rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.blog-intro {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Input */
.blog-search {
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .search-input:focus {
        border-color: #007bff;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    }

/* Articles Grid */
.blog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-top: 2rem;
}

/* Card Styles */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

.card__media {
    display: block;
    overflow: hidden;
}

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card__image {
    transform: scale(1.05);
}

.card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.card__dot {
    color: #ccc;
}

.card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

    .card__title a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .card__title a:hover {
            color: #007bff;
        }

.card__excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.card__link {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

    .card__link:hover {
        color: #0056b3;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-input {
        padding: 10px 14px 10px 42px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 2rem 0;
    }

    .blog-header {
        margin-bottom: 2rem;
    }

    .card__body {
        padding: 1.2rem;
    }

    .card__title {
        font-size: 1.1rem;
    }
}
