/* READING PROGRESS */

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background: transparent;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--orange);
    transition: width .1s linear;
}

/* ARTICLE HERO */

.article-hero {
    padding: 75px 0 55px;
    background: var(--cream);
}

.breadcrumb-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 40px;
}

.breadcrumb-custom a {
    transition: .3s;
}

.breadcrumb-custom a:hover {
    color: var(--orange);
}

.breadcrumb-custom i {
    font-size: 9px;
    color: var(--orange);
}

.breadcrumb-custom span:last-child {
    color: var(--wine);
    font-weight: 600;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-soft);
    color: var(--wine);
    padding: 9px 15px;
    border-radius: 50px;
    font-size: 10px;
    letter-spacing: 1.4px;
    font-weight: 800;
    text-transform: uppercase;
}

.article-category i {
    color: var(--orange);
}

.article-title {
    font-size: clamp(37px,5.5vw,68px);
    line-height: 1.18;
    letter-spacing: -3.5px;
    font-weight: 700;
    color: var(--wine-deep);
    margin: 25px 0 22px;
    max-width: 1000px;
}

.article-title span {
    color: var(--orange);
}

.article-intro {
    max-width: 760px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.9;
}

.article-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 35px;
}

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

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details strong {
    display: block;
    font-size: 12px;
    color: var(--wine-deep);
}

.author-details span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}

.author-divider {
    width: 1px;
    height: 35px;
    background: var(--border);
}

.article-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}

.article-info i {
    color: var(--orange);
}

/* FEATURE IMAGE */

.featured-image-section {
    padding: 0 0 20px;
    background: var(--cream);
}

.main-featured-image {
    height: 540px;
    border-radius: var(--radius-l);
    overflow: hidden;
    position: relative;
}

.main-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.main-featured-image:hover img {
    transform: scale(1.035);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 22px;
    background: rgba(37,37,37,.65);
    color: white;
    font-size: 10px;
    padding: 9px 15px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* ARTICLE LAYOUT */

.article-section {
    padding: 75px 0 20px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 85px;
    max-width: 1120px;
    margin: auto;
}

/* ARTICLE CONTENT */

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

.article-content p {
    color: #626262;
    font-size: 14px;
    line-height: 2.1;
    margin-bottom: 25px;
}

.article-content .lead-paragraph {
    font-size: 17px;
    line-height: 1.95;
    color: var(--ink);
}

.article-content h2 {
    color: var(--wine-deep);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1.2px;
    margin: 55px 0 20px;
    line-height: 1.4;
}

.article-content h3 {
    color: var(--wine);
    font-size: 21px;
    font-weight: 700;
    margin: 35px 0 15px;
}

.article-content strong {
    color: var(--wine);
}

.article-content ul,
.article-content ol {
    padding-left: 22px;
    margin: 20px 0 30px;
}

.article-content li {
    color: #626262;
    font-size: 13px;
    line-height: 1.9;
    padding-left: 7px;
    margin-bottom: 12px;
}

.article-content li::marker {
    color: var(--orange);
}

.article-inline-image {
    margin: 40px 0;
}

.article-inline-image img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 20px;
}

.article-inline-image figcaption {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

/* QUOTE */

.article-quote {
    position: relative;
    background: var(--sage-soft);
    padding: 40px 40px 40px 48px;
    border-radius: 20px;
    margin: 45px 0;
    border-left: 4px solid var(--orange);
}

.quote-icon {
    font-size: 35px;
    color: var(--orange);
    line-height: 1;
}

.article-quote blockquote {
    font-family: var(--font-head);
    color: var(--wine-deep);
    font-size: 23px;
    line-height: 1.6;
    font-weight: 600;
    margin: 15px 0;
}

.article-quote cite {
    font-style: normal;
    font-size: 10px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* SIDEBAR */

.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 35px;
}

.sidebar-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
    background: white;
}

.sidebar-heading {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--wine-deep);
    margin-bottom: 22px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--border);
}

.toc-list li {
    margin-bottom: 17px;
    padding-left: 15px;
    position: relative;
}

.toc-list li a {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    transition: .3s;
}

