/**
 * Panache IELTS - Modern Essay Stylesheet
 * Optimized for high performance, browser caching, and responsive design.
 */

:root {
	--primary-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
	--news-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
	--emerald-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
	--accent-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
	--bg-surface: #f8fafc;
	--card-bg: #ffffff;
	--heading-color: #0f172a;
	--text-main: #334155;
	--text-muted: #64748b;
	--border-color: #e2e8f0;
	--brand-sky: #0284c7;
	--brand-blue: #2563eb;
	--brand-emerald: #059669;
	--brand-purple: #7c3aed;
	--brand-amber: #f59e0b;
	--radius-xl: 20px;
	--radius-lg: 14px;
	--radius-md: 10px;
	--shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
	--shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

body {
	font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: var(--bg-surface);
	color: var(--text-main);
	line-height: 1.65;
	overflow-x: hidden;
}

/* Fixed Header & Navbar styling compatibility */
#header {
	background: rgba(15, 23, 42, 0.96) !important;
	backdrop-filter: blur(12px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: all 0.3s ease;
}

#header .logo img {
	max-height: 44px;
}

.navbar a,
.navbar a:focus {
	color: #e2e8f0;
	font-weight: 500;
	font-size: 0.95rem;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
	color: #38bdf8 !important;
}

/* Hero Header Section */
.hero-banner {
	background: linear-gradient(135deg, #091224 0%, #0f1f38 50%, #1e1b4b 100%);
	color: #ffffff;
	padding: 130px 0 65px 0;
	position: relative;
	overflow: hidden;
}

.hero-banner::before {
	content: '';
	position: absolute;
	top: -25%;
	right: -8%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
	border-radius: 50%;
	pointer-events: none;
}

.hero-banner::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
	border-radius: 50%;
	pointer-events: none;
}

/* Breadcrumbs */
.breadcrumb-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	font-size: 0.85rem;
}

.breadcrumb-nav a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.breadcrumb-nav a:hover {
	color: #38bdf8;
}

.breadcrumb-nav .sep {
	color: #475569;
	font-size: 0.75rem;
}

.breadcrumb-nav .current {
	color: #e2e8f0;
	font-weight: 600;
}

.hero-badges-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(14, 165, 233, 0.16);
	border: 1px solid rgba(14, 165, 233, 0.35);
	padding: 6px 14px;
	border-radius: 30px;
	font-size: 0.825rem;
	font-weight: 700;
	letter-spacing: 0.4px;
	color: #38bdf8;
	backdrop-filter: blur(8px);
}

.hero-badge-band {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(245, 158, 11, 0.18);
	border: 1px solid rgba(245, 158, 11, 0.4);
	padding: 6px 14px;
	border-radius: 30px;
	font-size: 0.825rem;
	font-weight: 700;
	color: #fbbf24;
}

.hero-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.25;
	background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 16px;
}

.hero-subtitle {
	font-size: 1.075rem;
	color: #cbd5e1;
	max-width: 780px;
	line-height: 1.65;
	margin-bottom: 26px;
}

.hero-action-buttons {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.btn-hero-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
	color: #ffffff;
	padding: 11px 22px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.925rem;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 25px rgba(2, 132, 199, 0.5);
	color: #ffffff;
}

.btn-hero-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 11px 20px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.925rem;
	text-decoration: none;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.4);
}

.hero-stats-strip {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 7px 15px;
	border-radius: 10px;
	font-size: 0.85rem;
	color: #e2e8f0;
}

.stat-chip i {
	color: #38bdf8;
	font-size: 1.15rem;
}

/* Main Essay Section */
.essay-detail-section {
	padding: 55px 0 85px 0;
}

/* Prompt Box Card */
.prompt-box-card {
	background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
	border-radius: var(--radius-xl);
	border: 1.5px solid #bae6fd;
	padding: 32px 36px;
	margin-bottom: 35px;
	box-shadow: 0 10px 30px rgba(2, 132, 199, 0.05);
	position: relative;
	overflow: hidden;
}

.prompt-box-card::before {
	content: '"';
	position: absolute;
	top: -15px;
	right: 25px;
	font-size: 140px;
	font-family: Georgia, serif;
	color: rgba(2, 132, 199, 0.08);
	line-height: 1;
	pointer-events: none;
}

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

