/* PAGE */

.articles-page {
    background-color: #FFF;
    padding: 50px 20px 80px 20px;
    width: calc(100% - 24px);
    margin-inline: auto;
}

.feed {
    max-width: 720px;
    margin: 0 auto;
}


/* POST */

.post {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0;
    padding: 30px 0;
    border-bottom: 1px solid rgba(45, 136, 220, 0.4);

    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .post {
        gap: 32px;
        max-width: 100%;
    }
}

.post:last-child {
    border-bottom: none;
}

/* HEADER */

.post-header {
    margin: 16px 0;
}

.post-title {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D88DC;
    font-family: var(--font-lato);
}

.post-meta {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    gap: 10px;

    font-family: var(--font-lato);
}

.post-date::after {
    content: "•";
    margin-left: 10px;
    color: #FFB3BA;
}


/* IMAGE */

.post-image {
    flex-shrink: 0;
    height: 400px;
    width: 100%;
}

@media (min-width: 768px) {
    .post-image {
        width: 320px;
    }
}

.post-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


/* CONTENT */

.post-content {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.post-text {
    font-family: var(--font-lato);
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}


/* ACTIONS */

.post-actions {
    margin-top: 18px;
}

.external-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #2D88DC;
    color: #fff;
    transition: background-color 0.1s ease;
}

.external-link:hover {
    background-color: var(--background-pink);
    color: #fff !important;
}

@media (min-width: 768px) {
    .post {
        flex-direction: row;
    }

    .articles-page {
        width: 100%;
    }
}
