/*
Theme Name: NutriStudyHub Research Theme
Theme URI: https://nutristudyhub.com
Description: Health and nutrition research insights platform with modern dark design.
Version: 1.0.1
Author: NutriStudyHub Team
Text Domain: nh-theme
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
--nh-bg:#0A0A0A;
--nh-bg-card:#111111;
--nh-bg-elevated:#161616;
--nh-white:#FFFFFF;
--nh-text:#E5E5E5;
--nh-muted:#9CA3AF;
--nh-accent:#00B4D8;
--nh-accent-dark:#0096C7;
--nh-border:#1F1F1F;
--nh-border-light:#2A2A2A;
--nh-font:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:var(--nh-font);font-size:1rem;line-height:1.7;color:var(--nh-text);background:var(--nh-bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--nh-white);text-decoration:none;transition:all .3s}
a:hover{color:var(--nh-accent)}
h1,h2,h3,h4,h5{font-weight:600;line-height:1.3;color:var(--nh-white)}
h1{font-size:clamp(2.25rem,5vw,3.5rem)}
h2{font-size:clamp(1.75rem,4vw,2.5rem)}
h3{font-size:clamp(1.125rem,2.5vw,1.25rem)}
ul{list-style:none}

.nh-container{max-width:1200px;margin:0 auto;padding:0 1.5rem}
.nh-section{padding:4rem 0}

.nh-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.875rem 1.75rem;font-family:var(--nh-font);font-weight:600;font-size:.9375rem;border-radius:8px;transition:all .3s;cursor:pointer;border:none}
.nh-btn-primary{background:var(--nh-accent);color:var(--nh-bg)}
.nh-btn-primary:hover{background:var(--nh-accent-dark);color:var(--nh-bg);transform:translateY(-2px)}
.nh-btn-outline{background:transparent;color:var(--nh-white);border:1px solid var(--nh-border-light)}
.nh-btn-outline:hover{border-color:var(--nh-accent);color:var(--nh-accent)}

.nh-header{position:fixed;top:0;left:0;right:0;z-index:9999;padding:1rem 0;background:rgba(10,10,10,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--nh-border)}
.nh-header-inner{display:flex;align-items:center;justify-content:space-between}
.nh-logo{font-weight:700;font-size:1.25rem;color:var(--nh-white);display:flex;align-items:center;gap:.5rem}
.nh-logo svg{width:24px;height:24px;fill:var(--nh-accent)}
.nh-nav{display:flex;align-items:center;gap:2rem}
.nh-nav-link{font-size:.9375rem;font-weight:500;color:var(--nh-muted);transition:color .3s}
.nh-nav-link:hover,.nh-nav-link.active{color:var(--nh-white)}
.nh-nav-cta{padding:.625rem 1.25rem;background:var(--nh-accent);color:var(--nh-bg);font-weight:600;font-size:.875rem;border-radius:6px}
.nh-nav-cta:hover{background:var(--nh-accent-dark);color:var(--nh-bg)}

.nh-menu-toggle{display:none;flex-direction:column;gap:5px;width:40px;height:40px;padding:10px;background:none;border:none;cursor:pointer}
.nh-menu-toggle span{width:20px;height:2px;background:var(--nh-white);transition:all .3s;border-radius:2px}
.nh-menu-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nh-menu-toggle.active span:nth-child(2){opacity:0}
.nh-menu-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
.nh-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);opacity:0;visibility:hidden;transition:all .3s;z-index:9998}
.nh-overlay.active{opacity:1;visibility:visible}

.nh-hero{min-height:70vh;display:flex;align-items:center;padding:140px 0 60px;text-align:center;position:relative}
.nh-hero::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:600px;height:600px;background:radial-gradient(circle,rgba(0,180,216,.06) 0%,transparent 70%);pointer-events:none}
.nh-hero-inner{max-width:800px;margin:0 auto;position:relative;z-index:1}
.nh-hero-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:var(--nh-bg-elevated);border:1px solid var(--nh-border);border-radius:50px;font-size:.8125rem;color:var(--nh-muted);margin-bottom:1.5rem}
.nh-hero-badge-dot{width:8px;height:8px;background:var(--nh-accent);border-radius:50%}
.nh-hero-title{margin-bottom:1.25rem}
.nh-hero-title span{color:var(--nh-accent)}
.nh-hero-desc{font-size:1.0625rem;color:var(--nh-muted);max-width:600px;margin:0 auto 2rem;line-height:1.8}
.nh-hero-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

.nh-about{background:var(--nh-bg-card);border-top:1px solid var(--nh-border);border-bottom:1px solid var(--nh-border)}
.nh-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.nh-about-label{display:inline-block;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--nh-accent);background:rgba(0,180,216,.1);padding:.375rem .75rem;border-radius:4px;margin-bottom:1rem}
.nh-about-content h2{margin-bottom:1.25rem}
.nh-about-text{color:var(--nh-muted);line-height:1.9;margin:0}
.nh-about-img{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--nh-border)}
.nh-about-img img{width:100%;aspect-ratio:4/3;object-fit:cover}

.nh-features{background:var(--nh-bg)}
.nh-features-header{text-align:center;margin-bottom:3rem}
.nh-features-header p{color:var(--nh-muted);max-width:500px;margin:1rem auto 0}
.nh-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.nh-feature-card{padding:1.75rem;background:var(--nh-bg-card);border:1px solid var(--nh-border);border-radius:12px;transition:all .4s}
.nh-feature-card:hover{border-color:var(--nh-accent);transform:translateY(-4px)}
.nh-feature-icon{width:44px;height:44px;background:rgba(0,180,216,.1);border:1px solid rgba(0,180,216,.2);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.25rem;margin-bottom:1rem}
.nh-feature-title{font-size:1rem;font-weight:600;margin-bottom:.5rem;color:var(--nh-white)}
.nh-feature-desc{font-size:.875rem;color:var(--nh-muted);margin:0;line-height:1.7}

.nh-posts-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:2rem}
.nh-posts-more{font-size:.875rem;font-weight:600;color:var(--nh-accent);display:flex;align-items:center;gap:.5rem}
.nh-posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}

.nh-post-card{background:var(--nh-bg-card);border:1px solid var(--nh-border);border-radius:12px;overflow:hidden;transition:all .4s}
.nh-post-card:hover{border-color:var(--nh-border-light);transform:translateY(-4px)}
.nh-post-card a{display:block;color:inherit}
.nh-post-thumb{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--nh-bg-elevated)}
.nh-post-thumb>div{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2rem;color:var(--nh-accent)}
.nh-post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.nh-post-card:hover .nh-post-thumb img{transform:scale(1.05)}
.nh-post-cat-badge{position:absolute;top:12px;left:12px;padding:.375rem .75rem;background:rgba(0,180,216,.9);color:var(--nh-white);font-size:.6875rem;font-weight:600;border-radius:4px;text-transform:uppercase;letter-spacing:.02em}
.nh-post-body{padding:1.25rem}
.nh-post-meta{display:flex;align-items:center;gap:.75rem;font-size:.75rem;color:var(--nh-muted);margin-bottom:.625rem}
.nh-post-meta span{display:flex;align-items:center;gap:.25rem}
.nh-post-title{font-size:1rem;font-weight:600;line-height:1.4;margin:0 0 .75rem;color:var(--nh-white);transition:color .3s;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-post-card:hover .nh-post-title{color:var(--nh-accent)}

/* EXCERPT STYLING - 30 words */
.nh-post-excerpt{
    font-size:.8125rem;
    color:var(--nh-muted);
    line-height:1.65;
    margin:0;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.nh-cta{background:var(--nh-bg-elevated);border:1px solid var(--nh-border);border-radius:16px;padding:3.5rem;margin:0 1.5rem;text-align:center;position:relative;overflow:hidden}
.nh-cta::before{content:'';position:absolute;top:-80px;left:50%;transform:translateX(-50%);width:300px;height:300px;background:radial-gradient(circle,rgba(0,180,216,.08) 0%,transparent 70%);pointer-events:none}
.nh-cta-inner{position:relative;z-index:1}
.nh-cta h2{margin-bottom:.75rem}
.nh-cta p{color:var(--nh-muted);max-width:500px;margin:0 auto 1.5rem}
.nh-cta-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

.nh-footer{padding:3.5rem 0 1.5rem;background:var(--nh-bg);border-top:1px solid var(--nh-border)}
.nh-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;margin-bottom:2.5rem}
.nh-footer-brand{max-width:280px}
.nh-footer-logo{font-weight:700;font-size:1.125rem;color:var(--nh-white);margin-bottom:.75rem;display:flex;align-items:center;gap:.5rem}
.nh-footer-logo svg{width:20px;height:20px;fill:var(--nh-accent)}
.nh-footer-desc{font-size:.8125rem;color:var(--nh-muted);line-height:1.8;margin:0}
.nh-footer-title{font-size:.75rem;font-weight:600;color:var(--nh-white);margin-bottom:1rem;text-transform:uppercase;letter-spacing:.1em}
.nh-footer-links li{margin-bottom:.5rem}
.nh-footer-links a{font-size:.8125rem;color:var(--nh-muted)}
.nh-footer-links a:hover{color:var(--nh-accent)}
.nh-footer-bottom{padding-top:1.5rem;border-top:1px solid var(--nh-border);display:flex;justify-content:space-between;font-size:.75rem;color:var(--nh-muted)}

