/*
Theme Name: Köy Dernek
Theme URI: https://www.epictrue.com
Author: Epic True
Author URI: https://www.epictrue.com
Description: A WordPress theme for Turkish Köy Dernek featuring Etkinlikler, Yönetim, Haberler and other association-related content.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koy-dernek
Tags: turkish, association, village, dernek, etkinlikler, haberler, yönetim
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Basic resets and layout */
body {
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', sans-serif;
	color: #444;
	line-height: 1.6;
	background-color: #fafafa;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0rem;
}

.site-header, .site-footer {
	background-color: #ffffff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	padding: 1rem 0;
}

.site-header .site-title a {
	text-decoration: none;
	color: #2c3e50;
	font-weight: 700;
	font-size: 1.8rem;
}

.primary-navigation, .footer-navigation {
	margin: 1rem 0;
}

.main-content {
	margin: 0rem 0;
	background: #fff;
	padding: 0rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	border-radius: 8px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	color: #2c3e50;
	margin-bottom: 1rem;
	font-weight: 700;
}

/* Paragraphs */
p {
	margin-bottom: 1rem;
	font-size: 1rem;
	line-height: 1.8;
}

/* Links */
a {
	color: #e74c3c;
	text-decoration: none;
	transition: color 0.3s;
}

a:hover {
	color: #c0392b;
	text-decoration: underline;
}

/* Footer styling */
.site-footer {
	text-align: center;
	font-size: 0.9rem;
	padding: 2rem 0;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.social-link {
	color: #2c3e50;
	transition: color 0.3s ease;
}

.social-link:hover {
	color: #e74c3c;
}

.social-link svg {
	width: 24px;
	height: 24px;
}

/* Platform-specific colors on hover */
.social-link.facebook:hover {
	color: #1877f2;
}

.social-link.instagram:hover {
	color: #e4405f;
}

.social-link.twitter:hover {
	color: #1da1f2;
}

.social-link.youtube:hover {
	color: #ff0000;
}

/* Responsive adjustments */
@media(max-width: 768px) {
	.container {
		padding: 1rem;
	}

	.primary-navigation li, .footer-navigation li {
		margin-right: 1rem;
	}

	.site-header .site-title a {
		font-size: 1.6rem;
	}
}

/* Add additional styles as needed */

/* Header and Navigation Styles */
.site-header {
	background-color: #ffffff;
	box-shadow: 0 2px 15px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0rem 0rem;
}

/* Logo styling */
.site-branding {
	flex-shrink: 0;
}

.custom-logo-link {
	display: block;
	padding: 0.5rem 0;
	text-decoration: none;
}

.custom-logo {
	display: block;
	height: auto;
	max-width: 200px;
	width: auto;
}

.default-logo {
	display: block;
	height: auto;
	max-width: 200px;
	width: auto;
}

@media (max-width: 768px) {
	.custom-logo {
		max-width: 150px;
	}
}

/* Primary Navigation */
.primary-navigation {
	margin-left: auto;
}

.primary-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.5rem;
}

.primary-navigation li {
	position: relative;
}

.primary-navigation a {
	color: #2c3e50;
	text-decoration: none;
	font-weight: 500;
	font-size: 1rem;
	padding: 0.5rem 0;
	display: block;
	position: relative;
	transition: color 0.3s ease;
}

/* Hover effect for menu items */
.primary-navigation a:after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: #e74c3c;
	transition: width 0.3s ease;
}

.primary-navigation a:hover {
	color: #e74c3c;
	text-decoration: none;
}

.primary-navigation a:hover:after {
	width: 100%;
}

/* Current menu item styling */
.primary-navigation .current-menu-item > a {
	color: #e74c3c;
}

.primary-navigation .current-menu-item > a:after {
	width: 100%;
	background-color: #e74c3c;
}

/* Submenu styling */
.primary-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	min-width: 200px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	border-radius: 4px;
	padding: 0.5rem 0;
	z-index: 100;
}

.primary-navigation .menu-item-has-children:hover > .sub-menu {
	display: block;
}

.primary-navigation .sub-menu li {
	margin: 0;
}

