/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.1
Text Domain:  Avada
*/

/*
 * Loaded after Avada's compiled CSS (see functions.php), so rules here override Avada.
 *
 * The rules that used to be here never loaded under Avada 7 and were removed in 1.0.1 rather
 * than switched back on, because each one would have changed the live site (logo 70px -> 100px,
 * white menu on the white Blog header, smaller contact-form message box). They are in git history.
 * Logo size and the home-page white menu live in Avada > Options > Custom CSS.
 */

/* ==========================================================================
   Blog: single posts
   Brand: red #d0000d, dark green #003231.
   ========================================================================== */

.single-post #content > article.post {
	max-width: 820px;
	margin: 0 auto;
}

/* IDs needed to beat Avada's #wrapper #main rule; line-height also comes from an inline style. */
body.single-post #wrapper #main .post > .fusion-post-title-meta-wrap > h1.entry-title {
	margin: 10px 0 14px;
	font-size: clamp(30px, 3.4vw, 42px);
	line-height: 1.2 !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #111;
}

.single-post .fusion-post-title-meta-wrap .fusion-meta-info {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
	font-size: 14px;
	color: #6b6b6b;
}

.single-post .fusion-meta-info a {
	color: #d0000d;
}

.single-post .fusion-meta-info .fusion-inline-sep {
	margin: 0 8px;
	color: #c8c8c8;
}

.single-post .post-slideshow {
	margin-bottom: 36px;
	box-shadow: 0 10px 30px rgba(0, 50, 49, 0.12);
}

.single-post .post-content {
	font-size: 17px;
	line-height: 1.8;
	color: #2d2d2d;
}

.single-post .post-content p {
	margin: 0 0 1.25em;
}

.single-post .post-content h2 {
	margin: 1.9em 0 0.6em;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
	color: #111;
}

.single-post .post-content h3 {
	margin: 1.5em 0 0.5em;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
	color: #003231;
}

.single-post .post-content ul,
.single-post .post-content ol {
	margin: 0 0 1.4em 1.3em;
	padding: 0;
}

.single-post .post-content li {
	margin: 0.45em 0;
	padding-left: 0.3em;
}

.single-post .post-content li::marker {
	color: #d0000d;
	font-weight: 700;
}

.single-post .post-content strong {
	color: #111;
}

.single-post .post-content a:not(.fusion-button) {
	color: #d0000d;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.single-post .post-content code {
	padding: 2px 6px;
	background: #f2f2ef;
	font-size: 0.9em;
}

.single-post .post-content table {
	width: 100%;
	margin: 0 0 1.6em;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.single-post .post-content th {
	padding: 12px 14px;
	background: #003231;
	color: #fff;
	text-align: left;
	font-weight: 700;
}

.single-post .post-content td {
	padding: 11px 14px;
	border-bottom: 1px solid #e6e6e3;
	vertical-align: top;
}

.single-post .post-content tbody tr:nth-child(even) td {
	background: #f8f8f6;
}

/* Call to action after each post (added in functions.php). */
.single-post .post-content .theme-post-cta {
	margin: 48px 0 10px;
	padding: 30px 34px;
	border-left: 6px solid #d0000d;
	background: #003231;
	color: #d7e5e4;
}

.single-post .post-content .theme-post-cta__title {
	margin: 0 0 8px;
	font-size: 23px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
}

.single-post .post-content .theme-post-cta__text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.65;
}

.single-post .post-content .theme-post-cta__actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
}

.single-post .post-content .theme-post-cta__button {
	padding: 13px 26px;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
}

.single-post .post-content a.theme-post-cta__link {
	color: #fff;
	font-size: 15px;
}

/* Previous / next links and related posts. */
.single-post .single-navigation {
	max-width: 820px;
	margin: 0 auto 10px;
	border-color: #ececec;
	font-size: 14px;
}

/* "Keep reading" cards (theme_related_posts() in functions.php). */
.single-post .post-content .theme-related {
	margin: 56px 0 10px;
}

.single-post .post-content .theme-related__heading {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
	color: #111;
}

.single-post .post-content .theme-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
}

.single-post .post-content a.theme-related__card {
	display: flex;
	flex-direction: column;
	border: 1px solid #ebebe8;
	background: #fff;
	color: #111;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.single-post .post-content a.theme-related__card:hover {
	box-shadow: 0 10px 26px rgba(0, 50, 49, 0.10);
}

.single-post .post-content .theme-related__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 630;
	object-fit: cover;
}

.single-post .post-content .theme-related__date {
	margin: 14px 16px 4px;
	font-size: 13px;
	color: #7a7a7a;
}

.single-post .post-content .theme-related__title {
	margin: 0 16px 18px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 700;
}

.single-post .post-content a.theme-related__card:hover .theme-related__title {
	color: #d0000d;
}

@media (max-width: 640px) {
	.single-post .post-content {
		font-size: 16px;
	}

	.single-post .post-content h2 {
		font-size: 22px;
	}

	/* Wide tables scroll sideways instead of squeezing. */
	.single-post .post-content table {
		display: block;
		overflow-x: auto;
	}

	.single-post .post-content .theme-post-cta {
		padding: 24px 22px;
	}
}

/* ==========================================================================
   Blog: list pages (blog page, categories, archives)
   ========================================================================== */

.fusion-blog-layout-grid .fusion-post-wrapper {
	border: 1px solid #ebebe8;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease;
}

/* Quiet hover: a soft shadow and a red title, nothing moves or covers the image. */
.fusion-blog-layout-grid .fusion-post-wrapper:hover {
	box-shadow: 0 10px 26px rgba(0, 50, 49, 0.10);
}

.fusion-blog-layout-grid .fusion-post-wrapper:hover h2.entry-title a {
	color: #d0000d;
}

.fusion-blog-layout-grid .fusion-post-content-wrapper {
	padding: 22px 24px 26px;
}

.fusion-blog-layout-grid h2.entry-title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
}

.fusion-blog-layout-grid h2.entry-title a {
	color: #111;
}

.fusion-blog-layout-grid h2.entry-title a:hover {
	color: #d0000d;
}

.fusion-blog-layout-grid .fusion-single-line-meta {
	margin: 0 0 12px;
	font-size: 13px;
	color: #7a7a7a;
}

.fusion-blog-layout-grid .fusion-single-line-meta a {
	color: #d0000d;
}

.fusion-blog-layout-grid .fusion-content-sep {
	display: none;
}

.fusion-blog-layout-grid .fusion-post-content-container p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #555;
}

/* Blog page photo slider: the header there is solid now (functions.php), so don't tuck the slider
   under it. Fusion Slider sets this offset as an inline style, hence !important. */
body.blog #sliders-container .fusion-slider-container {
	margin-top: 0 !important;
}
