/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* ==========================================================================
   Accessibility Styles
   ========================================================================== */

/* Skip Link - Keyboard navigation */
.skip-link {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	background: #0A4D8C;
	color: #fff;
	padding: 12px 24px;
	z-index: 99999;
	text-decoration: none;
	font-weight: 600;
	border-radius: 0 0 8px 8px;
	transition: top 0.3s ease;
}

.skip-link:focus {
	top: 0;
	color: #fff;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Screen Reader Only - Visually hidden but accessible */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus States - High contrast for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
	outline: 2px solid #0A4D8C;
	outline-offset: 2px;
}

/* Remove outline for mouse users */
.using-mouse a:focus,
.using-mouse button:focus,
.using-mouse input:focus,
.using-mouse select:focus,
.using-mouse textarea:focus {
	outline: none;
}

/* Ensure focus is visible for all interactive elements */
.btn:focus,
.btn-hccm-primary:focus,
.btn-hccm-outline:focus,
.btn-hccm-slider:focus,
.btn-hccm-slider-outline:focus,
.social-icon:focus,
.menu-link:focus {
	outline: 2px solid #0A4D8C;
	outline-offset: 2px;
}

/* Floating contact button focus states */
.floating-contact a:focus,
.floating-contact button:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Slider arrow buttons focus */
.slider-arrow-left:focus,
.slider-arrow-right:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Back to top button focus */
#gotoTop:focus {
	outline: 2px solid #0A4D8C;
	outline-offset: 2px;
}

/* High contrast focus for form controls */
.form-control:focus,
.form-select:focus {
	border-color: #0A4D8C;
	box-shadow: 0 0 0 0.25rem rgba(10, 77, 140, 0.25);
}

/* Dropdown focus states */
.dropdown-toggle:focus {
	outline: 2px solid #0A4D8C;
	outline-offset: 2px;
}

.dropdown-item:focus {
	background-color: #f8f9fa;
	outline: none;
}

/* Hamburger menu focus */
.cnvs-hamburger:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* ==========================================================================
   End Accessibility Styles
   ========================================================================== */

#header {
	--cnvs-primary-menu-font-size: 14px;
}

/* Front page: transparent header white text at top (not sticky) */
.is-expanded-menu #header.transparent-header.dark:not(.sticky-header) .header-misc .btn-link,
.is-expanded-menu #header.transparent-header.dark:not(.sticky-header) .header-misc .dropdown-toggle { color: #fff; }

#slider .swiper-slide-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.55);
}

/* Slider Caption Width */
.slider-caption-center {
	max-width: 1200px !important;
}

.slider-caption-center h2 {
	font-size: 3.5rem !important;
}

.slider-caption-center p {
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

/* HCCM Slider Buttons */
.btn-hccm-slider {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background-color: #0A4D8C;
	border: 2px solid #0A4D8C;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	min-width: 180px;
}

.btn-hccm-slider:hover {
	color: #ffffff;
	background-color: #0077B6;
	border-color: #0077B6;
	box-shadow: 0 0 20px rgba(10, 77, 140, 0.5), 0 0 40px rgba(10, 77, 140, 0.3);
	transform: translateY(-2px);
}

.btn-hccm-slider-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	color: #0A4D8C;
	background-color: transparent;
	border: 2px solid #0A4D8C;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	min-width: 180px;
}

.btn-hccm-slider-outline:hover {
	color: #ffffff;
	background-color: #0A4D8C;
	box-shadow: 0 0 20px rgba(10, 77, 140, 0.5), 0 0 40px rgba(10, 77, 140, 0.3);
	transform: translateY(-2px);
}

.btn-hccm-slider-outline.btn-hccm-white {
	color: #ffffff;
	border-color: #ffffff;
}

.btn-hccm-slider-outline.btn-hccm-white:hover {
	color: #0A4D8C;
	background-color: #ffffff;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
}

/* Global Service Network Hotspot Styles */
@keyframes hccm-pulse {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}
	100% {
		transform: scale(2.5);
		opacity: 0;
	}
}

.hotspot-img {
	position: relative;
	overflow: visible;
}

