/*
 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
*/

/* All Archives Images & Expert */
.archives-feature-img {
	height: 100%;
	border-radius: 12px;
}

.archives-feature-img:hover {
	opacity: 80%;
}

.dynamic-entry-excerpt {
    font-size: 14px;
    line-height: 1.4;
}

/* Author Avator */
.author .page-header .avatar {
	border-radius: 50px;
}

/* In-Article Links */
.entry-content a {
	text-decoration: underline;
}

.entry-content a:hover {
	text-decoration: none;
}

/* Expert */
.entry-summary p {
	margin-bottom: 30px;
	line-height: 1.5;
	font-size: 14px;
}

/* All Meta */
.entry-meta {
	font-size: 13px;
}

/* All Images */
body.archive .post-image img,
body.search .post-image img,
body.blog .post-image img,
body.author .post-image img,
body.home .post-image img {
	border-radius: 10px;
}

.single-post .entry-content img,
.page-header-image-single .attachment-full {
	border-radius: 12px;
}

.post-image-above-header .inside-article .post-image {
	margin-bottom: 0.8em!important;
}

/* Widgets Title */
.comments-area h3,
.widget h2 {
	font-size: 18px;
	font-weight: 700;
	border-bottom: 4px solid var(--border-color);
	padding-bottom: 10px;
}

/* Header */
.site-header {
	border-bottom: 1px solid var(--border-color);
}

/* Navigation Links */
.main-navigation ul a {
  position: relative;
  display: inline-block;
  color: inherit;
  padding-bottom: 0px;
}

.main-navigation span.gp-icon.icon-arrow {
	display: none;
}

/* Nav Underline Effect */
.main-navigation ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease-in-out;
}

.main-navigation ul a:hover::after,
.main-navigation ul a:focus::after {
  width: 100%;
}

/* Dropdown Menu */
.main-navigation:not(.toggled) ul li.sfHover > ul,
.main-navigation:not(.toggled) ul li:hover > ul {
	border: 1px solid var(--border-color);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


/* Off Canvas Menu */
#generate-slideout-menu {
	padding: 10px 20px;
}

/* Search */
.search-modal-form {
	border-radius: 50px;
}

.search-modal-form .search-field,
.search-modal-form .search-field:focus {
	border-radius: 50px 0 0px 50px;
	outline: none;
	border: none;
}

/* lists */
.entry-content ul > li,
.entry-content ol > li {
	margin-left: -20px;
}

/* All Meta */
.entry-meta {
	font-size: 13px;
	line-height: 1.5;
}

a.generate-back-to-top {
	border-radius: 50px;
}

.nav-links .page-numbers {
	display: inline-block;
	padding: 6px 15px;
	margin: 0 5px;
	font-size: 13px;
	font-weight: bold;
	border-radius: 4px;
	text-decoration: none;
	color: var(--contrast);
}

.nav-links .page-numbers:hover {
	color: var(--base-3);
	background: var(--accent);
}

.nav-links .page-numbers.current {
	color: var(--base-3);
	background: var(--accent);
}

a.read-more.button,
.wp-block-search__button {
	padding: 8px 25px;
	border-radius: 4px;
}

/* Layout & Structure */
.post-image-above-header .inside-article .post-image {
	margin-bottom: 0.8em!important;
}

/* Tables */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: var(--base-2);
}

.wp-block-table.is-style-stripes {
	border: none;
}

.wp-block-table {
	margin: 2.5em 0;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--border-color);
}

figcaption {
	font-size: 13px;
	text-align: center;
}

/* Forms & Comments */
form input[type="text"],
form input[type="email"] {
	width: 100%;
	border-radius: 4px;
}

form input[type="submit"] {
	border-radius: 4px;
}

form textarea {
	width: 100%;
	height: 120px;
	border-radius: 6px;
}

.comment-form #url {
	display: none;
}

/* Search Block */
.wp-block-search__input {
	font-size: 13px;
}

.wp-block-search__input:focus {
	outline: none;
	box-shadow: none;
}

/* Widgets & Sidebars */
.wp-block-pullquote {
	font-size: 16px;
}

/* Sidebar Last Widget Sticky */
@media (min-width: 769px) {
	.inside-right-sidebar {
		height: 100%;
	}
	
.inside-right-sidebar aside:last-child {
	position: -webkit-sticky;
	position: sticky;
	top: 70px;
  }
}

/* Responsive Layout */
@media (max-width: 768px) {
	.entry-meta {
		font-size: 12px;
	}
	.nav-links .page-numbers{
		margin-bottom: 15px;
	}
}