/**
Theme Name: THNK MACHINE
Author: Krasen Slavov
Author URI: http://krasenslavov.com/
Description: THNK MACHINE styles for Astra child-theme.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thnk-machine
Template: astra
*/

/******************************************************************************
 * Main
 *****************************************************************************/
#primary {
	margin: 40px 0 60px 0;
}

/******************************************************************************
 * Top Nav
 *****************************************************************************/
#secondary_menu-site-navigation-desktop {
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#secondary_menu-site-navigation-desktop a {
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header-bar.ast-sticky-active {
    box-shadow: none;
}

/*.ast-primary-header-bar:not(.ast-sticky-active) {
    margin-top: 40px;
}*/

/******************************************************************************
 * Footer
 *****************************************************************************/
footer.site-footer a {
	border-bottom: 1px dotted #737880;
	font-size: 16px;
}

.site-footer-primary-section-1 {
	position: relative;
	top: -4px;
}

.site-footer-primary-section-1,
.site-footer-primary-section-2 {
	flex: 0 1 50%;
}

/******************************************************************************
 * Blog Archive
 *****************************************************************************/
.ast-row .blog-layout-4 .ast-grid-common-col > *:not(.ast-blog-featured-section) {
    padding-left: 20px;
    padding-right: 20px;
}

body.archive .ast-archive-description {
	background-color: #F6F6F6;
	border: 0 !important;
	margin-top: 20px;
	padding: 20px;
}

body.archive .ast-archive-description.ast-author-box .ast-author-avatar img {
	border-radius: 0;
	height: 150px;
	margin: 0 0 20px 0;
	width: 150px;
}

body.archive .ast-archive-description.ast-author-box .ast-column:first-child {
	align-items: center;
	display: flex;
	flex: 0 0 200px;
	flex-direction: column;
	gap: 20px;
	margin-top: 10px;
}

body.archive .ast-archive-description.ast-author-box .ast-column p {
	font-size: 16px;
	padding: 55px 20px 0 20px;
}

@media(max-width: 768px) {
	body.archive .ast-archive-description.ast-author-box .ast-column p {
		padding: 20px;
	}
}

body.archive .ast-archive-description.ast-author-box .author-social-links {
	text-align: right;
}

.author .ast-archive-entry-banner,
.blog .ast-archive-entry-banner {
	display: none;
}

.ast-archive-entry-banner {
	padding-bottom: 0 !important;
}

.ast-archive-entry-banner h1 {
	font-size: 32px !important;
}

/******************************************************************************
 * Blog Posts (Grid) - Meta
 *****************************************************************************/
.ast-blog-layout-4-grid .ast-article-post .entry-header {
	margin-top: 40px;
}

