/* ===== CUSTOM BLOG/ARCHIVE LAYOUT ===== */

.blog .ct-container, .archive .ct-container {
    padding-top: 10px;
}

.blocksy-blog-subcategories-wrapper .ct-container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Sub-categories Menu */
.blocksy-blog-subcategories {
    margin-bottom: 0;
    padding-bottom: 0;
}

.blocksy-custom-blog-wrapper {
    width: 100%;    
}

.blocksy-subcategories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.blocksy-subcategory-item {
    margin: 0;
}

.blocksy-subcategory-item a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blocksy-subcategory-item a:hover {
    background-color: #fbb042;
    color: #fff;
}

.blocksy-subcategory-item.current a {
    background-color: #fbb042;
    color: #fff;
    font-weight: 600;
}

/* Section */
.blocksy-custom-blog-section {
    width: 100%;
}

/* Main Content */
.blocksy-blog-main-content {
    width: 100%;
}

/* Featured Posts - All in dark background */
.blocksy-featured-posts {
    margin-bottom: 20px;
    background: #414141;
    padding: 20px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 62% 36%;
    gap: 20px;
}

/* Part 1: 1 large + 2 small (70% width) */
.blocksy-featured-part-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blocksy-featured-part-1 .blocksy-featured-large {
    width: 100%;
}

.blocksy-featured-small-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Part 2: 1 large vertical + 4 small list (30% width) */
.blocksy-featured-part-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blocksy-featured-part-2 .blocksy-featured-large-vertical {
    width: 100%;
}

.blocksy-featured-list-group {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}

/* Featured Post Styles - Transparent background (parent has dark bg) */
.blocksy-featured-post {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.blocksy-featured-post:hover {
    transform: translateY(-3px);
}

.blocksy-featured-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Large Post (Part 1) - White text on dark background */
.blocksy-featured-large {
    background: transparent;
}

.blocksy-featured-large .blocksy-featured-post-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 6px;
}

.blocksy-featured-large .blocksy-featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blocksy-featured-large .blocksy-featured-post-content {
    padding: 10px 0 0 0;
}

.blocksy-featured-large .blocksy-featured-post-category {
    color: #fff;
}