.primary-navigation .sub-menu a {
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}

.primary-navigation .sub-menu a:after {
	display: none;
}

/* Mobile menu button */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}

	.primary-navigation ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		flex-direction: column;
		padding: 1rem 0;
		box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	}

	.primary-navigation.mobile-menu-active ul {
		display: flex;
	}

	.primary-navigation li {
		margin: 0;
	}

	.primary-navigation a {
		padding: 0.75rem 2rem;
	}

	.primary-navigation .sub-menu {
		position: static;
		box-shadow: none;
		padding-left: 2rem;
	}

	.site-header .container {
		padding: 1rem;
	}
}

/* Footer credits */
.footer-credits {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
}

.footer-credits p {
	margin: 0;
}

.developer-credit {
	font-size: 0.8rem;
	color: #666;
}

.developer-credit a {
	color: #e74c3c;
	text-decoration: none;
	font-weight: 500;
}

.developer-credit a:hover {
	text-decoration: underline;
}

/* Yönetim Grid Styles */
.yonetim-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
	padding: 2rem 0;
}

.yonetici-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yonetici-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.yonetici-image {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
}

.yonetici-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.placeholder-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f5f5f5;
	color: #999;
}

.yonetici-details {
	padding: 1.5rem;
}

.yonetici-name {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	color: #2c3e50;
}

.yonetici-position {
	color: #e74c3c;
	font-weight: 500;
	margin-bottom: 0.25rem;
}

.yonetici-term {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.yonetici-contact {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.contact-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #666;
	font-size: 0.9rem;
	text-decoration: none;
}

.contact-link:hover {
	color: #e74c3c;
}

@media (max-width: 768px) {
	.yonetim-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 1rem;
		padding: 1rem 0;
	}
}

/* Haberler Styles */
.haberler-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	padding: 1rem 0;
}

.haber-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.haber-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.haber-image {
	position: relative;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	overflow: hidden;
}

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

.haber-content {
	padding: 1.5rem;
}

.haber-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	line-height: 1.4;
}

.haber-title a {
	color: #2c3e50;
	text-decoration: none;
}

.haber-title a:hover {
	color: #e74c3c;
}

.haber-meta {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 1rem;
}

.haber-date {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.haber-excerpt {
	color: #666;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.haber-footer {
	margin-top: auto;
}

.read-more {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #e74c3c;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.3s ease;
}

.read-more:hover {
	color: #c0392b;
}

/* Pagination */
.navigation.pagination {
	margin: 2rem 0;
	text-align: center;
}

.nav-links {
	display: inline-flex;
	gap: 0.5rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	border-radius: 4px;
	background: #fff;
	color: #2c3e50;
	text-decoration: none;
	transition: all 0.3s ease;
}

.page-numbers.current {
	background: #e74c3c;
	color: #fff;
}

.page-numbers:hover:not(.current) {
	background: #f5f5f5;
}

@media (max-width: 768px) {
	.haberler-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* Single Haber Styles */
.single-haber {
	max-width: 100%;
	margin: 0 auto;
}

.single-haber .haber-header {
	margin-bottom: 2rem;
	text-align: center;
	position: relative;
	padding: 2rem;
	background: linear-gradient(to bottom, #f8f9fa, #fff);
	border-radius: 8px 8px 0 0;
}

.single-haber .haber-title {
	font-size: 2rem;
	margin-bottom: 1rem;
	line-height: 1.3;
	color: #2c3e50;
	font-weight: 700;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.single-haber .haber-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	color: #666;
	font-size: 0.95rem;
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 20px;
	display: inline-flex;
}

.single-haber .haber-featured-image {
	margin: 0 0 2rem;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	max-height: 500px;
}

.single-haber .haber-featured-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	max-height: 500px;
}

.single-haber .haber-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 2rem;
}

.single-haber .haber-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #444;
	background: #fff;
	padding: 2rem 0;
}

.single-haber .haber-content p {
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
	line-height: 1.9;
}

.single-haber .haber-content h2,
.single-haber .haber-content h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #2c3e50;
	font-size: 1.5rem;
	font-weight: 700;
}

