
/* ==========================================
   DIGIHAUZAR SINGLE ARTICLE PAGE
   Orange / Black / White
========================================== */

:root {
    --eco-single-orange: #ff5b0a;
    --eco-single-hover: #e84d00;
    --eco-single-dark: #15171c;
    --eco-single-text: #383d46;
    --eco-single-muted: #69717d;
    --eco-single-border: #e7e9ed;
    --eco-single-soft: #f7f8fa;
    --eco-single-width: 1280px;
}

.eco-single-section,
.eco-single-section * {
    box-sizing: border-box;
}

.eco-single-section {
    padding: 38px 0 85px;
    background: #fff;
    color: var(--eco-single-text);
    font-family: "Outfit", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.eco-single-section a {
    text-decoration: none;
    transition: color .25s ease, background .25s ease;
}

.eco-single-container {
    width: min(
        calc(100% - 56px),
        var(--eco-single-width)
    );
    margin: 0 auto;
}

/* ==========================================
   BREADCRUMBS
========================================== */

.eco-single-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    color: var(--eco-single-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.eco-single-breadcrumb a {
    color: #525966;
}

.eco-single-breadcrumb a:hover {
    color: var(--eco-single-orange);
}

.eco-single-breadcrumb span[aria-current] {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   MAIN LAYOUT
========================================== */

.eco-single-layout {
    display: grid;
    grid-template-columns: 295px 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: 32px;
}

.eco-single-widget {
    min-width: 0;
}

.eco-single-widget-title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--eco-single-border);
    color: var(--eco-single-dark);
    font-size: 21px;
    font-weight: 650;
    line-height: 1.4;
}

.eco-single-widget-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 43px;
    height: 2px;
    background: var(--eco-single-orange);
}

/* Search */

.eco-single-search {
    display: flex;
    height: 48px;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--eco-single-border);
    border-radius: 8px;
}

.eco-single-search:focus-within {
    border-color: var(--eco-single-orange);
}

.eco-single-search input,
.eco-single-search input:focus {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
    color: var(--eco-single-dark);
    font: inherit;
    font-size: 14px;
}

.eco-single-search input::placeholder {
    color: #9297a0;
}

.eco-single-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--eco-single-orange);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.eco-single-search button:hover {
    background: var(--eco-single-hover);
}

/* Recent posts */

.eco-single-recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eco-single-recent-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eco-single-border);
}

.eco-single-recent-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.eco-single-recent-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 76px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f1f3;
    color: var(--eco-single-dark);
}

.eco-single-recent-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eco-single-recent-item h4 {
    margin: 0 0 7px;
    color: var(--eco-single-dark);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.eco-single-recent-item h4 a {
    color: inherit;
}

.eco-single-recent-item h4 a:hover {
    color: var(--eco-single-orange);
}

.eco-single-recent-item small {
    color: var(--eco-single-muted);
    font-size: 14px;
    font-weight: 400;
}

/* Categories */

.eco-single-categories {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.eco-single-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--eco-single-border);
    border-radius: 7px;
    background: var(--eco-single-soft);
    color: #353a44;
    font-size: 15px;
    font-weight: 500;
}

.eco-single-categories a:hover {
    background: var(--eco-single-orange);
    border-color: var(--eco-single-orange);
    color: #fff;
}

/* Sidebar tags */

.eco-single-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.eco-single-sidebar-tags a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--eco-single-border);
    border-radius: 6px;
    background: #fff;
    color: #505763;
    font-size: 14px;
    font-weight: 500;
}

.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: 27px;
}

.eco-single-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    background: var(--eco-single-orange);
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

.eco-single-badge:hover {
    color: #fff;
    background: var(--eco-single-hover);
}

.eco-single-title {
    margin: 18px 0 20px;
    color: var(--eco-single-dark);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.8px;
}

.eco-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--eco-single-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.eco-single-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #454b56;
    font-weight: 500;
}

.eco-single-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.eco-single-meta a {
    color: inherit;
}

.eco-single-meta a:hover {
    color: var(--eco-single-orange);
}

.eco-single-meta-dot {
    color: var(--eco-single-orange);
}

/* ==========================================
   FEATURED IMAGE
========================================== */

.eco-single-featured-image {
    margin: 0 0 35px;
}

.eco-single-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 12px;
}

.eco-single-featured-image figcaption {
    margin-top: 11px;
    color: var(--eco-single-muted);
    font-size: 14px;
    text-align: center;
}

/* ==========================================
   WORDPRESS ARTICLE CONTENT
========================================== */

