/* Custom CSS */
/* Add any custom styles here */

/* Smart phone layout: Image Top, Text Bottom */
@media (max-width: 767px) {
    .list__item {
        display: block;
        /* Stack elements vertically */
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    .list__thumbnail {
        width: 100%;
        max-width: 100% !important;
        float: none !important;
        margin: 0 0 15px 0 !important;
        /* Space below image */
    }

    .list__thumbnail img {
        width: 100%;
        max-width: 100% !important;
        height: auto;
        border-radius: 8px;
        /* Slightly larger radius for big images */
        object-fit: cover;
        aspect-ratio: 16 / 9;
    }

    .list__header {
        margin-bottom: 10px;
    }

    .list__title {
        font-size: 1.2rem;
        /* Slightly larger is okay for full width */
        margin: 0;
        line-height: 1.4;
        font-weight: bold;
    }

    .list__content {
        margin: 0;
    }

    .list__excerpt {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .list__footer {
        display: none;
        /* Hide Read More button on mobile */
    }

    .list__meta {
        display: none;
        /* Optional: Hide date/author to save space */
    }

    /* Reduce single post title size on mobile to prevent it from being too huge */
    h1.post__title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
}

/* Fix bold text rendering */
strong,
b {
    font-weight: 700 !important;
}

/* PC Layout: Horizontal (Image Left, Text Right) */
@media screen and (min-width: 768px) {
    .list__item {
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .list__thumbnail {
        width: 300px;
        flex-shrink: 0;
        margin: 0 !important;
    }

    .list__body {
        flex-grow: 1;
    }

    .list__header {
        margin-top: 0;
    }
}
