/* =====================================================
   HOCTEST THEME — MAIN STYLESHEET
   Primary color: #4285F4
   ===================================================== */

/* ----- CSS Variables (Design Tokens) ----- */
:root {
	/* Colors */
	--color-primary:        #4285F4;
	--color-primary-dark:   #3367D6;
	--color-primary-light:  #E8F0FE;
	--color-primary-rgb:    66, 133, 244;

	--color-text:           #1a1a2e;
	--color-text-secondary: #6c757d;
	--color-text-light:     #999;

	--color-bg:             #f7f8fc;
	--color-surface:        #ffffff;
	--color-border:         #e0e0e0;
	--color-border-light:   #f0f0f0;

	--color-success:        #28a745;
	--color-error:          #dc3545;
	--color-warning:        #ffc107;

	/* Typography */
	--font-family:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-size-base:       16px;
	--font-size-sm:         14px;
	--font-size-xs:         12px;
	--font-size-lg:         18px;
	--font-size-xl:         24px;
	--font-size-2xl:        32px;
	--font-size-3xl:        40px;
	--line-height:          1.6;

	/* Spacing */
	--spacing-xs:           4px;
	--spacing-sm:           8px;
	--spacing-md:           16px;
	--spacing-lg:           24px;
	--spacing-xl:           32px;
	--spacing-2xl:          48px;
	--spacing-3xl:          64px;

	/* Layout */
	--container-width:      1140px;
	--sidebar-width:        300px;
	--header-height:        76px;

	/* Borders & Shadows */
	--border-radius:        8px;
	--border-radius-lg:     12px;
	--border-radius-full:   9999px;
	--shadow-sm:            0 1px 3px rgba(0,0,0,0.06);
	--shadow-md:            0 2px 12px rgba(0,0,0,0.08);
	--shadow-lg:            0 4px 24px rgba(0,0,0,0.12);

	/* Transitions */
	--transition-fast:      0.15s ease;
	--transition-normal:    0.25s ease;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: var(--font-size-base);
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	line-height: var(--line-height);
	color: var(--color-text);
	background-color: var(--color-bg);
}

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

a:hover {
	color: var(--color-primary-dark);
}

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

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl);  }
h4 { font-size: var(--font-size-lg);  }

p {
	margin-bottom: var(--spacing-md);
}

ul, ol {
	padding-left: var(--spacing-lg);
}

/* ----- Layout ----- */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.site-content {
	display: flex;
	gap: var(--spacing-xl);
	padding: 48px 0 80px;
	min-height: calc(100vh - var(--header-height) - 260px);
}

.content-area {
	flex: 1;
	min-width: 0; /* Prevent flex overflow */
}

.widget-area {
	width: var(--sidebar-width);
	flex-shrink: 0;
}

/* Full-width layout (no sidebar) */
.site-content.no-sidebar {
	display: block;
}

/* ----- Header ----- */
.site-header {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border-light);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--shadow-sm);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	gap: 20px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
}

.site-branding .custom-logo {
	max-height: 64px;
	width: auto;
	object-fit: contain;
}

.site-title {
	font-size: var(--font-size-lg);
	font-weight: 700;
	margin: 0;
}

.site-title a {
	color: var(--color-text);
}

.site-title a:hover {
	color: var(--color-primary);
}

.site-description {
	font-size: var(--font-size-xs);
	color: var(--color-text-secondary);
	margin: 0;
}

.site-logo-text {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--color-text);
}