.nh-single{padding-top:140px;padding-bottom:4rem}
.nh-single-header{max-width:720px;margin:0 auto 2.5rem;text-align:center}
.nh-single-meta{display:flex;align-items:center;justify-content:center;gap:1rem;font-size:.8125rem;color:var(--nh-muted);margin-bottom:1.25rem}
.nh-single-cat{color:var(--nh-accent);font-weight:600}
.nh-single-title{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.25;margin-bottom:0}
.nh-single-img{max-width:900px;margin:0 auto 2.5rem}
.nh-single-img img{width:100%;border-radius:12px;border:1px solid var(--nh-border)}
.nh-single-body{max-width:680px;margin:0 auto}
.nh-single-body p{font-size:1.0625rem;line-height:2;margin-bottom:1.5rem;color:var(--nh-text)}
.nh-single-body h2,.nh-single-body h3{margin-top:2rem;margin-bottom:1rem}
.nh-single-body ul,.nh-single-body ol{margin-bottom:1.5rem;padding-left:1.25rem}
.nh-single-body li{margin-bottom:.5rem;list-style:disc;color:var(--nh-muted)}
.nh-single-body blockquote{margin:2rem 0;padding:1.25rem 1.5rem;background:var(--nh-bg-card);border-left:3px solid var(--nh-accent);border-radius:0 8px 8px 0;font-style:italic;color:var(--nh-muted)}
.nh-single-body a{color:var(--nh-accent);text-decoration:underline}

