/* ============================================
   Custom Fonts - KIAN Custom Fonts
   ============================================ */

@font-face {
	font-family: 'Delmon Delicate Font';
	src: url('/wp-content/plugins/elementor-custom-widgets/assets/fonts/Delmon Delicate.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'GeoSansLight';
	src: url('/wp-content/plugins/elementor-custom-widgets/assets/fonts/geo_sans_light/GeosansLight.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'GeoSansLight';
	src: url('/wp-content/plugins/elementor-custom-widgets/assets/fonts/geo_sans_light/GeosansLight-Oblique.ttf') format('truetype');
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

/* ============================================
   End Custom Fonts
   ============================================ */

/* Features Homepage Styles */
 
 .features-homepage {
	margin: 0;
	background: #fff;
    max-width: 100% !important;
    padding-inline-end: 0 !important;
    padding-inline-start: 0 !important;
}

/* ============================================
   Elementor Header CSS
   Paste your Elementor header custom CSS here
   This ensures it applies on the blog page
   ============================================ */

/* Add your Elementor header CSS below this line */


/* ============================================
   End Elementor Header CSS
   ============================================ */

/* Features Header */
.features-header {
	text-align: center;
    margin: 40px 0 80px;
}

.features-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 30px;
	font-size: 48px;
	font-weight: 400;
	font-family: 'Delmon Delicate Font', serif;
	color: #000000;
	letter-spacing: 0.05em; /* Kerning 50 */
	text-transform: uppercase;
}

.title-line {
	flex: 1;
	height: 4px;
	background-color: #aa755e;
}

.title-text {
	white-space: nowrap;
}

.features-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	font-family: 'GeoSansLight', sans-serif;
	font-size: 14px;
	color: #000;
	letter-spacing: 0.2em; /* Kerning 200 - Small Subtitles */
	text-transform: uppercase;
    font-weight: 600;
    padding: 0 20px;
}

.nav-link {
	color: #555;
	text-decoration: none;
	transition: color 0.3s ease;
	cursor: pointer;
}

.nav-link:hover {
	color: #8B7355;
}

.nav-link.active {
	color: #8B7355;
	font-weight: 600;
	text-decoration: underline;
}

.nav-separator {
	color: #999;
	margin: 0 5px;
}

/* Features Content */
.features-content {
	position: relative;
	margin-bottom: 60px;
}

.feature-article {
	display: flex;
	align-items: center;
	margin-bottom: 60px;
	position: relative;
    justify-content: center;
}

.article-left {
	flex-direction: row;
}


.article-content {
	background-color: #828b79;
	padding: 50px 60px;
	position: relative;
	z-index: 2;
	flex: 1;
	max-width: 600px;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
    align-items: center;
    left: -50px;
}

.article-left .article-content {
	margin-right: -40px;
}

.article-category {
	font-family: 'GeoSansLight', sans-serif;
	font-size: 17px;
	letter-spacing: 0.2em; /* Kerning 200 - Small Subtitles */
	color: #fff;
	text-transform: uppercase;
	margin-bottom: 20px;
    font-weight: 700;
}

.article-title {
	font-family: 'GeoSansLight', sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
	margin: 0 0 30px 0;
	letter-spacing: 0.1em; /* Kerning 100 - Main Subtitles */
	text-transform: uppercase;
}

.article-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.article-title a:hover {
	color: #8B7355;
}

.read-post-link {
	font-weight: 700;
    font-family: 'GeoSansLight', sans-serif;
    font-size: 18px;
    color: #f6decc;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 30px;
    transition: color 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.read-post-link:hover {
	color: #fff;
}

.article-social-inner {
	display: flex;
	align-items: center;
	gap: 15px;
}

.article-social {
	display: flex;
	align-items: center;
	gap: 15px;
	font-family: 'GeoSansLight', sans-serif;
	font-size: 12px;
	color: #D0D0C0;
	letter-spacing: 0.1em; /* Kerning 100 - Paragraphs */
    justify-content: space-around;
    width: 100%;
}

.team-members-photo-section img, 
.map-image img,
.features-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-section {
    border-top: 20px solid #828c7c;
}

.features-hero-section img {
    border-bottom: 30px solid #828c7c;
}

.share-text {
	color: #000;
	letter-spacing: 0.1em; /* Kerning 200 - Small Subtitles */
    font-weight: 700;
    font-size: 15px;
    color: #000;
}

.comments-count {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #D0D0C0;
	text-decoration: none;
	transition: color 0.3s ease;
}

.comments-count:hover {
	color: #fff;
}

.comments-count svg {
	width: 16px;
	height: 16px;
}

.social-icons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: #D0D0C0;
	text-decoration: none;
	font-family: 'Arial', 'Helvetica', sans-serif;
	font-size: 14px;
	font-weight: bold;
	transition: color 0.3s ease;
}

.social-icon:hover {
	color: #fff;
}

.social-icon svg {
	width: 16px;
	height: 16px;
}

/* Image Placeholder */
.article-image-placeholder {
	width: 500px;
	height: 340px;
	background-color: #E5E5E5;
	position: relative;
	z-index: 9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
    border: 15px solid #fff;
    position: relative;
    left: 50px;
}

.article-right .article-content {
    left: 80px;
}

.article-right .article-image-placeholder {
    left: -20px;
}

.article-image-placeholder img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
	            opacity 0.5s ease;
}

.article-image-placeholder:hover img {
	transform: scale(1.05);
}

.article-image-placeholder {
	transition: transform 0.3s ease;
	overflow: hidden;
}