.hotspot-img .hot-spot {
	position: absolute;
	width: 12px;
	height: 12px;
	top: 5px;
	left: 5px;
	text-align: center;
	background-color: rgba(10, 77, 140, 0.8);
	border: 1px solid #FFF;
	border-radius: 100%;
	cursor: pointer;
	z-index: 1;
	transition: transform .3s ease;
}

.hotspot-img .hot-spot .circle {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	transform-origin: 50% 50%;
	border-radius: 50%;
	background: #0A4D8C;
	opacity: 0;
	z-index: -1;
	animation: hccm-pulse 3.5s ease-out infinite;
}

.hotspot-img .hot-spot .tooltip {
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 4px;
	font-size: 14px;
	opacity: 0;
	display: none;
	left: 0;
	padding: 8px 12px;
	position: absolute;
	top: 20px;
	width: auto;
	z-index: 999;
	box-shadow: 0 10px 80px rgba(0,0,0,0.15), 0 10px 50px rgba(0,0,0,0.1);
	transform: translateY(3px);
	transition: all .3s linear;
}

.hotspot-img .hot-spot:hover .tooltip {
	opacity: 1;
	display: block;
	transform: translateY(0);
}

.hotspot-img .hot-spot .tooltip p {
	font-size: 13px;
	line-height: 1.3rem !important;
	margin-bottom: 0;
	white-space: nowrap;
	color: #2D3436 !important;
	text-transform: capitalize;
	font-weight: 500;
}

/* HCCM Counter Styles */
.hccm-counter {
	position: relative;
	display: inline-block;
	margin-bottom: 16px;
	overflow: hidden;
}

.hccm-counter-num {
	display: inline-block;
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	color: #0A4D8C;
	position: relative;
}

@media (max-width: 768px) {
	.hccm-counter-num,
	.hccm-counter::after {
		font-size: 48px;
	}
}

/* HCCM Accordion Service Cards */
.hccm-accordion-wrap {
	display: flex;
	gap: 8px;
	height: 420px;
	overflow: hidden;
}

.hccm-accordion-card {
	position: relative;
	flex: 0.5;
	overflow: hidden;
	border-radius: 16px;
	cursor: pointer;
	transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hccm-accordion-card.active,
.hccm-accordion-wrap:hover .hccm-accordion-card:hover {
	flex: 2;
}

.hccm-accordion-wrap:hover .hccm-accordion-card:not(:hover) {
	flex: 0.5;
}

.hccm-accordion-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.hccm-accordion-card:hover img,
.hccm-accordion-card.active img {
	transform: scale(1.05);
}

.hccm-accordion-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
	display: flex;
	align-items: flex-end;
	padding: 24px;
	transition: background 0.4s ease;
}

.hccm-accordion-card:hover .hccm-accordion-overlay,
.hccm-accordion-card.active .hccm-accordion-overlay {
	background: linear-gradient(to top, rgba(10,77,140,0.85) 0%, rgba(10,77,140,0.3) 50%, transparent 100%);
}

.hccm-accordion-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 8px;
	white-space: nowrap;
}

.hccm-accordion-content p {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255,255,255,0.9);
	margin-bottom: 0;
	opacity: 0;
	max-height: 0;
	transform: translateY(10px);
	transition: all 0.4s ease 0.2s;
}

.hccm-accordion-card.active .hccm-accordion-content p,
.hccm-accordion-wrap:hover .hccm-accordion-card:hover .hccm-accordion-content p {
	opacity: 1;
	max-height: 200px;
	transform: translateY(0);
}

@media (max-width: 768px) {
	.hccm-accordion-wrap {
		flex-direction: column;
		height: auto;
	}

	.hccm-accordion-card {
		flex: none;
		height: 80px;
		transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.hccm-accordion-card.active,
	.hccm-accordion-wrap:hover .hccm-accordion-card:hover {
		flex: none;
		height: 260px;
	}

	.hccm-accordion-wrap:hover .hccm-accordion-card:not(:hover) {
		flex: none;
		height: 60px;
	}
}

/* WeChat QR Code Hover */
.wechat-qr {
	overflow: visible !important;
}

.wechat-qr:hover {
	color: #FFF !important;
	border-color: transparent !important;
}

.wechat-qr:hover i:first-child {
	margin-top: 0 !important;
}

.wechat-qr .wechat-qr-img {
	display: none;
	position: absolute;
	bottom: calc(100% + 15px);
	left: 50%;
	transform: translateX(-50%);
	padding: 10px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	z-index: 9999;
	min-width: 200px;
}

.wechat-qr .wechat-qr-img img {
	width: 200px;
	height: auto;
	display: block;
}

.wechat-qr:hover .wechat-qr-img {
	display: block;
}

/* Blog Entry Excerpt - Two Lines Ellipsis */
.entry-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* Custom Spacing Classes */
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.my-5 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }
.my-6 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

