.articles {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;

    @media (min-width: 768px) {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    @media (max-width: 768px) {
        .col-6 {
            width: 50%;
        }

        .col-m-12 {
            width: 100%;

            .article {
                h6 {
                    font-size: 0.75rem;
                }

                a {
                    font-size: 0.6rem;
                }
            }

            font-size: 0.9rem;
        }

        h2 {
            padding-top: 0.3rem;
            padding-bottom: 0.3rem;
            transform: translateZ(0);
            position: relative;

            @media (min-width: 768px) {
                padding-top: 1rem;
                padding-bottom: 1rem;
            }
        }

        h4 {
            padding: 0px;
            margin: 0px;
            margin-top: 3px;
            margin-bottom: 3px;

            @media (min-width: 768px) {
                margin-top: 5px;
                margin-bottom: 10px;
            }
        }

        h6 {
            padding: 0px;
            margin: 0px;
            margin-top: 3px;
            margin-bottom: 3px;

            @media (min-width: 768px) {
                margin-top: 5px;
                margin-bottom: 10px;
            }
        }

        .read-more {

            &::after {
                content: "→";
                margin-left: 0.1rem;
                transition: margin-left 0.2s ease;
            }

            &:hover {
                &::after {
                    margin-left: 0.3rem;
                }

                opacity: 0.8;
            }
        }


    }



    .article {

        text-decoration: none;
        position: relative;
        color: var(--text-color) !important;


        .read-more {
            color: var(--link-text) !important;


            &::after {
                content: "→";
                margin-left: 0.1rem;
                transition: margin-left 0.2s ease;
            }

            &:hover {
                &::after {
                    margin-left: 0.3rem;
                }

                opacity: 0.8;
            }
        }

        transition: transform 0.3s ease;
        margin-bottom: 6px;
        width: 100%;

        @media (min-width: 768px) {
            margin-bottom: 20px;
        }

        &:hover {
            transform: translateY(-5px);
        }

        img {
            width: 100%;
            border-radius: 4px;
            object-fit: fill;
            height: 120px;
            transition: all 0.4s ease;

            @media (min-width: 768px) {
                height: 150px;
                border-radius: 6px;
            }

            &:hover {
                transform: scale(1.03);
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            }
        }
    }

    .featured {
        position: sticky;
        top: 40px;

        .read-more {
            color: var(--link-text) !important;

            &::after {
                content: "→";
                margin-left: 0.1rem;
                transition: margin-left 0.2s ease;
            }

            &:hover {
                &::after {
                    margin-left: 0.3rem;
                }

                opacity: 0.8;
            }
        }

        @media (min-width: 768px) {
            top: 80px;
        }

        img {
            width: 100%;
            border-radius: 4px;
            object-fit: fill;
            height: 250px;

            @media (min-width: 768px) {
                height: 250px;
                border-radius: 6px;
            }
        }
    }
}


.articles-list {
    padding: 2rem 0;

    .title {
        font-size: 2rem;
        color: #2c3e50;
        margin-bottom: 1.5rem;
        font-weight: 600;
        text-align: center;
    }

    .search {
        position: relative;
        max-width: 600px;
        margin: 0 auto 2rem;

        input {
            background: white;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 1rem;
            padding-left: 3rem;
            width: 100%;
            border: 1px solid #e0e0e0;
            font-size: 1rem;
            transition: all 0.3s ease;

            &:focus {
                outline: none;
                border-color: #4a90e2;
                box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
            }
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);


            svg {
                width: 20px;
                height: 20px;
            }
        }
    }

    .article-card {
        overflow: hidden;

        transition:
            transform 0.3s ease,
            box-shadow 0.3s ease;
    }

    .article-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .article-title {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        color: #2c3e50;
        line-height: 1.4;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}
