/*
Theme Name: HealthTips Express Custom
Theme URI: https://healthtipsexpress.com/
Author: HealthTips Express
Description: Lightweight custom WordPress theme for HealthTips Express. Full-width responsive homepage with WordPress Customizer controls.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: healthtips-express
*/

:root{
  --hte-green:#74d84a;
  --hte-green-dark:#062014;
  --hte-green-mid:#2d8c45;
  --hte-text:#1d2721;
  --hte-muted:#66716a;
  --hte-bg:#ffffff;
  --hte-soft:#f2f8f3;
  --hte-border:#dce7df;
  --hte-radius:18px;
  --hte-shadow:0 12px 32px rgba(20,45,28,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--hte-text);font-family:Arial,Helvetica,sans-serif;line-height:1.65}
img{max-width:100%;height:auto;display:block;image-rendering:auto}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.container{width:min(1180px,calc(100% - 36px));margin-inline:auto}
.site-main{overflow:hidden}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:12px;top:12px;background:#fff;padding:8px 12px;z-index:9999;transform:translateY(-150%)}
.skip-link:focus{transform:none}
.section{padding:74px 0}
.section-heading{text-align:center;margin:0 auto 34px;max-width:720px}
.section-heading .eyebrow{display:block;color:var(--hte-green-mid);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}
.section-heading h2{margin:0;font-size:32px;line-height:1.2}
.section-heading h2:after{content:"";display:block;width:48px;height:3px;background:var(--hte-green);margin:13px auto 0;border-radius:3px}
.section-heading p{color:var(--hte-muted);margin:12px 0 0}