.blocksy-featured-large .blocksy-featured-post-title {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 12px 0;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blocksy-featured-large .blocksy-featured-post-excerpt {
    font-size: 15px;
    color: #fff;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* Small Post (Part 1) - List format (image left, content right) - White text */
.blocksy-featured-small {
    background: transparent;
}

.blocksy-featured-small .blocksy-featured-post-link {
    gap: 15px;
}

.blocksy-featured-small .blocksy-featured-post-image {
    flex-shrink: 0;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
}

.blocksy-featured-small .blocksy-featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blocksy-featured-small .blocksy-featured-post-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blocksy-featured-small .blocksy-featured-post-category {
    color: #fff;
}

.blocksy-featured-small .blocksy-featured-post-title {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blocksy-featured-small .blocksy-featured-post-excerpt {
    font-size: 13px;
    color: #fff;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* Large Vertical Post (Part 2) - White text on dark background */
.blocksy-featured-large-vertical {
    background: transparent;
}

.blocksy-featured-large-vertical .blocksy-featured-post-image {
    width: 100%;
    height: 185px;
    overflow: hidden;
    border-radius: 6px;
}

.blocksy-featured-large-vertical .blocksy-featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blocksy-featured-large-vertical .blocksy-featured-post-content {
    padding: 20px 0 0 0;
}

.blocksy-featured-large-vertical .blocksy-featured-post-category {
    color: #fff;
}

.blocksy-featured-large-vertical .blocksy-featured-post-title {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 12px 0;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blocksy-featured-large-vertical .blocksy-featured-post-excerpt {
    font-size: 15px;
    color: #fff;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* List Item Post (Part 2) - White text on dark background */
.blocksy-featured-list-item {
    background: transparent;
}

.blocksy-featured-list-item .blocksy-featured-post-link {
    display: flex;
    gap: 15px;
    padding: 0;
}

.blocksy-featured-list-item .blocksy-featured-post-image {
    flex-shrink: 0;
    width: 120px;
    height: 75px;
    overflow: hidden;
    border-radius: 6px;
}

.blocksy-featured-list-item .blocksy-featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blocksy-featured-list-item .blocksy-featured-post-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.blocksy-featured-list-item .blocksy-featured-post-category {
    color: #fff;
}

.blocksy-featured-list-item .blocksy-featured-post-title {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
}

.blocksy-featured-list-item .blocksy-featured-post-excerpt {
    font-size: 13px;
    color: #fff;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* Hover effects */
.blocksy-featured-post:hover .blocksy-featured-post-image img {
    transform: scale(1.05);
}

/* Category Tag - Hidden */
.blocksy-featured-post-category {
    display: none;
}

/* Post Date - White for all featured posts */
.blocksy-featured-post-date {
    font-size: 13px;
    color: #fff;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .blocksy-featured-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blocksy-featured-posts {
        padding: 15px;
    }
    
    .blocksy-featured-small-group,
    .blocksy-featured-list-group {
        grid-template-columns: 1fr;
    }
    
    .blocksy-featured-small .blocksy-featured-post-link,
    .blocksy-featured-list-item .blocksy-featured-post-link {
        flex-direction: column;
    }
    
    .blocksy-featured-small .blocksy-featured-post-image,
    .blocksy-featured-list-item .blocksy-featured-post-image {
        width: 100%;
        height: 200px;
    }
    
    .blocksy-featured-large .blocksy-featured-post-image,
    .blocksy-featured-large-vertical .blocksy-featured-post-image {
        height: 250px;
    }
}

.blocksy-featured-post {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blocksy-featured-post:hover {
    transform: translateY(-5px);
}

.blocksy-featured-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blocksy-featured-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blocksy-featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blocksy-featured-post:hover .blocksy-featured-post-image img {
    transform: scale(1.05);
}

.blocksy-featured-post-content {
    padding: 15px;
}

.blocksy-featured-post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fbb042;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.blocksy-featured-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.blocksy-featured-post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* List Posts */
.blocksy-list-posts {
    margin-top: 40px;
    background: #F8F9FA;
    padding: 20px;
    border-radius: 10px;
}

.blocksy-list-post {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blocksy-list-post:hover {
    transform: translateY(-3px);
}

.blocksy-list-post-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 20px;
}

@media (max-width: 768px) {
    .blocksy-list-post-link {
        flex-direction: column;
        gap: 15px;
    }
}

.blocksy-list-post-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .blocksy-list-post-image {
        width: 100%;
        height: 200px;
    }
}

.blocksy-list-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blocksy-list-post:hover .blocksy-list-post-image img {
    transform: scale(1.05);
}

.blocksy-list-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blocksy-list-post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fbb042;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.blocksy-list-post-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blocksy-list-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blocksy-list-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.blocksy-post-date {
    display: flex;
    align-items: center;
}

/* Pagination */
.blocksy-blog-pagination {
    margin-top: 40px;
    text-align: right;
}

.blocksy-blog-pagination .page-numbers {
    gap: 10px;
    list-style: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blocksy-blog-pagination .page-numbers li {
    margin: 0;
}

.blocksy-blog-pagination .page-numbers a,
.blocksy-blog-pagination .page-numbers span {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.blocksy-blog-pagination .page-numbers a:hover,
.blocksy-blog-pagination .page-numbers .current {
    background-color: #fbb042;
    color: #fff;
}

span.page-numbers.current {
    background-color: #fbb042;
    border-color: #fbb042;
    color: #ffffff;
    font-weight: 600;
}

/* No Posts */
.blocksy-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.blocksy-no-posts p {
    font-size: 18px;
    margin: 0;
}

/* Hide default Blocksy archive output when custom layout is active */
/* Only apply to blog/archive pages, not WooCommerce pages */
body.blog .ct-container > section:not(.blocksy-custom-blog-section),
body.category:not(.woocommerce-archive) .ct-container > section:not(.blocksy-custom-blog-section),
body.tag:not(.woocommerce-archive) .ct-container > section:not(.blocksy-custom-blog-section),
body.archive:not(.woocommerce-archive):not(.post-type-archive-product) .ct-container > section:not(.blocksy-custom-blog-section) {
    display: none;
}

.distanse2 {
    width: 100%;
    height: 1px;
    background: #7F8183;
}
