
/* =========================================
   ECOMORBIXA SINGLE BLOG PAGE
========================================= */


:root {
    /* Ecomofolio Brand Blue */
    --eco-single-orange: #1B2CC1;

    /* Headings & Text */
    --eco-single-dark: #091540;

    /* Secondary Text */
    --eco-single-muted: #65708A;

    /* Borders */
    --eco-single-border: #E1E6F2;
}


.eco-single-section *,
.eco-single-section *::before,
.eco-single-section *::after {
    box-sizing: border-box;
}

.eco-single-section {
    padding: 30px 0 75px;
    background: #fff;
    color: var(--eco-single-dark);
}

.eco-single-section a {
    text-decoration: none;
}

.eco-single-container {
    width: min(calc(100% - 40px), 1240px);
    margin: 0 auto;
}

/* BREADCRUMBS */

.eco-single-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    font-size: 16px;
    color: #121314;
    font-weight:600
}

.eco-single-breadcrumb a {
    color: #121314;
}

.eco-single-breadcrumb a:hover {
    color: var(--eco-single-orange);
}

.eco-single-breadcrumb span[aria-current] {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* GRID */

.eco-single-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 55px;
}

.eco-single-sidebar,
.eco-single-article {
    min-width: 0;
}

/* SIDEBAR */

.eco-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.eco-single-widget {
    min-width: 0;
}

.eco-single-widget-title {
    margin: 0 0 19px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e7e8eb;
    color: #17191d;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

/* SEARCH */

.eco-single-search {
    display: flex;
    height: 43px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #f8f9fa;
}

.eco-single-search input {
    flex: 1;
    min-width: 0;
    padding: 0 13px;
    background: transparent;
    color: #17191d;
    border: 0;
    box-shadow: none;
    outline: none;
    font-size: 12px;
}

.eco-single-search button {
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--eco-single-orange);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* RECENT ITEMS */

.eco-single-recent-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eco-single-recent-item {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #ededf0;
}

.eco-single-recent-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    overflow: hidden;
    border-radius: 50%;
    background: #26282d;
    color: #fff;
}

.eco-single-recent-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eco-single-recent-item h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.eco-single-recent-item h4 a {
    color: #222428;
}

.eco-single-recent-item h4 a:hover {
    color: var(--eco-single-orange);
}

.eco-single-recent-item small {
    color: #8b9099;
    font-size: 14px;
}

/* CATEGORY LINKS */

.eco-single-categories {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.eco-single-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    background: #24262b;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 650;
    transition: background .25s ease;
}

.eco-single-categories a:hover {
    background: var(--eco-single-orange);
    color: #fff;
}

/* SIDEBAR TAGS */

.eco-single-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eco-single-sidebar-tags a {
    padding: 8px 10px;
    color: #595d65;
    background: #f7f8fa;
    border: 1px solid #e5e7ea;
    border-radius: 4px;
    font-size: 15px;
    font-weight:600
}

.eco-single-sidebar-tags a:hover {
    background: var(--eco-single-orange);
    border-color: var(--eco-single-orange);
    color: #fff;
}

/* ARTICLE HEADER */

.eco-single-article-header {
    margin-bottom: 23px;
}

.eco-single-badge {
    display: inline-flex;
    padding: 6px 9px;
    background: var(--eco-single-orange);
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.eco-single-badge:hover {
    color: #fff;
    background: #e74420;
}

.eco-single-title {
    margin: 14px 0 17px;
    color: #15171b;
    font-size: clamp(28px, 3vw, 39px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.8px;
}

.eco-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #80858d;
}

.eco-single-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    color: #454850;
}

.eco-single-meta img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.eco-single-meta-dot {
    color: var(--eco-single-orange);
}

/* FEATURED IMAGE */

.eco-single-featured-image {
    margin: 0 0 27px;
}

.eco-single-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    border-radius: 7px;
}

.eco-single-featured-image figcaption {
    margin-top: 10px;
    text-align: center;
    color: #8d929a;
    font-size: 12px;
}

