﻿section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.border-style {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    margin-bottom: 2rem;
}

    .border-style:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 50px;
        height: 3px;
        background: #870000;
        border-radius: 2px;
    }


#blog-container > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

    #blog-container > div > a {
        padding: 1rem;
        transition: all 0.3s ease;
        border-radius: 6px;
        border: 1px solid #0000001c;
    }

        #blog-container > div > a:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
        }

        #blog-container > div > a > img {
            width: 100%;
            height: 250px;
            object-fit: contain;
            border-radius: 5px;
        }


        #blog-container > div > a > h5 {
            font-size: 1rem;
            font-weight: 600;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            width: 100%;
            color: black;
        }

        #blog-container > div > a > p {
            color: black;
            font-size: 13px;
        }

        #blog-container > div > a > span {
            color: black;
            font-size: 13px;
            font-weight: 500;
            color: #870000;
            margin-bottom: 0.5rem;
            margin-top: 0.5rem;
        }

@media (max-width: 600px) {
    #blog-container > div {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
