/* Blog Posts Widget */
.eba-blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.eba-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eba-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.eba-post-thumbnail {
    display: block;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.eba-post-thumbnail img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.eba-post:hover .eba-post-thumbnail img {
    transform: scale(1.03);
}


.eba-post-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Meta container with flex properties */
.eba-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Ensure meta items are centered when alignment is center */
.eba-post-meta > * {
    display: flex;
    align-items: center;
}

.eba-post-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    line-height: 1.4;
}

.eba-post-title a {
    color: #333;
    text-decoration: none;
}

.eba-post-title a:hover {
    color: #0073aa;
}

.eba-post-category {
    margin-bottom: 10px;
}

.eba-post-category a {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eba-post-category a:hover {
    background: #e0e0e0;
    color: #000;
}

/* Excerpt styles */
.eba-post-excerpt {
    margin-top: 10px;
    color: #555;
    line-height: 1.6;
}


/* Responsive adjustments */
@media (max-width: 767px) {
    .eba-blog-posts {
        grid-template-columns: 1fr;
    }
}


/* Kuldeep Side News Widget */
.kuldeep-side-news {
    display: flex;
    flex-direction: column;
}

.kdn-news-item {
    margin-bottom: 20px;
}

.kdn-container {
    display: flex;
    width: 100%;
    align-items: flex-start; /* Align items to the top */
}

.kdn-container.left {
    flex-direction: row; /* Image on left, content on right */
}

.kdn-container.right {
    flex-direction: row-reverse; /* Image on right, content on left */
}

.kdn-thumbnail {
    flex-shrink: 0; /* Prevent image from shrinking */
    width: 40%; /* Default width, will be overridden by control */
}

.kdn-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.kdn-content {
    flex-grow: 1; /* Take remaining space */
    padding: 0 0 0 20px; /* Default left padding */
}


/* When image is on the right, adjust padding */
.kdn-container.right .kdn-content {
    padding: 0 20px 0 0;
}

.kdn-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.kdn-title a {
    color: #333;
    text-decoration: none;
}

.kdn-title a:hover {
    color: #0073aa;
}

.kdn-excerpt {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.kdn-date {
    color: #888;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .kdn-container {
        flex-direction: column !important;
    }
    
    .kdn-thumbnail {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    .kdn-content {
        padding: 0 !important;
    }
}
/* Kuldeep Category Widget */
.kuldeep-category {
    margin-bottom: 10px;
}

.kdc-container {
    display: flex;
    align-items: center;
}

.kdc-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
}

.kdc-hr {
    flex-grow: 1;
    margin: 0 15px;
    background-color: #ddd;
}

.kdc-icon-link {
    display: inline-block;
    color: #333;
    transition: color 0.3s ease;
}

.kdc-icon-link:hover {
    color: #0073aa;
}

.kdc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.kdc-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kdc-icon svg {
    transition: all 0.3s ease;
}

.kdc-icon-link {
    display: inline-flex;
    align-items: center;
}
/* Responsive */
@media (max-width: 767px) {
    .eba-blog-posts {
        grid-template-columns: 1fr;
    }
    
    .kdn-container {
        flex-direction: column !important;
    }
    
    .kdn-thumbnail {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    .kdc-container {
        flex-wrap: wrap;
    }
    
    .kdc-hr {
        width: 100%;
       /* order: 3;*/
        margin-top: 10px;
        margin-bottom: 10px;
    }
}