
/* ==========================================================
ARTICLE HERO
========================================================== */

.tpc-article-hero{

    display:grid;

    grid-template-columns:1.1fr 1fr;

    align-items:center;

    gap:70px;

    padding:70px;

    margin-bottom:70px;

    background:linear-gradient(135deg,#0f5132,#146c43);

    border-radius:36px;

    overflow:hidden;

    position:relative;

}

.tpc-hero-content{

    color:#fff;

}

.tpc-hero-content h1{

    color:#fff;

    font-size:64px;

    line-height:1.05;

    margin:25px 0;

}

.tpc-hero-excerpt{

    font-size:22px;

    line-height:1.8;

    opacity:.92;

    max-width:620px;

}

.tpc-hero-meta{

    display:flex;

    flex-wrap:wrap;

    gap:24px;

    margin:35px 0;

    font-size:15px;

    font-weight:600;

    opacity:.95;

}

.tpc-hero-image img{

    width:100%;

    height:520px;

    object-fit:cover;

    border-radius:30px;

    display:block;

    box-shadow:0 30px 70px rgba(0,0,0,.25);

}

.tpc-hero-buttons{

    margin-top:45px;

}

.tpc-hero-buttons .tpc-btn{

    background:#fff;

    color:#15803D;

}


.tpc-article-hero{

    grid-template-columns:1fr;

    padding:35px 25px;

    gap:35px;

}

.tpc-hero-content h1{

    font-size:42px;

}

.tpc-hero-excerpt{

    font-size:18px;

}

.tpc-hero-image img{

    height:320px;

}




/* ==========================================
ARTICLE TYPOGRAPHY
========================================== */

.tpc-single-content{

    font-size:16px;

    line-height:1.4;

    color:#475569;

}

.tpc-single-content p{

    margin:0 0 32px;

}

.tpc-single-content h2{

    font-size:42px;

    line-height:1.2;

    color:#0F172A;

}

.tpc-single-content h3{

    font-size:30px;

    margin:30px 0 18px;

    color:#1E293B;

}

.tpc-single-content strong{

    color:#0F172A;

}


/* ==========================================================
ARTICLE LAYOUT
========================================================== */

.tpc-article-layout{

    display:grid;

    grid-template-columns:280px minmax(0,1fr);

    gap:50px;

    align-items:start;

    margin-top:60px;

}

.tpc-sidebar{

    position:sticky;

    top:120px;

}

.tpc-sidebar-card{

    background:#fff;

    border:1px solid #E2E8F0;

    border-radius:22px;

    padding:25px;

    margin-bottom:25px;

    box-shadow:0 10px 30px rgba(15,23,42,.05);

}

.tpc-sidebar-card h3{

    margin-bottom:18px;

    font-size:22px;

}

.tpc-sidebar-guide{

    background:#F0FDF4;

}

.tpc-sidebar-btn{

    display:inline-flex;

    margin-top:15px;

    text-decoration:none;

    font-weight:700;

    color:#16A34A;

}

.tpc-article-layout{

    grid-template-columns:1fr;

}

.tpc-sidebar{

    position:static;

}


/* ==========================================
   SINGLE POST
========================================== */

.tpc-single{

    padding:70px 0 100px;

}
.tpc-single h1{

    font-size:62px;

    line-height:1.05;

    letter-spacing:-2px;

    margin-bottom:35px;

}

.tpc-single-wrapper{

    max-width:820px;

    margin:0 auto;

}

/* Featured Image */

.tpc-single-thumbnail{

    margin:40px 0;

}

.tpc-single-thumbnail img{

   width:100%;

    border-radius:26px;

    margin:45px 0;

    box-shadow:

    0 25px 70px rgba(15,23,42,.12);

    

}

/* Content */

.tpc-single-content{

    color:#334155;

}

.tpc-single-content > *{

    margin-bottom:28px;

}

.tpc-single-content img{

    width:100%;

    border-radius:20px;

    margin:35px 0;

}

.tpc-single-content ul,

.tpc-single-content ol{

    padding-left:24px;

}

.tpc-single-content li{

    margin:14px 0;

}

.tpc-single-content table{

    width:100%;

    border-collapse:collapse;

    margin:35px 0;

    overflow:hidden;

    border-radius:16px;

    background:#fff;

    box-shadow:0 10px 35px rgba(15,23,42,.05);

}

.tpc-single-content th{

    background:#22C55E;

    color:#fff;

    padding:18px;

}

.tpc-single-content td{

    padding:18px;

    border-bottom:1px solid #E2E8F0;

}

.tpc-single-content blockquote{

    background:#F0FDF4;

    border-left:5px solid #22C55E;

    padding:28px;

    border-radius:18px;

    font-style:italic;

    margin:40px 0;

}

/* Calculator CTA */

.tpc-single-cta{

    margin:70px 0;

    background:linear-gradient(135deg,#22C55E,#16A34A);

    color:#fff;

    border-radius:28px;

    padding:50px;

    text-align:center;

}

.tpc-single-cta h2{

    color:#fff;

    margin-bottom:18px;

}

.tpc-single-cta p{

    opacity:.9;

    margin-bottom:28px;

}

.tpc-single-cta a{

    display:inline-flex;

    padding:16px 30px;

    background:#fff;

    color:#16A34A;

    border-radius:16px;

    text-decoration:none;

    font-weight:700;

}

/* Related Posts */

.tpc-related-posts{

    margin-top:80px;

}

.tpc-related-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:24px;

    margin: 30px;

}

/* ==========================================
   CALCULATOR CTA
========================================== */

.tpc-single-cta{

    margin:80px 0;

    background:linear-gradient(135deg,#22C55E,#16A34A);

    color:#fff;

    padding:60px;

    border-radius:28px;

    text-align:center;

}

.tpc-single-cta h2{

    color:#fff;

    margin-bottom:18px;

}

.tpc-single-cta p{

    max-width:650px;

    margin:0 auto 30px;

    opacity:.95;

}

.tpc-single-cta .tpc-btn{

    background:#fff;

    color:#16A34A;

}

/* ==========================================
   AUTHOR BOX
========================================== */

.tpc-author-box{

    display:flex;

    align-items:flex-start;

    gap:24px;

    background:#fff;

    border:1px solid #E2E8F0;

    border-radius:24px;

    padding:35px;

    margin:70px 0;

    box-shadow:0 10px 30px rgba(15,23,42,.05);

}

.tpc-author-icon{

    width:70px;

    height:70px;

    border-radius:50%;

    background:#22C55E;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:32px;

    color:#fff;

    flex-shrink:0;

}

.tpc-author-content h3{

    margin-bottom:12px;

}

.tpc-author-content p{

    margin:0;

    color:#64748B;

}

/* ==========================================
   RELATED POSTS
========================================== */

.tpc-related-posts{

    margin-top:80px;

}

.tpc-related-posts h2{

    margin-bottom:35px;

}

.tpc-related-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.tpc-related-card{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 12px 35px rgba(15,23,42,.06);

    transition:.3s;

}

.tpc-related-card:hover{

    transform:translateY(-8px);

}

.tpc-related-image img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.tpc-related-content{

    padding:24px;

}

.tpc-related-category{

    display:inline-block;

    color:#16A34A;

    font-size:13px;

    font-weight:700;

    margin-bottom:12px;

    text-transform:uppercase;

}

.tpc-related-content h3{

    margin-bottom:18px;

    font-size:22px;

    line-height:1.4;

}

.tpc-related-content h3 a{

    text-decoration:none;

    color:#1E293B;

}

.tpc-read-more{

    color:#16A34A;

    font-weight:700;

    text-decoration:none;

}
/* ==========================================
   POST CATEGORIES
========================================== */

.tpc-post-categories{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-bottom:25px;

}

.tpc-post-categories a{

    display:inline-flex;

    align-items:center;

    padding:8px 18px;

    background:#ECFDF3;

    color:#16A34A;

    border-radius:999px;

    text-decoration:none;

    font-size:14px;

    font-weight:700;

    transition:.25s;

}

.tpc-post-categories a:hover{

    background:#22C55E;

    color:#fff;

}




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

@media(max-width:768px){

    .tpc-single-cta{

        padding:40px 25px;

    }

    .tpc-author-box{

        flex-direction:column;

        text-align:center;

        align-items:center;

    }

    .tpc-related-grid{

        grid-template-columns:1fr;

    }

}   

/* Mobile */

@media (max-width:768px){

.tpc-single{

    padding:40px 0 70px;

}

.tpc-single-wrapper{

    width:92%;
    font-size:14px;

}

.tpc-related-grid{

    grid-template-columns:1fr;

}

.tpc-single-cta{

    padding:35px 25px;

}

}

/* ==========================================================
   THE PROTEIN CALCULATOR
   PREMIUM ARTICLE COMPONENTS
========================================================== */

:root{

    --tpc-accent:#39d98a;
    --tpc-accent-light:#66e6a8;
    --tpc-bg:#0f1115;
    --tpc-card:#171b21;
    --tpc-card-2:#1d232b;
    --tpc-border:rgba(255,255,255,.08);
    --tpc-text:#f5f7fa;
    --tpc-muted:#aeb6c3;

}


/* ==========================================================
SECTION
========================================================== */

.tpc-article-section{

    margin:70px 0;

}

.tpc-article-section:first-child{

    margin-top:0;

}

.tpc-article-section:last-child{

    margin-bottom:0;

}

.tpc-article-section p{

    font-size:18px;
    line-height:1.95;
    margin:22px 0;

}


/* ==========================================================
HEADINGS
========================================================== */

.tpc-article-title{

    font-size:42px;
    font-weight:800;
    line-height:1.2;
    color:#fff;
    margin-bottom:25px;
    position:relative;
    padding-left:22px;

}

.tpc-article-title::before{

    content:"";
    position:absolute;
    left:0;
    top:6px;
    bottom:6px;
    width:5px;
    border-radius:20px;
    background:linear-gradient(to bottom,var(--tpc-accent),#7cffc0);

}

.tpc-article-subtitle{

    font-size:30px;
    font-weight:700;
    color:#fff;
    margin:50px 0 20px;

}


/*==========================================================
PREMIUM ARTICLE LIST
==========================================================*/

.tpc-article-list{

    list-style:none;
    margin:40px 0;
    padding:0;

}

.tpc-article-list li{

    position:relative;

    padding:22px 0 22px 38px;

    margin:0;

    font-size:18px;

    line-height:2;

    color:#5f6f82;

    border-bottom:1px solid #e8eef4;

    transition:all .25s ease;

}

.tpc-article-list li:last-child{

    border-bottom:none;

}

.tpc-article-list li::before{

    content:"";

    position:absolute;

    left:10px;

    top:35px;

    width:9px;

    height:9px;

    border-radius:50%;

    background:#2db45d;

    box-shadow:0 0 10px rgba(45,180,93,.25);

}

.tpc-article-list li strong{

    color:#1f2937;

    font-weight:700;

}

.tpc-article-list li:hover{

    padding-left:44px;

    background:rgba(45,180,93,.035);

}

@media (max-width:768px){

    .tpc-article-list li{

        font-size:16px;

        line-height:1.9;

        padding:18px 0 18px 24px;

    }

    .tpc-article-list li::before{

        left:8px;

        top:29px;

        width:8px;

        height:8px;

    }

}

/* ==========================================================
TABLE


.tpc-article-table-wrap{

    overflow-x:auto;
    margin:45px 0;
    border-radius:18px;

}

.tpc-article-table{

    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:18px;
    background:var(--tpc-card);

}

.tpc-article-table thead{

    background:linear-gradient(90deg,#2bbf74,#39d98a);

}

.tpc-article-table th{

    color:#fff;
    font-size:16px;
    padding:20px;
    text-align:left;

}

.tpc-article-table td{

    padding:18px 20px;
    color:var(--tpc-muted);
    border-top:1px solid rgba(255,255,255,.06);

}

.tpc-article-table tr{

    transition:.25s;

}

.tpc-article-table tbody tr:hover{

    background:#1d232b;

}


/* ==========================================================
NOTE BOX

.tpc-article-note{

    background:rgba(52,152,219,.08);
    border-left:5px solid #3498db;
    padding:28px;
    border-radius:18px;
    margin:40px 0;

}

.tpc-article-note p{

    margin:0;

}


/* ==========================================================
TIP BOX


.tpc-article-tip{

    background:rgba(57,217,138,.08);
    border-left:5px solid var(--tpc-accent);
    padding:28px;
    border-radius:18px;
    margin:40px 0;

}

.tpc-article-tip p{

    margin:0;

}


/* ==========================================================
WARNING


.tpc-article-warning{

    background:rgba(255,179,0,.08);
    border-left:5px solid #ffb300;
    padding:28px;
    border-radius:18px;
    margin:40px 0;

}

.tpc-article-warning p{

    margin:0;

}


/* ==========================================================
HIGHLIGHT


.tpc-article-highlight{

    background:linear-gradient(135deg,#1d232b,#171b21);
    border:1px solid rgba(57,217,138,.3);
    border-radius:22px;
    padding:35px;
    margin:45px 0;

}

.tpc-article-highlight p{

    color:#fff;
    font-size:20px;
    line-height:1.8;
    margin:0;

}




/* ==========================================================
CONTENT CARD


.tpc-article-card{

    background:linear-gradient(145deg,#1b2028,#171b21);
    border:1px solid rgba(255,255,255,.06);
    border-radius:24px;
    padding:35px;
    margin:45px 0;
    transition:.35s;

}

.tpc-article-card:hover{

    transform:translateY(-6px);
    border-color:rgba(57,217,138,.35);
    box-shadow:0 20px 60px rgba(0,0,0,.35);

}


/* ==========================================================
BADGE


.tpc-article-badge{

    display:inline-flex;
    align-items:center;
    padding:8px 16px;
    border-radius:100px;
    background:rgba(57,217,138,.12);
    color:var(--tpc-accent);
    font-size:13px;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;

}


/* ==========================================================
STAT


.tpc-article-stat{

    background:linear-gradient(145deg,#202732,#171b21);
    border-radius:24px;
    padding:45px;
    text-align:center;
    margin:50px 0;
    border:1px solid rgba(57,217,138,.15);

}

.tpc-article-stat h3{

    font-size:56px;
    color:var(--tpc-accent);
    margin-bottom:10px;

}

.tpc-article-stat p{

    margin:0;
    color:#fff;

}


/* ==========================================================
QUOTE
========================================================== */

.tpc-article-quote{

    position:relative;
    padding:40px 45px;
    margin:50px 0;
    border-left:5px solid var(--tpc-accent);
    background:#171b21;
    border-radius:18px;

}

.tpc-article-quote::before{

    content:"❝";
    position:absolute;
    top:-18px;
    left:20px;
    font-size:70px;
    color:rgba(57,217,138,.2);

}

.tpc-article-quote p{

    font-size:22px;
    line-height:1.8;
    color:#fff;
    margin:0;

}


/* ==========================================================
LINKS
========================================================== */

.tpc-article-section a{

    color:var(--tpc-accent);
    text-decoration:none;
    border-bottom:1px solid transparent;
    transition:.25s;

}

.tpc-article-section a:hover{

    color:#7cffc0;
    border-color:#7cffc0;

}


/* ==========================================================
IMAGES
========================================================== */

.tpc-article-section img{

    width:100%;
    border-radius:22px;
    margin:45px 0;
    box-shadow:0 20px 50px rgba(0,0,0,.35);

}


/* ==========================================================
HR
========================================================== */

.tpc-article-section hr{

    border:none;
    height:1px;
    margin:70px 0;
    background:linear-gradient(
        to right,
        transparent,
        rgba(57,217,138,.35),
        transparent
    );

}


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

@media(max-width:768px){

    .tpc-article-section{

        margin:50px 0;

    }

    .tpc-article-section p{

        font-size:16px;
        line-height:1.9;

    }

    .tpc-article-title{

        font-size:32px;
        padding-left:18px;

    }

    .tpc-article-subtitle{

        font-size:24px;

    }

    .tpc-article-table th,
    .tpc-article-table td{

        padding:14px;

    }

    .tpc-article-card{

        padding:25px;

    }

    .tpc-article-highlight{

        padding:15px;

    }

    .tpc-article-note,
    .tpc-article-tip,
    .tpc-article-warning{

        padding:22px;

    }

    .tpc-article-stat{

        padding:30px;

    }

    .tpc-article-stat h3{

        font-size:42px;

    }

    .tpc-article-quote{

        padding:30px;

    }

    .tpc-article-quote p{

        font-size:18px;

    }

}