/* ==========================================
   BLOG LISTING & GENERAL STYLES
   ========================================== */

.blog-item-wrapper {
    margin-bottom: 20px;
}

/* Thumbnail images in the list */
.custom-blog-img {
    width: 100%;
    max-width: 496px;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.blog-item-content {
    padding: 0 5px;
}

.blog-entry-title {
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1.2;
}

.blog-entry-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a335d !important;
    font-size: 1.5rem;
    text-transform: none;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover effect with brand red color */
.blog-entry-title a:hover {
    color: #e31e24 !important;
}

/* Date/Category label above title */
.sub-title.small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

/* ==========================================
   SINGLE ARTICLE PAGE STYLES
   ========================================== */

/* Main image container for the article */
.item-cell .img {
    display: block;
    width: 100%;
    max-width: 590px;
    height: auto;
    overflow: hidden;
    margin: 0 auto 25px auto;
    border-radius: 15px;
    background-color: #f8f9fa;
}

.item-cell .img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.post-date-container {
    text-align: center;
    margin-bottom: 20px;
}

/* Internal article content images */
.content img {
    margin: 5px;
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE ADAPTATION)
   ========================================== */

@media (max-width: 600px) {
    .item-cell .img {
        height: auto;
        aspect-ratio: auto;
    }

    .blog-entry-title a {
        font-size: 1.2rem;
    }
}