.prompt-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #e0f2fe;
	color: #0369a1;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 5px 12px;
	border-radius: 20px;
}

.prompt-type-pill {
	font-size: 0.825rem;
	color: #4338ca;
	background: #e0e7ff;
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 600;
}

.prompt-text {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.55;
	margin-bottom: 20px;
	font-style: italic;
}

.prompt-insights-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(4px);
	padding: 12px 18px;
	border-radius: 12px;
	border: 1px solid rgba(2, 132, 199, 0.2);
	font-size: 0.885rem;
	color: #0369a1;
}

.prompt-insights-bar i {
	font-size: 1.25rem;
	color: #0284c7;
	flex-shrink: 0;
}

/* Essay Content Card & Reader */
.essay-card-wrapper {
	background: #ffffff;
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	margin-bottom: 40px;
}

.essay-toolbar {
	background: #f8fafc;
	border-bottom: 1px solid var(--border-color);
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	position: sticky;
	top: 70px;
	z-index: 50;
	backdrop-filter: blur(8px);
}

.toolbar-left,
.toolbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.toolbar-label {
	font-size: 0.825rem;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-right: 4px;
}

.mode-btn {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #475569;
	font-size: 0.825rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.mode-btn:hover {
	background: #f1f5f9;
	color: #0f172a;
	border-color: #94a3b8;
}

.mode-btn.active {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.mode-btn.vocab.active {
	background: #0284c7;
	border-color: #0284c7;
}

.mode-btn.cohesion.active {
	background: #7c3aed;
	border-color: #7c3aed;
}

.mode-btn.structure.active {
	background: #059669;
	border-color: #059669;
}

.btn-font-control {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.85rem;
	transition: all 0.2s ease;
}

.btn-font-control:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

.btn-copy-essay {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 0.825rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.25s ease;
}

.btn-copy-essay:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.btn-copy-essay.copied {
	background: #dcfce7;
	color: #15803d;
	border-color: #86efac;
}

/* Essay Reader Body */
.essay-reader-body {
	padding: 38px 42px;
	font-size: 1.05rem;
	line-height: 1.85;
	color: #1e293b;
	transition: font-size 0.2s ease;
}

/* Paragraph Blocks */
.essay-paragraph-block {
	position: relative;
	margin-bottom: 28px;
	padding: 22px 26px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	transition: all 0.3s ease;
}

.essay-paragraph-block:hover {
	background: #fafafa;
	border-color: #e2e8f0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.para-header-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 3px 10px;
	border-radius: 6px;
	margin-bottom: 12px;
}

.badge-intro {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.badge-body1 {
	background: #f0fdf4;
	color: #047857;
	border: 1px solid #bbf7d0;
}

.badge-body2 {
	background: #fff7ed;
	color: #c2410c;
	border: 1px solid #fed7aa;
}

.badge-conclusion {
	background: #f5f3ff;
	color: #6d28d9;
	border: 1px solid #ddd6fe;
}

.para-word-count {
	font-size: 0.75rem;
	color: #94a3b8;
	margin-left: 8px;
	font-weight: 500;
}

.essay-paragraph-block p {
	margin: 0;
	color: #334155;
}

/* Annotation Highlighting Classes */
.hl-vocab,
.hl-cohesion,
.hl-structure {
	transition: all 0.25s ease;
	border-radius: 4px;
	padding: 0;
	margin: 0;
}

.mode-vocab-active .hl-vocab {
	background: #e0f2fe;
	color: #0369a1;
	font-weight: 600;
	border-bottom: 2px solid #0284c7;
	padding: 0 2px;
	margin: 0;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.mode-cohesion-active .hl-cohesion {
	background: #ede9fe;
	color: #5b21b6;
	font-weight: 600;
	border-bottom: 2px solid #7c3aed;
	padding: 0 2px;
	margin: 0;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.mode-structure-active .hl-structure {
	background: #d1fae5;
	color: #065f46;
	font-weight: 600;
	border-bottom: 2px solid #10b981;
	padding: 0 2px;
	margin: 0;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* Essay Footer Bar */
.essay-card-footer {
	background: #f8fafc;
	border-top: 1px solid var(--border-color);
	padding: 18px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.885rem;
	color: var(--text-muted);
}

.essay-metrics-list {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.metric-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
	color: #475569;
}

.metric-item i {
	color: #0284c7;
	font-size: 1rem;
}

/* Band Criteria Tabs Section */
.band-analysis-card {
	background: #ffffff;
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
	padding: 34px;
	margin-bottom: 40px;
}

.section-title-wrap {
	margin-bottom: 24px;
}

.section-tag {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #0284c7;
	margin-bottom: 6px;
	display: block;
}

.section-main-heading {
	font-size: 1.65rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 8px;
}

.section-desc {
	color: #64748b;
	font-size: 0.95rem;
	max-width: 680px;
}

.criteria-tabs-nav {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid #f1f5f9;
	margin-bottom: 26px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.criteria-tab-btn {
	background: none;
	border: none;
	padding: 12px 18px;
	font-weight: 700;
	font-size: 0.9rem;
	color: #64748b;
	cursor: pointer;
	position: relative;
	white-space: nowrap;
	transition: all 0.25s ease;
	border-radius: 8px 8px 0 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.criteria-tab-btn:hover {
	color: #0f172a;
	background: #f8fafc;
}

.criteria-tab-btn.active {
	color: #0284c7;
}

.criteria-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2.5px;
	background: #0284c7;
	border-radius: 3px 3px 0 0;
}

.criteria-score-badge {
	font-size: 0.75rem;
	background: #e0f2fe;
	color: #0369a1;
	padding: 2px 7px;
	border-radius: 10px;
	font-weight: 700;
}

.criteria-tab-btn.active .criteria-score-badge {
	background: #dbeafe;
	color: #1d4ed8;
}

.tab-pane-content {
	display: none;
	animation: fadeIn 0.3s ease;
}

.tab-pane-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.criteria-feature-list {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.criteria-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 0.95rem;
	color: #334155;
}

.criteria-feature-list li i {
	color: #0284c7;
	font-size: 1.25rem;
	flex-shrink: 0;
	margin-top: 2px;
}

.criteria-quote-box {
	background: #f8fafc;
	border-left: 4px solid #0284c7;
	padding: 16px 20px;
	border-radius: 0 10px 10px 0;
	font-size: 0.9rem;
	color: #475569;
	font-style: italic;
}

/* Vocabulary & Collocation Bank */
.vocab-section-card {
	background: #ffffff;
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
	padding: 34px;
	margin-bottom: 40px;
}

.vocab-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.vocab-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.vocab-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-sm);
	border-color: #cbd5e1;
	background: #ffffff;
}

.vocab-term-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.vocab-term {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
}

.vocab-level {
	font-size: 0.725rem;
	font-weight: 700;
	background: #dbeafe;
	color: #1e40af;
	padding: 2px 7px;
	border-radius: 6px;
	white-space: nowrap;
}

.vocab-type {
	font-size: 0.78rem;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.vocab-def {
	font-size: 0.885rem;
	color: #475569;
	line-height: 1.5;
	margin-bottom: 12px;
}

.vocab-example {
	font-size: 0.825rem;
	color: #0369a1;
	background: #f0f9ff;
	padding: 8px 12px;
	border-radius: 8px;
	border-left: 3px solid #0284c7;
	font-style: italic;
}

/* Essay Architecture Blueprint */
.blueprint-card {
	background: #ffffff;
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
	padding: 34px;
	margin-bottom: 40px;
}

.blueprint-timeline {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.blueprint-step {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px;
	position: relative;
}

.blueprint-step-number {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary-gradient);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.85rem;
	margin-bottom: 14px;
	box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.blueprint-step h5 {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
}

.blueprint-step p {
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

/* Bottom Navigation Between Essays */
.essay-bottom-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 40px;
}

.nav-essay-card {
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 22px 26px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-sm);
}

.nav-essay-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: #cbd5e1;
	color: inherit;
}

.nav-essay-card.prev-card:hover {
	border-left: 4px solid #059669;
}

.nav-essay-card.next-card:hover {
	border-right: 4px solid #0284c7;
}

.nav-direction-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #94a3b8;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.nav-essay-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
	margin: 0;
	transition: color 0.2s ease;
}

.nav-essay-card:hover .nav-essay-title {
	color: #0284c7;
}

/* Sticky Sidebar Components */
.sidebar-widget {
	background: #ffffff;
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
	padding: 26px;
	margin-bottom: 26px;
}

.widget-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.widget-title i {
	color: #0284c7;
	font-size: 1.3rem;
}

/* Stance Gauge */
.stance-meter-box {
	background: #f8fafc;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 18px;
	border: 1px solid #e2e8f0;
}

.stance-label-row {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.stance-progress-bar {
	height: 10px;
	border-radius: 6px;
	background: #e2e8f0;
	overflow: hidden;
	display: flex;
}

.stance-seg-agreement {
	width: 75%;
	background: #0284c7;
}

.stance-seg-concession {
	width: 25%;
	background: #f97316;
}

.stance-seg-institution {
	width: 35%;
	background: #0284c7;
}

.stance-seg-individual {
	width: 65%;
	background: #059669;
}

.stance-legend {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 8px;
}

.stance-legend span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.dot-agree {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #0284c7;
}

.dot-concede {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f97316;
}

.dot-inst {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #0284c7;
}

.dot-indiv {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #059669;
}

/* Essay Specs Table */
.specs-table {
	width: 100%;
	font-size: 0.885rem;
}

.specs-table tr {
	border-bottom: 1px solid #f1f5f9;
}

.specs-table tr:last-child {
	border-bottom: none;
}

.specs-table td {
	padding: 10px 0;
}

.specs-table td:first-child {
	color: #64748b;
	font-weight: 500;
}

.specs-table td:last-child {
	text-align: right;
	color: #0f172a;
	font-weight: 700;
}

/* Interactive Self-Assessment Checklist */
.checklist-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.875rem;
	color: #334155;
	cursor: pointer;
	user-select: none;
	transition: color 0.2s ease;
}

.checklist-item:last-child {
	border-bottom: none;
}

.checklist-checkbox {
	width: 18px;
	height: 18px;
	border-radius: 5px;
	border: 2px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
	transition: all 0.2s ease;
}

.checklist-checkbox i {
	font-size: 14px;
	color: transparent;
}

.checklist-item.checked .checklist-checkbox {
	background: #0284c7;
	border-color: #0284c7;
}

.checklist-item.checked .checklist-checkbox i {
	color: #ffffff;
}

.checklist-item.checked span {
	text-decoration: line-through;
	color: #94a3b8;
}

/* Related Essays List */
.related-essays-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.related-essay-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
	text-decoration: none;
	color: #334155;
	transition: all 0.2s ease;
}

.related-essay-link:hover {
	color: #0284c7;
	transform: translateX(3px);
}

.related-essay-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0284c7;
	font-size: 1.15rem;
	flex-shrink: 0;
}

.related-essay-title {
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.35;
}

/* Tutor CTA Card in Sidebar */
.cta-widget {
	background: linear-gradient(135deg, #091224 0%, #1e1b4b 100%);
	color: #ffffff;
	border-radius: var(--radius-xl);
	padding: 26px;
	position: relative;
	overflow: hidden;
}

.cta-widget::before {
	content: '';
	position: absolute;
	top: -40px;
	right: -40px;
	width: 140px;
	height: 140px;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
	border-radius: 50%;
}

.cta-widget h4 {
	font-size: 1.15rem;
	font-weight: 800;
	margin-bottom: 10px;
	color: #ffffff;
}

.cta-widget p {
	font-size: 0.885rem;
	color: #cbd5e1;
	line-height: 1.55;
	margin-bottom: 20px;
}

.btn-cta-widget {
	display: block;
	width: 100%;
	text-align: center;
	background: #0284c7;
	color: #ffffff;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.btn-cta-widget:hover {
	background: #0369a1;
	color: #ffffff;
	transform: translateY(-2px);
}

/* About & Features Upgrade */
.about-redesign {
	background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
	padding: 70px 0;
	border-top: 1px solid #e2e8f0;
}

.bio-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 36px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
	border: 1px solid #e2e8f0;
	height: 100%;
}

.bio-card h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 16px;
}

.bio-card p {
	color: #475569;
	line-height: 1.65;
	font-size: 0.95rem;
}

.feature-item-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
	border: 1px solid #e2e8f0;
	transition: transform 0.3s ease;
	height: 100%;
}