.feature-article:hover .article-image-placeholder {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* View All Link */
.view-all-container {
	text-align: right;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 30px;
}

.view-all-link {
    font-size: 16px;
    color: #000001;
    text-decoration: underline;
    transition: color 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Delmon Delicate Font', serif;
}

.view-all-link:hover {
	color: #8B7355;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.feature-article {
		flex-direction: column;
		margin-bottom: 40px;
	}

    .article-right {
        flex-direction: column-reverse;
    }

    .article-right .article-content {
        right: 0;
        left: 0;
    }

    .article-right .article-image-placeholder {
        right: 0;
        left: 0;
    }
    .article-content {
        right: 0;
        left: 0;
    }
    
    .article-image-placeholder {
        right: 0;
        left: 0;
    }
	
	.article-content {
		margin: 0 !important;
		max-width: 100%;
		width: 100%;
	}
	
	.article-image-placeholder {
		width: 100%;
		height: 400px;
		margin-top: -40px;
	}
	
	.article-left .article-image-placeholder {
		order: -1;
	}
}

/* Popular Posts Section */
.popular-posts-section {
	padding: 80px 20px;
	background-color: #e4d4c4;
	margin-top: 20px;
}

.popular-posts-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 50px;
	margin-bottom: 50px;
    font-size: 40px;
    font-weight: 700;
    font-family: 'Delmon Delicate Font', serif;
    color: #000000;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.popular-posts-title .title-line {
	flex: 1;
	height: 4px;
	background-color: #fff;
}

.popular-posts-title .title-text {
	white-space: nowrap;
}

.popular-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	max-width: 1400px;
	margin: 0 auto;
}

.popular-post-card {
	background-color: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.popular-post-image {
	width: 100%;
	height: 0;
	padding-bottom: 66.67%; /* 3:2 aspect ratio */
	position: relative;
	background-color: #E5E5E5;
	overflow: hidden;
}

.popular-post-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.popular-post-placeholder {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #999;
	opacity: 0.5;
}

.popular-post-content {
	padding: 30px 25px;
	display: flex;
	flex-direction: column;
    justify-content: center;
	flex-grow: 1;
}

.popular-post-title {
	font-family: 'GeoSansLight', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	color: #000;
	margin: 0 0 20px 0;
	flex-grow: 1;
	letter-spacing: 0.1em; /* Kerning 100 - Main Subtitles */
	text-transform: uppercase;
    text-align: center;
}

.popular-post-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.popular-post-title a:hover {
	color: #8B7355;
}

.popular-read-more {
	font-family: 'GeoSansLight', sans-serif;
	font-size: 14px;
	color: #000;
	text-decoration: underline;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color 0.3s ease;
	align-self: center;
	letter-spacing: 0.1em; /* Kerning 200 - Small Subtitles */
	text-transform: uppercase;
    font-weight: 700;
}

.popular-read-more:hover {
	color: #8B7355;
}

.popular-read-more svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

/* Responsive Design for Popular Posts */
@media (max-width: 1024px) {
	.popular-posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.features-title {
		font-size: 36px;
	}
	
	.title-line {
		max-width: 100px;
	}
	
	.features-nav {
		flex-wrap: wrap;
		font-size: 12px;
        gap: 15px;
	}
	
	.article-content {
		padding: 40px 30px;
		min-height: 350px;
	}
	
	.article-title {
		font-size: 24px;
	}
	
	.article-image-placeholder {
		height: 300px;
	}
	
	.placeholder-k {
		font-size: 80px;
	}
	
	.popular-posts-section {
		padding: 60px 20px;
	}
	
	.popular-posts-title {
		font-size: 36px;
		margin-bottom: 40px;
	}
	
	.popular-posts-title .title-line {
		max-width: 100px;
	}
	
	.popular-posts-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.popular-posts-grid .popular-post-card:last-child {
		max-width: 100%;
	}
	
	.popular-post-title {
		font-size: 18px;
	}
	
	.popular-post-content {
		padding: 25px 20px;
	}
}

/* Features Content Container - Smooth Transitions */
.features-content {
	transition: opacity 0.3s ease;
	min-height: 200px;
	position: relative;
}

/* Feature Articles - Smooth Animations */
.feature-article {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
	            transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: opacity, transform;
}

/* Initial page load animation for posts */
.features-content:not(.ajax-loaded) .feature-article {
	animation: fadeInUp 0.8s ease forwards;
}

.features-content:not(.ajax-loaded) .feature-article:nth-child(1) {
	animation-delay: 0.1s;
}

.features-content:not(.ajax-loaded) .feature-article:nth-child(2) {
	animation-delay: 0.2s;
}

.features-content:not(.ajax-loaded) .feature-article:nth-child(3) {
	animation-delay: 0.3s;
}

.features-content:not(.ajax-loaded) .feature-article:nth-child(4) {
	animation-delay: 0.4s;
}

.features-content:not(.ajax-loaded) .feature-article:nth-child(n+5) {
	animation-delay: 0.5s;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Loading and Error States */
.loading-posts,
.error-message {
	text-align: center;
	padding: 80px 20px;
	font-size: 18px;
	color: #666;
	font-family: 'GeoSansLight', sans-serif;
	animation: fadeIn 0.3s ease;
}

.loading-posts {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.loading-posts::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top: 3px solid #333;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.error-message {
	color: #d32f2f;
	animation: fadeIn 0.3s ease;
}

/* Smooth hover effects for category links */
.features-nav .nav-link {
	transition: all 0.3s ease;
	position: relative;
}

.features-nav .nav-link:hover {
	opacity: 0.7;
	transform: translateY(-2px);
}

.features-nav .nav-link.active {
	transition: all 0.3s ease;
}

