/* =========================================================
   TRUEVITAHUB — SINGLE RESOURCE PAGE
   resource-single.css
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

.tvh-single-resource-page {

    --tvh-blue: #2952e3;
    --tvh-blue-dark: #1e40af;

    --tvh-text: #111827;
    --tvh-text-soft: #374151;
    --tvh-text-light: #6b7280;

    --tvh-border: #e5e7eb;
    --tvh-bg: #f8fafc;

    --tvh-white: #ffffff;

    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: var(--tvh-text);

}

.tvh-single-resource-page *,
.tvh-single-resource-page *::before,
.tvh-single-resource-page *::after {

    box-sizing: border-box;

}


/* =========================================================
   CONTAINER
   ========================================================= */

.tvh-single-resource-container {

    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin: 0 auto;

}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.tvh-resource-breadcrumb-section {

    padding: 24px 0;

    border-bottom: 1px solid
        rgba(229, 231, 235, 0.7);

    background: #ffffff;

}

.tvh-resource-breadcrumbs {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    color: #9ca3af;

    font-size: 13px;

}

.tvh-resource-breadcrumbs a {

    color: var(--tvh-blue);

    text-decoration: none;

    font-weight: 600;

}

.tvh-resource-breadcrumbs a:hover {

    text-decoration: underline;

}

.tvh-resource-breadcrumbs span {

    color: #9ca3af;

}


/* =========================================================
   RESOURCE HERO
   ========================================================= */

.tvh-single-resource-hero {

    padding: 75px 0 80px;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(41, 82, 227, 0.09),
            transparent 45%
        ),

        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8faff 100%
        );

}

.tvh-resource-hero-content {

    max-width: 900px;

    margin: 0 auto;

    text-align: center;

}


/* =========================================================
   RESOURCE META
   ========================================================= */

.tvh-single-resource-meta {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 23px;

}

.tvh-single-resource-type {

    display: inline-flex;

    align-items: center;

    padding: 7px 13px;

    border-radius: 50px;

    background: #eef4ff;

    color: var(--tvh-blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;

}

.tvh-single-resource-category {

    color: var(--tvh-text-light);

    font-size: 13px;

    font-weight: 600;

}

.tvh-single-resource-reading {

    color: var(--tvh-text-light);

    font-size: 13px;

}

.tvh-single-resource-meta > * + *::before {

    content: "•";

    margin-right: 9px;

    color: #cbd5e1;

}


/* =========================================================
   TITLE
   ========================================================= */

.tvh-single-resource-title {

    max-width: 950px;

    margin: 0 auto 24px;

    color: var(--tvh-text);

    font-size: clamp(
        40px,
        6vw,
        64px
    );

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -2.4px;

}


/* =========================================================
   EXCERPT
   ========================================================= */

.tvh-single-resource-excerpt {

    max-width: 750px;

    margin: 0 auto;

    color: var(--tvh-text-light);

    font-size: 18px;

    line-height: 1.75;

}


/* =========================================================
   AUTHOR
   ========================================================= */

.tvh-single-resource-author {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;

    text-align: left;

}

.tvh-resource-author-avatar {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    flex: 0 0 42px;

    border-radius: 50%;

    background: #eef4ff;

    color: var(--tvh-blue);

    font-size: 15px;

    font-weight: 800;

}

.tvh-single-resource-author strong {

    display: block;

    color: var(--tvh-text);

    font-size: 13px;

    font-weight: 750;

}

.tvh-single-resource-author span {

    display: block;

    margin-top: 3px;

    color: #9ca3af;

    font-size: 12px;

}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.tvh-single-resource-featured-image {

    max-width: 1050px;

    margin: 55px auto 0;

    overflow: hidden;

    border: 1px solid var(--tvh-border);

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 25px 60px
        rgba(15, 23, 42, 0.10);

}

.tvh-single-resource-featured-image img {

    display: block;

    width: 100%;

    height: auto;

}


/* =========================================================
   MAIN CONTENT SECTION
   ========================================================= */

.tvh-single-resource-content-section {

    padding: 85px 0;

    background: #ffffff;

}

.tvh-single-resource-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        310px;

    gap: 75px;

    align-items: start;

}


/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.tvh-single-resource-content {

    min-width: 0;

    max-width: 780px;

}

.tvh-single-resource-content > *:first-child {

    margin-top: 0;

}