.eco-single-entry-content {
    overflow-wrap: break-word;
    color: var(--eco-single-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
}

.eco-single-entry-content p {
    margin: 0 0 23px;
    color: inherit;
    font-size: 16px;
    line-height: 1.85;
}

.eco-single-entry-content h2 {
    margin: 38px 0 18px;
    color: var(--eco-single-dark);
    font-size: 30px;
    font-weight: 650;
    line-height: 1.35;
}

.eco-single-entry-content h3 {
    margin: 32px 0 15px;
    color: var(--eco-single-dark);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.4;
}

.eco-single-entry-content h4 {
    margin: 26px 0 13px;
    color: var(--eco-single-dark);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.45;
}

.eco-single-entry-content h5,
.eco-single-entry-content h6 {
    margin: 22px 0 12px;
    color: var(--eco-single-dark);
    font-size: 18px;
    font-weight: 600;
}

.eco-single-entry-content a {
    color: var(--eco-single-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eco-single-entry-content a:hover {
    color: var(--eco-single-hover);
}

.eco-single-entry-content img {
    max-width: 100%;
    height: auto;
}

.eco-single-entry-content figure {
    max-width: 100%;
    margin: 28px 0;
}

.eco-single-entry-content figcaption {
    margin-top: 10px;
    color: var(--eco-single-muted);
    font-size: 14px;
    text-align: center;
}

.eco-single-entry-content ul,
.eco-single-entry-content ol {
    margin: 0 0 26px;
    padding-left: 29px;
}

.eco-single-entry-content li {
    margin-bottom: 11px;
    font-size: 16px;
    line-height: 1.8;
}

.eco-single-entry-content li::marker {
    color: var(--eco-single-orange);
}

/* Blockquotes */

.eco-single-entry-content blockquote {
    margin: 32px 0;
    padding: 27px 30px;
    background: #fff5ee;
    border-left: 4px solid var(--eco-single-orange);
    border-radius: 8px;
    color: #363b44;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
}

.eco-single-entry-content blockquote p {
    font-size: inherit;
}

.eco-single-entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.eco-single-entry-content .wp-block-image img {
    border-radius: 10px;
}

/* Tables */

.eco-single-entry-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
}

.eco-single-entry-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 16px;
}

.eco-single-entry-content th,
.eco-single-entry-content td {
    padding: 14px 16px;
    border: 1px solid var(--eco-single-border);
    text-align: left;
    vertical-align: top;
}

.eco-single-entry-content th {
    background: #f5f6f8;
    color: var(--eco-single-dark);
    font-weight: 600;
}

/* Code blocks */

.eco-single-entry-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 22px;
    border-radius: 9px;
    background: #1c1f25;
    color: #f5f5f5;
    font-size: 14px;
    line-height: 1.65;
}

.eco-single-entry-content code {
    overflow-wrap: anywhere;
}

.eco-single-entry-content iframe {
    max-width: 100%;
}

/* ==========================================
   TAGS & SHARING
========================================== */

.eco-single-article-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    margin: 40px 0;
    padding: 24px 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 {
    margin-right: 4px;
    color: var(--eco-single-dark);
    font-size: 15px;
    font-weight: 600;
}

.eco-single-post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--eco-single-border);
    border-radius: 6px;
    background: var(--eco-single-soft);
    color: #5a606b;
    font-size: 14px;
    font-weight: 400;
}

.eco-single-post-tags a:hover {
    background: var(--eco-single-orange);
    border-color: var(--eco-single-orange);
    color: #fff;
}

.eco-single-share a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    height: 37px;
    background: #f3f4f6;
    color: #353a44;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
}

.eco-single-share a:hover {
    background: var(--eco-single-orange);
    color: #fff;
}

/* ==========================================
   AUTHOR BOX
========================================== */

.eco-single-author-box {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 25px;
    margin: 32px 0;
    padding: 30px;
    background: var(--eco-single-soft);
    border: 1px solid var(--eco-single-border);
    border-radius: 12px;
}

.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 9px;
    color: var(--eco-single-dark);
    font-size: 22px;
    font-weight: 600;
}

.eco-single-author-info p {
    margin: 0 0 12px;
    color: var(--eco-single-text);
    font-size: 16px;
    line-height: 1.75;
}

.eco-single-author-info a {
    color: var(--eco-single-orange);
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================
   PREVIOUS / NEXT POST
========================================== */

.eco-single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 30px 0;
    border-bottom: 1px solid var(--eco-single-border);
}

.eco-single-post-navigation span {
    display: block;
    margin-bottom: 9px;
    color: var(--eco-single-muted);
    font-size: 14px;
}

.eco-single-post-navigation a {
    color: var(--eco-single-dark);
    font-size: 19px;
    font-weight: 600;
    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: var(--eco-single-soft);
    border: 1px solid var(--eco-single-border);
    border-radius: 12px;
}