/* Header */
.site-header{position:relative;background:#fff;border-bottom:1px solid #e7eee9;z-index:20}
.header-inner{min-height:72px;display:flex;align-items:center;gap:28px}
.site-branding{display:flex;align-items:center;gap:9px;font-weight:800;white-space:nowrap}
.custom-logo{max-height:42px;width:auto}
.site-title{font-size:20px;color:#1b2b20}
.site-title span{color:var(--hte-green-mid)}
.main-navigation{margin-left:auto}
.main-navigation ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:25px}
.main-navigation a{font-size:14px;font-weight:600;color:#27332c}
.main-navigation a:hover,.main-navigation .current-menu-item>a{color:var(--hte-green-mid)}
.header-search{width:38px;height:38px;border:0;background:transparent;cursor:pointer;display:grid;place-items:center}
.header-search svg{width:20px;height:20px}
.menu-toggle{display:none;border:1px solid var(--hte-border);background:#fff;border-radius:10px;padding:8px 10px}

/* Hero */
.hero{width:100%;background:linear-gradient(110deg,#03170c 0%,#062416 55%,#0b2b18 100%);color:#fff;position:relative}
.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 45%,rgba(116,216,74,.12),transparent 34%);pointer-events:none}
.hero-inner{min-height:510px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:40px;position:relative;z-index:1;padding:70px 0 82px}
.hero-copy{max-width:690px}
.hero-eyebrow{font-size:13px;color:var(--hte-green);font-weight:800;letter-spacing:.09em;text-transform:uppercase;margin:0 0 17px}
.hero h1{font-size:clamp(42px,5.2vw,72px);line-height:1.03;letter-spacing:-.035em;margin:0;font-weight:800}
.hero h1 .highlight{color:var(--hte-green)}
.hero-rule{width:245px;height:2px;background:linear-gradient(90deg,var(--hte-green),transparent);margin:22px 0}
.hero-copy p{font-size:17px;color:#dce7df;max-width:720px;margin:0 0 14px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--hte-green);color:#08220f;border:1px solid var(--hte-green);border-radius:9px;padding:12px 19px;font-size:14px;font-weight:800;transition:.2s}
.btn:hover{transform:translateY(-1px);filter:brightness(.97)}
.btn.secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.hero-visual{min-height:440px;display:flex;align-items:center;justify-content:center;overflow:visible}
.hero-image{width:min(620px,100%);height:440px;object-fit:contain;border-radius:28px;filter:drop-shadow(0 18px 35px rgba(0,0,0,.22))}
.hero-placeholder{width:min(520px,100%);height:380px;border-radius:32px;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,rgba(116,216,74,.18),transparent 45%);color:rgba(255,255,255,.35);font-size:80px}

/* Trust strip */
.trust-wrap{position:relative;margin-top:-52px;z-index:3}
.trust-strip{background:#fff;border:1px solid var(--hte-border);box-shadow:var(--hte-shadow);border-radius:18px;display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden}
.trust-item{padding:22px 20px;display:flex;align-items:center;gap:13px;border-right:1px solid var(--hte-border)}
.trust-item:last-child{border-right:0}
.trust-icon{width:46px;height:46px;flex:0 0 46px;border-radius:50%;background:#e8f5eb;color:#24853b;display:grid;place-items:center;font-weight:800}
.trust-item strong{display:block;font-size:14px;line-height:1.35}

/* Categories */
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.category-card{border:1px solid var(--hte-border);border-radius:14px;background:#fff;padding:24px 14px;text-align:center;box-shadow:0 6px 18px rgba(20,45,28,.04);transition:.2s}
.category-card:hover{transform:translateY(-4px);box-shadow:var(--hte-shadow)}
.category-icon{width:62px;height:62px;border-radius:50%;background:#edf7ef;margin:0 auto 12px;display:grid;place-items:center;font-size:28px}
.category-card h3{font-size:16px;margin:0 0 7px}
.category-card p{font-size:12px;color:var(--hte-muted);margin:0 0 12px}
.category-card .cat-link{color:var(--hte-green-mid);font-weight:800;font-size:12px}

/* Featured */
.featured-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:16px}
.featured-main{position:relative;min-height:360px;border-radius:16px;overflow:hidden;background:#0d2818;color:#fff;display:flex;align-items:flex-end}
.featured-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.78}
.featured-main:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.8),transparent 68%)}
.featured-main-content{position:relative;z-index:1;padding:25px}
.badge{display:inline-block;background:var(--hte-green);color:#08220f;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:800;text-transform:uppercase}
.featured-main h3{font-size:24px;line-height:1.2;margin:12px 0 8px}
.read-more{color:var(--hte-green);font-size:12px;font-weight:800}
.article-card{border:1px solid var(--hte-border);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 5px 18px rgba(20,45,28,.04)}
.article-thumb{height:220px;background:#edf4ee;overflow:hidden}
.article-thumb img{display:block;width:100%;height:220px;object-fit:cover;object-position:center}
.article-body{padding:14px}
.article-body h3{font-size:15px;line-height:1.35;margin:8px 0}
.article-meta{font-size:11px;color:#7a847e}

/* Latest */
.latest-list{border:1px solid var(--hte-border);border-radius:16px;overflow:hidden;background:#fff;display:grid;grid-template-columns:repeat(4,1fr)}
.latest-card{padding:18px;border-right:1px solid var(--hte-border);display:grid;grid-template-columns:86px 1fr;gap:13px}
.latest-card:last-child{border-right:0}
.latest-thumb{width:110px;height:82px;border-radius:8px;overflow:hidden;background:#edf4ee}
.latest-thumb img{width:100%;height:100%;object-fit:cover}
.latest-card h3{font-size:14px;line-height:1.35;margin:0 0 5px}
.latest-card time{font-size:11px;color:#7b857f}

/* Browse topics */
.topic-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.topic-card{position:relative;min-height:240px;border-radius:14px;overflow:hidden;color:#fff;background:#12351f}
.topic-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.7}
.topic-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.8),rgba(0,0,0,.05))}
.topic-content{position:absolute;z-index:1;left:17px;right:17px;bottom:17px}
.topic-content h3{margin:0 0 4px;font-size:17px}
.topic-content p{margin:0 0 10px;font-size:12px;color:#e4ebe6}
.topic-content a{color:var(--hte-green);font-weight:800;font-size:12px}

/* About / CTA */
.dual-cta{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.info-box{border:1px solid var(--hte-border);border-radius:18px;background:var(--hte-soft);padding:30px;min-height:220px}
.info-box h3{font-size:23px;margin:0 0 9px}
.info-box p{color:var(--hte-muted);margin:0 0 18px}
.info-box .btn{font-size:12px}


.category-article-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}
.section-soft{background:#f7fbf7}
.tips-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.tip-card{border:1px solid var(--hte-border);border-radius:16px;background:#fff;padding:25px;box-shadow:0 6px 18px rgba(20,45,28,.04)}
.tip-number{font-size:12px;color:var(--hte-green-mid);font-weight:900;letter-spacing:.08em;margin-bottom:10px}
.tip-card h3{margin:0 0 7px;font-size:18px}
.tip-card p{margin:0;color:var(--hte-muted);font-size:13px}
.newsletter-section{padding:0 0 74px}
.newsletter-box{background:linear-gradient(110deg,#062014,#103d20);border-radius:20px;padding:36px 42px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:25px}
.newsletter-box h2{font-size:29px;margin:5px 0}
.newsletter-box p{color:#dce7df;margin:0}
.newsletter-box .eyebrow{color:var(--hte-green);font-size:12px;font-weight:800;letter-spacing:.08em}

/* Author section - intentionally kept in the requested design */
.author-section{padding:18px 0 76px}
.author-box{min-height:370px;border:1px solid #dce7df;border-radius:22px;background:linear-gradient(105deg,#fbfffc,#edf6ef);display:grid;grid-template-columns:290px 1fr;align-items:center;gap:42px;padding:30px 34px}
.author-photo-wrap{display:flex;justify-content:center}
.author-photo{width:230px;height:230px;border-radius:50%;object-fit:cover;border:9px solid #fff;box-shadow:0 10px 25px rgba(24,52,31,.18),0 0 0 1px #dce7df}
.author-copy .eyebrow{font-size:13px;color:#2b8b45;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.author-copy h2{font-size:32px;line-height:1.2;margin:8px 0 20px}
.author-copy h2 span{color:#2d8c45}
.author-copy>p{font-size:16px;color:#5f6b64;max-width:850px;margin:0 0 22px}
.author-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #d5e1d8;border-radius:13px;overflow:hidden}
.author-stat{text-align:center;padding:16px 8px;border-right:1px solid #d5e1d8}
.author-stat:last-child{border-right:0}
.author-stat strong{font-size:21px;display:block}
.author-stat span{font-size:12px;color:#6a756f}

/* Footer */
.site-footer{background:#04170d;color:#d9e6dd;margin-top:0}
.footer-main{padding:54px 0 35px;display:grid;grid-template-columns:1.25fr 1fr 1fr 1.2fr;gap:35px}
.footer-brand{color:#fff;font-size:19px;font-weight:800}
.footer-brand span{color:var(--hte-green)}
.site-footer h3{font-size:13px;color:#fff;text-transform:uppercase;letter-spacing:.06em;margin:0 0 15px}
.site-footer p,.site-footer li,.site-footer a{font-size:13px;color:#aebeb4}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:0 0 7px}
.site-footer a:hover{color:var(--hte-green)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.09);padding:14px 0;text-align:center;font-size:12px;color:#8fa096}
.back-top{position:fixed;right:18px;bottom:18px;width:40px;height:40px;border:0;border-radius:9px;background:var(--hte-green);color:#08220f;cursor:pointer;font-weight:900;z-index:50}

/* Blog/archive/single */
.page-header{background:var(--hte-soft);padding:54px 0}
.page-header h1{margin:0;font-size:40px}
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.post-card{border:1px solid var(--hte-border);border-radius:16px;overflow:hidden;background:#fff}
.post-card .post-thumb{height:235px;background:#edf4ee;overflow:hidden}
.post-card .post-thumb img{display:block;width:100%;height:235px;object-fit:cover;object-position:center}
.post-card .post-content{padding:20px}
.post-card h2{font-size:21px;line-height:1.3;margin:8px 0}
.post-content .entry-meta{font-size:12px;color:#7a847e}
.single-wrap{padding:65px 0}
.single-content{width:min(820px,100%);margin:auto}
.single-content h1{font-size:46px;line-height:1.12;margin:0 0 12px}
.single-content .entry-meta{color:#6c776f;margin-bottom:30px}
.single-content .entry-content{font-size:18px;color:#2b352f}
.single-content .entry-content img{border-radius:12px;margin:24px auto}
.single-content .entry-content h2{font-size:30px;line-height:1.25;margin-top:40px}
.single-content .entry-content h3{font-size:24px;margin-top:32px}
.single-content .entry-content a{color:var(--hte-green-mid);text-decoration:underline}

/* Responsive */
@media(max-width:1050px){
  .category-grid{grid-template-columns:repeat(3,1fr)}
  .featured-grid{grid-template-columns:1.5fr 1fr 1fr}
  .featured-grid .article-card:last-child{display:none}
  .topic-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:850px){
  .main-navigation{display:none}
  .menu-toggle{display:block;margin-left:auto}
  .header-search{display:none}
  .hero-inner{grid-template-columns:1fr;padding:58px 0 82px}
  .hero-visual{min-height:260px}
  .trust-strip{grid-template-columns:repeat(2,1fr)}
  .trust-item:nth-child(2){border-right:0}
  .trust-item:nth-child(-n+2){border-bottom:1px solid var(--hte-border)}
  .latest-list{grid-template-columns:repeat(2,1fr)}
  .latest-card:nth-child(2){border-right:0}
  .latest-card:nth-child(-n+2){border-bottom:1px solid var(--hte-border)}
  .author-box{grid-template-columns:1fr;text-align:center}
  .author-copy>p{margin-inline:auto}
  .author-stats{text-align:center}
  .footer-main{grid-template-columns:repeat(2,1fr)}
  .posts-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .container{width:min(100% - 26px,1180px)}
  .section{padding:52px 0}
  .hero h1{font-size:42px}
  .hero-copy p{font-size:15px}
  .category-grid,.topic-grid,.posts-grid{grid-template-columns:1fr 1fr}
  .featured-grid{grid-template-columns:1fr}
  .featured-grid .article-card:last-child{display:block}
  .featured-main{min-height:330px}
  .latest-list{grid-template-columns:1fr}
  .latest-card{border-right:0;border-bottom:1px solid var(--hte-border)}
  .latest-card:last-child{border-bottom:0}
  .trust-strip{grid-template-columns:1fr}
  .trust-item,.trust-item:nth-child(2){border-right:0;border-bottom:1px solid var(--hte-border)}
  .trust-item:last-child{border-bottom:0}
  .author-box{padding:26px 18px}
  .author-stats{grid-template-columns:1fr 1fr}
  .author-stat:nth-child(2){border-right:0}
  .author-stat:nth-child(-n+2){border-bottom:1px solid #d5e1d8}
  .footer-main{grid-template-columns:1fr}
  .site-title{font-size:18px}
}
@media(max-width:420px){
  .category-grid,.topic-grid{grid-template-columns:1fr}
  .hero-actions .btn{width:100%}
}

@media (max-width:900px){
  .post-card .post-thumb,.post-card .post-thumb img{height:210px}
  .article-thumb,.article-thumb img{height:205px}.category-article-grid{grid-template-columns:1fr 1fr}.tips-grid{grid-template-columns:1fr 1fr}.newsletter-box{padding:30px;flex-direction:column;align-items:flex-start}}
@media (max-width:620px){
  .post-card .post-thumb,.post-card .post-thumb img{height:180px}
  .article-thumb,.article-thumb img{height:190px}.category-article-grid,.tips-grid{grid-template-columns:1fr}}
