/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* =========================================================================
   AKF Literature – Layout Styles
   ========================================================================= */

/* Writer Meta Sidebar */
.akf-writer-meta,
.akf-work-meta,
.akf-resource-meta {
	font-size: 15px;
	line-height: 1.6;
}

.akf-meta-row {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0,0,0,.08);
}

.akf-meta-row:last-child {
	border-bottom: none;
}

.akf-meta-label {
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--awb-color6, #999);
	margin-bottom: 2px;
}

.akf-meta-value {
	color: var(--awb-color8, #333);
}

.akf-meta-value a {
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* Social Icon List */
.akf-social-icon-list {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}

.akf-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--awb-color3, #e1e1e1);
	color: var(--awb-color7, #444);
	text-decoration: none !important;
	border-bottom: none !important;
	transition: all .2s;
}

.akf-social-icon:hover {
	background: var(--awb-color8, #222);
	color: #fff;
}

.akf-social-icon svg {
	display: block;
}

/* Smaller icons on archive cards */
.akf-social-icon-list--card {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(0,0,0,.06);
}

.akf-social-icon-list--card .akf-social-icon {
	width: 32px;
	height: 32px;
}

.akf-btn-download {
	display: inline-block;
	margin-top: 4px;
	padding: 10px 20px;
	background: var(--awb-color4, #fcc943);
	color: var(--awb-color8, #222) !important;
	border-radius: 4px;
	text-decoration: none !important;
	border-bottom: none !important;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	transition: opacity .2s;
}

.akf-btn-download:hover {
	opacity: .85;
}

/* Related Works Grid (on writer page) */
.akf-related-works {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

.akf-work-card {
	background: var(--awb-color2, #f9f9f9);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .2s;
}

.akf-work-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.akf-work-card-thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.akf-work-card-info {
	padding: 16px;
}

.akf-work-card-title {
	margin: 0 0 6px;
	font-size: 16px;
}

.akf-work-card-title a {
	text-decoration: none;
	color: inherit;
}

.akf-work-card-meta {
	font-size: 13px;
	color: var(--awb-color6, #999);
}

.akf-work-card-meta span {
	display: block;
}

.akf-work-card-download,
.akf-work-archive-download {
	margin-top: 12px;
}

.akf-work-unavailable {
	display: inline-block;
	padding: 6px 0;
	font-size: 13px;
	font-style: italic;
	color: var(--awb-color5, #8a8a8a);
}

.akf-work-download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: var(--awb-color8, #2b2b2b);
	background: transparent;
	border: 1px solid var(--awb-color5, #d6d6d6);
	border-radius: 999px;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.akf-work-download:hover,
.akf-work-download:focus-visible {
	color: #fff;
	background: var(--awb-color8, #2b2b2b);
	border-color: var(--awb-color8, #2b2b2b);
	text-decoration: none;
}

.akf-work-download:active {
	transform: translateY(1px);
}

.akf-download-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	transition: transform .2s ease;
}

.akf-work-download:hover .akf-download-icon {
	transform: translateY(1px);
}

/* Related Authors (on work page) */
.akf-related-authors {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.akf-author-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--awb-color2, #f9f9f9);
	border-radius: 8px;
	padding: 12px 16px;
	flex: 0 1 auto;
}

.akf-author-card-thumb img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.akf-author-card-name {
	margin: 0;
	font-size: 16px;
}

.akf-author-card-name a {
	text-decoration: none;
	color: inherit;
}

.akf-author-card-detail {
	font-size: 13px;
	color: var(--awb-color6, #777);
	line-height: 1.5;
}

.akf-no-results {
	color: var(--awb-color6, #999);
	font-style: italic;
}

/* =========================================================================
   Writers Archive – Filter Bar & Grid
   ========================================================================= */

.akf-archive-filters {
	margin-bottom: 32px;
}

.akf-filter-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.akf-filter-label {
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--awb-color6, #666);
	margin-right: 4px;
}

.akf-filter-btn {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid var(--awb-color3, #ddd);
	border-radius: 20px;
	background: transparent;
	color: var(--awb-color8, #333);
	font-size: 13px;
	cursor: pointer;
	transition: all .2s;
	line-height: 1.4;
}

.akf-filter-btn:hover {
	border-color: var(--awb-color4, #fcc943);
	color: var(--awb-color4, #fcc943);
}

.akf-filter-btn.active {
	background: var(--awb-color8, #222);
	border-color: var(--awb-color8, #222);
	color: #fff;
}

/* Writers Grid */
.akf-writers-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.akf-writers-grid[data-columns="2"] {
	grid-template-columns: repeat(2, 1fr);
}

.akf-writers-grid[data-columns="4"] {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
	.akf-writers-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.akf-writers-grid {
		grid-template-columns: 1fr;
	}
}

.akf-writer-archive-card {
	background: var(--awb-color2, #f9f9f9);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .2s;
}

.akf-writer-archive-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.akf-writer-archive-img img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.akf-writer-archive-placeholder {
	display: block;
	width: 100%;
	height: 260px;
	background: var(--awb-color3, #eee);
}

.akf-writer-archive-info {
	padding: 20px;
}

.akf-writer-archive-name {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
}

.akf-writer-archive-name a {
	text-decoration: none;
	color: inherit;
}

.akf-writer-archive-tax {
	font-size: 13px;
	color: var(--awb-color6, #777);
	margin-bottom: 4px;
	line-height: 1.5;
}

.akf-tax-label {
	font-weight: 600;
	color: var(--awb-color8, #333);
}

.akf-writer-archive-tax a {
	color: var(--awb-color6, #777);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all .2s;
}

.akf-writer-archive-tax a:hover {
	color: var(--awb-color8, #222);
	border-bottom-color: var(--awb-color8, #222);
}

.akf-writer-archive-excerpt {
	font-size: 14px;
	color: var(--awb-color6, #777);
	margin: 10px 0 0;
	line-height: 1.6;
}

/* =========================================================================
   Works Archive – Grid & Cards
   ========================================================================= */

.akf-works-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.akf-works-grid[data-columns="2"] {
	grid-template-columns: repeat(2, 1fr);
}

.akf-works-grid[data-columns="4"] {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
	.akf-works-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.akf-works-grid {
		grid-template-columns: 1fr;
	}
}

.akf-work-archive-card {
	background: var(--awb-color2, #f9f9f9);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .2s;
}

.akf-work-archive-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.akf-work-archive-img img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.akf-work-archive-placeholder {
	display: block;
	width: 100%;
	height: 260px;
	background: var(--awb-color3, #eee);
}

.akf-work-archive-info {
	padding: 20px;
}

.akf-work-archive-name {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
}

.akf-work-archive-name a {
	text-decoration: none;
	color: inherit;
}

.akf-work-archive-tax {
	font-size: 13px;
	color: var(--awb-color6, #777);
	margin-bottom: 4px;
	line-height: 1.5;
}

.akf-work-archive-tax a {
	color: var(--awb-color6, #777);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all .2s;
}

.akf-work-archive-tax a:hover {
	color: var(--awb-color8, #222);
	border-bottom-color: var(--awb-color8, #222);
}

.akf-work-archive-excerpt {
	font-size: 14px;
	color: var(--awb-color6, #777);
	margin: 10px 0 0;
	line-height: 1.6;
}

/* =========================================================================
   Resources Archive Grid
   ========================================================================= */

.akf-resources-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.akf-resources-grid[data-columns="2"] {
	grid-template-columns: repeat(2, 1fr);
}

.akf-resources-grid[data-columns="4"] {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
	.akf-resources-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.akf-resources-grid {
		grid-template-columns: 1fr;
	}
}

.akf-resource-archive-card {
	background: var(--awb-color2, #f9f9f9);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .2s;
}

.akf-resource-archive-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.akf-resource-archive-img img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.akf-resource-archive-placeholder {
	display: block;
	width: 100%;
	height: 260px;
	background: var(--awb-color3, #eee);
}

.akf-resource-archive-info {
	padding: 20px;
}

.akf-resource-archive-name {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
}

.akf-resource-archive-name a {
	text-decoration: none;
	color: inherit;
}

.akf-resource-archive-tax {
	font-size: 13px;
	color: var(--awb-color6, #777);
	margin-bottom: 4px;
	line-height: 1.5;
}

.akf-resource-archive-tax a {
	color: var(--awb-color6, #777);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all .2s;
}

.akf-resource-archive-tax a:hover {
	color: var(--awb-color8, #222);
	border-bottom-color: var(--awb-color8, #222);
}

.akf-resource-download {
	display: inline-block;
	margin-top: 4px;
	font-weight: 600;
	color: var(--awb-color5, #65bc7b) !important;
	border-bottom-color: var(--awb-color5, #65bc7b) !important;
}

.akf-resource-archive-excerpt {
	font-size: 14px;
	color: var(--awb-color6, #777);
	margin: 10px 0 0;
	line-height: 1.6;
}