.tvh-single-resource-content p {

    margin: 0 0 24px;

    color: var(--tvh-text-soft);

    font-size: 17px;

    line-height: 1.85;

}

.tvh-single-resource-content h2 {

    margin: 48px 0 18px;

    color: var(--tvh-text);

    font-size: 32px;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -0.8px;

}

.tvh-single-resource-content h3 {

    margin: 36px 0 15px;

    color: var(--tvh-text);

    font-size: 24px;

    line-height: 1.3;

    font-weight: 800;

}

.tvh-single-resource-content h4 {

    margin: 30px 0 12px;

    color: var(--tvh-text);

    font-size: 19px;

    font-weight: 750;

}

.tvh-single-resource-content ul,
.tvh-single-resource-content ol {

    margin: 0 0 28px;

    padding-left: 25px;

    color: var(--tvh-text-soft);

}

.tvh-single-resource-content li {

    margin-bottom: 10px;

    padding-left: 5px;

    font-size: 16px;

    line-height: 1.7;

}

.tvh-single-resource-content a {

    color: var(--tvh-blue);

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;

}

.tvh-single-resource-content strong {

    color: var(--tvh-text);

    font-weight: 750;

}


/* =========================================================
   BLOCKQUOTE
   ========================================================= */

.tvh-single-resource-content blockquote {

    margin: 35px 0;

    padding: 25px 30px;

    border-left: 4px solid var(--tvh-blue);

    border-radius: 0 14px 14px 0;

    background: #f8faff;

    color: var(--tvh-text-soft);

}

.tvh-single-resource-content blockquote p {

    margin: 0;

    font-size: 17px;

}


/* =========================================================
   TABLES
   ========================================================= */

.tvh-single-resource-content table {

    width: 100%;

    margin: 30px 0;

    border-collapse: collapse;

    overflow: hidden;

    border: 1px solid var(--tvh-border);

    border-radius: 12px;

}

.tvh-single-resource-content th,
.tvh-single-resource-content td {

    padding: 13px 15px;

    border-bottom: 1px solid var(--tvh-border);

    text-align: left;

    font-size: 14px;

}

.tvh-single-resource-content th {

    background: #f8fafc;

    color: var(--tvh-text);

    font-weight: 750;

}

.tvh-single-resource-content td {

    color: var(--tvh-text-soft);

}


/* =========================================================
   CODE
   ========================================================= */

.tvh-single-resource-content pre {

    margin: 30px 0;

    padding: 22px;

    overflow-x: auto;

    border-radius: 14px;

    background: #111827;

    color: #f9fafb;

    font-size: 14px;

    line-height: 1.7;

}

.tvh-single-resource-content code {

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

}

.tvh-single-resource-content :not(pre) > code {

    padding: 3px 6px;

    border-radius: 5px;

    background: #f1f5f9;

    color: #334155;

    font-size: 0.9em;

}


/* =========================================================
   SIDEBAR
   ========================================================= */

.tvh-single-resource-sidebar {

    position: sticky;

    top: 100px;

}

.tvh-resource-sidebar-card {

    margin-bottom: 20px;

    padding: 24px;

    border: 1px solid var(--tvh-border);

    border-radius: 17px;

    background: #ffffff;

}

.tvh-resource-sidebar-card h3 {

    margin: 0 0 18px;

    color: var(--tvh-text);

    font-size: 17px;

    font-weight: 800;

}


/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

#tvh-resource-toc {

    margin: 0;

    padding: 0;

    list-style: none;

}

#tvh-resource-toc li {

    margin: 0;

    padding: 9px 0;

    border-bottom: 1px solid
        rgba(229, 231, 235, 0.65);

    color: var(--tvh-text-light);

    font-size: 13px;

    line-height: 1.5;

}

#tvh-resource-toc li:last-child {

    border-bottom: 0;

}

#tvh-resource-toc li span {

    display: block;

}


/* =========================================================
   RESOURCE INFORMATION
   ========================================================= */

.tvh-resource-info-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 11px 0;

    border-bottom: 1px solid
        rgba(229, 231, 235, 0.7);

}

.tvh-resource-info-row:last-child {

    border-bottom: 0;

}

.tvh-resource-info-row span {

    color: var(--tvh-text-light);

    font-size: 12px;

}

.tvh-resource-info-row strong {

    color: var(--tvh-text);

    font-size: 12px;

    text-align: right;

}


