/*!
Theme Name: mts
*/

/* ── 404 page ──────────────────────────────────────────────────────────── */
.mts-error-404-content .mts-error-code {
	font-family: var(--urbanist);
	font-size: 180px;
	font-weight: 900;
	line-height: 1;
	color: var(--chy-h1-color, #2a3e50);
	letter-spacing: 8px;
	margin-bottom: 20px;
}

.mts-error-404-content .mts-error-code span {
	color: var(--chy-pr-1, #26a8e0);
}

.mts-error-404-content .section-title-wrap .chy-title-1 {
	margin-left: auto;
	margin-right: auto;
}

.mts-error-search {
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.mts-error-search .sidebar-search-box {
	position: relative;
}

.mts-error-search .search-input {
	width: 100%;
	height: 56px;
	padding: 0 60px 0 24px;
	border: 1px solid rgba(42, 62, 80, 0.15);
	border-radius: 50px;
	background: var(--white-color, #fff);
	font-family: var(--urbanist);
	font-size: 15px;
	color: var(--chy-h1-color, #2a3e50);
	outline: none;
	transition: border-color 0.3s ease;
}

.mts-error-search .search-input:focus {
	border-color: var(--chy-pr-1, #26a8e0);
}

.mts-error-search .search-btn {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: var(--chy-pr-1, #26a8e0);
	color: var(--white-color, #fff);
	cursor: pointer;
	transition: background 0.3s ease;
}

.mts-error-search .search-btn:hover {
	background: var(--chy-h1-color, #2a3e50);
}

.mts-error-btns {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.mts-error-links {
	display: flex;
	justify-content: center;
	gap: 12px 28px;
	flex-wrap: wrap;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.mts-error-links li a {
	font-family: var(--urbanist);
	font-size: 15px;
	font-weight: 700;
	color: var(--chy-h1-color, #2a3e50);
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
}

.mts-error-links li a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background: var(--chy-pr-1, #26a8e0);
	transition: width 0.3s ease;
}

.mts-error-links li a:hover {
	color: var(--chy-pr-1, #26a8e0);
}

.mts-error-links li a:hover::after {
	width: 100%;
}

@media (max-width: 767px) {
	.mts-error-404-content .mts-error-code {
		font-size: 110px;
		letter-spacing: 4px;
	}
}

/* ── Author archive ────────────────────────────────────────────────────── */
.mts-author-box {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 35px 40px;
	background: var(--white-color, #fff);
	border: 1px solid rgba(42, 62, 80, 0.1);
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(42, 62, 80, 0.07);
}

.mts-author-box .img-wrap img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--chy-pr-1, #26a8e0);
	padding: 4px;
	background: var(--white-color, #fff);
}

.mts-author-box .content-wrap .chy-subtitle-1 {
	margin-bottom: 6px;
}

.mts-author-box .content-wrap .name {
	font-size: 26px;
	font-weight: 900;
	margin-bottom: 10px;
}

.mts-author-box .content-wrap .bio {
	margin-bottom: 14px;
}

.mts-author-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border-radius: 50px;
	background: rgba(38, 168, 224, 0.1);
	font-family: var(--urbanist);
	font-size: 14px;
	font-weight: 700;
	color: var(--chy-pr-1, #26a8e0);
}

@media (max-width: 575px) {
	.mts-author-box {
		flex-direction: column;
		text-align: center;
		padding: 30px 20px;
	}
}

/* ── CF7 form inside the blog sidebar (.contact-box) ───────────────────── */
/* Match the original static-HTML sidebar form: placeholder-only fields,
   underline inputs, full-width blue submit button. */
.contact-box .wpcf7 label {
	display: none;
}

.contact-box .wpcf7-form > div {
	margin-bottom: 22px;
}

.contact-box .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.contact-box .wpcf7-form select,
.contact-box .wpcf7-form .nice-select {
	width: 100%;
	border: none;
	border-bottom: 1px solid #444;
	border-radius: 0;
	background: transparent;
	padding: 12px 0;
	font-size: 15px;
	color: #777;
	outline: none;
}

.contact-box .wpcf7-form .nice-select {
	height: auto;
	line-height: normal;
	padding-right: 24px;
}

.contact-box .wpcf7-form .nice-select::after {
	right: 4px;
}

.contact-box .wpcf7-form textarea {
	min-height: 120px;
}

.contact-box .wpcf7-form .btn-wrap {
	margin-bottom: 0;
}

.contact-box .wpcf7-form button[type="submit"] {
	width: 100%;
	height: 55px;
	border: none;
	border-radius: 10px;
	background: #26a9e0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.contact-box .wpcf7-form button[type="submit"]:hover {
	transform: translateY(-2px);
}

.contact-box .wpcf7-form button[type="submit"] .icon {
	display: none;
}

/* CF7 feedback states (sidebar + homepage) */
.wpcf7-form .wpcf7-not-valid-tip {
	font-size: 13px;
	color: #dc3232;
	margin-top: 6px;
	display: block;
}

.wpcf7-form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	border: 1px solid #26a9e0;
	color: #2a3e50;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
	border-color: #dc3232;
}

.wpcf7-form.sent .wpcf7-response-output {
	border-color: #2e7d32;
	color: #2e7d32;
}

.wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

/* ── Blog pagination (shared) ──────────────────────────────────────────── */
.blog-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(42, 62, 80, 0.15);
	border-radius: 50px;
	font-family: var(--urbanist);
	font-size: 15px;
	font-weight: 700;
	color: var(--chy-h1-color, #2a3e50);
	text-decoration: none;
	transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
	background: var(--chy-pr-1, #26a8e0);
	border-color: var(--chy-pr-1, #26a8e0);
	color: var(--white-color, #fff);
}