/* WORDPRESS ARTICLE CONTENT */

.eco-single-entry-content {
    overflow-wrap: anywhere;
    color: #454950;
    font-size: 16px;
    line-height: 1.85;
}

.eco-single-entry-content p {
    margin: 0 0 22px;
}

.eco-single-entry-content h2 {
    margin: 38px 0 18px;
    color: #17191d;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 600;
}

.eco-single-entry-content h3 {
    margin: 30px 0 14px;
    color: #17191d;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 750;
}

.eco-single-entry-content h4 {
    margin: 24px 0 12px;
    color: #17191d;
    font-size: 19px;
    font-weight: 750;
}

.eco-single-entry-content a {
    color: var(--eco-single-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eco-single-entry-content a:hover {
    color: #d93d1a;
}

.eco-single-entry-content img {
    max-width: 100%;
    height: auto;
}

.eco-single-entry-content figure {
    max-width: 100%;
    margin: 25px 0;
}

.eco-single-entry-content figcaption {
    margin-top: 9px;
    font-size: 12px;
    text-align: center;
    color: #858a92;
}

.eco-single-entry-content ul,
.eco-single-entry-content ol {
    margin: 0 0 25px;
    padding-left: 27px;
}

.eco-single-entry-content li {
    margin-bottom: 9px;
}

.eco-single-entry-content li::marker {
    color: var(--eco-single-orange);
}

.eco-single-entry-content blockquote {
    margin: 30px 0;
    padding: 26px 30px;
    background: #f7f8fa;
    border-left: 4px solid var(--eco-single-orange);
    border-radius: 5px;
    color: #353941;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.75;
}

.eco-single-entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.eco-single-entry-content .wp-block-image img {
    border-radius: 7px;
}

.eco-single-entry-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
}

.eco-single-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
}

.eco-single-entry-content th,
.eco-single-entry-content td {
    padding: 13px 15px;
    text-align: left;
    border: 1px solid #e4e6ea;
}

.eco-single-entry-content th {
    color: #222428;
    background: #f4f5f7;
}

.eco-single-entry-content pre {
    overflow-x: auto;
    padding: 20px;
    border-radius: 6px;
    color: #f0f0f0;
    background: #1c1f23;
    font-size: 13px;
}

.eco-single-entry-content code {
    overflow-wrap: anywhere;
}

.eco-single-entry-content iframe {
    max-width: 100%;
}

/* ARTICLE TAGS AND SHARING */

.eco-single-article-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 35px 0;
    padding: 22px 0;
    border-top: 1px solid var(--eco-single-border);
    border-bottom: 1px solid var(--eco-single-border);
}

.eco-single-post-tags,
.eco-single-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.eco-single-post-tags strong,
.eco-single-share strong {
    color: #25272d;
    font-size: 13px;
}

.eco-single-post-tags a {
    padding: 7px 11px;
    background: #f4f5f7;
    border: 1px solid #e9eaed;
    border-radius: 4px;
    color: #61666e;
    font-size: 11px;
}

.eco-single-post-tags a:hover {
    background: var(--eco-single-orange);
    color: #fff;
    border-color: var(--eco-single-orange);
}

.eco-single-share a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 31px;
    height: 31px;
    background: #f2f3f5;
    color: #363a41;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
}

.eco-single-share a:hover {
    color: #fff;
    background: var(--eco-single-orange);
}

/* AUTHOR BOX */

.eco-single-author-box {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin: 28px 0;
    padding: 28px;
    background: #f7f8fa;
    border-radius: 8px;
}

.eco-single-author-avatar img {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.eco-single-author-info h3 {
    margin: 0 0 10px;
    color: #17191d;
    font-size: 20px;
    font-weight: 600;
}

.eco-single-author-info p {
    margin: 0 0 9px;
    color: #777c84;
    font-size: 13px;
    line-height: 1.8;
}

.eco-single-author-info a {
    color: var(--eco-single-orange);
    font-size: 12px;
    font-weight: 700;
}

/* PREVIOUS / NEXT */

.eco-single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid var(--eco-single-border);
}

