/* Typography */
.snosidebar-content-wrapper a {
	color: var(--accent-blue);
	
}
.snosidebar-content-wrapper h2 {
	font-size: 32px;
	font-weight: 700;
	color: var(--dark-text);
	margin-bottom: 24px;
	padding-top: 20px;
	position: relative;
}

.snosidebar-content-wrapper h2::before {
	content: '';
	position: absolute;
	left: -40px;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 40px;
	background: var(--accent-blue);
	border-radius: 2px;
}

.snosidebar-content-wrapper h3 {
	font-size: 24px;
	font-weight: 600;
	color: var(--dark-text);
	margin-bottom: 16px;
	margin-top: 32px;
}

.snosidebar-content-wrapper p {
	font-size: 18px;
	line-height: 1.8;
	color: var(--gray-text);
	margin-bottom: 20px;
}

.snosidebar-content-wrapper p em {
	color: var(--dark-text);
	font-style: normal;
	font-weight: 500;
	background: linear-gradient(to bottom, transparent 60%, rgba(114, 212, 250, 0.3) 60%);
	padding: 0 2px;
}

.snosidebar-content-wrapper ul, .snosidebar-content-wrapper ol {
	margin-bottom: 24px;
	padding-left: 24px;
}

.snosidebar-content-wrapper li {
	font-size: 18px;
	line-height: 1.8;
	color: var(--gray-text);
	margin-bottom: 12px;
	position: relative;
	padding-left: 8px;
}

.snosidebar-content-wrapper ul li::marker {
	color: var(--accent-blue);
}

/* Highlight Box */
.highlight-box {
	background: linear-gradient(135deg, rgba(114, 212, 250, 0.1) 0%, rgba(114, 212, 250, 0.05) 100%);
	border-left: 4px solid var(--accent-blue);
	padding: 24px;
	border-radius: 12px;
	margin: 32px 0;
}

.highlight-box p {
	margin-bottom: 12px;
	color: var(--dark-text);
}

.highlight-box p:last-child {
	margin-bottom: 0;
}

/* CTA Section */
.cta-section {
	background: linear-gradient(135deg, var(--primary-blue) 0%, #0051A0 100%);
	color: white;
	padding: 48px;
	border-radius: 20px;
	margin: 48px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cta-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(114, 212, 250, 0.2) 0%, transparent 50%);
	animation: rotate 30s linear infinite;
}

@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.cta-section h2 {
	color: white;
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
}

.cta-section h2::before {
	display: none;
}

.cta-section p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 20px;
	margin-bottom: 32px;
	position: relative;
	z-index: 1;
}

.cta-button {
	display: inline-block;
	background: white;
	color: var(--primary-blue);
	padding: 16px 32px;
	border-radius: 50px;
	text-decoration: none;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile Navigation Toggle */
.mobile-toc-toggle {
	display: none;
}

/* Progress Bar */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--light-gray);
	z-index: 1000;
}

.reading-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue));
	width: 0%;
	transition: width 0.2s ease;
}

/* Image Styles */
.image-container {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	position: relative;
	background: #f0f0f0;
}

.image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Tooltip with image size info */
.image-container::after {
	content: attr(data-size-info);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	white-space: pre-line;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	pointer-events: none;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-container:hover::after {
	opacity: 1;
	visibility: visible;
}

/* Darken image on hover for better tooltip visibility */
.image-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.image-container:hover::before {
	opacity: 1;
}

/* Full Width Image */
.image-container.full-width {
	width: 100%;
	height: 400px;
	margin: 32px 0;
}

/* Two Column Grid */
.image-grid {
	display: grid;
	gap: 24px;
	margin: 32px 0;
}

.image-grid.two-columns {
	grid-template-columns: repeat(2, 1fr);
}

.image-grid .image-container {
	height: 250px;
}

/* Content with Inline Image */
.content-with-image {
	display: flex;
	gap: 40px;
	align-items: start;
	margin: 32px 0;
}

.content-with-image .text-content {
	flex: 1;
}

.content-with-image .image-container {
	width: 300px;
	height: 400px;
	flex-shrink: 0;
}

/* Three Column Grid for Gallery */
.image-grid.three-columns {
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.image-grid.three-columns .image-container {
	height: 200px;
}

/* Responsive */
@media (max-width: 1024px) {
	.content-wrapper {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.toc-sidebar {
		display: none;
	}

	.snosidebar-content-wrapper h2::before {
		left: -20px;
		width: 3px;
		height: 30px;
	}

	/* Responsive Images */
	.content-with-image {
		flex-direction: column;
	}

	.content-with-image .image-container {
		width: 100%;
		height: 300px;
	}
}

@media (max-width: 768px) {
	.page-hero {
		padding: 60px 20px 40px;
	}

	.page-title {
		font-size: 32px;
	}

	.page-subtitle {
		font-size: 18px;
	}

	.content-wrapper {
		padding: 40px 20px;
	}

	.snosidebar-content-wrapper h2 {
		font-size: 26px;
	}

	.snosidebar-content-wrapper h3 {
		font-size: 20px;
	}

	.snosidebar-content-wrapper p,
	.snosidebar-content-wrapper li {
		font-size: 16px;
	}

	.cta-section {
		padding: 32px 24px;
	}

	.cta-section p {
		font-size: 18px;
	}

	/* Mobile Images */
	.image-container.full-width {
		height: 250px;
	}

	.image-grid.two-columns {
		grid-template-columns: 1fr;
	}

	.image-grid.three-columns {
		grid-template-columns: 1fr;
	}

	.image-grid .image-container {
		height: 200px;
	}
}