/*
Theme Name: CubX
Theme URI: https://www.cubxnow.com/
Description: CubX customizations for Sparkling. Update the parent theme without overwriting these templates.
Author: CubX
Template: sparkling
Version: 1.0.3
Text Domain: sparkling-child
*/

body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: "Segoe", "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "微軟正黑體", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	color: #004371;
}

.entry-title {
	margin-bottom: 5px;
}

.entry-title a:hover {
	color: #004371;
}

.single-featured {
	width: 100%;
}

.well {
	border: 0;
}

.post-inner-content {
	border: 0 !important;
}

.flexslider .flex-control-nav {
	left: 50%;
	transform: translateX(-50%);
	width: auto;
}

.page-subtitle {
	display: block;
	color: #ffffff;
	margin: auto;
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 7px;
	margin-top: 1px;
}

.singlepage-title {
	display: block;
	color: #ffffff;
	margin: auto;
	margin-top: 1px;
}

.with-background-image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.with-background-image:after {
	filter: alpha(opacity=30);
	opacity: 0.30;
}

.bg-primary,
.bg-primary a {
	color: #fff;
}

[class*="bg-"],
[class*="bg-"] .wrap {
	position: relative;
	z-index: 2;
}

.bg-primary:after,
.bg-light-gray:after {
	content: " ";
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
}

.bg-primary:after {
	background: #1a1a1a;
}

.bg-light-gray:after {
	background: #dcdcdc;
}

.single-header {
	padding: 8rem 0;
	position: relative;
	text-align: center;
	color: #ffffff;
}

.single-header h1,
.single-header .author-box-title {
	line-height: 1.2;
	font-size: 40px;
	display: inline-block;
}

.single-header h1:last-child {
	margin-bottom: 0;
}

.single-header p {
	font-size: 2.4rem;
	max-width: 74rem;
	margin-left: auto;
	margin-right: auto;
}

.single-header p:last-child {
	margin-bottom: 0;
}

.single-header a:not(.button) {
	opacity: .5;
}

.single-header a:hover:not(.button) {
	opacity: 1;
}

@media only screen and (min-width: 800px) {
	.single-header {
		padding: calc(7% + 10.8rem) 0 7%;
	}

	.home .single-header {
		padding: calc(10% + 10.8rem) 0 10%;
	}

	.single-header h1,
	.single-header .author-box-title {
		font-size: 6rem;
	}

	.single-header .entry-meta {
		font-size: 1.6rem;
	}
}

body.page-id-140 {
	background-color: #000000 !important;
}

.page-id-140 .post-inner-content {
	padding: 45px 50px;
	background-color: #000000;
	border: 1px solid #000000;
	border-top: none;
}

body.archive.page-id-140 .post-inner-content,
body.blog.page-id-140 .post-inner-content,
.page-id-140 .post-inner-content:first-child {
	border-top: 1px solid #000000;
}

.pt-cv-readmore {
	color: #FFFFFF !important;
	background-color: #004371 !important;
	border: none !important;
}

/* The 2.7 slider pause control is kept for keyboards, but not shown as a text bar. */
.sparkling-slider-controls {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767px) {
	#logo {
		float: left;
		max-width: calc(100% - 64px);
	}

	#logo img {
		max-width: 100%;
		height: auto;
	}

	.navbar-default .navbar-nav > li > a {
		line-height: 20px;
		padding-top: 10px;
		padding-bottom: 10px;
		font-size: 30px;
		font-weight: 600;
	}

	.navbar-default .navbar-nav .open .dropdown-menu > li > a {
		display: inline-block;
		background-color: transparent;
		color: #fff;
		font-size: 25px;
		padding: 15px;
		font-weight: 600;
	}
}

/* Jetpack 16 lays classic contact forms out as a row, and its text fields default to 50%. */
.jetpack-contact-form-container.is-layout-flex {
	flex-direction: column;
	align-items: stretch;
}

.jetpack-contact-form-container .grunion-field-wrap {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
}

.contact-form.jetpack-contact-form__form .grunion-field-wrap :is(
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="url"],
	input[type="number"],
	textarea
) {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