.logo-name {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.5px;
	background: linear-gradient(135deg, #4285F4, #1a56db);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ----- Navigation ----- */
.main-navigation ul {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 6px;
	padding: 0;
	margin: 0;
}

.main-navigation a {
	display: block;
	padding: 8px 16px;
	color: var(--color-text-secondary);
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	text-decoration: none;
	transition: background var(--transition-fast), color var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a.active {
	background: #eff6ff;
	color: var(--color-primary);
	font-weight: 600;
}

/* ----- Auth Area & User Avatar Dropdown ----- */
.header-auth {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-auth-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	font-family: var(--font-family);
	transition: all 0.2s;
	white-space: nowrap;
}

.header-btn.btn-login {
	color: var(--color-text);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
}

.header-btn.btn-login:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	background: #eff6ff;
}

.header-btn.btn-signup {
	background: var(--color-primary);
	color: #ffffff;
	border: 1px solid var(--color-primary);
}

.header-btn.btn-signup:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #ffffff;
}

/* User avatar button & popover */
.header-user-menu {
	position: relative;
}

.user-avatar-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid var(--color-border-light);
	padding: 4px 10px 4px 4px;
	border-radius: 30px;
	cursor: pointer;
	transition: all 0.2s;
	color: var(--color-text);
	font-family: var(--font-family);
}

.user-avatar-btn:hover,
.header-user-menu.open .user-avatar-btn {
	border-color: var(--color-primary);
	background: #eff6ff;
}

.user-avatar-img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ffffff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	background: #e2e8f0;
	flex-shrink: 0;
}

.user-name-text {
	font-size: 14px;
	font-weight: 600;
	max-width: 140px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dropdown-chevron {
	width: 16px;
	height: 16px;
	color: var(--color-text-light);
	transition: transform 0.2s;
	flex-shrink: 0;
}

.header-user-menu.open .dropdown-chevron {
	transform: rotate(180deg);
}

/* User Dropdown Popover */
.user-dropdown-popover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 240px;
	background: var(--color-surface);
	border: 1px solid var(--color-border-light);
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.12);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 1100;
}

.header-user-menu.open .user-dropdown-popover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.user-dropdown-header {
	padding: 10px 16px 12px;
	border-bottom: 1px solid var(--color-border-light);
	display: flex;
	align-items: center;
	gap: 10px;
}

.user-dropdown-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #e5e7eb;
}

.user-dropdown-info {
	min-width: 0;
}

.user-dropdown-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-dropdown-email {
	font-size: 12px;
	color: var(--color-text-light);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-dropdown-links {
	list-style: none;
	margin: 0;
	padding: 6px 0 2px;
}

.user-dropdown-links li {
	margin: 0;
}

.user-dropdown-links li.divider {
	height: 1px;
	background: var(--color-border-light);
	margin: 6px 0;
}

.user-dropdown-links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text-secondary);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.user-dropdown-links a svg {
	width: 18px;
	height: 18px;
	color: var(--color-text-light);
	flex-shrink: 0;
	transition: color 0.15s;
}

.user-dropdown-links a:hover {
	background: #f8fafc;
	color: var(--color-primary);
}

.user-dropdown-links a:hover svg {
	color: var(--color-primary);
}

.user-dropdown-links a.logout-link:hover {
	color: #dc2626;
	background: #fef2f2;
}

.user-dropdown-links a.logout-link:hover svg {
	color: #dc2626;
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--color-border-light);
	border-radius: 6px;
	cursor: pointer;
	padding: 6px 8px;
	color: var(--color-text);
	transition: background 0.15s;
}

.menu-toggle:hover {
	background: #f1f5f9;
}

.menu-toggle svg {
	width: 22px;
	height: 22px;
	display: block;
}

/* ----- Footer ----- */
.site-footer {
	background: #0b1220;
	color: rgba(255,255,255,0.65);
	padding: 72px 0 0;
	border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-main {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
	gap: 48px;
	padding-bottom: 56px;
}

/* Brand column */
.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-brand img,
.footer-brand .custom-logo {
	max-height: 84px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1) opacity(0.9);
}

.footer-logo-text {
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: -0.4px;
}

.footer-slogan {
	font-size: 17px;
	font-weight: 700;
	color: #e2e8f0;
	margin: 0;
	line-height: 1.4;
}

.footer-desc {
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	line-height: 1.65;
	margin: 0;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: rgba(255,255,255,0.07);
	color: rgba(255,255,255,0.6);
	transition: background 0.2s, color 0.2s;
	text-decoration: none;
}