.eco-single-comments h2,
.eco-single-comments h3 {
    margin: 0 0 24px;
    color: var(--eco-single-dark);
    font-size: 25px;
    font-weight: 650;
}

.eco-single-comments .comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eco-single-comments .comment-body {
    margin-bottom: 25px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--eco-single-border);
}

.eco-single-comments p,
.eco-single-comments .comment-content {
    color: var(--eco-single-text);
    font-size: 16px;
    line-height: 1.75;
}

.eco-single-comments label {
    display: block;
    margin-bottom: 9px;
    color: var(--eco-single-dark);
    font-size: 14px;
    font-weight: 500;
}

.eco-single-comments input:not([type="checkbox"]),
.eco-single-comments textarea {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    background: #fff;
    color: var(--eco-single-dark);
    font-family: inherit;
    font-size: 16px;
    box-shadow: none;
}

.eco-single-comments input:focus,
.eco-single-comments textarea:focus {
    border-color: var(--eco-single-orange);
    outline: 2px solid rgba(255,91,10,.12);
    outline-offset: 0;
}

.eco-single-comments textarea {
    min-height: 155px;
    resize: vertical;
}

.eco-single-comments input[type="submit"] {
    width: auto;
    padding: 13px 23px;
    border: 0;
    border-radius: 7px;
    background: var(--eco-single-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.eco-single-comments input[type="submit"]:hover {
    background: var(--eco-single-hover);
    color: #fff;
}

/* ==========================================
   RELATED POSTS
========================================== */

.eco-single-related {
    margin-top: 55px;
}

.eco-single-related > h2 {
    margin: 0 0 26px;
    color: var(--eco-single-dark);
    font-size: 27px;
    font-weight: 650;
}

.eco-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.eco-single-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--eco-single-border);
    border-radius: 11px;
    background: #fff;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.eco-single-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.eco-single-related-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 155px;
    overflow: hidden;
    background: linear-gradient(
        125deg,
        #282a30,
        #ff5b0a
    );
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.eco-single-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.eco-single-related-card:hover img {
    transform: scale(1.045);
}

.eco-single-related-body {
    padding: 17px;
}

.eco-single-related-body h3 {
    margin: 0 0 11px;
    color: var(--eco-single-dark);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.eco-single-related-body h3 a {
    color: inherit;
}

.eco-single-related-body h3 a:hover {
    color: var(--eco-single-orange);
}

.eco-single-related-body small {
    color: var(--eco-single-muted);
    font-size: 14px;
    font-weight: 400;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.eco-single-section a:focus-visible,
.eco-single-section button:focus-visible {
    outline: 2px solid var(--eco-single-orange);
    outline-offset: 3px;
}

/* ==========================================
   SMALL DESKTOP
========================================== */

@media (max-width: 1100px) {
    .eco-single-layout {
        grid-template-columns: 255px minmax(0, 1fr);
        gap: 35px;
    }

    .eco-single-title {
        font-size: 36px;
    }

    .eco-single-related-grid {
        gap: 14px;
    }
}

/* ==========================================
   TABLET
========================================== */

@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;
        gap: 27px;
        margin-top: 35px;
    }

    .eco-single-article {
        order: 1;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {
    .eco-single-container {
        width: calc(100% - 32px);
    }

    .eco-single-section {
        padding: 25px 0 60px;
    }

    .eco-single-breadcrumb {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .eco-single-title {
        font-size: clamp(29px, 7vw, 36px);
        line-height: 1.25;
    }

    .eco-single-featured-image img {
        max-height: none;
    }

    .eco-single-entry-content,
    .eco-single-entry-content p {
        font-size: 16px;
    }

    .eco-single-entry-content h2 {
        font-size: 26px;
    }

    .eco-single-entry-content h3 {
        font-size: 23px;
    }

    .eco-single-entry-content h4 {
        font-size: 20px;
    }

    .eco-single-entry-content blockquote {
        padding: 20px;
        font-size: 17px;
    }

    .eco-single-sidebar {
        grid-template-columns: 1fr;
    }

    .eco-single-author-box {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .eco-single-author-avatar img {
        width: 70px;
        height: 70px;
    }

    .eco-single-article-bottom {
        gap: 18px;
    }

    .eco-single-post-navigation {
        gap: 18px;
    }

    .eco-single-comments {
        padding: 20px;
    }

    .eco-single-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .eco-single-related-image {
        height: 125px;
    }
}

@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;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
    .eco-single-section *,
    .eco-single-section *::before,
    .eco-single-section *::after {
        transition: none !important;
        animation: none !important;
    }
}
