/*
Theme Name: My Custom Theme
Author: Oleg
Version: 1.0
*/


```css
/* =========================================================
   SINGLE POST
========================================================= */

.single-page {
    width: 100%;
}

.single-post {
    width: 100%;
}

.single-post-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   CONTAINER
========================================================= */

.single-post .container,
.single-breadcrumbs-wrap .container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.single-breadcrumbs-wrap {
    padding: 28px 0 10px;
}

.single-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
}

.single-breadcrumbs a {
    color: #777;
    text-decoration: none;
    transition: color .2s ease;
}

.single-breadcrumbs a:hover {
    color: #111;
}

.breadcrumb-separator {
    color: #aaa;
}

.breadcrumb-current {
    color: #999;
}


/* =========================================================
   MAIN ARTICLE
========================================================= */

.single-post-main {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   ARTICLE HEADER
========================================================= */

.single-post-header {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px 0 35px;
}

.single-post-category {
    margin-bottom: 16px;
}

.single-post-category a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #8b7355;
}

.single-post-title {
    margin: 0;
    max-width: 1000px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: #161616;
}


/* =========================================================
   AUTHOR + READING TIME
========================================================= */

.single-post-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e8e8e8;
}

.single-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-post-author-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
}

.single-post-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.single-post-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.single-post-author-role {
    font-size: 12px;
    color: #888;
}

.single-post-reading {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}

.reading-icon {
    font-size: 17px;
    color: #8b7355;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.single-post-image {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
}

.single-post-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
}


/* =========================================================
   PUBLICATION DATE
========================================================= */

.single-post-date {
    display: flex;
    align-items: center;
    gap: 7px;

    width: 100%;
    max-width: 900px;

    margin: 18px auto 45px;

    font-size: 12px;
    color: #999;
}

.single-post-date span {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    font-weight: 700;
    color: #aaa;
}

.single-post-date time {
    color: #777;
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.single-post-content {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;

    font-size: 19px;
    line-height: 1.85;
    color: #333;
}

.single-post-content p {
    margin: 0 0 28px;
}

.single-post-content h2 {
    margin: 55px 0 22px;

    font-size: 34px;
    line-height: 1.2;

    color: #161616;
}

.single-post-content h3 {
    margin: 42px 0 18px;

    font-size: 26px;
    line-height: 1.3;

    color: #161616;
}

.single-post-content h4 {
    margin: 32px 0 14px;

    font-size: 21px;
    line-height: 1.35;

    color: #161616;
}

.single-post-content a {
    color: #8b7355;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.single-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 28px;
    padding-left: 25px;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-content blockquote {
    margin: 40px 0;
    padding: 8px 0 8px 25px;

    border-left: 3px solid #8b7355;

    font-size: 21px;
    line-height: 1.6;

    color: #555;
}


/* =========================================================
   RELATED ARTICLES
========================================================= */

.related-section {
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 0;
}


/* =========================================================
   RELATED HEADING
========================================================= */

.related-header {
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dedede;
}

.related-label {
    margin-bottom: 7px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;

    color: #8b7355;
}

.related-header h2 {
    margin: 0;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;

    color: #222;
}


/* =========================================================
   RELATED POST GRID
========================================================= */

.related-posts {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 26px;

    width: 100%;
}


/* =========================================================
   RELATED POST
========================================================= */

.related-post {
    min-width: 0;
}


/* =========================================================
   RELATED IMAGE
========================================================= */

.related-post-image {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    margin-bottom: 15px;

    border-radius: 4px;
}

.related-post-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.related-post:hover .related-post-image img {
    transform: scale(1.04);
}

/* =========================================================
   RELATED CARD
========================================================= */

.related-post {
    min-width: 0;
}

/* =========================================================
   RELATED IMAGE
========================================================= */

.related-post-image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    margin-bottom: 16px;

    border-radius: 4px;

    background: #f1f1f1;
}

.related-post-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.related-post:hover .related-post-image img {
    transform: scale(1.04);
}



/* =========================================================
   RELATED CATEGORY
========================================================= */

.related-post-category {
    display: block;

    margin-bottom: 8px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;

    color: #8b7355;
}


/* =========================================================
   RELATED TITLE
========================================================= */

.related-post h3 {
    margin: 0;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.related-post h3 a {
    color: #222;
    text-decoration: none;

    transition: color .2s ease;
}

.related-post h3 a:hover {
    color: #8b7355;
}

/* =========================================================
   RELATED DATE
========================================================= */

.related-post-meta {
    margin-top: 10px;

    font-size: 11px;
    line-height: 1.4;

    color: #999;
}

/* =========================================================
   SPACE BEFORE NEWSLETTER
========================================================= */

.related-section + .newsletter {
    margin-top: 90px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .related-section {
        margin-top: 80px;
    }

    .related-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 24px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .related-section {
        margin-top: 60px;
    }

    .related-header {
        margin-bottom: 25px;
    }

    .related-header h2 {
        font-size: 27px;
    }

    .related-posts {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .related-post-image {
        aspect-ratio: 16 / 9;
    }

    .related-post h3 {
        font-size: 20px;
    }

    .related-section + .newsletter {
        margin-top: 65px;
    }

}


/* =========================================================
   NEWSLETTER
========================================================= */

/*
   The newsletter uses your existing homepage classes:
   .newsletter
   .newsletter-inner
   .nl-copy
   .nl-form
   .nl-title
   .nl-msg
   .nl-fine

   Therefore we DO NOT create another newsletter design here.
*/

.single-post-sidebar + .newsletter {
    margin-top: 75px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .single-post-header {
        max-width: 850px;
    }

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

    .single-post-content {
        max-width: 760px;
    }

    .related-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 22px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .single-post .container,
    .single-breadcrumbs-wrap .container {
        width: min(100% - 28px, 700px);
    }


    /* Breadcrumbs */

    .single-breadcrumbs-wrap {
        padding-top: 18px;
    }


    /* Header */

    .single-post-header {
        padding-top: 15px;
        padding-bottom: 25px;
    }

    .single-post-title {
        font-size: 38px;
        line-height: 1.08;
    }


    /* Author */

    .single-post-author-meta {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }


    /* Hero */

    .single-post-image {
        border-radius: 3px;
    }


    /* Date */

    .single-post-date {
        margin-top: 16px;
        margin-bottom: 30px;
    }


    /* Article */

    .single-post-content {
        font-size: 17px;
        line-height: 1.75;
    }

    .single-post-content h2 {
        margin-top: 42px;
        font-size: 28px;
    }

    .single-post-content h3 {
        margin-top: 35px;
        font-size: 23px;
    }

    .single-post-content blockquote {
        font-size: 18px;
    }


    /* Related */

    .single-post-sidebar {
        margin-top: 60px;
    }

    .sidebar-heading {
        margin-bottom: 25px;
    }

    .sidebar-heading h2 {
        font-size: 26px;
    }

    .related-posts {
        grid-template-columns: 1fr;

        gap: 32px;
    }

    .related-post-image {
        aspect-ratio: 16 / 9;
    }


    /* Newsletter */

    .single-post-sidebar + .newsletter {
        margin-top: 60px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

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

    .single-post-author-avatar {
        width: 42px;
        height: 42px;

        min-width: 42px;
    }

    .single-post-reading {
        font-size: 12px;
    }

}

/* =========================================================
   SPACE BETWEEN RELATED ARTICLES AND NEWSLETTER
========================================================= */

.related-section {
    margin-bottom: 100px !important;
}

.newsletter {
    margin-top: 0 !important;
}


.news-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.news-page-header {
    max-width: 760px;
    margin-bottom: 48px;
}

.news-page-header h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
}

.news-page-header p {
    max-width: 680px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    opacity: 0.75;
}

.news-archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-archive-item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: start;

    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.news-archive-item:first-child {
    padding-top: 0;
}

.news-archive-thumb {
    display: block;
    width: 260px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
}

.news-archive-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-archive-content {
    max-width: 680px;
}

.news-category {
    display: inline-block;
    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.news-archive-title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.news-archive-title a {
    color: inherit;
    text-decoration: none;
}

.news-archive-title a:hover {
    text-decoration: underline;
}

.news-archive-excerpt {
    max-width: 640px;
    margin: 0 0 16px;

    font-size: 16px;
    line-height: 1.65;
    opacity: 0.8;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    line-height: 1.4;
    opacity: 0.7;
}

.news-read-more {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.news-read-more:hover {
    text-decoration: underline;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 48px;
    padding-top: 24px;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 14px;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;

    color: inherit;
    text-decoration: none;
}

.news-pagination .page-numbers.current {
    font-weight: 700;
}

.news-pagination .page-numbers:hover {
    border-color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 760px) {

    .news-container {
        padding: 36px 18px 56px;
    }

    .news-page-header {
        margin-bottom: 34px;
    }

    .news-archive-item {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 16px;
        padding: 22px 0;
    }

    .news-archive-thumb {
        width: 110px;
        aspect-ratio: 1 / 1;
        border-radius: 6px;
    }

    .news-archive-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .news-archive-excerpt {
        font-size: 15px;
        line-height: 1.55;
    }
}

@media (max-width: 520px) {

    .news-archive-item {
        grid-template-columns: 1fr;
    }

    .news-archive-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .news-archive-content {
        max-width: 100%;
    }
}

.news-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-thumb {
    display: block;
    width: 140px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-content h3 {
    margin: 6px 0 8px;
}

.news-content .dek {
    margin: 0 0 10px;
    line-height: 1.55;
}

@media (max-width: 680px) {
    .news-item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 14px;
    }

    .news-thumb {
        width: 100px;
    }

    .news-content .dek {
        display: none;
    }
}

/* BONSAICRYPTO — SMALL PHONE ARTICLE FIXES */

@media (max-width: 480px) {

  .single-post-title {
    font-size: clamp(28px, 8vw, 34px);
    overflow-wrap: break-word;
  }

  .single-post-content {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .single-post-content pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .news-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .news-thumb {
    width: 88px;
  }

  .news-content {
    min-width: 0;
  }

  .single-post-author {
    min-width: 0;
  }

  .single-post-author-info {
    min-width: 0;
    overflow-wrap: break-word;
  }
}