.nh-archive{padding-top:140px}
.nh-archive-header{margin-bottom:2.5rem;text-align:center}
.nh-archive-header p{color:var(--nh-muted);margin-top:.75rem}

.nh-pagination{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:2.5rem}
.nh-pagination a,.nh-pagination span{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 .75rem;background:var(--nh-bg-card);border:1px solid var(--nh-border);border-radius:8px;font-size:.8125rem;color:var(--nh-muted)}
.nh-pagination a:hover,.nh-pagination .current{background:var(--nh-accent);border-color:var(--nh-accent);color:var(--nh-bg)}

.nh-empty{grid-column:1/-1;text-align:center;padding:3rem;background:var(--nh-bg-card);border:1px solid var(--nh-border);border-radius:12px}
.nh-empty p{color:var(--nh-muted);margin:0}

@media(max-width:1024px){
.nh-about-grid{grid-template-columns:1fr}
.nh-features-grid{grid-template-columns:repeat(2,1fr)}
.nh-posts-grid{grid-template-columns:repeat(2,1fr)}
.nh-footer-grid{grid-template-columns:1fr 1fr}
.nh-cta{margin:0 1rem;padding:2.5rem}
}

@media(max-width:768px){
html{font-size:15px}
.nh-container{padding:0 1rem}
.nh-section{padding:3rem 0}
.nh-menu-toggle{display:flex}
.nh-nav{position:fixed;top:0;right:-100%;width:85%;max-width:300px;height:100vh;background:var(--nh-bg);flex-direction:column;align-items:stretch;padding:70px 1.25rem 1.5rem;border-left:1px solid var(--nh-border);transition:right .3s;gap:0;z-index:10000}
.nh-nav.active{right:0}
.nh-nav-link{padding:.875rem 0;border-bottom:1px solid var(--nh-border);font-size:1rem}
.nh-nav-cta{margin-top:1.25rem;text-align:center}
.nh-hero{min-height:auto;padding:110px 0 50px}
.nh-hero-btns{flex-direction:column}
.nh-features-grid{grid-template-columns:1fr}
.nh-posts-header{flex-direction:column;align-items:flex-start;gap:.75rem}
.nh-posts-grid{grid-template-columns:1fr}
.nh-cta{margin:0;border-radius:0;padding:2.5rem 1.25rem}
.nh-cta-btns{flex-direction:column}
.nh-footer{padding:2.5rem 0 1.25rem}
.nh-footer-grid{grid-template-columns:1fr;gap:1.5rem}
.nh-footer-bottom{flex-direction:column;gap:.375rem;text-align:center}
}