/* =========================================================
   SIDEBAR NEWSLETTER
   ========================================================= */

.tvh-resource-sidebar-newsletter {

    padding: 28px;

    overflow: hidden;

    border-radius: 18px;

    background:

        radial-gradient(
            circle at 100% 0%,
            rgba(255,255,255,0.16),
            transparent 40%
        ),

        linear-gradient(
            135deg,
            #1e40af,
            #2952e3
        );

}

.tvh-resource-sidebar-newsletter > span {

    color: rgba(
        255,
        255,
        255,
        0.72
    );

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}

.tvh-resource-sidebar-newsletter h3 {

    margin: 13px 0 10px;

    color: #ffffff;

    font-size: 22px;

    line-height: 1.25;

    font-weight: 800;

}

.tvh-resource-sidebar-newsletter p {

    margin: 0 0 20px;

    color: rgba(
        255,
        255,
        255,
        0.78
    );

    font-size: 13px;

    line-height: 1.65;

}

.tvh-resource-sidebar-newsletter a {

    display: inline-flex;

    align-items: center;

    padding: 10px 15px;

    border-radius: 9px;

    background: #ffffff;

    color: var(--tvh-blue) !important;

    font-size: 12px;

    font-weight: 800;

    text-decoration: none !important;

}


/* =========================================================
   SHARE
   ========================================================= */

.tvh-resource-end-divider {

    width: 100%;

    height: 1px;

    margin: 55px 0 25px;

    background: var(--tvh-border);

}

.tvh-resource-share {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}

.tvh-resource-share strong {

    color: var(--tvh-text);

    font-size: 14px;

}

.tvh-resource-share-buttons {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

}

.tvh-resource-share-buttons a {

    display: inline-flex;

    align-items: center;

    padding: 8px 12px;

    border: 1px solid var(--tvh-border);

    border-radius: 8px;

    background: #ffffff;

    color: var(--tvh-text-soft);

    font-size: 11px;

    font-weight: 700;

    text-decoration: none !important;

    transition:
        border-color 0.2s ease,
        color 0.2s ease;

}

.tvh-resource-share-buttons a:hover {

    border-color: var(--tvh-blue);

    color: var(--tvh-blue);

}


/* =========================================================
   RELATED RESOURCES
   ========================================================= */

.tvh-related-resources {

    padding: 90px 0;

    background: #f8fafc;

}

.tvh-related-heading {

    margin-bottom: 40px;

}

.tvh-related-heading h2 {

    margin: 0;

    color: var(--tvh-text);

    font-size: clamp(
        30px,
        4vw,
        42px
    );

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -1px;

}

.tvh-related-heading h2 span {

    color: var(--tvh-blue);

}

.tvh-related-resource-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

}


/* =========================================================
   RESOURCE CARD OVERRIDE
   ========================================================= */

