/*
Theme Name: Hosting Review Portal
Theme URI: https://cpwebhosting.com/
Author: CPwebhosting Pvt. Ltd.
Author URI: https://cpwebhosting.com/
Description: Professional theme for a hosting review and comparison website: shared, VPS, dedicated, cloud, reseller, Magento, Windows, Java hosting and domain providers. Built for Elementor and the Classic editor. Pairs with the Hosting Review Core plugin (search, reviews, comparison, tools, editable header and footer).
Version: 3.0.0
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hosting-review-portal
Tags: one-column, custom-logo, custom-menu, featured-images, full-width-template, editor-style, threaded-comments, translation-ready, blog, business
*/

:root {
	--navy: #050b1f;
	--navy-2: #0b1f5c;
	--accent: #1f5bff;
	--accent-dark: #1446d6;
	--ink: #0a0f1f;
	--muted: #5b6b82;
	--soft: #f5f8fc;
	--line: #e2e8f0;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	overflow-x: clip;
	overflow-wrap: break-word;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	background: #fff;
	line-height: 1.65;
	font-size: 16px;
}
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy-2); }
img, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.container.narrow { width: min(850px, calc(100% - 40px)); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; left: 8px; top: 8px; padding: 10px 14px; background: #fff; color: var(--ink); }

/* Header (default; replaced by an editable Header layout when one is active) */
.site-header {
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(150%) blur(6px);
}
.site-header .header-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; min-height: 70px; padding: 12px 0; }
.site-brand { font-size: 1.3rem; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.site-brand span { color: var(--accent); }
.site-header .menu { display: flex; gap: 6px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header .menu a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; }
.site-header .menu a:hover { color: var(--accent-dark); }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 44px 0 36px; font-size: .95rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #93c5fd; }
.site-footer .menu { display: flex; gap: 6px 22px; list-style: none; margin: 14px 0; padding: 0; flex-wrap: wrap; }
.site-footer p { margin: 0 0 12px; }

/* Content */
.site-main { padding: 52px 0 72px; }
.site-main.is-full { padding: 0; }
.entry-title { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 16px; letter-spacing: -.02em; }
.entry-meta { color: var(--muted); font-size: .9rem; margin: -6px 0 22px; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.entry-content h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content pre { overflow-x: auto; max-width: 100%; background: var(--soft); padding: 14px 16px; border-radius: var(--radius); }
.entry-content code { overflow-wrap: anywhere; }
.entry-content .wp-block-table, .entry-content figure.wp-block-table { overflow-x: auto; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .2em 1.2em; color: var(--muted); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--soft); font-weight: 700; }
.entry-thumb { margin: 0 0 26px; }
.entry-thumb img { border-radius: 14px; display: block; box-shadow: var(--shadow); }
.alignwide { margin-inline: calc((100% - min(1160px, 100vw - 40px)) / 2); max-width: min(1160px, 100vw - 40px); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .87rem; color: var(--muted); }
.sticky .post-card { border-color: var(--accent); }

/* Lists and archives */
.archive-header { margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.archive-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 10px; letter-spacing: -.02em; }
.archive-header p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.post-list { display: grid; gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; min-width: 0; overflow-wrap: anywhere; background: #fff; box-shadow: var(--shadow); }
.post-card h2 { font-size: 1.4rem; margin: 0 0 6px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-dark); }
.post-card p { margin: 8px 0 0; color: var(--muted); }
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.page-numbers { padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-navigation .nav-links { justify-content: space-between; }

/* Forms */
.search-form { display: flex; gap: 8px; max-width: 540px; }
.search-form .search-field { flex: 1; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
.search-form .search-field:focus { outline: 3px solid #bfdbfe; outline-offset: 1px; border-color: var(--accent); }
.search-form .search-submit, .button, button.submit, input[type="submit"] { background: var(--accent); color: #fff; border: 0; padding: 11px 20px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.search-form .search-submit:hover, .button:hover, input[type="submit"]:hover { background: var(--accent-dark); }

/* Comments */
.comments-area { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }

/* Elementor: let full-width sections touch the edges */
.elementor-page .site-main { padding: 0; }

/* Tablet */
@media (max-width: 1024px) {
	.container { width: calc(100% - 48px); }
	.container.narrow { width: min(850px, calc(100% - 48px)); }
}

/* Phone */
@media (max-width: 700px) {
	.container, .container.narrow { width: calc(100% - 32px); }
	.site-main { padding: 34px 0 52px; }
	.site-header .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
	.entry-title, .archive-header h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
	.post-card { padding: 18px; }
	.post-card h2 { font-size: 1.2rem; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.entry-content table { display: block; overflow-x: auto; }
	.comment-list .children { padding-left: 12px; }
	.search-form { flex-direction: column; }
	.post-navigation .nav-links { flex-direction: column; }
}

/* ---- Vibrant theme pass ---- */
.site-header { background: rgba(5,11,31,.92); }
.site-footer { background: #050b1f; }
.hr-button, .button, button.button, a.button { border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(31,91,255,.35); }
.hr-button:hover, .button:hover { background: var(--accent-dark); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; }
.post-card { border-radius: 18px; box-shadow: 0 14px 34px rgba(5,11,31,.08); }
.site-header a, .site-header .site-brand, .site-header .site-brand span { color: #fff; }
.site-header .site-brand span { color: #7fa8ff; }
