/**
 * SEO Text Section Styles
 *
 * @package opika
 */

.seo-text {
	padding: 60px 0;
	background-color: #f8f9fa;
}

.seo-text__wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.seo-text__content {
	background: #ffffff;
	border-radius: 8px;
	padding: 40px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.seo-text__excerpt,
.seo-text__full {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.seo-text__excerpt p,
.seo-text__full p {
	margin-bottom: 20px;
}

.seo-text__excerpt p:last-child,
.seo-text__full p:last-child {
	margin-bottom: 0;
}

.seo-text__excerpt h1,
.seo-text__excerpt h2,
.seo-text__excerpt h3,
.seo-text__excerpt h4,
.seo-text__excerpt h5,
.seo-text__excerpt h6,
.seo-text__full h1,
.seo-text__full h2,
.seo-text__full h3,
.seo-text__full h4,
.seo-text__full h5,
.seo-text__full h6 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-weight: 600;
	color: #2c3e50;
}

.seo-text__excerpt h2,
.seo-text__full h2 {
	font-size: 28px;
}

.seo-text__excerpt h3,
.seo-text__full h3 {
	font-size: 24px;
}

.seo-text__excerpt ul,
.seo-text__excerpt ol,
.seo-text__full ul,
.seo-text__full ol {
	margin: 20px 0;
	padding-left: 30px;
}

.seo-text__excerpt li,
.seo-text__full li {
	margin-bottom: 10px;
}

.seo-text__excerpt a,
.seo-text__full a {
	color: #007bff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.seo-text__excerpt a:hover,
.seo-text__full a:hover {
	color: #0056b3;
	text-decoration: underline;
}

.seo-text__excerpt img,
.seo-text__full img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 20px 0;
}

.seo-text__excerpt blockquote,
.seo-text__full blockquote {
	border-left: 4px solid #007bff;
	padding-left: 20px;
	margin: 20px 0;
	font-style: italic;
	color: #666;
}

.seo-text__toggle {
	margin-top: 30px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.seo-text__toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Початковий стан - показуємо тільки excerpt */
.seo-text__full {
	display: none;
}

.seo-text__toggle-text--hidden {
	display: none;
}

/* Розгорнутий стан - показуємо тільки full */
.seo-text__content.is-expanded .seo-text__excerpt {
	display: none !important;
}

.seo-text__content.is-expanded .seo-text__full {
	display: block !important;
}

.seo-text__content.is-expanded .seo-text__toggle-text {
	display: none !important;
}

.seo-text__content.is-expanded .seo-text__toggle-text--hidden {
	display: inline !important;
}

/* Responsive */
@media (max-width: 768px) {
	.seo-text {
		padding: 40px 0;
	}

	.seo-text__content {
		padding: 25px 20px;
	}

	.seo-text__excerpt,
	.seo-text__full {
		font-size: 15px;
		line-height: 1.7;
	}

	.seo-text__excerpt h2,
	.seo-text__full h2 {
		font-size: 24px;
	}

	.seo-text__excerpt h3,
	.seo-text__full h3 {
		font-size: 20px;
	}
}
