/* IONTMAX BLOG – cisty cernobily styl, verze 1.1.0 */

body.im-blog-home,
body.im-blog-home * {
    box-sizing: border-box;
}

body.im-blog-home #content-wrapper {
    max-width: 1320px;
    padding-left: 20px;
    padding-right: 20px;
}

body.im-blog-home #content,
body.im-blog-home #content .content-inner {
    width: 100%;
    max-width: none;
}

body.im-blog-home .sectionDescription {
    margin: 8px 0 34px;
    padding: 28px 30px 30px;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    background: #ffffff;
}

body.im-blog-home .sectionDescription h1 {
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #111111;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

body.im-blog-home .im-blog-intro {
    max-width: 760px;
    margin: 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

body.im-blog-home .im-blog-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

body.im-blog-home .im-blog-sidebar {
    position: sticky;
    top: 24px;
}

body.im-blog-home .im-blog-sidebar-inner {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.im-blog-home .im-blog-sidebar-title {
    margin: 0 0 6px;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.im-blog-home .im-blog-sidebar-description {
    margin: 0 0 14px;
    color: #777777;
    font-size: 13px;
    line-height: 1.45;
}

body.im-blog-home .im-blog-all-link,
body.im-blog-home ul.subcategories.with-image > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #dedede;
    border-radius: 9px;
    background: #ffffff;
    color: #111111 !important;
    text-decoration: none !important;
    box-shadow: none;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

body.im-blog-home .im-blog-all-link:hover,
body.im-blog-home ul.subcategories.with-image > li > a:hover {
    border-color: #111111;
}

body.im-blog-home .im-blog-all-link.is-active,
body.im-blog-home ul.subcategories.with-image > li > a.is-active {
    border-color: #111111;
    background: #111111;
    color: #ffffff !important;
}

body.im-blog-home .im-blog-all-link-icon,
body.im-blog-home ul.subcategories.with-image .image {
    display: flex !important;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f1f1;
}

body.im-blog-home .im-blog-all-link.is-active .im-blog-all-link-icon,
body.im-blog-home ul.subcategories.with-image > li > a.is-active .image {
    background: rgba(255, 255, 255, 0.16);
}

body.im-blog-home .im-blog-all-link-icon {
    font-size: 13px;
    line-height: 1;
}

body.im-blog-home ul.subcategories.with-image .image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

body.im-blog-home .im-blog-all-link-text,
body.im-blog-home ul.subcategories.with-image .text {
    min-width: 0;
    color: inherit !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

body.im-blog-home .im-blog-all-link-arrow,
body.im-blog-home ul.subcategories.with-image > li > a::after {
    display: none !important;
}

body.im-blog-home ul.subcategories.with-image {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body.im-blog-home ul.subcategories.with-image > li {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.im-blog-home .im-blog-all-link {
    margin-bottom: 8px;
}

body.im-blog-home .im-blog-content {
    min-width: 0;
}

body.im-blog-home .im-blog-content-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dcdcdc;
}

body.im-blog-home .im-blog-content-heading {
    margin: 0 !important;
    color: #111111;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

body.im-blog-home .im-blog-content-count {
    color: #777777;
    font-size: 13px;
}

body.im-blog-home #newsWrapper.news-wrapper {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    margin: 0 !important;
}

body.im-blog-home #newsWrapper .news-item {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0;
    min-height: 150px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    transition:
        border-color 0.18s ease,
        transform 0.18s ease;
}

body.im-blog-home #newsWrapper .news-item:hover {
    transform: translateY(-2px);
    border-color: #111111;
}

body.im-blog-home #newsWrapper .news-item > .image {
    width: 150px !important;
    height: 150px !important;
    margin: 0 !important;
    overflow: hidden;
    background: #f3f3f3;
}

body.im-blog-home #newsWrapper .news-item > .image a {
    display: block;
    width: 100%;
    height: 100%;
}

body.im-blog-home #newsWrapper .news-item > .image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transition: transform 0.25s ease;
}

body.im-blog-home #newsWrapper .news-item:hover > .image img {
    transform: scale(1.025);
}

body.im-blog-home #newsWrapper .news-item > .text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px 20px;
}

body.im-blog-home .im-blog-article-category {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 8px;
    padding: 0;
    background: transparent;
    color: #666666;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.im-blog-home #newsWrapper .news-item .title {
    display: block;
    margin: 0 0 9px;
    color: #111111;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-decoration: none;
}

body.im-blog-home #newsWrapper .news-item .title:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.im-blog-home #newsWrapper .news-item time {
    display: none !important;
}

body.im-blog-home #newsWrapper .news-item .description {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.55;
}

body.im-blog-home #newsWrapper .news-item .description p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.im-blog-home .im-blog-read-more {
    display: inline-flex;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 12px;
    color: #111111 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

body.im-blog-home .im-blog-read-more::after {
    display: none !important;
}

body.im-blog-home .listingControls {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
}

body.im-blog-home .listingControls .itemsTotal {
    color: #777777;
    font-size: 13px;
}

@media (max-width: 900px) {
    body.im-blog-home .im-blog-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 24px;
    }

    body.im-blog-home #newsWrapper .news-item {
        grid-template-columns: 120px minmax(0, 1fr);
        min-height: 120px;
    }

    body.im-blog-home #newsWrapper .news-item > .image {
        width: 120px !important;
        height: 120px !important;
    }

    body.im-blog-home #newsWrapper .news-item > .text {
        padding: 14px 16px;
    }

    body.im-blog-home #newsWrapper .news-item .title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    body.im-blog-home #content-wrapper {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.im-blog-home .sectionDescription {
        margin-bottom: 24px;
        padding: 22px 20px 24px;
        border-radius: 12px;
    }

    body.im-blog-home .sectionDescription h1 {
        font-size: 34px;
    }

    body.im-blog-home .im-blog-intro {
        font-size: 15px;
    }

    body.im-blog-home .im-blog-layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    body.im-blog-home .im-blog-sidebar {
        position: static;
        width: 100%;
    }

    body.im-blog-home ul.subcategories.with-image {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.im-blog-home .im-blog-all-link,
    body.im-blog-home ul.subcategories.with-image > li > a {
        min-height: 40px;
        padding: 7px 9px;
    }

    body.im-blog-home #newsWrapper .news-item {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 96px;
        border-radius: 10px;
    }

    body.im-blog-home #newsWrapper .news-item > .image {
        width: 96px !important;
        height: 96px !important;
    }

    body.im-blog-home #newsWrapper .news-item > .text {
        padding: 12px 13px;
    }

    body.im-blog-home #newsWrapper .news-item .title {
        margin-bottom: 0;
        font-size: 16px;
        line-height: 1.25;
    }

    body.im-blog-home #newsWrapper .news-item .description,
    body.im-blog-home .im-blog-read-more {
        display: none;
    }

    body.im-blog-home .im-blog-article-category {
        margin-bottom: 6px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    body.im-blog-home ul.subcategories.with-image {
        grid-template-columns: 1fr;
    }
}

body.im-blog-home a:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}
