/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Site-wide base typography, per exact spec provided (Arial/Helvetica,
   400, #333, 16px/27px). Set directly here with !important rather than
   through the Customizer's font_body/font_widget_title/etc settings -
   GeneratePress's dynamic CSS regeneration for those settings was not
   reliably reflecting updated values (confirmed the DB option itself was
   correct via wp eval, but the rendered/cached dynamic CSS kept serving
   old fonts even after deleting generate_dynamic_css_output and flushing
   the Redis object cache directly) - this file's own reliable
   load/update behavior (confirmed all session) sidesteps that entirely. */
body,
button,
input,
select,
textarea {
	font-family: Arial, Helvetica, sans-serif !important;
	font-weight: 400 !important;
	font-size: 16px !important;
	line-height: 27px !important;
}

/* Color only on body text, NOT buttons/inputs - a button (e.g. blue bg,
   white text) needs its own contextual text color, and lumping it in with
   body's #333 here was overriding that with !important, turning white
   button text black. */
body {
	color: rgb(51, 51, 51) !important;
}

/* Widget titles were stuck on "Lucida Console" (a stray Customizer setting)
   - just fix the family, keep their own weight/size distinct from body text. */
.widget-title {
	font-family: Arial, Helvetica, sans-serif !important;
}

/* GP forces the header logo to a fixed 60px height regardless of the
   Customizer "logo width" setting, via an inline <style> block that GP
   prints AFTER this stylesheet in <head> - so an equal-specificity rule
   here loses on source order. The logo sits in the nav, before #page even
   opens, so "body" (not #page) is the anchor that adds enough specificity
   to win while still matching. */
body .navigation-branding img,
body .site-logo.mobile-header-logo img {
	height: 90px;
	width: auto;
}

/* ==========================================================================
   WPH vpnMentor-style archive design (Home / Search / Author / Category)
   ========================================================================== */

.wph-archive-hero,
.wph-search-hero,
.wph-author-hero {
	background: #eef3fb;
	color: #2a2a2a;
	border-radius: 14px;
	padding: 40px;
	margin-bottom: 40px;
}

.wph-archive-hero__eyebrow,
.wph-search-hero__eyebrow,
.wph-author-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 13px;
	font-weight: 700;
	color: #1963c4;
	margin: 0 0 8px;
}

.wph-archive-hero__title,
.wph-search-hero__title {
	font-size: clamp(26px, 4vw, 36px);
	line-height: 1.2;
	margin: 0 0 12px;
	color: #123f7d;
}

.wph-archive-hero__desc {
	color: #495566;
	max-width: 720px;
	margin-bottom: 12px;
}

.wph-archive-hero__count,
.wph-author-hero__info .wph-archive-hero__count {
	color: #667385;
	font-size: 14px;
	margin: 0;
}

.wph-archive-hero__count strong {
	color: #123f7d;
}

/* Author hero */
.wph-author-hero {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	flex-wrap: wrap;
}

.wph-author-hero__aside {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.wph-author-hero__avatar {
	border-radius: 50%;
	border: 3px solid #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	flex-shrink: 0;
}

.wph-author-hero__social {
	display: flex;
	gap: 10px;
}

.wph-author-hero__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: #1963c4;
	color: #ffffff;
	transition: background 0.2s ease;
}

.wph-author-hero__social a:hover {
	background: #123f7d;
}

.wph-author-hero__social svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.wph-author-hero__info {
	flex: 1;
	min-width: 240px;
}

.wph-author-hero__name {
	font-size: clamp(24px, 3.5vw, 32px);
	margin: 0 0 8px;
	color: #123f7d;
}

.wph-author-hero__bio {
	color: #495566;
	max-width: 680px;
	margin: 0 0 8px;
}

.wph-author-hero__link {
	display: inline-block;
	color: #1963c4;
	font-weight: 600;
	text-decoration: underline;
	margin-bottom: 8px;
}

.wph-404-hero__home {
	margin-top: 18px;
}

/* Search form inside hero */
.wph-search-hero__form {
	display: flex;
	max-width: 520px;
	margin-top: 16px;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.wph-search-hero__input {
	flex: 1;
	border: none;
	padding: 14px 16px;
	font-size: 15px;
	color: #3a3a3a;
	outline: none;
}

.wph-search-hero__btn {
	border: none;
	background: #ef2626;
	color: #ffffff;
	font-weight: 600;
	padding: 0 24px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wph-search-hero__btn:hover {
	background: #d51f1f;
}

/* Card grid */
.wph-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	margin-bottom: 32px;
}

.wph-card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	display: flex;
	flex-direction: column;
}

.wph-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.wph-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #eaf1fb;
	overflow: hidden;
}