.footer-social a:hover {
	background: #4285F4;
	color: #ffffff;
}

.footer-social a svg {
	width: 18px;
	height: 18px;
}

/* Nav columns */
.footer-col {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.footer-col-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.9px;
	color: #ffffff;
	margin-bottom: 16px;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-links a {
	font-size: 14px;
	color: rgba(255,255,255,0.55);
	text-decoration: none;
	transition: color 0.15s;
}

.footer-links a:hover {
	color: #ffffff;
}

/* Newsletter column */
.footer-newsletter-desc {
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	line-height: 1.6;
	margin: 0 0 16px;
}

.footer-subscribe-row {
	display: flex;
	gap: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.05);
}

.footer-email-input {
	flex: 1;
	padding: 11px 14px;
	background: transparent;
	border: none;
	outline: none;
	color: #ffffff;
	font-size: 14px;
	font-family: var(--font-family);
	min-width: 0;
}

.footer-email-input::placeholder {
	color: rgba(255,255,255,0.35);
}

.footer-subscribe-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	background: #4285F4;
	border: none;
	cursor: pointer;
	color: #ffffff;
	transition: background 0.2s;
	flex-shrink: 0;
}

.footer-subscribe-btn:hover {
	background: #3367d6;
}

.footer-subscribe-btn svg {
	width: 18px;
	height: 18px;
}

.footer-subscribe-status {
	font-size: 13px;
	margin: 8px 0 0;
	color: rgba(255,255,255,0.5);
	line-height: 1.4;
	min-height: 18px;
}

.footer-subscribe-status.subscribe-ok {
	color: #86efac;
}

/* Bottom bar */
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.07);
	padding: 20px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.footer-copy {
	font-size: 13px;
	color: rgba(255,255,255,0.35);
	margin: 0;
}

.site-footer a {
	color: rgba(255,255,255,0.55);
	transition: color 0.15s;
}

.site-footer a:hover {
	color: #ffffff;
}

