.custom-breadcrumb {
    color: #666;
}
.custom-breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}
.custom-breadcrumb a:hover {
    color: #e74c3c;
}
.custom-breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}
.custom-breadcrumb .current {
    color: #e74c3c;
    font-weight: 500;
}
.blog-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 20px;
}
.blog-filter-bar .category-filter {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    max-width: 40%;
}

.results-count {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}
.category-filter select {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 200px;
}
.category-filter select:hover {
    border-color: #e74c3c;
}
.category-filter select:focus {
    outline: none;
    border-color: #e74c3c;
}
@media only screen and (max-width: 767px) {
    .blog-filter-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 0 20px;
    }
    .blog-filter-bar .filter-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    .category-filter {
        width: 100%;
    }
    .category-filter select {
        width: 100%;
    }
}
@media (min-width: 767px) {
   .qodef-layout--template .qodef-grid-inner{
        max-width: 1600px;
        padding-left: 40px;
        padding-right: 40px;
    } 
}
.qodef-layout--template .qodef-grid-inner{
    margin: auto;
    margin-top: 100px;
}
.qodef-blog-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    grid-auto-rows: 1fr;
    margin-left: auto;
    margin-right: auto;
}
.qodef-blog-grid-wrapper .qodef-blog-item {
    display: flex;
    height: 100%;
}
.qodef-blog-grid-wrapper .qodef-blog-item > article {
    height: 100%;
    width: 100%;
}
@media only screen and (max-width: 1024px) {
    .qodef-blog-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .blog-filter-bar .category-filter{
        max-width: 100%;
    }
}
@media only screen and (max-width: 767px) {
    .qodef-blog-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}
.qodef-blog-grid-wrapper .qodef-blog-item {
    margin-bottom: 0 !important;
}
.qodef-blog-grid-wrapper .qodef-blog-item article,
.qodef-blog-grid-wrapper article.qodef-blog-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}
.qodef-blog-grid-wrapper .qodef-e-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.qodef-blog-grid-wrapper .qodef-e-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.qodef-blog-grid-wrapper .qodef-e-inner:hover .qodef-e-media img {
    transform: scale(1.05);
}
.qodef-blog-grid-wrapper .qodef-e-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 10px 0 !important;
}
.qodef-blog-grid-wrapper .qodef-e-info {
    margin-bottom: 12px;
    color: #999;
}
.qodef-blog-grid-wrapper .qodef-info-separator,
.qodef-blog-grid-wrapper .qodef-info-separator-end {
    display: none;
}
.qodef-blog-grid-wrapper .qodef-e-info-category,
.qodef-blog-grid-wrapper .post-category {
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

.qodef-blog-grid-wrapper .qodef-e-info-category a,
.qodef-blog-grid-wrapper .post-category a {
    color: #174370;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: #f5f5f5; /* Light gray background */
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px 0;
}

.qodef-blog-grid-wrapper .qodef-e-info-category a:hover,
.qodef-blog-grid-wrapper .post-category a:hover {
    color: #2563a8;
    background-color: #e8e8e8; /* Slightly darker gray on hover */
}
.qodef-blog-grid-wrapper .category-separator {
    color: #999;
    margin: 0 2px;
}
.qodef-blog-grid-wrapper .qodef-e-text h2 {
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qodef-blog-grid-wrapper .qodef-e-text h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}
.qodef-blog-grid-wrapper .qodef-e-text h2 a:hover {
    color: #e74c3c;
}
.qodef-blog-grid-wrapper .qodef-e-text p,
.qodef-blog-grid-wrapper .qodef-e-text .qodef-e-excerpt,
.qodef-blog-grid-wrapper .qodef-e-excerpt,
.qodef-blog-grid-wrapper .post-excerpt {
    line-height: 1.6;
    color: #666;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qodef-blog-grid-wrapper .qodef-e-read-more,
.qodef-blog-grid-wrapper .read-more {
    margin-top: auto;
    padding-top: 10px;
    margin-bottom: 0 !important;
}
.qodef-blog-grid-wrapper .qodef-e-read-more a,
.qodef-blog-grid-wrapper .read-more a,
.qodef-blog-grid-wrapper .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.qodef-blog-grid-wrapper .qodef-e-read-more a:hover,
.qodef-blog-grid-wrapper .read-more a:hover,
.qodef-blog-grid-wrapper .read-more-btn:hover {
    color: #c0392b;
}
.qodef-blog-grid-wrapper .read-more svg {
    width: 18px;
    height: 14px;
    transition: transform 0.3s ease;
}
.qodef-blog-grid-wrapper .read-more a:hover svg {
    transform: translateX(5px);
}
.qodef-blog-grid-wrapper .post-meta {
    padding: 10px 0 0 0;
    border-top: 1px solid #eee;
    margin-top: auto;
}
.qodef-blog-grid-wrapper .post-meta .post-date,
.qodef-blog-grid-wrapper .post-meta .entry-date {
    color: #999;
    text-decoration: none;
}
.qodef-blog-grid-wrapper .post-title,
.qodef-blog-grid-wrapper .qodef-e-title {
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qodef-blog-grid-wrapper .post-title a,
.qodef-blog-grid-wrapper .qodef-e-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}
.qodef-blog-grid-wrapper .post-title a:hover,
.qodef-blog-grid-wrapper .qodef-e-title a:hover {
    color: #e74c3c;
}
