/* ========================================
	Template core
	======================================== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background);
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}

img {
	max-width: 100%;
	height: auto;
}

/* ========================================
	Layout
	======================================== */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-main {
	overflow-x: hidden;
}

/* ========================================
	Header
	======================================== */
.site-header {
	background: var(--white);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.site-branding {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
}

.site-title a {
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.site-description {
	font-size: 0.85rem;
	color: var(--text-light);
	margin: 0;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: 30px;
}

.main-navigation a {
	font-weight: 500;
	color: var(--text-color);
	padding: 8px 16px;
	border-radius: 8px;
}

.main-navigation a:hover {
	background: var(--background);
	color: var(--primary-color);
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 44px;
	height: 44px;
	line-height: 0;
	align-items: center;
	justify-content: center;
}

.hamburger-box {
	width: 30px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin: 0;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
	width: 30px;
	height: 3px;
	background-color: var(--primary-color);
	border-radius: 3px;
	position: absolute;
	left: 0;
	right: 0;
	margin: 0 auto;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-inner {
	top: 50%;
	transform: translateY(-50%);
}

.hamburger-inner::before {
	content: '';
	top: -10px;
}

.hamburger-inner::after {
	content: '';
	bottom: -10px;
}

/* ========================================
	Hero
	======================================== */
.hero {
	background: var(--gradient-primary);
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 60px 80px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 80%;
	height: 200%;
	background: radial-gradient(circle, rgba(56, 178, 172, 0.15) 0%, transparent 70%);
	pointer-events: none;
}

.hero-content {
	flex: 1;
	max-width: 560px;
	z-index: 1;
}

.hero-title {
	font-size: 3.8rem;
	font-weight: 800;
	color: var(--white);
	line-height: 1.1;
	margin-bottom: 20px;
}

.hero-title span {
	display: block;
	background: var(--gradient-accent);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: 1.2rem;
	color: rgba(255,255,255,0.9);
	margin-bottom: 10px;
	font-weight: 600;
}

.hero-description {
	font-size: 1.05rem;
	color: rgba(255,255,255,0.75);
	margin-bottom: 30px;
	line-height: 1.8;
}

.hero-stats {
	display: flex;
	gap: 24px;
}

.stat-item {
	text-align: center;
	padding: 16px 22px;
	background: rgba(57,86,125,0.9);
	border-radius: var(--border-radius);
}

.stat-number {
	display: block;
	font-size: 2.1rem;
	font-weight: 800;
	color: var(--secondary-color);
}

.stat-label {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.8);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.hero-visual {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	z-index: 1;
}

.data-chart-animation {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	height: 280px;
}

.chart-bar {
	width: 44px;
	height: var(--height);
	background: var(--gradient-accent);
	border-radius: 8px 8px 0 0;
	animation: growBar 1.5s ease-out forwards;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: bottom;
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }

@keyframes growBar {
	to {
		opacity: 1;
		transform: scaleY(1);
	}
}

/* ========================================
	Sections
	======================================== */
.section-title {
	font-size: 2.4rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 40px;
	color: var(--primary-color);
}

.section-subtitle {
	font-size: 1.1rem;
	color: var(--text-light);
	max-width: 600px;
	margin: 0 auto 40px;
	text-align: center;
}

.featured-articles {
	padding: 60px 0;
	background: var(--background);
}

.articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
}

.article-card {
	background: var(--white);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

.article-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}

.article-image {
	height: 180px;
	background: var(--gradient-primary);
}

.placeholder-image {
	width: 100%;
	height: 100%;
	background: var(--gradient-primary);
}

.article-card-content {
	padding: 20px;
}

.article-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.article-excerpt {
	color: var(--text-light);
	line-height: 1.6;
	margin-bottom: 16px;
}

.article-link {
	color: var(--secondary-color);
	font-weight: 600;
}

.article-link:hover {
	color: var(--primary-color);
}

.categories {
	padding: 80px 0;
	background: var(--white);
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.category-card {
	background: var(--background);
	padding: 30px;
	border-radius: var(--border-radius-lg);
	text-align: center;
	transition: var(--transition);
}

.category-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-md);
}

.category-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	background: var(--gradient-primary);
	border-radius: 50%;
}