.ast-blog-layout-4-grid .ast-article-post .ast-blog-meta-container {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

/******************************************************************************
 * Blog Posts (Gird) 
 *****************************************************************************/
.post-thumb-img-content img {
	transition: all 400ms ease-in-out;
	width: 100%;
}

.ast-blog-layout-4-grid .ast-row .entry-meta {
	font-size: 12px;
}

.ast-blog-layout-4-grid .ast-article-post {
	width: 50%;
}

@media (max-width: 768px) {
	.ast-blog-layout-4-grid .ast-article-post {
		width: 100%;
	}
}

.ast-blog-layout-4-grid .ast-article-post .post-thumb-img-content {
	overflow: hidden;
	position: relative;
}

.ast-blog-layout-4-grid .ast-article-post .post-thumb-img-content:after {
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	bottom: 0;
	content: '';
	display: block;
	left: 40px;
	position: absolute;
	z-index: 0;
}

.ast-blog-layout-4-grid .ast-article-post .ast-article-inner {
	border: 1px solid #DDDDDD;
	box-shadow: none;
	position: relative;
}

.ast-blog-layout-4-grid .ast-article-post .post-thumb-img-content,
.ast-blog-layout-4-grid .ast-article-post.category-politics .post-thumb-img-content,
.ast-blog-layout-4-grid .ast-article-post.category-perspectives .post-thumb-img-content {
	border-bottom: 1px solid white;
}

.ast-blog-layout-4-grid .ast-article-post.category-politics .ast-article-inner {
	border-color: #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-politics .post-thumb-img-content:after,
.ast-blog-layout-4-grid .ast-article-post.category-perspectives .post-thumb-img-content:after,
.ast-blog-layout-4-grid .ast-article-post.category-culture .post-thumb-img-content:after,
.ast-blog-layout-4-grid .ast-article-post .post-thumb-img-content:after {
	border-bottom: 20px solid white;
}

.ast-blog-layout-4-grid .ast-article-post.category-culture .ast-article-inner {
	border-color: #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-culture .post-thumb-img-content {
	border-bottom: 5px solid #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-frontiers .ast-article-inner {
	border-color: #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-frontiers .post-thumb-img-content {
	border-bottom: 5px solid #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-frontiers .post-thumb-img-content:after {
	border-bottom: 20px solid #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-perspectives .ast-article-inner {
	border-color: #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-podcasts .ast-article-inner {
	border-color: #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-podcasts .post-thumb-img-content {
	border-bottom: 5px solid #dddddd;
}

.ast-blog-layout-4-grid .ast-article-post.category-podcasts .post-thumb-img-content:after {
	border-bottom: 20px solid #dddddd;
}

.ast-blog-layout-4-grid .post-thumb-img-content img:hover {
	transform: scale(1.05);
}

/********************************************************************************
 * Blog Posts (Grid) - Sticky
 *******************************************************************************/
.ast-blog-layout-4-grid .ast-article-post.sticky {
	width: 100%;
}

.ast-blog-layout-4-grid .ast-article-post.sticky .post-thumb-img-content {
	border: 0;
	margin: 0 !important;
	max-height: 530px;
}

.ast-blog-layout-4-grid .ast-article-post.sticky .post-thumb-img-content:after {
	border: 0;
}

@media (max-width: 768px) {
	.ast-blog-layout-4-grid .ast-article-post.sticky .post-thumb-img-content {
		max-height: auto;
		width: 100%;
	}
}

.ast-blog-layout-4-grid .ast-article-post.sticky .ast-article-inner,
.ast-blog-layout-4-grid .ast-article-post.sticky .ast-blog-featured-section {
	border: 0;
	margin: 0;
	padding: 0;
	position: relative;
}

.ast-blog-layout-4-grid .ast-article-post.sticky .ast-blog-featured-section:after {
	background-color: rgba(0, 0, 0, 0.45);
	content: "";
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.ast-blog-layout-4-grid .ast-article-post.sticky .entry-meta,
.ast-blog-layout-4-grid .ast-article-post.sticky .ast-excerpt-container {
	display: none;
}

.ast-blog-layout-4-grid .ast-article-post.sticky .entry-title {
	bottom: 80px;
	font-size: 44px;
	left: 50px;
	line-height: 1;
	padding-right: 80px;
	position: absolute;
	z-index: 10;
}

@media (max-width: 1024px) {
	.ast-blog-layout-4-grid .ast-article-post.sticky .entry-title {
		bottom: 25px;
		font-size: 24px;
		left: 25px;
		padding-right: 0;
		right: 25px;
	}
}

.ast-blog-layout-4-grid .ast-article-post.sticky .entry-header {
	bottom: 25px;
	left: 25px;
	position: absolute;
	z-index: 10;
}

.ast-blog-layout-4-grid .ast-article-post.sticky .entry-title a,
.ast-blog-layout-4-grid .ast-article-post.sticky .entry-header a {
	color: #FFFFFF;
}

/******************************************************************************
 * Blog (Single) Post
 *****************************************************************************/
.single .fl-rich-text ul,
.single .fl-rich-text ol {
	margin: 0 0 20px 30px;
}

.single .fl-rich-text li {
	margin: 15px 0;
}

.thnk-machine-first-letter {
	background-color: #737880;
	color: #F6F6F6;
	float: left;
	font-family: Oswald, system-ui;
	font-size: 54px;
	line-height: 54px;
	margin: 5px 10px 0 0;
	padding: 10px 20px 15px 20px;
}

/******************************************************************************
 * Newsletter
 *****************************************************************************/
.newsletter-form .subscription-status {
	font-size: 14px;
	margin-top: 8px;
	transition: all 0.3s ease;
}

.newsletter-form.processing {
	opacity: 0.7;
	pointer-events: none;
}

/******************************************************************************
 * MailPoet
 *****************************************************************************/
p.mailpoet_paragraph {
	font-size: 0.9rem;
	font-weight: 700;
}

div.mailpoet_paragraph {
	display: flex;
	flex-direction: column;
}

div.mailpoet_paragraph label {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 2;
	margin-top: 10px;
}

div.mailpoet_paragraph label span {
	color: red;
}

div.mailpoet_paragraph input,
div.mailpoet_paragraph select {
	height: 50px;
}

div.mailpoet_paragraph input[type="submit"] {
	border-radius: 0;
	margin-top: 20px;
	width: 180px;
}

p.mailpoet_paragraph span,
div.mailpoet_paragraph fieldset {
	display: none;
}

.mailpoet-submit-success {
	color: cornflowerblue;
	margin-top: 15px;
	font-size: 0.9rem;
}

.mailpoet_page-template-default .mailpoet_page {
	text-align: center;
	padding: 80px 0;
}

.mailpoet_page-template-default .mailpoet_page h1 {
	font-size: 42px;
}

.mailpoet_page-template-default .entry-meta {
	display: none;
}

/******************************************************************************
 * Recent (Widget) Posts w/ Category 
 *****************************************************************************/
.ast-mm-widget-item {
	margin: 0 !important;
}

.thnk-machine-recent-posts-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, 1fr);
	padding-bottom: 20px;
	width: 100%;
}

.thnk-machine-post-item {
	text-align: left;
}

.thnk-machine-post-item .post-thumbnail img {
	height: auto;
	width: 100%;
}

.thnk-machine-post-item .post-title {
	font-size: 18px;
	margin-top: 10px;
}

/******************************************************************************
 * Page Not Found (404)
 *****************************************************************************/
.error404 .ast-archive-entry-banner {
	margin: 40px 0 0 0;
}

.error404 .ast-archive-entry-banner h1 {
	font-size: 42px !important;
	margin-bottom: 20px;
}

.error404 #primary {
	margin-top: 0;
}