.eco-single-post-navigation span {
    display: block;
    margin-bottom: 8px;
    color: #969ba3;
    font-size: 12px;
}

.eco-single-post-navigation a {
    color: #222428;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.5;
}

.eco-single-post-navigation a:hover {
    color: var(--eco-single-orange);
}

.eco-single-next {
    text-align: right;
}

/* COMMENTS */

.eco-single-comments {
    margin: 45px 0;
    padding: 30px;
    background: #f7f8fa;
    border-radius: 8px;
}

.eco-single-comments h2,
.eco-single-comments h3 {
    margin: 0 0 22px;
    color: #17191d;
    font-size: 22px;
    font-weight: 800;
}

.eco-single-comments .comment-list {
    list-style: none;
    padding: 0;
}

.eco-single-comments .comment-body {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e4e8;
}

.eco-single-comments label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 650;
}

.eco-single-comments input:not([type="checkbox"]),
.eco-single-comments textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e3e7;
    background: #fff;
    color: #222428;
    border-radius: 5px;
}

.eco-single-comments textarea {
    min-height: 150px;
}

.eco-single-comments input[type="submit"] {
    width: auto;
    padding: 12px 22px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: var(--eco-single-orange);
    cursor: pointer;
}

.eco-single-comments input[type="submit"]:hover {
    background: #e74420;
}

/* RELATED POSTS */

.eco-single-related {
    margin-top: 50px;
}

.eco-single-related > h2 {
    margin: 0 0 23px;
    color: #17191d;
    font-size: 24px;
    font-weight: 600;
}

.eco-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.eco-single-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eceef0;
    border-radius: 7px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
}

.eco-single-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,.07);
}

.eco-single-related-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #24262a, #623126);
    font-size: 13px;
    font-weight: 750;
}

.eco-single-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.eco-single-related-card:hover img {
    transform: scale(1.07);
}

.eco-single-related-body {
    padding: 13px;
}

.eco-single-related-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}

.eco-single-related-body h3 a {
    color: #222428;
}

.eco-single-related-body h3 a:hover {
    color: var(--eco-single-orange);
}

.eco-single-related-body small {
    color: #9297a0;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .eco-single-layout {
        grid-template-columns: 255px minmax(0, 1fr);
        gap: 35px;
    }
}

@media (max-width: 900px) {
    .eco-single-layout {
        grid-template-columns: 1fr;
    }

    .eco-single-sidebar {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        margin-top: 35px;
    }

    .eco-single-article {
        order: 1;
    }
}

@media (max-width: 600px) {
    .eco-single-container {
        width: calc(100% - 30px);
    }

    .eco-single-section {
        padding: 22px 0 50px;
    }

    .eco-single-breadcrumb {
        margin-bottom: 25px;
        font-size: 11px;
    }

    .eco-single-title {
        font-size: 28px;
    }

    .eco-single-entry-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .eco-single-entry-content h2 {
        font-size: 23px;
    }

    .eco-single-entry-content h3 {
        font-size: 20px;
    }

    .eco-single-sidebar {
        grid-template-columns: 1fr;
    }

    .eco-single-featured-image img {
        max-height: none;
    }

    .eco-single-author-box {
        grid-template-columns: 65px minmax(0, 1fr);
        gap: 13px;
        padding: 18px;
    }

    .eco-single-author-avatar img {
        width: 65px;
        height: 65px;
    }

    .eco-single-post-navigation {
        gap: 15px;
    }

    .eco-single-comments {
        padding: 19px;
    }

    .eco-single-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .eco-single-related-image {
        height: 115px;
    }
}

@media (max-width: 420px) {
    .eco-single-related-grid {
        grid-template-columns: 1fr;
    }

    .eco-single-related-image {
        height: 190px;
    }

    .eco-single-post-navigation {
        grid-template-columns: 1fr;
    }

    .eco-single-next {
        text-align: left;
    }
}
