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

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

    h2 {
        position: relative;
        padding-bottom: 1rem;
        font-weight: 600;
        color: #2c3e50;

        &::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 64px;
            height: 4px;
            border-radius: 2px;
            background: var(--primary-color);
        }
    }

    @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: 8px;
            object-fit: cover;
            height: 120px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transition: all 0.4s ease;

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

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

        h6 {
            transition: color 0.3s ease;
        }

        &:hover h6 {
            color: var(--primary-color);
        }

        &:hover img {
            transform: scale(1.04);
        }
    }

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

        .article {
            display: block;
            background: transparent;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: none;
            transition: transform 0.3s ease;

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

            .content {
                padding: 1.25rem 0;
            }
        }

        .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: 0px;
            object-fit: cover;
            height: 250px;

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


.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: #fff;
            border: 1px solid #ddd;
            border-radius: 34px;
            padding: 1rem 1.25rem 1rem 3rem;
            width: 100%;
            font-size: 1rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            transition: border-color 0.3s ease, box-shadow 0.3s ease;

            &::placeholder {
                color: #aaa;
            }

            &:focus {
                outline: none;
                border-color: var(--primary-color);
                box-shadow: 0 0 0 3px rgba(203, 163, 49, 0.25);
            }
        }

        .search-icon {
            position: absolute;
            left: 1.1rem;
            top: 50%;
            transform: translateY(-50%);
            transition: opacity 0.3s ease;

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

            path {
                stroke: #999;
                transition: stroke 0.3s ease;
            }
        }

        &:focus-within {
            .search-icon path {
                stroke: var(--primary-color);
            }
        }
    }

    .article-card {
        overflow: hidden;

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

    .article-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .article-title {
        display: block;
        padding: 0;
        font-size: 1.1rem;
        color: #fff;
        line-height: 1.35;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }

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

.more-articles {
    display: inline-block;
    padding: .9rem 2.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 34px;
    font-weight: bold;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;

    span {
        display: inline-block;
        margin-left: 6px;
        transition: transform 0.3s ease;
    }

    &:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 18px rgba(203, 163, 49, 0.4);

        span {
            transform: translateX(4px);
        }
    }
}