/* Footer responsive */
@media (max-width: 991px) {
	.footer-main {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.footer-main {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* ----- Cards / Post entries ----- */
.post-card {
	background: var(--color-surface);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.post-card .post-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.post-card .post-content {
	padding: var(--spacing-lg);
}

.post-card .entry-title {
	font-size: var(--font-size-lg);
	margin-bottom: var(--spacing-sm);
}

.post-card .entry-title a {
	color: var(--color-text);
}

.post-card .entry-title a:hover {
	color: var(--color-primary);
}

.post-card .entry-meta {
	font-size: var(--font-size-xs);
	color: var(--color-text-light);
	margin-bottom: var(--spacing-sm);
}

.post-card .entry-excerpt {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	margin-bottom: var(--spacing-md);
}

/* Posts grid */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: var(--spacing-lg);
}

.single-post-content,
.page-content {
	background: var(--color-surface);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--spacing-2xl);
}

/* Remove redundant outer box wrapper on Login & Auth pages */
.post-83.page-content,
.page-template-tpl-login .page-content,
.page-template-tpl-signup .page-content,
.page-content:has(.auth-card),
.page-content:has(.auth-page-section),
.page-content:has(.tutor-login-wrap),
.page-content:has(.tutor-login-form-wrapper),
.page-content:has(.tutor-template-login-form) {
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
}

/* Tutor Login page centering, white background card & title cleanup */
.tutor-login-wrap,
.tutor-login-form-wrap,
.tutor-template-login-form,
.tutor-login-form,
.tutor-form-login {
	max-width: 480px;
	margin: 0 auto;
	background: #ffffff !important;
	border-radius: 16px !important;
	border: 1px solid var(--color-border-light) !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
	padding: 40px 36px !important;
}

.tutor-login-title,
.tutor-page-title {
	display: none !important;
}

.entry-header {
	margin-bottom: var(--spacing-xl);
}

.entry-header .entry-title {
	font-size: var(--font-size-2xl);
	margin-bottom: var(--spacing-sm);
}

.entry-header .entry-meta {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

.entry-content {
	font-size: var(--font-size-base);
	line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: var(--spacing-xl);
	margin-bottom: var(--spacing-md);
}

.entry-content p {
	margin-bottom: var(--spacing-md);
}

.entry-content img {
	border-radius: var(--border-radius);
	margin: var(--spacing-lg) 0;
}

.entry-content blockquote {
	border-left: 4px solid var(--color-primary);
	padding: var(--spacing-md) var(--spacing-lg);
	margin: var(--spacing-lg) 0;
	background: var(--color-primary-light);
	border-radius: 0 var(--border-radius) var(--border-radius) 0;
	font-style: italic;
	color: var(--color-text-secondary);
}

/* ----- Buttons ----- */
.btn {
	display: inline-block;
	padding: 10px 24px;
	font-size: var(--font-size-sm);
	font-weight: 600;
	border-radius: var(--border-radius);
	border: none;
	cursor: pointer;
	text-align: center;
	transition: all var(--transition-fast);
	line-height: 1.5;
}

.btn-primary {
	background: var(--color-primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--color-primary-dark);
	color: #fff;
}

.btn-outline {
	background: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
}

.btn-outline:hover {
	background: var(--color-primary);
	color: #fff;
}

/* ----- Widgets ----- */
.widget {
	background: var(--color-surface);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--spacing-lg);
	margin-bottom: var(--spacing-lg);
}

.widget-title {
	font-size: var(--font-size-base);
	margin-bottom: var(--spacing-md);
	padding-bottom: var(--spacing-sm);
	border-bottom: 2px solid var(--color-primary-light);
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget ul li {
	padding: var(--spacing-sm) 0;
	border-bottom: 1px solid var(--color-border-light);
}

.widget ul li:last-child {
	border-bottom: none;
}

/* ----- Pagination ----- */
.pagination {
	display: flex;
	justify-content: center;
	gap: var(--spacing-xs);
	margin-top: var(--spacing-xl);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--spacing-sm);
	border-radius: var(--border-radius);
	font-size: var(--font-size-sm);
	font-weight: 500;
	color: var(--color-text-secondary);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

/* ----- Comments ----- */
.comments-area {
	background: var(--color-surface);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--spacing-2xl);
	margin-top: var(--spacing-xl);
}

.comments-title {
	font-size: var(--font-size-xl);
	margin-bottom: var(--spacing-lg);
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-body {
	padding: var(--spacing-lg) 0;
	border-bottom: 1px solid var(--color-border-light);
}

.comment-author {
	font-weight: 600;
	margin-bottom: var(--spacing-xs);
}

.comment-metadata {
	font-size: var(--font-size-xs);
	color: var(--color-text-light);
	margin-bottom: var(--spacing-sm);
}

.comment-respond {
	margin-top: var(--spacing-xl);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--border-radius);
	font-family: var(--font-family);
	font-size: var(--font-size-sm);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
	background: var(--color-bg);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
	background: var(--color-surface);
}

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: var(--font-size-sm);
	margin-bottom: var(--spacing-xs);
}

.comment-form .form-submit input {
	background: var(--color-primary);
	color: #fff;
	border: none;
	padding: 12px 32px;
	border-radius: var(--border-radius);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--transition-fast);
}

.comment-form .form-submit input:hover {
	background: var(--color-primary-dark);
}

/* ----- 404 Page ----- */
.error-404 {
	text-align: center;
	padding: var(--spacing-3xl) var(--spacing-lg);
}

.error-404 .error-code {
	font-size: 120px;
	font-weight: 800;
	color: var(--color-primary-light);
	line-height: 1;
}

.error-404 h1 {
	font-size: var(--font-size-xl);
	margin: var(--spacing-lg) 0 var(--spacing-md);
}

.error-404 p {
	color: var(--color-text-secondary);
	margin-bottom: var(--spacing-xl);
}