.feature-item-card:hover {
	transform: translateY(-4px);
}

.feature-icon-box {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 100%);
	color: #0284c7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 16px;
}

.feature-item-card h4 {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
}

.feature-item-card p {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

/* Footer tweaks */
#footer {
	background: #0f172a;
	color: #94a3b8;
}

#footer .footer-top {
	background: #0f172a;
	border-bottom: 1px solid #1e293b;
	padding: 60px 0 30px 0;
}

#footer h3,
#footer h4 {
	color: #ffffff;
	font-weight: 700;
}

#footer .footer-links ul a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s ease;
}

#footer .footer-links ul a:hover {
	color: #38bdf8;
}

#footer .copyright {
	padding: 25px 0;
	text-align: center;
	font-size: 0.875rem;
}

/* Toast Notification for Copy */
.toast-copy-notify {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #0f172a;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	font-weight: 600;
	z-index: 9999;
	transform: translateY(100px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.toast-copy-notify.show {
	transform: translateY(0);
	opacity: 1;
}

/* Essay Submission Modal & Textbox Styles */
.essay-modal-content {
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-color);
	box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
	overflow: hidden;
}

.essay-modal-header {
	background: linear-gradient(135deg, #091224 0%, #0f1f38 60%, #1e1b4b 100%);
	color: #ffffff;
	padding: 24px 28px;
	border-bottom: none;
	position: relative;
}

.essay-modal-header .modal-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 4px;
}

.essay-modal-header .modal-subtitle {
	font-size: 0.875rem;
	color: #cbd5e1;
	margin: 0;
	line-height: 1.45;
}

.essay-modal-header .btn-close {
	filter: invert(1) brightness(1.5);
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.essay-modal-header .btn-close:hover {
	opacity: 1;
}

.essay-modal-body {
	padding: 28px;
	background: #ffffff;
}

.modal-topic-card {
	background: #f8fafc;
	border: 1.5px solid #bae6fd;
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 22px;
}

.topic-label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #0284c7;
}

.topic-category {
	font-size: 0.75rem;
	font-weight: 600;
	background: #e0f2fe;
	color: #0369a1;
	padding: 2px 8px;
	border-radius: 12px;
}

.modal-topic-text {
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
	line-height: 1.5;
	font-style: italic;
}

.modal-input-label {
	font-size: 0.85rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 6px;
}

.essay-textarea {
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 0.95rem;
	line-height: 1.65;
	border-radius: 12px;
	border: 1.5px solid #cbd5e1;
	padding: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	resize: vertical;
}

.essay-textarea:focus {
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.essay-wordcount-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.825rem;
}

.wordcount-guide {
	color: #64748b;
	font-size: 0.8rem;
}

.modal-alert-privacy {
	font-size: 0.825rem;
	color: #0369a1;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 10px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
}

.btn-submit-essay {
	background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
	color: #ffffff;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	padding: 11px 22px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-submit-essay:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
	color: #ffffff;
}

.btn-submit-toolbar {
	background: #e0f2fe;
	border: 1px solid #bae6fd;
	color: #0369a1;
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 0.825rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.25s ease;
}

.btn-submit-toolbar:hover {
	background: #0284c7;
	color: #ffffff;
	border-color: #0284c7;
}

.success-icon-wrap {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #dbeafe;
	color: #0284c7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	margin: 0 auto;
}

.submission-preview-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px;
	max-height: 250px;
	overflow-y: auto;
}

.submission-preview-text {
	font-family: 'Consolas', 'Courier New', monospace;
	font-size: 0.825rem;
	color: #334155;
	margin: 0;
	white-space: pre-wrap;
	line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 991px) {
	.hero-title {
		font-size: 2rem;
	}

	.essay-reader-body {
		padding: 26px 20px;
	}

	.prompt-box-card {
		padding: 24px 20px;
	}

	.essay-bottom-nav {
		grid-template-columns: 1fr;
	}

	.essay-toolbar {
		position: static;
	}
}
