/* 
 * Nuohous Kuusamo - Blog CSS additions
 * Lisää tämä main.css:n loppuun tai erilliseen tiedostoon
 */

/* Blog listing - excerpt teksti */
.blog-item .excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog post navigation - title style */
.tj-nav-post__title {
    margin-top: 8px;
}

.tj-nav-post__title a {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.tj-nav-post__title a:hover {
    color: var(--tj-primary-color);
}

/* Blog page header - make hero image directly discoverable for LCP */
.tj-page-header--image {
    background-image: none !important;
    position: relative;
    isolation: isolate;
}

.tj-page-header--image .tj-page-header-media {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    z-index: -2;
    pointer-events: none;
}

.tj-page-header--image .container {
    position: relative;
    z-index: 1;
}

/* Blog headings - harmonisempi mittakaava listaan ja artikkeliin */
.blog-style-2 .blog-content .title {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.tj-post-single-post .tj-post-title {
    font-size: 38px;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.blog-category-two .cate-text .title,
.blog-category-two .cate-text .text,
.sidebar-recent-post .post-header .title-link,
.tj-sidebar-widget-title {
    margin: 0;
}

.blog-category-two .cate-text .title,
.blog-category-two .cate-text .text {
    font-size: 1rem;
    line-height: 1.4;
}

.sidebar-recent-post .post-header .title-link {
    font-size: 1rem;
    line-height: 1.35;
}

.tj-sidebar-widget-title {
    display: block;
}

.tj-cta-section::before {
    background: rgba(0, 50, 20, 0.62);
}

.tj-cta-section .content,
.tj-cta-section p {
    color: #fff;
}

.tj-entry-content h2 {
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: 42px;
    margin-bottom: 16px;
}

.tj-entry-content h3 {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-top: 32px;
    margin-bottom: 12px;
}

.tj-post__navigation {
    gap: 18px;
}

.tj-nav__post {
    min-width: 0;
}

.tj-nav-post__nav a {
    font-size: 15px;
    line-height: 1.3;
    padding: 16px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}

.tj-nav__post.next .tj-nav-post__nav a {
    justify-content: flex-end;
}

/* Blog category icons */
.blog-category-two .category-item .cate-icons {
    width: 50px;
    height: 50px;
    background: var(--tj-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-style-2 .blog-content .title {
        font-size: 21px;
        line-height: 1.32;
    }

    .tj-post-single-post .tj-post-title {
        font-size: 29px;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .tj-entry-content h2 {
        font-size: 25px;
        line-height: 1.28;
        margin-top: 34px;
        margin-bottom: 14px;
    }

    .tj-entry-content h3 {
        font-size: 21px;
        line-height: 1.32;
        margin-top: 26px;
        margin-bottom: 10px;
    }

    .blog-category-two {
        flex-direction: column;
        gap: 15px;
    }
    
    .tj-post__navigation {
        gap: 10px;
        align-items: stretch;
    }

    .tj-nav__post {
        flex: 1 1 0;
    }

    .tj-nav-post__grid {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .tj-nav__post.next {
        text-align: right;
    }

    .tj-nav-post__nav a {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.25;
        gap: 8px;
    }

    .tj-nav__post.next .tj-nav-post__nav a {
        justify-content: space-between;
    }

    .tj-nav-post__nav a {
        font-size: 0;
    }

    .tj-post__navigation .tj-nav-post__nav a span {
        width: 42px;
        height: 42px;
        font-size: 20px;
        flex: 0 0 42px;
    }
}

@media (max-width: 480px) {
    .blog-style-2 .blog-content .title {
        font-size: 19px;
    }

    .tj-post-single-post .tj-post-title {
        font-size: 25px;
    }

    .tj-entry-content h2 {
        font-size: 22px;
    }

    .tj-entry-content h3 {
        font-size: 19px;
    }

    .tj-nav-post__nav a {
        padding: 10px 12px;
    }

    .tj-nav-post__grid {
        font-size: 30px;
    }

    .tj-post__navigation .tj-nav-post__nav a span {
        width: 38px;
        height: 38px;
        font-size: 18px;
        flex-basis: 38px;
    }
}
