/* ==========================================================
   HORIZON BEE AFRICA — NEWS CARDS OUTSIDE THE NEWS PAGES
   The same article cards as ForYOU NEWS (image, title,
   excerpt, date, like, comment, share, save), for pages that
   do not load blog.css, such as the home page.

   Copied from the card rules in blog.css and limited to the
   .home-blogs wrapper, so nothing else on the page changes.
   On phones the cards switch to the same compact list the
   News page uses. If you restyle the cards in blog.css,
   update this file the same way.
   ========================================================== */

.home-blogs .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.home-blogs .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 0;
    transition: 0.15s;
}
.home-blogs .blog-image {
    display: block;
    overflow: hidden;
}
.home-blogs .blog-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.25s;
}
.home-blogs .blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
}
.home-blogs .blog-card h2 {
    margin: 0 0 10px;
}
.home-blogs .blog-card h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.05em;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222222;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
}
.home-blogs .blog-card:hover h2 a {
    color: #302a18;
}
.home-blogs .blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
}
.home-blogs .blog-card-footer {
    margin-top: auto;
}
.home-blogs .blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eeeeee;
}
.home-blogs .blog-meta {
    display: flex;
    align-items: center;
    color: #777777;
    font-size: 0.78rem;
}
.home-blogs .blog-card-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
}
.home-blogs .blog-card-actions-left,
.home-blogs .blog-card-actions-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.home-blogs .article-action,
.home-blogs .save-article-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777777;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.home-blogs .article-action i,
.home-blogs .save-article-button i {
    font-size: 16px;
}
.home-blogs .article-action:hover,
.home-blogs .save-article-button:hover {
    color: #412e03;
    transform: translateY(-1px);
}
.home-blogs .save-article-button .save-article-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition:
    max-width 0.25s ease,
    opacity 0.2s ease;
}
.home-blogs .save-article-button:hover .save-article-label {
    max-width: 80px;
    opacity: 1;
}
.home-blogs .save-article-button.saved,
.home-blogs .save-article-button.saved i {
    color: #412e03;
}
.home-blogs .share-article-button {
    color: #777777;
}
.home-blogs .card-like-action {
    gap: 6px;
}
.home-blogs .like-count {
    color: #777777;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}
.home-blogs .card-like-action.is-active,
.home-blogs .card-like-action.is-active i,
.home-blogs .card-like-action.is-active .like-count {
    color: #d89b00;
}
.home-blogs .blog-share-options {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-height: 0;
    margin-top: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    max-height 0.25s ease,
    visibility 0.25s ease;
}
.home-blogs .blog-share-options.show {
    max-height: 50px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.home-blogs .blog-share-options a,
.home-blogs .blog-share-options button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #777777;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.home-blogs .blog-share-options a:hover,
.home-blogs .blog-share-options button:hover {
    color: #412e03;
    transform: translateY(-2px);
}
@media (max-width: 992px) {
    .home-blogs .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .home-blogs .blog-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    .home-blogs .blog-card {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 12px;
        width: 100%;
        min-width: 0;
        height: auto;
        margin: 0;
        padding: 14px 16px;
        overflow: visible;
        border: none;
        border-bottom: 1px solid #d0d0d0;
        border-radius: 0;
        box-shadow: none;
    }
    .home-blogs .blog-card:last-child {
        border-bottom: none;
    }
    .home-blogs .blog-image {
        display: block;
        align-self: start;
        width: 58px;
        height: 58px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 6px;
    }
    .home-blogs .blog-image img {
        display: block;
        width: 58px;
        height: 58px;
        object-fit: cover;
    }
    .home-blogs .blog-card-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }
    .home-blogs .blog-card .category {
        display: none;
    }
    .home-blogs .blog-card h2,
    .home-blogs .blog-card h3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        margin: 0 0 4px;
        overflow: hidden;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
    }
    .home-blogs .blog-card h2 a,
    .home-blogs .blog-card h3 a {
        min-height: 0;
        font-size: inherit;
        line-height: inherit;
    }
    .home-blogs .blog-card p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-height: calc(1.35em * 2);
        margin: 0 0 6px;
        overflow: hidden;
        color: #666666;
        font-size: 11.5px;
        line-height: 1.35;
    }
    .home-blogs .blog-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        width: 100%;
        margin: 2px 0 0;
        padding: 0;
        border: none;
    }
    .home-blogs .blog-meta {
        min-width: 0;
        margin: 0;
        padding: 0;
    }
    .home-blogs .blog-meta span {
        display: inline-block;
        padding: 3px 7px;
        background: #faf7eb;
        border-radius: 999px;
        color: #666666;
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .home-blogs .blog-card-actions {
        flex-wrap: nowrap;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(65, 46, 3, 0.35);
    }
    .home-blogs .blog-card-actions-left,
    .home-blogs .blog-card-actions-right {
        gap: 10px;
    }
    .home-blogs .card-like-action i,
    .home-blogs .save-article-button i,
    .home-blogs .share-article-button i {
        font-size: 14px;
    }
    .home-blogs .like-count {
        margin-left: 4px;
    }
}
.home-blogs .blog-card .blog-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    margin: 12px 0 0;
}
.home-blogs .blog-card .blog-card-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.home-blogs .blog-card .blog-card-actions-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.home-blogs .blog-card .card-comment-action {
    color: #777777;
    text-decoration: none;
}
.home-blogs .blog-card .card-comment-action:hover {
    color: var(--blog-brown, #412e03);
}
.home-blogs .blog-card .save-article-button {
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #777777;
    font-size: 14px;
    font-weight: 400;
}
.home-blogs .blog-card .save-article-button:hover {
    background: transparent;
    color: var(--blog-brown, #412e03);
}
.home-blogs .blog-card .save-article-button.saved,
.home-blogs .blog-card .save-article-button.saved:hover {
    background: transparent;
    border: 0;
    color: var(--blog-brown, #412e03);
}
.home-blogs .blog-card .blog-share-options {
    flex-basis: 100%;
}
@media (max-width: 768px) {
    .home-blogs .blog-card .blog-card-actions {
        flex-direction: row;
        align-items: center;
        margin-top: 8px;
    }
    .home-blogs .blog-card .blog-card-actions-left {
        gap: 14px;
    }
    .home-blogs .blog-card .save-article-button {
        width: auto;
    }
    .home-blogs .blog-card .save-article-button .save-article-label {
        display: none;
    }
}
.home-blogs .blog-card .blog-card-actions {
    position: relative;
}
.home-blogs .blog-card .blog-share-options,
.home-blogs .blog-card .blog-share-options.show {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 8px);
    top: auto;
    z-index: 30;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex-basis: auto;
    width: auto;
    max-width: calc(100vw - 40px);
    max-height: none;
    margin: 0;
    padding: 8px 10px;
    overflow: visible;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.home-blogs .blog-card .blog-share-options {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}
.home-blogs .blog-card .blog-share-options.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.home-blogs .blog-card .blog-share-options a,
.home-blogs .blog-card .blog-share-options button {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
.home-blogs .blog-card .blog-share-options a:hover,
.home-blogs .blog-card .blog-share-options button:hover {
    background: rgba(216, 155, 0, 0.10);
}
.home-blogs .blog-card .share-article-button {
    padding: 0;
    border: 0;
    background: transparent;
    outline: none;
}
.home-blogs .blog-card .share-article-button:focus-visible {
    outline: 2px solid #d89b00;
    outline-offset: 3px;
    border-radius: 4px;
}
.home-blogs .blog-card .share-article-button[aria-expanded="true"] {
    color: var(--blog-brown, #412e03);
}