.elections {
	padding: 80px 0;
	background: linear-gradient(180deg, var(--background) 0%, #e2e8f0 100%);
}

.section-header {
	text-align: center;
	margin-bottom: 40px;
}

.candidates-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
}

.candidate-card {
	background: var(--white);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.candidate-photo {
	height: 180px;
	background: var(--gradient-primary);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.placeholder-photo {
	width: 90px;
	height: 90px;
	background: rgba(255,255,255,0.2);
	border-radius: 50%;
}

.candidate-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--accent-color);
	color: var(--white);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
}

.candidate-info {
	padding: 20px;
}

.candidate-name {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--primary-color);
}

.candidate-party {
	color: var(--secondary-color);
	font-weight: 600;
	margin-bottom: 10px;
}

.candidate-slogan {
	color: var(--text-light);
	margin-bottom: 15px;
}

.candidate-link {
	font-weight: 600;
	color: var(--primary-color);
}

.candidate-link:hover {
	color: var(--secondary-color);
}

.cta-section {
	padding: 80px 0;
	background: var(--gradient-primary);
	text-align: center;
}

.cta-section h2 {
	font-size: 2.3rem;
	color: var(--white);
	margin-bottom: 15px;
}

.cta-section p {
	color: rgba(255,255,255,0.8);
	margin-bottom: 25px;
}

.newsletter-form {
	display: flex;
	justify-content: center;
	gap: 12px;
	max-width: 480px;
	margin: 0 auto;
}

.newsletter-form input {
	flex: 1;
	padding: 14px 20px;
	border: none;
	border-radius: 999px;
}

.newsletter-form button {
	padding: 14px 28px;
	border: none;
	border-radius: 999px;
	background: var(--accent-color);
	color: var(--white);
	font-weight: 600;
	cursor: pointer;
}

.newsletter-form button:hover {
	background: #dd6b20;
}

/* ========================================
	Footer
	======================================== */
.site-footer {
	background: var(--primary-color);
	padding: 60px 0 30px;
	color: var(--white);
}

.footer-content {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 30px;
}

.footer-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 15px;
}

.footer-description {
	color: rgba(255,255,255,0.7);
	line-height: 1.6;
}

.footer-navigation h4,
.footer-contact h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.footer-navigation ul {
	list-style: none;
}

.footer-navigation li {
	margin-bottom: 10px;
}

.footer-navigation a {
	color: rgba(255,255,255,0.7);
}

.footer-navigation a:hover {
	color: var(--secondary-color);
}

.footer-contact a {
	color: rgba(255,255,255,0.7);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.footer-social {
	display: flex;
	gap: 10px;
}

.footer-social a {
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-social a:hover {
	background: var(--secondary-color);
}

/* ========================================
	Utilities
	======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

/* ========================================
	Responsive
	======================================== */
@media (max-width: 992px) {
	.hero {
		flex-direction: column;
		padding: 50px 40px;
		text-align: center;
	}

	.hero-visual {
		margin-top: 40px;
	}
}

@media (max-width: 768px) {
	.site-header {
		flex-wrap: wrap;
		padding: 15px 20px;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		width: 100%;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 12px;
		padding: 10px 0 0;
	}

	.hero-title {
		font-size: 2.6rem;
	}

	.newsletter-form {
		flex-direction: column;
	}

	.newsletter-form input,
	.newsletter-form button {
		width: 100%;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.hero {
		padding: 40px 20px;
	}

	.hero-title {
		font-size: 2.1rem;
	}

	.data-chart-animation {
		height: 160px;
	}
}
