/* Custom Blog Builder by Sarkark CSS */
.srk-blog-grid {
    display: grid;
    box-sizing: border-box;
}

.srk-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.srk-thumbnail-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.srk-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.srk-post-card:hover .srk-thumbnail-wrapper img {
    transform: scale(1.05);
}

.srk-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.srk-post-title {
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.srk-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.srk-post-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.srk-post-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.srk-read-more-btn {
    display: inline-block;
    align-self: flex-start;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Blog List Layout */
.srk-blog-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.srk-list-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    overflow: hidden;
}

.srk-list-card.srk-img-left {
    flex-direction: row;
}

.srk-list-card.srk-img-right {
    flex-direction: row-reverse;
}

.srk-list-card .srk-thumbnail-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
}

.srk-list-card .srk-content-wrapper {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 767px) {
    .srk-list-card.srk-img-left,
    .srk-list-card.srk-img-right {
        flex-direction: column !important;
    }
    .srk-list-card .srk-thumbnail-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Pagination */
.srk-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.srk-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s;
}

.srk-pagination .page-numbers.current,
.srk-pagination .page-numbers:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Single Blog Widgets */
.srk-single-title {
    margin: 0 0 15px 0;
}

.srk-single-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.srk-single-image {
    width: 100%;
    margin-bottom: 25px;
}

.srk-single-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.srk-single-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 35px;
}

.srk-post-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 30px 0;
}

.srk-post-nav a {
    text-decoration: none;
    font-weight: 600;
}

.srk-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 25px 0;
}

.srk-author-avatar img {
    border-radius: 50%;
}
