/*
Theme Name: WordPress Mentor Child
Theme URI: https://wordpressmentor.com
Description: A GeneratePress child theme reproducing the classic three-column WordPress resource blog layout. Uses only the free GeneratePress parent theme.
Author: WordPress Mentor
Author URI: https://wordpressmentor.com
Template: generatepress
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
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: wpmentor-child
Tags: blog, grid-layout, three-columns, right-sidebar, custom-colors, translation-ready
*/

:root {
	--wm-navy: #1e293b;
	--wm-navy-hover: #475569;
	--wm-blue: #1e73be;
	--wm-body: #555456;
	--wm-title: #222222;
	--wm-meta: #595959;
	--wm-topbar: #636363;
}

/* Typography: html body raises specificity above GeneratePress dynamic CSS. */
html body,
html body button,
html body input,
html body select,
html body textarea {
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 18px;
}

html body {
	line-height: 1.6;
	color: var(--wm-body);
	background-color: #ffffff;
}

html body a { color: var(--wm-blue); }
html body a:hover,
html body a:focus,
html body a:active { color: var(--wm-blue); }
html body p { margin-bottom: 1.1em; }
html body h1 { font-weight: 700; font-size: 45px; margin-bottom: 9px; color: #4c4c4c; }
html body h2 { font-weight: 300; font-size: 28px; line-height: 1.3em; margin-bottom: 18px; }
html body h3 { font-size: 20px; }
html body h4,
html body h5 { font-size: inherit; }

body .main-title {
	font-weight: 600;
	text-transform: lowercase;
	font-size: 37px;
}
body .main-title a,
body .main-title a:hover,
body .main-title a:visited { color: #ffffff; }
body .site-description { color: #ffffff; }

html body .grid-container { max-width: 1170px; }
html body .wp-block-group__inner-container { max-width: 1170px; margin-left: auto; margin-right: auto; }

/* Header and navigation */
body .site-header { background-color: var(--wm-navy); color: #ffffff; }
body .site-header a,
body .site-header a:hover { color: #ffffff; }
body .top-bar { background-color: var(--wm-topbar); color: #ffffff; }
body .top-bar a { color: #ffffff; }
body .main-navigation { background-color: var(--wm-navy); }
body .main-navigation .main-nav ul li a,
body .main-navigation .menu-toggle,
body .main-navigation .menu-bar-items { color: #ffffff; }
body .main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
body .main-navigation .main-nav ul li[class*="current-menu-"] > a {
	background-color: var(--wm-navy-hover);
	color: #ffffff;
}
body .main-navigation ul ul { background-color: #f6f9fc; }
body .main-navigation .main-nav ul ul li a { color: #000000; }
body .main-navigation .main-nav ul ul li:hover > a { color: #8f919e; background-color: #f6f9fc; }
body .main-navigation .main-nav ul li a,
body .menu-toggle { padding-left: 23px; padding-right: 23px; line-height: 54px; }
body .main-navigation .main-nav ul ul li a { padding: 10px 23px; }
body .navigation-search input[type="search"] { height: 54px; color: #222222; background-color: #ffffff; }

/* The reference header is a single row. The default 23px horizontal padding
   makes an 8-item menu wrap onto a second line at 1170px. */
@media (min-width: 1025px) {
	body .main-navigation #primary-menu > ul { flex-wrap: nowrap; }
	body .main-navigation #primary-menu > ul > li > a {
		padding-left: 12px;
		padding-right: 12px;
		white-space: nowrap;
	}
}
@media (min-width: 769px) and (max-width: 1024px) {
	body .main-navigation #primary-menu > ul > li > a {
		padding-left: 9px;
		padding-right: 9px;
		font-size: 13px;
		white-space: nowrap;
	}
}

/* Spacing */
body .inside-top-bar { padding: 10px; }
body .inside-header { padding: 10px 15px 5px 15px; }
body.separate-containers .inside-article,
body.separate-containers .comments-area,
body.separate-containers .page-header,
body.separate-containers .paging-navigation { padding: 20px 15px 30px 15px; }
body .widget-area .widget { padding: 40px 15px; }
body .site-info { padding: 20px; background-color: var(--wm-navy); color: #ffffff; }
body .site-info a { color: #ffffff; }
body .separate-containers .widget,
body .separate-containers .site-main > *,
body .separate-containers .page-header { margin-bottom: 5px; }

/* Buttons, forms, back to top */
html body button,
html body input[type="submit"],
html body a.button,
html body a.wp-block-button__link:not(.has-background) {
	background-color: var(--wm-navy-hover);
	color: #ffffff;
}
html body button:hover,
html body input[type="submit"]:hover,
html body a.button:hover { background-color: var(--wm-navy); color: #ffffff; }
html body input[type="text"],
html body input[type="email"],
html body input[type="url"],
html body input[type="password"],
html body input[type="search"],
html body textarea,
html body select { color: #666666; background-color: #fafafa; border-color: #cccccc; }
body a.generate-back-to-top { background-color: rgba(0, 0, 0, 0.4); color: #ffffff; }
body a.generate-back-to-top:hover { background-color: rgba(0, 0, 0, 0.6); }

/* Three-column blog grid (replaces the GP Premium Blog module) */
body.wm-grid .site-main {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 5px;
	align-items: stretch;
}
body.wm-grid .site-main > *:not(article) { grid-column: 1 / -1; }
body.wm-grid .site-main > article { min-width: 0; display: flex; }
body.wm-grid.separate-containers .site-main > article { margin-bottom: 0; }

.wm-card .inside-article {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 15px 30px 15px;
}
.wm-card-image { margin: 0 0 1.2em; line-height: 0; }
.wm-card-image a { display: block; }
.wm-card-image img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}
/* Fallback artwork when a post has no featured image yet. */
.wm-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	overflow: hidden;
	background-color: var(--wm-navy);
}
.wm-placeholder::before,
.wm-placeholder::after {
	content: "";
	position: absolute;
	border: 2px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
}
.wm-placeholder::before { width: 230px; height: 230px; right: -70px; top: -80px; }
.wm-placeholder::after { width: 130px; height: 130px; left: -40px; bottom: -70px; }
.wm-placeholder-mark {
	position: relative;
	z-index: 1;
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.9);
}
.wm-card .entry-header { margin-bottom: 0; }
.wm-card .entry-title {
	font-size: 23px;
	line-height: 1.3em;
	font-weight: 400;
	margin: 0 0 6px;
	text-transform: none;
}
.wm-card .entry-title a { color: var(--wm-title); }
.wm-card .entry-title a:hover { color: var(--wm-blue); }
.wm-card .entry-meta { font-size: 13px; color: var(--wm-meta); margin-bottom: 0; }
.wm-card .entry-summary { flex: 1 0 auto; font-size: 15px; line-height: 1.6; margin-top: 1.2em; }
.wm-card .entry-summary p:last-child { margin-bottom: 0; }
.wm-read-more {
	display: inline-block;
	margin-top: 1em;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}
.wm-read-more .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Single post */
.wm-single .entry-title {
	font-size: 45px;
	line-height: 1.2em;
	font-weight: 700;
	color: #4c4c4c;
	text-transform: none;
}
.wm-single .entry-meta { font-size: 14px; color: var(--wm-meta); }
.wm-single .wm-single-image { margin: 1.2em 0; text-align: center; }
.wm-single .wm-single-image img { max-width: 100%; height: auto; }
.wm-single .entry-content { font-size: 18px; }
.wm-single .entry-content h2 { font-size: 28px; }
.wm-single .entry-content h3 { font-size: 20px; }
.wm-post-footer { font-size: 14px; margin-top: 2em; }

/* Footer widgets */
body .footer-widgets { background-color: #ffffff; }
body .footer-widgets .widget-title { color: #000000; }
body .sidebar .widget .widget-title { color: #000000; }
body .sidebar .widget,
body .footer-widgets .widget { font-size: 14px; }
body .entry-title a { color: var(--wm-title); }
body .entry-meta { color: var(--wm-meta); }

/* Responsive */
@media (max-width: 1024px) {
	body.wm-grid .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	/* minmax(0, 1fr) prevents long unbreakable content from widening the
	   single column past the viewport on phones. */
	body.wm-grid .site-main { grid-template-columns: minmax(0, 1fr); }
	body.wm-grid .site-main > article,
	.wm-card .inside-article { min-width: 0; }
	.wm-card .entry-summary,
	.wm-card .entry-content { overflow-wrap: break-word; word-break: break-word; }
	.wm-card-image img { width: 100%; }
	html body h1,
	.wm-single .entry-title { font-size: 25px; }
	html body h2 { font-size: 25px; }
	body .main-title { font-size: 30px; }
	body.separate-containers .inside-article,
	body.separate-containers .comments-area,
	body.separate-containers .paging-navigation { padding: 15px 18px 15px 18px; }
	body .main-navigation .main-nav ul li a,
	body .menu-toggle { line-height: 60px; }
	body .navigation-search input[type="search"] { height: 60px; }
}
@media (max-width: 480px) {
	.wm-card-image img { height: 200px; }
}
