/*
Theme Name: Verified Software Hub
Theme URI: https://verifiedsoftwarehub.com/
Author: Verified Software Hub
Author URI: https://verifiedsoftwarehub.com/
Description: Lightweight, modern WordPress theme for digital product reviews and affiliate publishing.
Version: 1.0.7
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: Copyright (C) 2026 Verified Software Hub
Text Domain: verified-software-hub
Tags: blog, news, grid-layout, custom-logo, custom-menu, featured-images
*/

/*
 * Verified Software Hub WordPress Theme
 * Copyright (C) 2026 Verified Software Hub
 *
 * This file is part of Verified Software Hub.
 *
 * Verified Software Hub is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 2 of the License, or (at your option)
 * any later version.
 *
 * Verified Software Hub is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this theme. If not, see <https://www.gnu.org/licenses/>.
 */

:root{--vsh-green:#16835d;--vsh-green-dark:#106747;--vsh-ink:#17221d;--vsh-muted:#64716b;--vsh-border:#e4ebe7;--vsh-bg:#f7faf8;--vsh-white:#fff;--vsh-radius:16px;--vsh-shadow:0 8px 28px rgba(17,45,31,.07);--vsh-width:1200px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--vsh-bg);color:var(--vsh-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.7}img{max-width:100%;height:auto;display:block}a{color:var(--vsh-green-dark);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}.site-container{width:min(var(--vsh-width),calc(100% - 36px));margin-inline:auto}.skip-link{position:absolute;left:-9999px;top:auto}.skip-link:focus{left:12px;top:12px;background:#fff;padding:12px;z-index:9999}.site-header{background:#fff;border-bottom:1px solid var(--vsh-border)}.topbar{background:#123e2d;color:#e9fff4;font-size:13px}.topbar-inner{display:flex;justify-content:space-between;gap:16px;padding:7px 0}.topbar a{color:#fff}.header-main{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0}.site-branding{display:flex;align-items:center;gap:12px;min-width:0}.custom-logo{max-height:52px;width:auto}.site-title{font-weight:800;font-size:23px;line-height:1.2;letter-spacing:-.5px;color:var(--vsh-ink)}.site-description{margin:4px 0 0;color:var(--vsh-muted);font-size:13px}.primary-navigation ul{display:flex;flex-wrap:wrap;align-items:center;gap:20px;list-style:none;margin:0;padding:0}.primary-navigation a{font-weight:650;color:var(--vsh-ink);font-size:14px}.menu-toggle{display:none;border:1px solid var(--vsh-border);background:#fff;border-radius:9px;padding:8px 12px}.hero{width:100%;margin:0 0 36px;padding:0;border-radius:0;background:linear-gradient(120deg,#103d2d,#16835d);color:#fff;position:relative;overflow:hidden}
.hero-inner{width:min(var(--vsh-width),calc(100% - 36px));margin-inline:auto;padding:clamp(34px,5vw,62px) 0}.hero:after{content:"";position:absolute;width:280px;height:280px;border:48px solid rgba(255,255,255,.08);border-radius:50%;right:-70px;top:-95px}.hero-content{max-width:720px;position:relative;z-index:1}.eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#c6f7dd}.hero h1{font-size:clamp(30px,4.5vw,48px);line-height:1.15;letter-spacing:-1.3px;margin:10px 0 14px;color:#fff}.hero p{font-size:17px;max-width:640px;color:#e5f6ed;margin:0 0 24px}.button,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;background:var(--vsh-green);color:#fff;border:0;border-radius:9px;padding:11px 17px;font-weight:750}.hero .button{background:#fff;color:#12452f}.button:hover,.wp-block-button__link:hover{background:var(--vsh-green-dark);color:#fff;text-decoration:none}.hero .button:hover{background:#e8f7ef;color:#12452f}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:36px 0 18px}.section-heading h2{margin:0;font-size:clamp(22px,3vw,29px);letter-spacing:-.6px;line-height:1.25}.section-heading p{margin:5px 0 0;color:var(--vsh-muted)}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.post-card,.content-card,.sidebar-widget{background:#fff;border:1px solid var(--vsh-border);border-radius:var(--vsh-radius);overflow:hidden;box-shadow:var(--vsh-shadow)}.post-card{display:flex;flex-direction:column;min-width:0}.post-thumbnail{aspect-ratio:16/9;background:#e9f2ed;overflow:hidden}.post-thumbnail img{width:100%;height:100%;object-fit:contain;transition:transform .25s ease}.post-card:hover .post-thumbnail img{transform:none}.post-card-body{padding:17px;display:flex;flex-direction:column;flex:1}.post-meta{font-size:12px;color:var(--vsh-muted);display:flex;flex-wrap:wrap;gap:9px;margin-bottom:9px}.post-card h2,.post-card h3{font-size:18px;line-height:1.35;letter-spacing:-.3px;margin:0 0 10px}.post-card h2 a,.post-card h3 a{color:var(--vsh-ink)}.post-card p{color:var(--vsh-muted);margin:0 0 16px}.read-more{margin-top:auto;font-weight:750}.layout-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start}.content-card{padding:clamp(22px,4vw,42px)}.entry-header{margin-bottom:24px}.entry-title{font-size:clamp(30px,4.5vw,44px);line-height:1.16;letter-spacing:-1px;margin:0 0 14px}.entry-content{overflow-wrap:anywhere}.entry-content h2{font-size:clamp(24px,3vw,30px);line-height:1.3;margin-top:1.8em}.entry-content h3{font-size:21px;line-height:1.35;margin-top:1.6em}.entry-content p,.entry-content li{line-height:1.85}.entry-content blockquote{border-left:4px solid var(--vsh-green);margin-inline:0;padding:12px 20px;background:#f0f8f3}.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}.entry-content th,.entry-content td{border:1px solid var(--vsh-border);padding:10px;text-align:left}.entry-content .wp-block-image img{border-radius:12px}.affiliate-disclosure{padding:13px 16px;border:1px solid #cfe8d9;background:#f0faf4;border-radius:10px;font-size:13px;color:#315343;margin:18px 0 24px}.sidebar{display:grid;gap:20px}.sidebar-widget{padding:20px}.sidebar-widget h2,.sidebar-widget h3{font-size:18px;margin:0 0 12px}.sidebar-widget ul{padding-left:20px;margin:0}.sidebar-widget li+li{margin-top:8px}.pagination,.nav-links{display:flex;gap:8px;flex-wrap:wrap;margin:32px 0}.page-numbers{padding:8px 13px;background:#fff;border:1px solid var(--vsh-border);border-radius:8px}.page-numbers.current{background:var(--vsh-green);color:#fff;border-color:var(--vsh-green)}.site-footer{margin-top:60px;background:#102d22;color:#e8f4ed;padding:42px 0 22px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}.site-footer a{color:#d6f4e3}.site-footer h2,.site-footer h3{color:#fff;font-size:17px}.footer-bottom{border-top:1px solid rgba(255,255,255,.16);margin-top:30px;padding-top:18px;font-size:13px;color:#bfd4c8}.footer-menu{list-style:none;padding:0;margin:0}.footer-menu li+li{margin-top:8px}.search-form{display:flex;gap:8px}.search-form label{flex:1}.search-field{width:100%;min-width:0;padding:10px 12px;border:1px solid var(--vsh-border);border-radius:8px}.search-submit{border:0;border-radius:8px;background:var(--vsh-green);color:#fff;padding:10px 14px}.comment-list{padding-left:20px}.comment-respond input,.comment-respond textarea{max-width:100%;padding:10px;border:1px solid var(--vsh-border);border-radius:8px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.primary-navigation ul{gap:12px}.layout-grid{grid-template-columns:minmax(0,1fr) 250px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-main{gap:14px}}
@media(max-width:700px){.site-container{width:min(var(--vsh-width),calc(100% - 26px))}.topbar-inner{font-size:12px}.header-main{flex-wrap:wrap}.menu-toggle{display:inline-flex}.primary-navigation{display:none;width:100%}.primary-navigation.is-open{display:block}.primary-navigation ul{display:grid;gap:0}.primary-navigation li{border-top:1px solid var(--vsh-border);padding:10px 0}.layout-grid{grid-template-columns:1fr}.post-grid{grid-template-columns:1fr}.hero{margin:0;border-radius:0}.hero-inner{width:calc(100% - 26px);padding:34px 0}.footer-grid{grid-template-columns:1fr;gap:18px}.site-title{font-size:20px}.content-card{padding:21px}.section-heading{align-items:start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Sidebar utilities and complete featured-image display. */
.sidebar-post-list{list-style:none!important;padding:0!important;margin:0!important}.sidebar-post-list li+li{border-top:1px solid var(--vsh-border);padding-top:10px;margin-top:10px}.sidebar-post-list a{font-weight:700;line-height:1.45;display:block}.sidebar-date{display:block;font-size:12px;color:var(--vsh-muted);margin-top:3px}.sidebar-search .search-form{display:flex;flex-wrap:nowrap}.sidebar-search .search-submit{flex-shrink:0}.single .entry-header>.post-thumbnail{aspect-ratio:auto;height:auto;overflow:visible;background:transparent;margin:18px 0 24px}.single .entry-header>.post-thumbnail img{width:auto;max-width:100%;height:auto;max-height:760px;object-fit:contain;margin-inline:auto;border-radius:12px}.post-card .post-thumbnail{display:flex;align-items:center;justify-content:center}.post-card .post-thumbnail img{max-height:260px}

/* Layout refinements: keep the built-in review sidebar on the right. */
.layout-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start}
.layout-grid> .sidebar{min-width:0;grid-column:2;grid-row:1}
.layout-grid> :not(.sidebar){min-width:0;grid-column:1;grid-row:1}
.featured-sidebar-item{display:flex;align-items:flex-start;gap:11px;list-style:none}
.featured-sidebar-item+.featured-sidebar-item{border-top:1px solid var(--vsh-border);padding-top:12px;margin-top:12px}
.featured-sidebar-image{display:block;flex:0 0 78px;width:78px;aspect-ratio:1/1;background:#f0f5f2;border-radius:6px;overflow:hidden}
.featured-sidebar-image img{width:100%;height:100%;object-fit:contain}
.featured-sidebar-copy{min-width:0;flex:1}
.featured-sidebar-copy>a{display:block;font-weight:750;line-height:1.35}
.featured-sidebar-copy p{font-size:12px;line-height:1.5;color:var(--vsh-muted);margin:5px 0 0}
.single .entry-header>.post-thumbnail img{border-radius:8px;object-fit:contain;object-position:center}
.single .entry-header>.post-thumbnail{border-radius:8px}
@media(max-width:900px){.layout-grid{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:700px){.layout-grid{grid-template-columns:minmax(0,1fr)}.layout-grid> .sidebar,.layout-grid> :not(.sidebar){grid-column:1;grid-row:auto}.layout-grid> .sidebar{margin-top:24px}}

/* V1.0.4: comment form polish, post-navigation buttons, and compact excerpts. */
.post-card p{font-size:13px;line-height:1.5;margin:0 0 12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.post-card p::after{content:"";}
/* Explicit ellipsis is appended by the template when excerpts are trimmed. */
.featured-sidebar-copy p,.latest-sidebar-copy p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.comments-area{margin-top:26px;padding:24px;background:#fff;border:1px solid var(--vsh-border);border-radius:var(--vsh-radius);box-shadow:var(--vsh-shadow)}
.comments-area h2,.comments-area .comments-title{font-size:22px;line-height:1.3;margin:0 0 18px}
.comment-list{padding-left:22px;margin:0 0 22px}
.comment-list .comment-body{padding:14px 16px;margin:0 0 12px;background:#f7faf8;border:1px solid var(--vsh-border);border-radius:10px}
.comment-list .comment-meta{font-size:12px;color:var(--vsh-muted);margin-bottom:8px}
.comment-list .comment-content p{margin:0 0 8px;line-height:1.65}
.comment-respond{margin-top:20px}
.comment-respond label{display:block;font-size:14px;font-weight:650;margin-bottom:6px}
.comment-respond input:not([type=checkbox]):not([type=submit]),.comment-respond textarea{display:block;width:100%;max-width:100%;padding:11px 13px;border:1px solid #d5e2da;border-radius:9px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}
.comment-respond input:focus,.comment-respond textarea:focus{outline:none;border-color:var(--vsh-green);box-shadow:0 0 0 3px rgba(22,131,93,.12)}
.comment-respond textarea{min-height:130px;resize:vertical}
.comment-respond input[type=submit],.comment-respond .submit{display:inline-flex;align-items:center;justify-content:center;padding:10px 17px;border:1px solid var(--vsh-green);border-radius:9px;background:var(--vsh-green);color:#fff;font-weight:700;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.comment-respond input[type=submit]:hover,.comment-respond .submit:hover{background:var(--vsh-green-dark);border-color:var(--vsh-green-dark);transform:translateY(-1px)}
.comment-respond input[type=submit]:disabled{opacity:.7;cursor:wait;transform:none}
.comment-submit-loading{display:inline-flex;align-items:center;gap:8px}
.comment-submit-loading:before{content:"";width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:vsh-spin .7s linear infinite}
@keyframes vsh-spin{to{transform:rotate(360deg)}}
.post-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}
.post-navigation .nav-links{display:contents}
.post-navigation .nav-previous,.post-navigation .nav-next{min-width:0}
.post-navigation a{display:block;height:100%;padding:13px 15px;border:1px solid var(--vsh-border);border-radius:10px;background:#fff;color:var(--vsh-ink);font-size:14px;font-weight:700;line-height:1.45;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.post-navigation a:hover{background:#f0faf4;border-color:#9fcdb5;text-decoration:none;transform:translateY(-1px)}
.post-navigation .post-title{display:block;margin-top:4px;color:var(--vsh-green-dark)}
@media(max-width:500px){.post-navigation{grid-template-columns:1fr}.comments-area{padding:18px}}


/* V1.0.5: consistent compact excerpts and a roomier comment editor. */
.post-card-body>p{font-size:14px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-bottom:14px}
.featured-sidebar-copy p,.latest-sidebar-copy p{font-size:12.5px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:6px 0 0;color:var(--vsh-muted)}
.comment-respond textarea{min-height:180px;line-height:1.65}
.comment-respond input[type=submit],.comment-respond .submit{min-height:44px}
.comment-submit-loading{pointer-events:none}


/* WordPress core content classes */
.alignleft{float:left;margin:.35em 1.25em .8em 0}
.alignright{float:right;margin:.35em 0 .8em 1.25em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.alignnone{margin:.35em 0 .8em}
.wp-caption{max-width:100%;padding:6px;border:1px solid var(--vsh-border);background:#fff;border-radius:8px}
.wp-caption img{display:block;margin:0 auto}
.wp-caption-text,.gallery-caption{margin:7px 0 2px;color:var(--vsh-muted);font-size:13px;line-height:1.5;text-align:center}
.sticky{position:relative}
.bypostauthor>.comment-body{border-left:3px solid var(--vsh-green);padding-left:12px}
@media(max-width:600px){.alignleft,.alignright{float:none;display:block;margin:1em auto;max-width:100%}}