#copyrights {
	padding: 10px 0 !important;
}

/* WordPress Admin Bar compat - sticky header offset */
body.admin-bar .sticky-header #header-wrap {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .sticky-header #header-wrap {
		top: 46px;
	}
}

/* ----------------------------------------------------------------
	Front Page: remove heading-block underline after subtitle
-----------------------------------------------------------------*/
.home .heading-block::after,
.front-page .heading-block::after {
	display: none;
}

.home .heading-block,
.front-page .heading-block {
	padding-bottom: 30px;
}

/* ----------------------------------------------------------------
	Inner Page Common Styles (shared across all inner pages)
-----------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: 'Roboto-Bold', 'Roboto', 'Inter', sans-serif !important; }
body { font-family: 'Noto Sans SC', 'Inter', sans-serif; }
.primary-menu .menu-container > .menu-item > .menu-link:hover,
.primary-menu .menu-container > .menu-item:hover > .menu-link { color: #1abc9c !important; }
.primary-menu .menu-container > .menu-item.current > .menu-link { color: #1abc9c !important; }
.hccm-blue { color: #0a4d8c; }
.btn-hccm-primary { display: inline-block; padding: 12px 32px; background-color: #0a4d8c; color: white; border-radius: 30px; text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.btn-hccm-primary:hover { background-color: #0077B6 !important; color: white !important; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(10, 77, 140, 0.3); }
.btn-hccm-outline { display: inline-block; padding: 12px 32px; background-color: transparent; color: #0a4d8c; border: 2px solid #0a4d8c; border-radius: 30px; text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.btn-hccm-outline:hover { background-color: #0a4d8c !important; color: white !important; transform: translateY(-2px); }
.floating-contact { position: fixed; right: 24px; bottom: 100px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.floating-contact a,
.floating-contact button.wechat { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; color: white; font-size: 22px; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: none; cursor: pointer; padding: 0; }
.floating-contact a:hover,
.floating-contact button.wechat:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.floating-contact .whatsapp { background-color: #25D366; }
.floating-contact .email { background-color: #0a4d8c; }
.floating-contact .linkedin { background-color: #0077B5; }
.floating-contact .wechat { background-color: #07C160; position: relative; overflow: visible !important; }
.floating-contact .wechat:hover .wechat-qr-popup { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-contact .wechat-qr-popup { position: absolute; right: 60px; bottom: 50%; transform: translateY(50%); background: white; padding: 10px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 10001; pointer-events: none; width: 170px; }
.floating-contact .wechat-qr-popup::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 8px solid white; }
.floating-contact .wechat-qr-popup img { width: 150px; height: 150px; display: block; }
.page-banner { background: linear-gradient(135deg, #0a4d8c 0%, #1a6db8 100%); padding: 120px 0 60px; color: white; }
.rich-text-content p { font-size: 16px; line-height: 1.8; color: #555; margin-bottom: 1.5rem; }
.rich-text-content h3 { color: #0a4d8c; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; }
.rich-text-content ul { margin-bottom: 1.5rem; }
.rich-text-content ul li { font-size: 16px; line-height: 1.8; color: #555; margin-bottom: 0.5rem; }
@media (max-width: 576px) {
	.floating-contact { right: 10px; bottom: 80px; }
	.floating-contact a,
	.floating-contact button.wechat { width: 45px; height: 45px; font-size: 20px; }
}

/* Inquiry Form - Captcha & Messages (shared: homepage + contact page) */
.huaci-captcha-img { background: #f8f9fa; flex-shrink: 0; }
.huaci-inquiry-msg { border-radius: 8px; font-size: 14px; padding: 12px 16px; margin-top: 8px; }
.huaci-inquiry-msg.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.huaci-inquiry-msg.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
