/* Page Hero */
.page-hero {
	background: linear-gradient(135deg, rgba(114, 212, 250, 0.15) 0%, rgba(114, 212, 250, 0.25) 50%, rgba(114, 212, 250, 0.1) 100%);
	padding: 80px 20px 60px;
	position: relative;
	overflow: hidden;
}

.page-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		radial-gradient(circle at 20% 80%, rgba(114, 212, 250, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(114, 212, 250, 0.2) 0%, transparent 50%);
	opacity: 0.7;
	z-index: 0;
}

.page-hero-content {
	max-width: 1160px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.page-title {
	font-size: clamp(36px, 5vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--dark-text);
	margin-bottom: 20px;
	letter-spacing: -1px;
}

.page-subtitle {
	font-size: 20px;
	color: var(--gray-text);
	line-height: 1.5;
	max-width: 800px;
}

/* Content Layout */
.content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 60px;
	position: relative;
}

/* Table of Contents */
.toc-sidebar {
	position: sticky;
	top: 100px;
	height: fit-content;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
}

.toc-container {
	background: var(--light-gray);
	border-radius: 16px;
	padding: 24px;
	border: 1px solid rgba(114, 212, 250, 0.2);
}

.toc-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--primary-blue);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.toc-title svg {
	width: 20px;
	height: 20px;
	color: var(--accent-blue);
}

.toc-list {
	list-style: none;
}

.toc-item {
	margin-bottom: 4px;
}

.toc-link {
	display: block;
	padding: 8px 12px;
	color: var(--gray-text);
	text-decoration: none;
	font-size: 15px;
	border-radius: 8px;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.toc-link:hover {
	background: rgba(114, 212, 250, 0.1);
	color: var(--primary-blue);
	border-left-color: var(--accent-blue);
	transform: translateX(3px);
}

.toc-link.active {
	background: rgba(114, 212, 250, 0.15);
	color: var(--primary-blue);
	font-weight: 600;
	border-left-color: var(--primary-blue);
}

/* CTA Link in TOC */
.toc-link-cta {
	background: var(--accent-blue);
	color: var(--dark-text) !important;
	font-weight: 600;
	margin-top: 16px;
	text-align: center;
	border-left: none !important;
	box-shadow: 0 2px 8px rgba(114, 212, 250, 0.3);
}

.toc-link-cta:hover {
	background: rgb(104, 202, 240);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(114, 212, 250, 0.4);
}

.toc-link-cta.active {
	background: var(--primary-blue);
	color: white !important;
}

/* Main Content */
.main-content {
	max-width: 800px;
}

.content-section {
	margin-bottom: 60px;
}

/* Typography */
.main-content h2 {
	font-size: 32px;
	font-weight: 700;
	color: var(--dark-text);
	margin-bottom: 24px;
	padding-top: 20px;
	position: relative;
}

.main-content h2::before {
	content: '';
	position: absolute;
	left: -40px;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 40px;
	background: var(--accent-blue);
	border-radius: 2px;
}

.main-content h3 {
	font-size: 24px;
	font-weight: 600;
	color: var(--dark-text);
	margin-bottom: 16px;
	margin-top: 32px;
}

.main-content p {
	font-size: 18px;
	line-height: 1.8;
	color: var(--gray-text);
	margin-bottom: 20px;
}

.main-content p em {
	color: var(--dark-text);
	font-style: normal;
	font-weight: 500;
	background: linear-gradient(to bottom, transparent 0%, rgba(114, 212, 250, 0.3) 60%);
	padding: 0 2px;
}

.main-content ul, .main-content ol {
	margin-bottom: 24px;
	padding-left: 24px;
}

.main-content li {
	font-size: 18px;
	line-height: 1.8;
	color: var(--gray-text);
	margin-bottom: 12px;
	position: relative;
	padding-left: 8px;
}

.main-content 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;
	}

	.main-content 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;
	}

	.main-content h2 {
		font-size: 26px;
	}

	.main-content h3 {
		font-size: 20px;
	}

	.main-content p,
	.main-content 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;
	}
}
		
		
.snosidebar-content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
	position: relative;
}