/* ----- Search Form ----- */
.search-form {
	display: flex;
	gap: var(--spacing-sm);
}

.search-form .search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--border-radius);
	font-family: var(--font-family);
	font-size: var(--font-size-sm);
}

.search-form .search-submit {
	background: var(--color-primary);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: var(--border-radius);
	font-weight: 600;
	cursor: pointer;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
	.site-content {
		flex-direction: column;
	}

	.widget-area {
		width: 100%;
	}

	.posts-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

@media (max-width: 768px) {
	:root {
		--font-size-3xl: 28px;
		--font-size-2xl: 24px;
		--header-height: 66px;
	}

	.site-header .container {
		gap: 10px;
	}

	.site-branding .custom-logo {
		max-height: 54px;
	}

	.logo-name {
		font-size: 20px;
	}

	/* Mobile menu */
	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background: var(--color-surface);
		box-shadow: var(--shadow-lg);
		padding: 12px var(--spacing-md);
		border-top: 1px solid var(--color-border-light);
		gap: 4px;
		z-index: 999;
	}

	.main-navigation a {
		padding: 12px 16px;
		font-size: 15px;
	}

	.main-navigation.toggled ul {
		display: flex;
	}

	/* User menu on mobile */
	.user-name-text {
		display: none;
	}

	.user-avatar-btn {
		padding: 3px;
	}

	.header-btn {
		padding: 6px 12px;
		font-size: 13px;
	}

	.single-post-content,
	.page-content {
		padding: var(--spacing-lg);
	}

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

@media (max-width: 480px) {
	.posts-grid {
		grid-template-columns: 1fr;
	}

	.container {
		padding: 0 var(--spacing-sm);
	}
}

/* ----- Course Price (global) ----- */
.course-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
}

.course-price.free {
	color: var(--color-success);
	font-weight: 600;
	font-size: 13px;
}

.course-price.has-sale {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.course-price .sale-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
}

.course-price .original-price {
	font-size: 13px;
	font-weight: 400;
	color: var(--color-text-light);
	text-decoration: line-through;
}

.course-price .discount-badge {
	font-size: 11px;
	font-weight: 600;
	color: #15803d;
	background: #dcfce7;
	padding: 2px 6px;
	border-radius: 3px;
	letter-spacing: -0.2px;
}

/* =====================================================
   TESTIMONIALS — Photo feedback section
   ===================================================== */

.testimonials-section {
	padding: var(--spacing-3xl) 0;
	background: #fff;
}

.testimonials-header {
	text-align: center;
	margin-bottom: var(--spacing-2xl);
}

.testimonials-header h2 {
	font-size: var(--font-size-2xl);
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 var(--spacing-sm);
}

.testimonials-header p {
	font-size: var(--font-size-base);
	color: var(--color-text-secondary);
	margin: 0;
}

/* Masonry grid — removed, now using carousel */

.tc-img-wrap {
	position: relative;
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	background: #f8fafc;
	line-height: 0;
}

.tc-img-wrap img {
	width: 100%;
	height: 420px;
	object-fit: contain;
	display: block;
	transition: filter 0.25s ease;
}

.tc-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
	background: rgba(66, 133, 244, 0.1);
}

.tc-overlay svg {
	width: 36px;
	height: 36px;
	color: #fff;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

.carousel-card.tc-card {
	cursor: pointer;
	padding: 0 8px;
	box-shadow: none;
	background: transparent;
}

.carousel-card.tc-card:hover .tc-img-wrap {
	box-shadow: var(--shadow-lg);
}

.carousel-card.tc-card:hover img {
	filter: brightness(0.93);
}

.carousel-card.tc-card:hover .tc-overlay {
	opacity: 1;
}

@media (max-width: 640px) {
	.tc-img-wrap img {
		height: 300px;
	}
}

/* ---- Lightbox ---- */
.testimonial-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.testimonial-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox-stage {
	max-width: min(90vw, 960px);
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

#lightbox-img {
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	border-radius: var(--border-radius-lg);
	box-shadow: 0 8px 48px rgba(0,0,0,0.5);
	object-fit: contain;
	transform: scale(0.92);
	transition: transform 0.25s ease;
}

.testimonial-lightbox.is-open #lightbox-img {
	transform: scale(1);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border: none;
	background: rgba(255,255,255,0.15);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background 0.2s;
	z-index: 1;
}

