.main-content {
    padding-top: 40px;
    padding-bottom: 60px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
    font-weight: 600;
}

.article-preview {
    background-color: #e3f2fd;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.article-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.article-body {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.article-body.has-image {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.article-image {
    flex: 0 0 200px;
    width: 200px;
}

.article-image img {
    height: 200px;
    width: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
}

.article-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-text p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
}

.btn-details {
    display: inline-block;
    background-color: #5bc0de;
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    align-self: flex-end;
    margin-top: auto;
}

.btn-details:hover {
    background-color: #31b0d5;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .article-preview {
        padding: 20px;
    }

    .article-title {
        font-size: 1.3rem;
    }

    .article-body.has-image {
        flex-direction: column;
        gap: 20px;
    }

    .article-image {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
    }

    .article-image img {
        width: 100%;
        max-height: 250px;
        object-fit: cover;
    }

    .article-text {
        min-width: 0;
        width: 100%;
    }

    .btn-details {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .article-preview {
        padding: 15px;
    }

    .article-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .btn-details {
        padding: 6px 14px;
        font-size: 0.9rem;
    }
}