.tvh-related-resource-grid
.tvh-resource-card {

    height: 100%;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .tvh-single-resource-layout {

        grid-template-columns:
            minmax(0, 1fr)
            270px;

        gap: 40px;

    }

    .tvh-related-resource-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .tvh-single-resource-container {

        width: min(
            100% - 30px,
            1200px
        );

    }

    .tvh-resource-breadcrumb-section {

        padding: 18px 0;

    }

    .tvh-resource-breadcrumbs {

        font-size: 12px;

    }

    .tvh-single-resource-hero {

        padding: 55px 0 60px;

    }

    .tvh-single-resource-title {

        font-size: 40px;

        letter-spacing: -1.6px;

    }

    .tvh-single-resource-excerpt {

        font-size: 16px;

        line-height: 1.7;

    }

    .tvh-single-resource-featured-image {

        margin-top: 38px;

        border-radius: 17px;

    }

    .tvh-single-resource-content-section {

        padding: 65px 0;

    }

    .tvh-single-resource-layout {

        display: block;

    }

    .tvh-single-resource-content {

        max-width: none;

    }

    .tvh-single-resource-content p {

        font-size: 16px;

        line-height: 1.8;

    }

    .tvh-single-resource-content h2 {

        margin-top: 40px;

        font-size: 28px;

    }

    .tvh-single-resource-content h3 {

        font-size: 22px;

    }

    .tvh-single-resource-sidebar {

        position: static;

        margin-top: 55px;

    }

    .tvh-resource-share {

        display: block;

    }

    .tvh-resource-share-buttons {

        margin-top: 15px;

    }

    .tvh-related-resources {

        padding: 70px 0;

    }

    .tvh-related-resource-grid {

        grid-template-columns: 1fr;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .tvh-single-resource-title {

        font-size: 34px;

    }

    .tvh-single-resource-meta {

        gap: 6px;

    }

    .tvh-single-resource-meta > * + *::before {

        margin-right: 6px;

    }

    .tvh-single-resource-author {

        margin-top: 25px;

    }

}
/* =========================================================
   TRUEVITAHUB — SINGLE RESOURCE
   7.4 + 7.5 FINAL POLISH
   ========================================================= */


/* =========================================================
   FEATURED BADGE
   ========================================================= */

.tvh-single-resource-featured-badge {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 20px;

    padding: 7px 13px;

    border: 1px solid #FDE7C3;

    border-radius: 999px;

    background: #FFF9EF;

    color: #B45309;

    font-size: 12px;

    font-weight: 750;

}

.tvh-single-resource-featured-badge span {

    font-size: 12px;

}


/* =========================================================
   CLICKABLE TYPE / CATEGORY
   ========================================================= */

a.tvh-single-resource-type {

    text-decoration: none;

}

a.tvh-single-resource-type:hover {

    text-decoration: none;

    background: #E5EDFF;

}

a.tvh-single-resource-category {

    color: #64748B;

    text-decoration: none;

}

a.tvh-single-resource-category:hover {

    color: #2952E3;

}


/* =========================================================
   RESOURCE ACTIONS CARD
   ========================================================= */

.tvh-resource-actions-card {

    position: sticky;

    top: 25px;

}


/* =========================================================
   ACTIONS WRAPPER
   ========================================================= */

.tvh-resource-actions {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


/* =========================================================
   ACTION BUTTON
   ========================================================= */

.tvh-resource-action {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    min-height: 64px;

    padding: 12px 14px;

    border: 1px solid #E5E7EB;

    border-radius: 14px;

    background: #FFFFFF;

    color: #111827;

    text-decoration: none !important;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;

}


/* =========================================================
   ACTION HOVER
   ========================================================= */

.tvh-resource-action:hover {

    transform: translateY(-2px);

    border-color: #BFDBFE;

    background: #F8FAFC;

    color: #111827;

    box-shadow:
        0 10px 25px
        rgba(
            15,
            23,
            42,
            .07
        );

}


/* =========================================================
   PRIMARY ACTION
   ========================================================= */

.tvh-resource-action-primary {

    border-color: #2952E3;

    background: #2952E3;

    color: #FFFFFF !important;

    box-shadow:
        0 8px 20px
        rgba(
            41,
            82,
            227,
            .18
        );

}


.tvh-resource-action-primary:hover {

    border-color: #2347C7;

    background: #2347C7;

    color: #FFFFFF !important;

}


/* =========================================================
   ACTION ICON
   ========================================================= */

.tvh-resource-action-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    border-radius: 10px;

    background: #EEF4FF;

    color: #2952E3;

    font-size: 17px;

    font-weight: 800;

}


.tvh-resource-action-primary
.tvh-resource-action-icon {

    background:
        rgba(
            255,
            255,
            255,
            .15
        );

    color: #FFFFFF;

}


/* =========================================================
   ACTION TEXT
   ========================================================= */

.tvh-resource-action strong {

    display: block;

    margin: 0;

    font-size: 13px;

    line-height: 1.35;

}


.tvh-resource-action small {

    display: block;

    margin-top: 3px;

    color: #94A3B8;

    font-size: 11px;

    line-height: 1.35;

}


.tvh-resource-action-primary small {

    color:
        rgba(
            255,
            255,
            255,
            .75
        );

}


/* =========================================================
   RELATED EMPTY
   ========================================================= */

.tvh-related-empty {

    margin: 0;

    padding: 30px;

    border: 1px solid #E5E7EB;

    border-radius: 16px;

    background: #F8FAFC;

    color: #64748B;

    text-align: center;

    font-size: 14px;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 980px) {

    .tvh-resource-actions-card {

        position: static;

    }

}


@media (max-width: 680px) {

    .tvh-single-resource-featured-badge {

        margin-top: 16px;

    }


    .tvh-resource-action {

        min-height: 60px;

    }


    .tvh-resource-action-icon {

        width: 36px;

        height: 36px;

        flex-basis: 36px;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tvh-resource-action {

        transition: none;

    }

}