.error404 .ast-404-layout-1 {
	margin: 40px 0;
	text-align: left;
}

.error404 .ast-404-search .widget_search {
	max-width: 100%;
}

.error404 .search-form button {
	top: auto;
}

/******************************************************************************
 * Search Results
 *****************************************************************************/
.search-results .ast-archive-entry-banner {
	background-color: transparent;
	display: block;
	margin-top: 40px;
	text-align: left;
}

.search-results .ast-archive-entry-banner h1 {
	font-size: 42px !important;
	font-weight: 400 !important;
	margin-bottom: 20px;
}

.search-results .ast-archive-entry-banner h1 span {
	font-style: italic;
	font-weight: 100;
}

.search-results #primary {
	margin-top: 0;
}

/******************************************************************************
 * Other
 *****************************************************************************/
label {
	cursor: pointer;
}

.frc-captcha {
	margin-bottom: 30px;
}

.d-none {
	display: none;
}

.d-block {
	display: block;
}

.ast-twitter.header-social-item span {
	background-color: #737880;
	background-size: cover;
	display: inline-block;
	height: 18px;
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000000" d="M17.28 2H21L13.47 10.74L22.5 22H15.92L10.45 15.08L4.22 22H0L8.27 12.58L-0.5 2H6.92L11.84 8.38L17.28 2ZM16.11 20H17.99L5.86 3H3.84L16.11 20Z"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000000" d="M17.28 2H21L13.47 10.74L22.5 22H15.92L10.45 15.08L4.22 22H0L8.27 12.58L-0.5 2H6.92L11.84 8.38L17.28 2ZM16.11 20H17.99L5.86 3H3.84L16.11 20Z"/></svg>');
	width: 18px;
}

/* Hide ONLY the avatar under posts */
.single-post .post-author-avatar img,
.single-post .ast-author-avatar img,
.single .post-author img,
.ast-single-post .author-avatar img {
   display: none !important;
}

/* Fix the margin using your specific selector */
.ast-single-entry-banner[data-post-type="post"] .entry-meta, 
.ast-single-entry-banner[data-post-type="post"] .entry-meta * {
  font-size: 14px;
  font-size: 0.77777777777778rem;
  text-transform: uppercase;
  margin-left: 0 !important;
  padding-left: 0 !important;
}