.wph-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.wph-card__thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 42px;
	font-weight: 700;
	color: #1963c4;
}

.wph-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #1963c4;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 5px 10px;
	border-radius: 999px;
}

.wph-card__badge--link {
	position: static;
	display: inline-block;
	margin: 0 8px 8px 0;
	text-decoration: none;
}

.wph-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.wph-card__title {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.wph-card__title a {
	color: #222222;
	text-decoration: none;
}

.wph-card__title a:hover {
	color: #1963c4;
}

.wph-card__excerpt {
	font-size: 14px;
	color: #666666;
	margin: 0 0 14px;
	flex: 1;
}

.wph-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	color: #888888;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 12px;
	margin-bottom: 12px;
}

.wph-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: auto;
	background: #1963c4;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	padding: 9px 16px;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.wph-card__cta:hover {
	background: #123f7d;
	color: #ffffff;
}

/* Section title above a card grid */
.wph-section-title {
	text-align: center;
	font-size: clamp(22px, 3vw, 28px);
	color: #123f7d;
	margin: 0 0 32px;
	position: relative;
	padding-bottom: 16px;
}

.wph-section-title:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: #1963c4;
	border-radius: 2px;
}

.wph-card__author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: #444444;
}

.wph-card__author img {
	border-radius: 50%;
	margin: 0;
}

.wph-card__dot {
	color: #cccccc;
}

/* Pagination */
.wph-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 32px 0;
}

.wph-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: #ffffff;
	color: #1963c4;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.wph-pagination .page-numbers.current {
	background: #1963c4;
	color: #ffffff;
}

.wph-pagination .page-numbers.dots {
	box-shadow: none;
	background: transparent;
}

/* No results */
.wph-no-results {
	text-align: center;
	padding: 40px 20px;
	background: #f7f9fc;
	border-radius: 12px;
	margin-bottom: 32px;
}

.wph-no-results__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 16px;
}

@media (max-width: 600px) {
	.wph-archive-hero,
	.wph-search-hero,
	.wph-author-hero {
		padding: 32px 22px;
	}

	.wph-author-hero {
		flex-direction: column;
		text-align: center;
	}

	.wph-author-hero__aside {
		align-items: center;
	}

	.wph-search-hero__form {
		max-width: 100%;
	}
}

/* ==========================================================================
   WPH single post design
   ========================================================================== */

.wph-post-hero {
	margin-bottom: 24px;
	padding-left: 100px;
	padding-right: 100px;
}

.wph-post-hero__breadcrumb {
	font-size: 13px;
	color: #798599;
	margin-bottom: 12px;
}

.wph-post-hero__breadcrumb a {
	color: #798599;
}

.wph-post-hero__title {
	font-size: clamp(26px, 4vw, 40px);
	line-height: 1.25;
	margin: 12px 0 16px;
	color: #16233b;
}

.wph-post-hero__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: #798599;
}

.wph-post-hero__meta .wph-card__author {
	text-decoration: none;
}

.wph-post-featured {
	margin-bottom: 28px;
	border-radius: 12px;
	overflow: hidden;
}

.wph-post-featured img {
	width: 100%;
	height: auto;
	margin: 0;
}

/* Content + collapsible TOC. The TOC sits above the article, full-width
   within the content column - the actual side-by-side layout on single
   posts is the theme's own sidebar (Latest Posts) next to #primary, so the
   TOC must not compete with it for horizontal space as a second column. */
.wph-post-layout {
	display: block;
}

.wph-toc {
	background: #f7f9fc;
	border: 1px solid #e7ecf3;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 32px;
}

.wph-toc__title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #1963c4;
	margin: 0 0 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wph-toc__title:after {
	content: "\2212";
	font-weight: 400;
	font-size: 16px;
}

.wph-toc.is-collapsed .wph-toc__title:after {
	content: "+";
}

.wph-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
	columns: 2;
	column-gap: 24px;
}

.wph-toc.is-collapsed .wph-toc__list {
	display: none;
}

@media (max-width: 600px) {
	.wph-toc__list {
		columns: 1;
	}
}

.wph-toc__item {
	margin: 0 0 10px;
}

.wph-toc__item--3 {
	padding-left: 14px;
}

.wph-toc__item a {
	font-size: 14px;
	color: #3a4a5e;
	text-decoration: none;
	line-height: 1.4;
}

.wph-toc__item a:hover {
	color: #1963c4;
	text-decoration: underline;
}

.wph-post-content {
	min-width: 0;
	padding-left: 100px;
	padding-right: 100px;
}