.single-haber .haber-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.5rem 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-haber .haber-content blockquote {
	margin: 2rem 0;
	padding: 1.5rem 2rem;
	border-left: 4px solid #e74c3c;
	background: #f8f9fa;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #2c3e50;
}

.haber-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	padding: 2rem;
}

.nav-previous,
.nav-next {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #2c3e50;
	text-decoration: none;
	max-width: 40%;
	padding: 1rem;
	border-radius: 6px;
	transition: all 0.3s ease;
	background: #f8f9fa;
	font-weight: 500;
	font-size: 0.95rem;
}

.nav-previous:hover,
.nav-next:hover {
	color: #e74c3c;
	background: #fff;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

/* Responsive adjustments for single haber */
@media (max-width: 768px) {
	.single-haber .haber-title {
		font-size: 1.75rem;
		padding: 0 1rem;
	}

	.single-haber .haber-featured-image {
		margin: 0 0 1.5rem;
		max-height: 300px;
	}

	.single-haber .haber-featured-image img {
		max-height: 300px;
	}

	.single-haber .haber-wrapper {
		padding: 0 1rem;
	}

	.haber-navigation {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem;
	}

	.nav-previous,
	.nav-next {
		max-width: none;
	}

	.single-haber .haber-header {
		padding: 1rem;
	}

	.single-haber .haber-content {
		padding: 1rem 0;
	}
}

/* Page Styles */
.page {
	background: #fff;
	margin: 0;
	padding: 0;
}

.page .page-header {
	background: linear-gradient(to bottom, #f8f9fa, #fff);
	padding: 0.1rem 0;
	margin: 0 0 0.1rem 0;
	text-align: center;
	position: relative;
}

.page .page-header:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

.page .page-title {
	font-size: 2.5rem;
	color: #2c3e50;
	margin: 0;
	font-weight: 700;
	line-height: 1.3;
}

.page-content-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 2rem 4rem;
}

.page-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #444;
}

.page-content p {
	margin-bottom: 1.5rem;
}

.page-content h2 {
	font-size: 1.8rem;
	color: #2c3e50;
	margin: 2.5rem 0 1.5rem;
	font-weight: 700;
}

.page-content h3 {
	font-size: 1.5rem;
	color: #2c3e50;
	margin: 2rem 0 1rem;
	font-weight: 600;
}

.page-content ul,
.page-content ol {
	margin: 1.5rem 0;
	padding-left: 1.5rem;
}

.page-content li {
	margin-bottom: 0.5rem;
}

.page-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 2rem 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-content blockquote {
	margin: 2rem 0;
	padding: 1.5rem 2rem;
	border-left: 4px solid #e74c3c;
	background: #f8f9fa;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #2c3e50;
}

.page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-content th,
.page-content td {
	padding: 1rem;
	border: 1px solid #eee;
	text-align: left;
}

.page-content th {
	background: #f8f9fa;
	font-weight: 600;
	color: #2c3e50;
}

.page-content tr:hover {
	background: #f8f9fa;
}

/* Featured Image for Pages */
.page-featured-image {
	width: 100%;
	max-height: 400px;
	overflow: hidden;
	margin-bottom: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.page-featured-image img {
	width: 100%;
	height: 400px;
	object-fit: cover;
}

/* Responsive adjustments for pages */
@media (max-width: 768px) {
	.page .page-header {
		padding: 2rem 0;
	}

	.page .page-title {
		font-size: 2rem;
	}

	.page-content-wrapper {
		padding: 0 1rem 2rem;
	}

	.page-content {
		font-size: 1rem;
	}

	.page-content h2 {
		font-size: 1.5rem;
	}

	.page-content h3 {
		font-size: 1.3rem;
	}

	.page-featured-image {
		max-height: 300px;
		margin: -1rem -1rem 1.5rem;
		border-radius: 0;
	}

	.page-featured-image img {
		height: 300px;
	}

	.page-content blockquote {
		padding: 1rem 1.5rem;
		margin: 1.5rem 0;
	}
}

.page .main-content {
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
} 