.toc-list li a:hover,
.toc-list li a.active {
    color: var(--orange);
}

.toc-list li a.active::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--orange);
    left: -1px;
    top: 0;
}

.sidebar-share {
    margin-top: 22px;
}

.share-links {
    display: flex;
    gap: 8px;
}

.share-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 13px;
    color: var(--wine);
    transition: .3s;
}

.share-links a:hover {
    background: var(--wine);
    color: white;
    border-color: var(--wine);
}

/* TAGS */

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.article-tags strong {
    font-size: 11px;
    color: var(--wine);
    margin-right: 5px;
}

.article-tags a {
    background: var(--bg-alt);
    color: var(--ink);
    border-radius: 50px;
    padding: 9px 14px;
    font-size: 10px;
    transition: .3s;
}

.article-tags a:hover {
    background: var(--orange);
    color: white;
}

/* AUTHOR BOX */

.author-box {
    background: var(--cream);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 35px;
}

.author-box img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 50%;
}

.author-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--wine);
    margin-bottom: 8px;
}

.author-box p {
    font-size: 11px;
    line-height: 1.8;
    margin: 0;
}

/* RELATED ARTICLES */

.related-section {
    background: var(--bg-alt);
    padding: 85px 0 100px;
}

.section-label {
    font-size: 10px;
    color: var(--orange);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    color: var(--wine-deep);
    font-size: clamp(29px,4vw,42px);
    letter-spacing: -2px;
    font-weight: 700;
    margin: 12px 0 35px;
}

.related-card {
    height: 100%;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    transition: .4s var(--ease);
}

.related-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(37,37,37,.08);
}

.related-image {
    height: 220px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s;
}

.related-card:hover img {
    transform: scale(1.07);
}

.related-content {
    padding: 23px;
}

.related-content span {
    color: var(--orange);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.related-content h3 {
    font-size: 17px;
    color: var(--wine-deep);
    line-height: 1.5;
    margin: 12px 0 18px;
}

.related-content a {
    color: var(--wine);
    font-size: 11px;
    font-weight: 700;
}

.related-content a i {
    color: var(--orange);
    margin-left: 5px;
    transition: .3s;
}

.related-content a:hover i {
    margin-left: 10px;
}

/* BACK LINK */

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--wine);
    font-size: 12px;
    font-weight: 700;
    margin-top: 35px;
    transition: .3s;
}

.back-to-blog i {
    color: var(--orange);
}

.back-to-blog:hover {
    color: var(--orange);
}

/* RESPONSIVE */

@media(max-width:991px) {
    .article-layout {
        grid-template-columns: minmax(0,1fr) 210px;
        gap: 35px;
    }

    .article-title {
        letter-spacing: -2px;
    }

    .main-featured-image {
        height: 430px;
    }
}

@media(max-width:767px) {
    .article-hero {
        padding: 45px 0 40px;
    }

    .breadcrumb-custom {
        margin-bottom: 30px;
    }

    .article-title {
        font-size: 39px;
        letter-spacing: -2px;
        line-height: 1.22;
    }

    .article-intro {
        font-size: 14px;
    }

    .article-author {
        gap: 14px;
    }

    .author-divider {
        display: none;
    }

    .main-featured-image {
        height: 290px;
        border-radius: 17px;
    }

    .featured-image-section {
        padding-bottom: 45px;
    }

    .article-section {
        padding: 55px 0 70px;
    }

    .article-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .article-content p {
        font-size: 13px;
    }

    .article-content .lead-paragraph {
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 25px;
        margin-top: 40px;
    }

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

    .article-inline-image img {
        height: 260px;
    }

    .article-quote {
        padding: 28px;
    }

    .article-quote blockquote {
        font-size: 19px;
    }

    .article-sidebar {
        order: -1;
    }

    .sidebar-sticky {
        position: static;
    }

    .toc-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .toc-list li {
        margin-bottom: 0;
    }

    .author-box {
        align-items: flex-start;
        padding: 22px;
    }

    .related-section {
        padding: 65px 0;
    }
}

@media(max-width:420px) {
    .article-title {
        font-size: 33px;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .author-box img {
        width: 58px;
        height: 58px;
    }
}