/* Author box at the end of a post */
.wph-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: #f7f9fc;
	border: 1px solid #e7ecf3;
	border-radius: 12px;
	padding: 24px 100px;
	margin-top: 36px;
	margin-left: 100px;
	margin-right: 100px;
}

.wph-author-box__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.wph-author-box__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 12px;
	font-weight: 700;
	color: #1963c4;
	margin: 0 0 4px;
}

.wph-author-box__name {
	margin: 0 0 8px;
	font-size: 17px;
}

.wph-author-box__name a {
	color: #16233b;
	text-decoration: none;
}

.wph-author-box__name a:hover {
	color: #1963c4;
}

.wph-author-box__bio {
	font-size: 14px;
	color: #495566;
	margin: 0 0 10px;
}

@media (max-width: 782px) {
	.wph-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.wph-post-hero,
	.wph-post-content,
	.wph-author-box {
		padding-left: 20px;
		padding-right: 20px;
	}

	.wph-author-box {
		margin-left: 0;
		margin-right: 0;
	}
}

/* ==========================================================================
   WPH footer widgets polish
   ========================================================================== */

#footer-widgets .widget-title {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 16px;
	padding-bottom: 14px;
	position: relative;
}

#footer-widgets .widget-title:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 3px;
	background: #1963c4;
	border-radius: 2px;
}

#footer-widgets .widget_categories ul,
#footer-widgets .widget_nav_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer-widgets .widget_categories li,
#footer-widgets .widget_nav_menu li {
	margin: 0 0 10px;
}

#footer-widgets .widget_categories a,
#footer-widgets .widget_nav_menu a {
	transition: opacity 0.15s ease;
}

#footer-widgets .widget_categories a:hover,
#footer-widgets .widget_nav_menu a:hover {
	opacity: 0.75;
}

#footer-widgets .textwidget {
	line-height: 1.6;
	opacity: 0.92;
}

#footer-widgets {
	border-top: 1px solid #e4e9f2;
}

.site-info {
	border-top: 1px solid #2a2a2a;
}

.wph-footer-logo {
	max-width: 220px;
	height: auto;
	margin-bottom: 16px;
	display: block;
}

/* Single posts: GeneratePress' own default "right-sidebar" layout (the
   site-wide setting) already renders Content on the left and Sidebar on
   the right via its native float/percentage-width column system. We only
   add sticky behaviour on top of that native layout. */
.single #right-sidebar {
	position: sticky;
	top: 100px;
	align-self: start;
}

/* Wide affiliate comparison tables inside a post can force #content wider
   than its column, causing the page to feel "scrollable"/misaligned -
   give them their own contained horizontal scroll instead. */
.single #content table {
	display: block;
	overflow-x: auto;
	max-width: 100%;
}

@media (max-width: 768px) {
	.single #right-sidebar {
		position: static;
	}
}

/* WPH Latest Posts sidebar widget */
.wph-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wph-sidebar-list__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid #eef1f6;
}

.wph-sidebar-list__item:first-child {
	padding-top: 0;
}

.wph-sidebar-list__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wph-sidebar-list__thumb {
	flex-shrink: 0;
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #eaf1fb;
}

.wph-sidebar-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.wph-sidebar-list__thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 20px;
	font-weight: 700;
	color: #1963c4;
}

.wph-sidebar-list__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.wph-sidebar-list__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #16233b;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wph-sidebar-list__title:hover {
	color: #1963c4;
}

.wph-sidebar-list__date {
	font-size: 12px;
	color: #8a95a6;
}

/* "More Posts" related section - simple 2x2 grid, matching #content's own
   width naturally since it renders inside #content (no full-width/float
   tricks against the sidebar needed). */
.wph-related {
	margin-top: 40px;
}

.wph-related__title {
	text-align: left;
	margin: 0 0 20px;
}

.wph-related__title:after {
	display: none;
}

.wph-related__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

@media (max-width: 560px) {
	.wph-related__grid {
		grid-template-columns: 1fr;
	}
}

.wph-related-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: #eaf1fb;
	margin-bottom: 12px;
}

.wph-related-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.wph-related-card__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
}

.wph-related-card__title a {
	color: #16233b;
	text-decoration: none;
}

.wph-related-card__title a:hover {
	color: #1963c4;
}

/* Homepage: indent the whole article (hero + content + author box) and its
   comments section by 150px on each side. */
.home .inside-article,
.home .comments-area {
	margin-left: 150px;
	margin-right: 150px;
}

@media (max-width: 782px) {
	.home .inside-article,
	.home .comments-area {
		margin-left: 20px;
		margin-right: 20px;
	}
}

.site-info {
	padding: 15px 300px 15px 300px;
}

@media (max-width: 782px) {
	.site-info {
		padding: 15px 20px;
	}
}