.lightbox-close:hover {
	background: rgba(255,255,255,0.28);
}

.lightbox-close svg {
	width: 20px;
	height: 20px;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: none;
	background: rgba(255,255,255,0.15);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background 0.2s;
	z-index: 1;
}

.lightbox-nav:hover {
	background: rgba(255,255,255,0.28);
}

.lightbox-nav svg {
	width: 22px;
	height: 22px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.7);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* ---- Empty state (chưa có ảnh) ---- */
.testimonials-empty {
	text-align: center;
	padding: var(--spacing-3xl) var(--spacing-lg);
	color: var(--color-text-secondary);
}

.testimonials-empty svg {
	width: 64px;
	height: 64px;
	margin-bottom: var(--spacing-md);
	opacity: 0.3;
}

.testimonials-empty p {
	font-size: var(--font-size-sm);
	margin: 0;
}

.testimonials-empty code {
	background: var(--color-bg);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.testimonials-masonry {
		columns: 2;
	}
}

@media (max-width: 640px) {
	.testimonials-section {
		padding: var(--spacing-2xl) 0;
	}
	.testimonials-masonry {
		columns: 1;
	}
	.lightbox-nav {
		width: 40px;
		height: 40px;
	}
	.lightbox-prev { left: 10px; }
	.lightbox-next { right: 10px; }
}

/* =====================================================
   TUTOR LMS — Ẩn phần upload file đính kèm bài tập
   ===================================================== */
.tutor-assignment-attachment { display: none !important; }

/* =====================================================
   TUTOR LMS — Table styling trong lesson & assignment content
   ===================================================== */
.tutor-lesson-wrapper table,
#tutor-single-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.25rem 0;
	font-size: 0.9rem;
	overflow-x: auto;
	display: block;
}

.tutor-lesson-wrapper table thead tr,
#tutor-single-entry-content table thead tr {
	background-color: #f0f4ff;
}

.tutor-lesson-wrapper table th,
.tutor-lesson-wrapper table td,
#tutor-single-entry-content table th,
#tutor-single-entry-content table td {
	border: 1px solid #d1d5db;
	padding: 0.6rem 1rem;
	text-align: left;
	vertical-align: top;
	word-break: break-word;
}

.tutor-lesson-wrapper table th,
#tutor-single-entry-content table th {
	font-weight: 600;
	color: #1e293b;
	background-color: #f0f4ff;
	white-space: nowrap;
}

.tutor-lesson-wrapper table tr:nth-child(even),
#tutor-single-entry-content table tr:nth-child(even) {
	background-color: #f9fafb;
}

.tutor-lesson-wrapper table tr:hover,
#tutor-single-entry-content table tr:hover {
	background-color: #f1f5ff;
}

/* Code trong table */
.tutor-lesson-wrapper table code,
.tutor-lesson-wrapper table pre,
#tutor-single-entry-content table code,
#tutor-single-entry-content table pre {
	background-color: #f1f5f9;
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	font-size: 0.85em;
	font-family: 'Fira Code', 'Courier New', monospace;
	white-space: nowrap;
}

/* Responsive: scroll ngang trên mobile */
@media (max-width: 768px) {
	.tutor-lesson-wrapper table,
	#tutor-single-entry-content table {
		font-size: 0.8rem;
	}
	.tutor-lesson-wrapper table th,
	.tutor-lesson-wrapper table td,
	#tutor-single-entry-content table th,
	#tutor-single-entry-content table td {
		padding: 0.5rem 0.6rem;
	}
}
