/*
Theme Name: dht
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ===== Custom Blog Posts 50/50 Layout (Flat Design) ===== */

.custom-blog-posts-50-50-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.blog-post-50-50-item {
    flex: 0 0 calc(50% - 2rem);
    max-width: calc(50% - 2rem);
    padding: 1rem;
    margin-bottom: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background-color: #ffffff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
}

.blog-post-50-50-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.blog-post-50-50-item .post-image-col {
    flex: 0 0 50%;
    max-width: 50%;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
}
.blog-post-50-50-item .post-image-col img.post-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-post-50-50-item .post-content-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0 5px 5px 0;
}

.blog-post-50-50-item .post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.blog-post-50-50-item .post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-post-50-50-item .post-title a:hover {
    color: #0073aa;
}

.blog-post-50-50-item .post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.75rem;
}
.blog-post-50-50-item .post-meta .meta-sep {
    margin: 0 0.5rem;
}

.blog-post-50-50-item .post-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-post-50-50-item .read-more-link {
    margin-top: auto;
}
.blog-post-50-50-item .read-more-btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid #0073aa;
    background-color: #0073aa;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.blog-post-50-50-item .read-more-btn:hover {
    background-color: #005f8a;
    border-color: #005f8a;
    color: #fff;
}
@media only screen and (max-width: 48em) {

/*************** ADD MOBILE ONLY CSS HERE  ***************/

/* ===== Custom Blog Posts 50/50 Layout (Flat Design) ===== */

 .custom-blog-posts-50-50-wrapper {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        gap: 1.5rem;
        flex-direction: column;
    }

    .blog-post-50-50-item {
        flex-direction: column;
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 8px;
    }

    .blog-post-50-50-item .post-image-col,
    .blog-post-50-50-item .post-content-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .blog-post-50-50-item .post-image-col {
        margin-bottom: 1rem;
        border-radius: 8px 8px 0 0;
    }
    .blog-post-50-50-item .post-content-col {
        padding: 1.2rem;
        border-radius: 0 0 8px 8px;
    }

    @media (max-width: 480px) {
        .blog-post-50-50-item .post-content-col {
            padding: 1rem;
        }
        .blog-post-50-50-item .post-title {
            font-size: 1.1rem;
        }
        .blog-post-50-50-item .post-meta,
        .blog-post-50-50-item .post-excerpt {
            font-size: 0.8rem;
        }
         .blog-post-50-50-item .read-more-link a {
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
        }
    }
}

.no-posts-msg {
    text-align: center;
    color: #999;
    font-size: 1.1em;
    padding: 2rem 0;
    width: 100%;
}