/*
Theme Name: TSM Inspired Theme
Theme URI: https://example.com/tsm-inspired-theme
Author: Your Name
Author URI: https://example.com
Description: A modern, animated theme inspired by TSM Law, focusing on a clean header and footer.
Version: 1.9.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsm-inspired-theme
Tags: custom-logo, custom-menu, law-firm, responsive-layout, full-width-template
*/
/* PERFORMANCE: Ensure text remains visible during webfont load */
@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: local('Inter');
}
@font-face {
  font-family: 'Playfair Display';
  font-display: swap;
  src: local('Playfair Display');
}
/*
 * ==========================================================================
 * 1. Global & Reset
 * ==========================================================================
 */

:root {
    --primary-color: #004a99;
    --primary-light: #006aff;
    --secondary-color: #f4f4f4;
    --text-dark: #333;
    --text-light: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --card-border-gradient: linear-gradient(90deg, #007bff, #56c2e6, #007bff);
    
    /* Modern HK Neon Variables */
    --hk-neon-red: #ff2a2a;
    --hk-neon-gold: #ffd700;
    --hk-neon-blue: #00f0ff;
    --hk-bg-dark: #0a0a0a;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
		"Segoe UI Symbol";
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#content {
	flex-grow: 1;
	/* Add padding to account for the sticky header's height */
	padding-top: 90px; 
}

/* Main content container */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem; /* 20px */
	padding-right: 1.25rem; /* 20px */
}

a {
	color: #0073aa;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

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

/*
 * ==========================================================================
 * 2. Accessibility
 * ==========================================================================
 */

.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: -1;
}

.skip-link:focus {
	left: 6px;
	top: 6px;
	width: auto;
	height: auto;
	padding: 10px 15px;
	background: #fff;
	color: #333;
	border: 2px solid #333;
	border-radius: 4px;
	overflow: auto;
	z-index: 100000;
	text-decoration: none;
	font-weight: 600;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/*
 * ==========================================================================
 * 3. Header (Minimalist Style)
 * ==========================================================================
 */

.site-header {
	/* Transparent / Blur Effect */
	background-color: rgba(204, 204, 204, 0.5); /* Semi-transparent grey */
	-webkit-backdrop-filter: blur(10px); /* For Safari */
	backdrop-filter: blur(10px); /* The blur effect */

	border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Light "glass" edge */
	box-shadow: none;
	
	/* Sticky Header Style */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	height: 90px; /* Fixed height for layout */
	padding: 0 1.25rem; /* 20px */
}

.header-container {
	height: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Logo styling */
.site-branding {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 1rem; /* Space between logo and text */
	position: relative;
	z-index: 10003; /* Must be > overlays (10001, 10002) */
}

/* Wrapper for title/tagline */
.site-branding-text {
	display: flex;
	flex-direction: column;
}

/* Style for text-based site title */
.site-branding .site-title {
	font-family: "Times New Roman", Times, serif; /* Serif font like image */
	font-size: 2rem; /* 32px */
	font-weight: 400;
	color: #222;
	text-decoration: none;
	letter-spacing: 1px;
	margin: 0;
	line-height: 1.2;
}
.site-branding .site-title a {
	color: inherit;
	text-decoration: inherit;
}

/* Style for Site Description (Tagline) */
.site-branding .site-description {
	font-size: 0.9rem;
	color: #555;
	margin: 0.1rem 0 0; /* Small top margin */
	font-family: 'Inter', sans-serif; /* Match body font */
	letter-spacing: normal;
	line-height: 1.4;
}

/* Style for image-based logo */
.custom-logo-link {
	display: block;
}
.custom-logo {
    max-height: 60px; /* Adjust logo size */
    width: auto;
}

/* Header Icons */
.header-right-icons {
	display: flex;
	align-items: center;
	gap: 1.25rem; /* 20px */
}

.search-toggle,
.primary-menu-toggle {
	display: block;
	background: none;
	border: none;
	padding: 8px;
	margin: 0;
	cursor: pointer;
	color: #222;
}

.search-toggle svg,
.primary-menu-toggle .hamburger-icon {
	width: 24px;
	height: 24px;
	color: #222;
	stroke: currentColor;
}
.search-toggle svg {
	stroke-width: 2;
}

.hamburger-icon {
	display: block;
	width: 24px;
	height: 20px;
	position: relative;
}

.hamburger-icon .line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: #222;
	position: absolute;
	left: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-icon .line:nth-child(1) { top: 3px; }
.hamburger-icon .line:nth-child(2) { top: 9px; }
.hamburger-icon .line:nth-child(3) { top: 15px; }

/*
 * ==========================================================================
 * 4. Full-Screen Navigation Overlay
 * ==========================================================================
 */

.main-navigation {
	position: fixed;
	background-color: rgba(255, 255, 255, 0.85);
	z-index: 10001; /* Below header (1000) & logo (10003) */

	/* Hidden by default */
	visibility: hidden;
	opacity: 0;
	transform: scale(0.98) translateY(-10px);
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
	
	/* Enable scrolling if content overflows */
	overflow-y: auto; 

	/* Styles for 3D inset */
	inset: 20px;
	width: auto;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	
	-webkit-backdrop-filter: blur(20px); 
	backdrop-filter: blur(20px);
}

/* Inner container for centering */
.main-navigation .nav-menu-inner {
	height: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 8rem 4rem 4rem;
	position: relative;
	min-height: 100%;
}

/* Close Button */
.nav-close-button {
	position: absolute;
	top: 2.5rem;
	right: 2.5rem;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: #222;
}
.nav-close-button .close-icon {
	width: 28px;
	height: 28px;
	stroke: currentColor;
	stroke-width: 2;
}

/* Menu Columns Wrapper */
.nav-menu-columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	width: 100%;
}

.nav-menu-column-title {
	font-family: "Times New Roman", Times, serif;
	font-size: 1.25rem;
	font-weight: 400;
	color: #222;
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.nav-menu-column-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu-column-list li {
	margin-bottom: 0.75rem;
}

.nav-menu-column-list a {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 400;
	color: #333;
	text-decoration: none;
	display: inline-block;
	transition: color 0.2s ease, transform 0.2s ease;
}

.nav-menu-column-list a:hover {
	color: #0073aa;
	text-decoration: none;
	transform: translateX(5px);
}

/* Sub Menu Styling */
.nav-menu-column-list .sub-menu {
	list-style: none;
	margin: 0.5rem 0 0.5rem 0.75rem;
	padding: 0;
	border-left: 2px solid #e0e0e0;
}
.nav-menu-column-list .sub-menu li {
	margin-bottom: 0.5rem;
}
.nav-menu-column-list .sub-menu a {
	font-size: 0.9rem;
	color: #555;
	padding-left: 0.75rem;
}
.nav-menu-column-list .sub-menu a:hover {
	color: #0073aa;
}


/* Latest Posts Section */
.nav-menu-latest-posts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	width: 100%;
	border-top: 1px solid #e0e0e0;
	padding-top: 2rem;
	margin-top: 4rem;
}

.latest-post-item .post-category {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #777;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

.latest-post-item .post-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0.5rem 0;
	line-height: 1.4;
}

.latest-post-item .post-title a {
	color: #333;
	text-decoration: none;
}
.latest-post-item .post-title a:hover {
	text-decoration: underline;
}

.latest-post-item .post-read-more {
	display: inline-block;
	color: #0073aa;
	margin-top: 0.5rem;
}
.latest-post-item .post-read-more svg {
	width: 24px;
	height: 24px;
	transition: transform 0.2s ease;
}
.latest-post-item .post-read-more:hover svg {
	transform: translateX(5px);
}

/*
 * ==========================================================================
 * 4.5. Navigation Animations
 * ==========================================================================
 */

.nav-menu-column-title,
.nav-menu-column-list li,
.nav-menu-latest-posts {
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

body.nav-menu-open .nav-menu-column-title,
body.nav-menu-open .nav-menu-column-list li,
body.nav-menu-open .nav-menu-latest-posts {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

body.nav-menu-open .main-navigation {
	transform: scale(1) translateY(0);
	opacity: 1;
}

/* Delay for Column 1 */
body.nav-menu-open .nav-menu-column:nth-child(1) .nav-menu-column-title,
body.nav-menu-open .nav-menu-column:nth-child(1) .nav-menu-column-list li { transition-delay: 0.1s; }

/* Delay for Column 2 */
body.nav-menu-open .nav-menu-column:nth-child(2) .nav-menu-column-title,
body.nav-menu-open .nav-menu-column:nth-child(2) .nav-menu-column-list li { transition-delay: 0.15s; }

/* Delay for Column 3 */
body.nav-menu-open .nav-menu-column:nth-child(3) .nav-menu-column-title,
body.nav-menu-open .nav-menu-column:nth-child(3) .nav-menu-column-list li { transition-delay: 0.2s; }

/* Delay for Column 4 */
body.nav-menu-open .nav-menu-column:nth-child(4) .nav-menu-column-title,
body.nav-menu-open .nav-menu-column:nth-child(4) .nav-menu-column-list li { transition-delay: 0.25s; }

/* Delay for Latest Posts */
body.nav-menu-open .nav-menu-latest-posts { transition-delay: 0.3s; }

/* Stagger list items within columns */
body.nav-menu-open .nav-menu-column-list li:nth-child(1) { transition-delay: 0.15s; }
body.nav-menu-open .nav-menu-column-list li:nth-child(2) { transition-delay: 0.2s; }
body.nav-menu-open .nav-menu-column-list li:nth-child(3) { transition-delay: 0.25s; }
body.nav-menu-open .nav-menu-column-list li:nth-child(4) { transition-delay: 0.3s; }
body.nav-menu-open .nav-menu-column-list li:nth-child(5) { transition-delay: 0.35s; }

body.nav-menu-open .nav-menu-column:nth-child(2) li:nth-child(1) { transition-delay: 0.2s; }
body.nav-menu-open .nav-menu-column:nth-child(2) li:nth-child(2) { transition-delay: 0.25s; }
/* ... and so on ... */


/*
 * ==========================================================================
 * 5. Menu Open/Close States
 * ==========================================================================
 */

body.nav-menu-open .main-navigation {
	visibility: visible;
}

body.nav-menu-open .primary-menu-toggle .line:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
body.nav-menu-open .primary-menu-toggle .line:nth-child(2) {
	opacity: 0;
}
body.nav-menu-open .primary-menu-toggle .line:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

body.nav-menu-open,
body.search-overlay-open {
	overflow: hidden;
}


/*
 * ==========================================================================
 * 6. Search Overlay & Form
 * ==========================================================================
 */

.search-overlay {
	position: fixed;
	background-color: rgba(255, 255, 255, 0.85);
	z-index: 10002;
	display: flex;
	justify-content: center;
	align-items: center;

	visibility: hidden;
	opacity: 0;
	transform: scale(0.98) translateY(-10px);
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;

	top: 10px;
	left: 10px;
	right: 10px;
	height: 300px;
	width: auto;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	
	-webkit-backdrop-filter: blur(20px); 
	backdrop-filter: blur(20px);
}

.search-close-button {
	position: absolute;
	top: 2.5rem;
	right: 2.5rem;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: #222;
}
.search-close-button .close-icon {
	width: 28px;
	height: 28px;
	stroke: currentColor;
	stroke-width: 2;
}

.search-overlay-content {
	width: 100%;
	max-width: 550px;
	padding: 2rem;
}

.search-overlay .search-form {
	display: flex;
	border-bottom: 2px solid #222;
	position: relative;
}

.search-overlay .search-field {
	flex-grow: 1;
	font-size: 1.75rem;
	font-family: "Times New Roman", Times, serif;
	color: #222;
	border: none;
	background: transparent;
	padding: 0.5rem;
	padding-right: 40px;
	width: 100%;
}
.search-overlay .search-field:focus {
	outline: none;
}

.search-overlay .search-submit {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: #222;
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
}
.search-overlay .search-submit svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	stroke-width: 2;
}

body.search-overlay-open .search-overlay {
	visibility: visible;
	opacity: 1;
	transform: scale(1) translateY(0);
}


/*
 * ==========================================================================
 * 7. Footer (Dynamic)
 * ==========================================================================
 */

.site-footer {
	color: #d1d1d1;
	padding: 4rem 0 0;
	font-size: 0.95rem;
	position: relative;
	overflow: hidden;
}

.footer-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.footer-main-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 2fr;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

/* Column 1: Info */
.footer-info-logo { margin-bottom: 2rem; }

.footer-info-logo .custom-logo,
.footer-info-logo .footer-logo-image {
	max-height: 40px;
	width: auto;
	filter: brightness(0) invert(1);
}
.footer-info-logo .footer-site-title {
	font-family: "Times New Roman", Times, serif;
	font-size: 2rem;
	font-weight: 400;
	color: #ffffff;
	margin: 0;
}
.footer-info-logo .footer-site-title a { color: inherit; text-decoration: none; }

.footer-info-block { margin-bottom: 1.5rem; }
.footer-info-block .footer-info-title {
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 0.5rem 0;
}
.footer-info-block address,
.footer-info-block p {
	font-style: normal;
	line-height: 1.7;
	margin: 0.25rem 0;
}
.footer-info-block a { color: #d1d1d1; text-decoration: none; }
.footer-info-block a:hover { color: #ffffff; text-decoration: underline; }

/* Column 2 & 3: Nav Menus */
.footer-nav-widget .footer-widget-title {
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 1.5rem 0;
}

.footer-nav-list { list-style: none; margin: 0; padding: 0; }
.footer-nav-list li { margin-bottom: 0.75rem; }
.footer-nav-list a { color: #d1d1d1; text-decoration: none; font-size: 1rem; }
.footer-nav-list a:hover { color: #ffffff; text-decoration: underline; }

/* Column 4: Newsletter */
.footer-newsletter-widget {
	background: rgba(255, 255, 255, 0.05);
	padding: 2.5rem;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
}

.footer-newsletter-widget::before {
	content: '';
	position: absolute;
	bottom: -150px;
	right: -150px;
	width: 300px;
	height: 300px;
	background: rgba(118, 172, 120, 0.5);
	border-radius: 50%;
	filter: blur(50px);
	z-index: 1;
}

.footer-newsletter-widget .footer-widget-title {
	font-size: 1.25rem;
	color: #ffffff;
	margin-top: 0;
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 2;
}

.footer-newsletter-form { position: relative; z-index: 2; }

.footer-newsletter-form .newsletter-form-field,
.footer-newsletter-form .wpcf7-form-control-wrap {
	position: relative;
	margin-bottom: 1rem;
}

.footer-newsletter-form input[type="email"] {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	color: #ffffff;
	font-size: 1rem;
	padding: 0.75rem 2.5rem 0.75rem 0;
}
.footer-newsletter-form input[type="email"]::placeholder { color: #aaa; }
.footer-newsletter-form input[type="email"]:focus { outline: none; border-bottom-color: #ffffff; }

.footer-newsletter-form .newsletter-submit,
.footer-newsletter-form input[type="submit"] {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	background: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 0 0.5rem;
}
.footer-newsletter-form input[type="submit"] {
	padding: 0.5rem !important;
	margin: 0 !important;
	width: auto !important;
	font-size: 24px;
	font-family: 'Times New Roman', Times, serif;
	content: '\2192';
	color: #fff;
}
.footer-newsletter-form .newsletter-submit svg { width: 24px; height: 24px; }

.footer-newsletter-privacy {
	font-size: 0.7rem;
	color: #aaa;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-top: 1.5rem;
	position: relative;
	z-index: 2;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding: 1.5rem 0;
	margin-top: 3rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.footer-bottom-bar p { margin: 0; }

.footer-bottom-social { display: flex; gap: 1.5rem; }
.footer-bottom-social a { color: #d1d1d1; text-decoration: none; }
.footer-bottom-social a:hover { color: #ffffff; }

.footer-bottom-terms { color: #d1d1d1; }
.footer-bottom-terms a { color: #d1d1d1; text-decoration: none; }
.footer-bottom-terms a:hover { color: #ffffff; }

.footer-bottom-copyright {
	color: #aaa;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 1rem;
	text-align: right;
}

.footer-developer-credit a { color: #aaa; text-decoration: none; text-transform: none; }
.footer-developer-credit a:hover { color: #ffffff; text-decoration: underline; }

/*
 * ==========================================================================
 * 8. Basic Content Styles
 * ==========================================================================
 */

.entry-header { margin-bottom: 2rem; }
.entry-title { font-size: 2.5rem; font-weight: 700; margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.5rem; }
.entry-content { max-width: 800px; }

/*
 * ==========================================================================
 * 9. Responsive (General)
 * ==========================================================================
 */

@media (max-width: 992px) {
	.main-navigation .nav-menu-inner { padding: 6rem 3rem 3rem; }
	.nav-menu-columns { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
	.nav-menu-latest-posts { margin-top: 3rem; gap: 1.5rem; }
	
	body.nav-menu-open .nav-menu-column-list li,
	body.nav-menu-open .nav-menu-column:nth-child(2) li,
	body.nav-menu-open .nav-menu-column:nth-child(3) li { transition-delay: 0.2s; }

	.footer-main-grid { grid-template-columns: 1fr 1fr; }
	.footer-newsletter-widget { grid-column: span 2; }

	.footer-bottom-bar { flex-direction: column; gap: 1.5rem; }
	.footer-bottom-copyright { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
	.site-header { height: 80px; padding: 0 1.5rem; }
	#content { padding-top: 80px; }
	.site-branding .site-title { font-size: 1.75rem; }
	.custom-logo { max-height: 50px; }
	.header-right-icons { gap: 0.75rem; }
	.search-overlay .search-field { font-size: 1.25rem; }

	.nav-close-button, .search-close-button { top: 1.5rem; right: 1.5rem; }

	.main-navigation .nav-menu-inner { padding: 6rem 2rem 3rem; }
	.nav-menu-columns { grid-template-columns: 1fr; }
	.nav-menu-column-title { font-size: 1.3rem; margin-bottom: 1rem; }
	.nav-menu-latest-posts { grid-template-columns: 1fr; }
	.latest-post-item .post-title { font-size: 1rem; }

	.footer-main-grid { grid-template-columns: 1fr; }
	.footer-newsletter-widget { grid-column: auto; }
	.footer-bottom-bar { flex-direction: column; gap: 1.5rem; text-align: center; }
	
	.footer-bottom-social { order: 1; flex-wrap: wrap; justify-content: center; }
	.footer-bottom-terms { order: 2; }
	.footer-bottom-copyright { order: 3; justify-content: center; }
}

/*
 * ==========================================================================
 * 10. Animation Styles
 * ==========================================================================
 */

.animate-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.globalThumbnailStyling-people.animate-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-fade-in.is-visible, .globalThumbnailStyling-people.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger Animations */
.globalThumbnailStyling-people:nth-child(2) { transition-delay: 0.1s; }
.globalThumbnailStyling-people:nth-child(3) { transition-delay: 0.2s; }
.globalThumbnailStyling-people:nth-child(4) { transition-delay: 0.3s; }
.globalThumbnailStyling-people:nth-child(5) { transition-delay: 0.4s; }
.globalThumbnailStyling-people:nth-child(6) { transition-delay: 0.5s; }


/*
 * ==========================================================================
 * 11. Admin Meta Box Styles
 * ==========================================================================
 */

.tsm-meta-box-container p { margin-top: 0; margin-bottom: 1.5rem; }
.tsm-meta-box-container label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.tsm-meta-box-container .widefat, .tsm-meta-box-container input[type="email"] { width: 100%; }
.tsm-meta-box-container hr { border: 0; border-top: 1px solid #ddd; margin: 1.5rem 0; }
.tsm-meta-box-container h4 { font-size: 1.1rem; margin-top: 0; margin-bottom: 1rem; }


/*
 * ==========================================================================
 * 12. HOMEPAGE TEMPLATE STYLES
 * ==========================================================================
 */

#lg-homepage-wrapper {
    /* Variables moved to :root */
}

#lg-homepage-wrapper #content { padding-top: 0; }
#content > #lg-homepage-wrapper { padding-top: 0 !important; }
#lg-homepage-wrapper { position: relative; margin-top: -90px; width: 100%; }

/* --- HERO SECTION --- */
#lg-homepage-wrapper .hero { position: relative; height: 100vh; width: 100%; overflow: hidden; color: var(--text-light); }
#lg-homepage-wrapper .hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; }
#lg-homepage-wrapper .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 2; }

/* UPDATED: top changed to 40% (moves up), left changed to 5% (moves left) */
#lg-homepage-wrapper .hero-content { 
    position: absolute; 
    top: 37%;            /* Adjusted from 50% to move content up */
    left: 2%;            /* Adjusted from 10% to move content left */
    right: 10%; 
    transform: translateY(-50%); 
    z-index: 3; 
    max-width: 700px; 
    padding: 20px;       /* Keeps gap from the very edge */
    text-align: left; 
    background: transparent !important; 
}

#lg-homepage-wrapper .hero-content h1 { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 700; margin-bottom: 20px; color: #fff; animation: lg-fadeInUp 0.8s 0.2s both; }
#lg-homepage-wrapper .hero-content p { font-family: var(--font-body); font-size: 1.25rem; margin-bottom: 30px; color: #fff; animation: lg-fadeInUp 0.8s 0.5s both; }
#lg-homepage-wrapper .cta-button { position: absolute; bottom: 40px; right: 40px; z-index: 3; padding: 14px 32px; background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); color: #fff; border-radius: 5px; font-weight: 700; text-transform: uppercase; animation: lg-fadeInUp 0.8s 0.8s both; }

@keyframes lg-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- ANIMATED BACKGROUND ELEMENTS (Global HK Style) --- */
#lg-homepage-wrapper .hk-bg-layer, #lg-team-wrapper .hk-bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.hk-bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; } /* Added global class for service page */
.hk-neon-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; animation: hk-float 15s infinite ease-in-out alternate; }
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--hk-neon-red); animation-duration: 20s; }
.blob-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: var(--primary-color); animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: var(--hk-neon-gold); opacity: 0.4; }
.hk-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 40px 40px; z-index: 1; }

@keyframes hk-float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 50px) scale(1.1); }
    66% { transform: translate(-30px, 80px) scale(0.9); }
    100% { transform: translate(20px, -40px) scale(1); }
}

/* --- PILLARS SECTION (UPDATED) --- */
#lg-homepage-wrapper .pillars { 
    padding: 80px 0; position: relative; 
    overflow: hidden;
    /* Default dark background in case image fails */
    background-color: var(--hk-bg-dark);
    background-size: cover; background-position: center; background-attachment: fixed;
}
#lg-homepage-wrapper .pillar-background-overlay { position: absolute; inset: 0; z-index: 1; }
#lg-homepage-wrapper .pillars .container { position: relative; z-index: 2; }
#lg-homepage-wrapper .pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Pillar Card (HK Style) */
#lg-homepage-wrapper .pillar-card { 
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 40px 30px; 
    text-align: center; color: #fff; position: relative;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease; 
    opacity: 0; transform: translateY(30px); overflow: hidden;
}
#lg-homepage-wrapper .pillar-card.is-visible { opacity: 1; transform: translateY(0); }

#lg-homepage-wrapper .pillar-card:hover { 
    transform: translateY(-10px); background: rgba(30, 30, 30, 0.8);
    border-color: var(--hk-neon-gold); box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Decorative Symbol inside Pillar Card */
#lg-homepage-wrapper .values-deco {
    position: absolute; top: -10px; right: -10px;
    font-family: "Times New Roman", serif; font-size: 5rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0; pointer-events: none;
    transition: 0.4s ease;
}
#lg-homepage-wrapper .pillar-card:hover .values-deco {
    color: var(--hk-neon-red); opacity: 0.2; transform: scale(1.1);
}

#lg-homepage-wrapper .pillar-card .card-border-frame {
    position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none; transition: border-color 0.4s ease;
}
#lg-homepage-wrapper .pillar-card:hover .card-border-frame {
    border-color: rgba(255, 215, 0, 0.3);
}

/* Icon Styling */
#lg-homepage-wrapper .pillar-card .icon-group i { 
    font-size: 3rem; margin-bottom: 20px; display: block; 
    color: #fff; text-shadow: 0 0 10px var(--primary-color);
    transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}
#lg-homepage-wrapper .pillar-card:hover .icon-group i { 
    transform: scale(1.1) rotate(5deg); 
    color: var(--hk-neon-blue); text-shadow: 0 0 20px var(--hk-neon-blue);
}

#lg-homepage-wrapper .pillar-card h3 { 
    font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; 
    position: relative; z-index: 2; transition: color 0.3s;
}
#lg-homepage-wrapper .pillar-card:hover h3 { color: var(--hk-neon-gold); }

#lg-homepage-wrapper .pillar-card p { 
    font-size: 1rem; color: rgba(255,255,255,0.8); 
    position: relative; z-index: 2; line-height: 1.6;
}
#lg-homepage-wrapper .pillar-title-link { text-decoration: none; color: inherit; }


/* --- SERVICES & NEWS SECTIONS --- */
#lg-homepage-wrapper .services.hk-style-section,
#lg-homepage-wrapper .latest-news.hk-style-section { padding: 100px 0; position: relative; background-color: var(--hk-bg-dark); overflow: hidden; }

#lg-homepage-wrapper .container.relative-z { position: relative; z-index: 2; }
#lg-homepage-wrapper .hk-section-title, #lg-homepage-wrapper .news-section-title { 
    font-family: var(--font-heading); text-align: center; font-size: 3rem; margin-bottom: 60px; 
    color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); position: relative; 
}
#lg-homepage-wrapper .hk-section-title::after, #lg-homepage-wrapper .news-section-title::after { 
    content: ''; display: block; width: 60px; height: 3px; background: var(--hk-neon-red); 
    margin: 15px auto 0; box-shadow: 0 0 10px var(--hk-neon-red); 
}

/* Service Carousel Styles */
#lg-homepage-wrapper .service-carousel { padding-bottom: 40px; overflow: visible; }
#lg-homepage-wrapper .service-card.hk-card, #lg-homepage-wrapper .news-card.hk-card { 
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 4px; padding: 40px 25px; text-align: center; height: 100%; display: flex; 
    flex-direction: column; align-items: center; justify-content: flex-start; position: relative; 
    transition: all 0.4s ease; overflow: hidden; 
}
#lg-homepage-wrapper .card-border-frame { 
    position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; 
    border: 1px solid rgba(255, 255, 255, 0.1); pointer-events: none; transition: border-color 0.4s ease; 
}
#lg-homepage-wrapper .service-card.hk-card:hover, #lg-homepage-wrapper .news-card.hk-card:hover { 
    transform: translateY(-5px); background: rgba(30, 30, 30, 0.8); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 42, 42, 0.1); 
    border-color: rgba(255, 42, 42, 0.3); 
}
#lg-homepage-wrapper .service-card.hk-card:hover .card-border-frame { 
    border-color: var(--hk-neon-gold); box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); 
}
#lg-homepage-wrapper .hk-icon { 
    font-size: 3rem; color: #fff; margin-bottom: 25px; text-shadow: 0 0 15px var(--primary-color); 
    transition: transform 0.4s ease, text-shadow 0.4s ease; 
}
#lg-homepage-wrapper .service-card.hk-card:hover .hk-icon { 
    transform: scale(1.1) rotate(5deg); color: var(--hk-neon-blue); text-shadow: 0 0 20px var(--hk-neon-blue); 
}
#lg-homepage-wrapper .hk-title { 
    font-family: var(--font-heading); font-size: 1.5rem; color: #fff; margin-bottom: 15px; 
    letter-spacing: 0.5px; transition: color 0.3s ease; 
}
#lg-homepage-wrapper .service-card.hk-card:hover .hk-title { 
    color: var(--hk-neon-gold); text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); 
}
#lg-homepage-wrapper .hk-card p { font-family: var(--font-body); font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
#lg-homepage-wrapper .hk-deco-symbol { 
    position: absolute; bottom: -10px; right: -10px; font-family: "Times New Roman", serif; 
    font-size: 6rem; color: rgba(255, 255, 255, 0.03); font-weight: bold; line-height: 1; 
    transition: transform 0.5s ease, opacity 0.5s ease, color 0.5s ease; z-index: 0; pointer-events: none; 
}
#lg-homepage-wrapper .service-card.hk-card:hover .hk-deco-symbol { 
    transform: scale(1.2) rotate(-10deg); opacity: 0.1; color: var(--hk-neon-red); 
}

/* --- LATEST NEWS STYLES --- */
#lg-homepage-wrapper .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

#lg-homepage-wrapper .news-card.hk-card {
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px;
    padding: 0; text-align: left; display: flex; flex-direction: column;
    position: relative; overflow: hidden; transition: all 0.4s ease; height: 100%;
}
#lg-homepage-wrapper .news-card.hk-card:hover {
    transform: translateY(-5px); background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.1);
    border-color: var(--hk-neon-blue);
}
#lg-homepage-wrapper .news-card.hk-card:hover .card-border-frame { border-color: var(--hk-neon-blue); }

#lg-homepage-wrapper .news-card-img-link { display: block; width: 100%; height: 200px; overflow: hidden; position: relative; }
#lg-homepage-wrapper .news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
#lg-homepage-wrapper .news-card:hover .news-img-wrapper img { transform: scale(1.1); }
#lg-homepage-wrapper .news-img-placeholder { width: 100%; height: 100%; background: #333; display: flex; align-items: center; justify-content: center; color: #555; font-size: 3rem; }

#lg-homepage-wrapper .news-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
#lg-homepage-wrapper .news-date { font-size: 0.8rem; color: var(--hk-neon-gold); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
#lg-homepage-wrapper .news-title { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.4; }
#lg-homepage-wrapper .news-title a { color: #fff; text-decoration: none; transition: color 0.3s; }
#lg-homepage-wrapper .news-card:hover .news-title a { color: var(--hk-neon-blue); }
#lg-homepage-wrapper .news-excerpt { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; flex-grow: 1; }
#lg-homepage-wrapper .news-read-more { font-size: 0.9rem; font-weight: 600; color: #fff; text-transform: uppercase; margin-top: auto; align-self: flex-start; }
#lg-homepage-wrapper .news-read-more:hover { color: var(--hk-neon-gold); text-decoration: underline; }


/*
 * ==========================================================================
 * 13. CORE TEAM PAGE STYLES (UPDATED)
 * ==========================================================================
 */

#lg-team-wrapper {
    position: relative;
    min-height: 100vh;
    background-color: var(--hk-bg-dark);
    overflow: hidden;
    margin-top: -90px; 
}

/* Open Layout (No Card) */
.leader-profile-wrapper {
    margin-bottom: 100px;
    position: relative;
}
.leader-profile-wrapper:last-of-type {
    margin-bottom: 60px;
}
/* Hide the separator for the last leader */
.leader-profile-wrapper:last-of-type .leader-separator {
    display: none;
}
.leader-separator {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-top: 60px;
}

.leader-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Narrow image, wider text */
    gap: 80px;
    align-items: start;
}

/* Photo Column */
.leader-photo-frame.simple-frame {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    /* Simple neon glow shadow instead of card border */
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15); 
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.leader-photo-frame img {
    width: 100%; height: auto; display: block;
}
.placeholder-photo {
    background: #222; height: 400px; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: #555;
}

/* Header Typography */
.leader-name {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #fff;
    margin: 0 0 5px 0;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.leader-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: var(--hk-neon-gold);
    font-weight: 400;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.leader-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--hk-neon-red), transparent);
    margin-bottom: 40px;
}

/* Content Sections */
.leader-section {
    margin-bottom: 40px;
}

.leader-section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--hk-neon-blue); /* This will now work! */
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-left: 3px solid var(--hk-neon-blue);
    padding-left: 10px;
}

.leader-text-content {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-weight: 300;
}
.leader-text-content p { margin-bottom: 1rem; }
.leader-text-content ul { margin-left: 20px; margin-bottom: 1rem; }
.leader-text-content li { margin-bottom: 5px; }

/* Responsive Visibility Helpers */
.leader-header-mobile-only { display: none; text-align: center; margin-top: 20px; }
.leader-header-desktop { display: block; }


/* Team Grid Adjustments */
.globalThumbnailStyling-people .imgWrap.hk-card-sm {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    background: #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.globalThumbnailStyling-people:hover .imgWrap.hk-card-sm {
    border-color: var(--hk-neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* --- RESPONSIVE (Global) --- */
@media (max-width: 992px) {
    #lg-homepage-wrapper .pillars-grid { grid-template-columns: 1fr; padding: 0 20px; }
    #lg-homepage-wrapper .news-grid { grid-template-columns: repeat(2, 1fr); }
    #lg-homepage-wrapper .hero-content h1 { font-size: 2.8rem; }
    #lg-homepage-wrapper .hero-content { left: 5%; right: 5%; }
    
    /* Team Page Tablet */
    .leader-grid { grid-template-columns: 1fr; gap: 40px; } 
    .leader-photo-col { max-width: 500px; margin: 0 auto; }
    .leader-header-desktop { display: none; }
    .leader-header-mobile-only { display: block; }
    .leader-divider { display: none; }
    .leader-name { font-size: 3rem; margin-top:10px;}
}

@media (max-width: 768px) {
    /* Homepage Mobile */
    #lg-homepage-wrapper { margin-top: -80px; } 
    #lg-homepage-wrapper .hero-content { left: 5%; right: 5%; width: 90%; }
    #lg-homepage-wrapper .hero-content h1 { font-size: 2rem; }
    #lg-homepage-wrapper .hero-content p { font-size: 1rem; }
    #lg-homepage-wrapper .cta-button { bottom: 20px; right: 20px; font-size: 0.8rem; padding: 10px 20px; }
    
    #lg-homepage-wrapper .pillars { padding: 60px 0; background-attachment: scroll; }
    #lg-homepage-wrapper .services.hk-style-section,
    #lg-homepage-wrapper .latest-news.hk-style-section { padding: 60px 0; }
    #lg-homepage-wrapper .hk-section-title { font-size: 2rem; margin-bottom: 40px; }
    #lg-homepage-wrapper .service-card.hk-card { padding: 30px 20px; min-height: 280px; }
    #lg-homepage-wrapper .news-grid { grid-template-columns: 1fr; gap: 30px; }

    /* Team Page Mobile */
    #lg-team-wrapper { margin-top: -80px; }
    .leader-grid { gap: 30px; }
    .leader-name { font-size: 2.2rem; }
    .leader-title { font-size: 1.1rem; }
    .leader-text-content { font-size: 1rem; }
    .page-title.hk-section-title { font-size: 2.5rem; margin-bottom: 40px; }
}

/*
 * ==========================================================================
 * 14. TEAM CULTURE VIDEO SECTION
 * ==========================================================================
 */

.team-culture-section {
    position: relative;
    z-index: 5;
    text-align: center;
}

.team-culture-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.team-video-wrapper {
    transition: transform 0.4s ease;
}

/* Hover effect on video container */
.team-video-wrapper:hover {
    transform: scale(1.02);
}

.culture-video-player {
    display: block;
    background: #000;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .team-culture-section {
        margin-top: 60px !important;
        padding-top: 40px !important;
    }
    
    .team-culture-desc {
        font-size: 1rem !important;
        padding: 0 15px;
        margin-bottom: 30px !important;
    }
    
    .team-video-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 15px; /* Add padding so video doesn't touch screen edges */
    }
}

/*
 * ==========================================================================
 * 15. MODERN HK HIGHLIGHT STYLES (Team Culture)
 * ==========================================================================
 */

.hk-culture-header-wrapper {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

/* Gradient Text with Neon Glow */
.hk-culture-title-highlight {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    
    /* Modern HK Gradient: White -> Gold -> Neon Red */
    background: linear-gradient(135deg, #ffffff 10%, #ffd700 50%, #ff2a2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    
    /* Outer Glow */
    filter: drop-shadow(0 0 10px rgba(255, 42, 42, 0.5));
    
    position: relative;
    display: inline-block;
}

.hk-culture-subtitle-highlight {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness for the new title */
@media (max-width: 768px) {
    .hk-culture-title-highlight {
        font-size: 2.5rem;
    }
    .hk-culture-subtitle-highlight {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/*
 * ==========================================================================
 * 16. STANDARD PAGE STYLES
 * ==========================================================================
 */

.standard-page-content.hk-card {
    /* Override centered text from default hk-card */
    text-align: left !important; 
    padding: 60px 50px;
    background: rgba(15, 15, 15, 0.75); /* Slightly darker for readability */
    backdrop-filter: blur(20px);
}

.standard-page-content .entry-content {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Typography inside the standard page */
.standard-page-content h2, 
.standard-page-content h3, 
.standard-page-content h4 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin-top: 40px;
    margin-bottom: 20px;
}

.standard-page-content h2 {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.standard-page-content p {
    margin-bottom: 25px;
}

.standard-page-content a {
    color: #00f0ff; /* Neon Blue Links */
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.5);
}
.standard-page-content a:hover {
    color: #fff;
    border-bottom-style: solid;
}

.standard-page-content ul, 
.standard-page-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}
.standard-page-content li {
    margin-bottom: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .standard-page-content.hk-card {
        padding: 30px 20px;
    }
    .standard-page-content .entry-content {
        font-size: 1rem;
    }
}

/*
 * ==========================================================================
 * 17. SERVICE PAGE TEMPLATE STYLES
 * ==========================================================================
 */

/* --- TABS --- */
.hk-tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.hk-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hk-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 25px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hk-tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
}

.hk-tab-btn.active {
    background: linear-gradient(90deg, #ffd700, #ffae00);
    color: #000;
    font-weight: 600;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.hk-tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hk-tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-card {
    padding: 50px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 8px;
    text-align: left;
}

.tab-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-label {
    font-size: 1.1rem;
    color: #00f0ff; /* Neon Blue */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-label i { margin-right: 8px; }

.tab-col p {
    color: #ddd;
    line-height: 1.6;
    font-size: 1.05rem;
}


/* --- PROCESS FLOWCHART --- */
.process-flow-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    position: relative;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon-wrapper {
    border-color: #ff2a2a;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.4);
    background: rgba(255, 42, 42, 0.1);
    transform: scale(1.1);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: #ffd700;
    color: #000;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}

/* Connectors */
.step-connector-line {
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}
.step-connector-arrow {
    position: absolute;
    top: 32px;
    right: -10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    z-index: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .tab-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-flow-container { flex-direction: column; align-items: center; }
    .process-step { margin-bottom: 40px; width: 100%; max-width: 400px; }
    .step-connector-line, .step-connector-arrow { display: none; }
    
    /* Add vertical connectors for mobile */
    .process-step::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 20px;
        background: rgba(255, 255, 255, 0.2);
    }
    .process-step:last-child::after { display: none; }
}

@media (max-width: 768px) {
    .hk-tab-buttons { flex-direction: column; }
    .hk-tab-btn { width: 100%; }
    .tab-card { padding: 30px 20px; }
    .service-overview { padding: 30px 20px; }
}

/* ==========================================================================
 * 18. LUXURY CASE STUDY STYLES (Expanded Grids)
 * ==========================================================================
 */

/* Timeline Grid Improvements (Case Sharing) */
.timeline-container {
    width: 100%;
    max-width: 1200px; /* Explicitly wide container */
}

.timeline-grid {
    gap: 40px !important; /* Wider gap for breathability */
}

.timeline-card.hk-card {
    min-height: 320px; /* Ensure cards are substantial */
    padding: 40px 30px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.timeline-card.hk-card:hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.timeline-icon-circle {
    position: relative;
    z-index: 2; /* Float above connector line */
    transition: all 0.3s ease;
}

/* Outcome Grid Improvements */
.outcome-card.hk-card {
    min-height: 300px;
    padding: 50px 30px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255,215,0,0.03);
    border: 1px solid rgba(255,215,0,0.2);
    transition: all 0.4s ease;
}

.outcome-card.hk-card:hover {
    transform: translateY(-10px);
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
    background: rgba(255,215,0,0.08);
}

/* General HK Card enhancements */
.hk-card {
    border-radius: 16px;
}

/* Ensure responsive behavior for the larger grids */
@media (max-width: 1100px) {
    .timeline-grid, 
    .outcome-grid {
        gap: 20px !important;
    }
}

@media (max-width: 992px) {
    .client-grid { grid-template-columns: 1fr !important; }
    .client-profile { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    /* 2 Columns on tablet for grids */
    .timeline-grid, 
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .case-main-title { font-size: 2.5rem !important; }
    .hk-section-title-sm { font-size: 2rem; }
    
    /* 1 Column on mobile */
    .timeline-grid,
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Hide timeline connector on mobile to cleaner look */
    .timeline-connector { display: none !important; }
    
    .timeline-step { margin-bottom: 40px; }
}

/* ==========================================================================
   19. NEW CONTINUOUS ANIMATIONS (Modern HK Autoplay)
   ========================================================================== */

/* A. Shimmer Text Effect (For Titles) */
@keyframes hk-text-shimmer {
    0% { background-position: 0% 50%; filter: brightness(100%); }
    50% { background-position: 100% 50%; filter: brightness(150%); }
    100% { background-position: 0% 50%; filter: brightness(100%); }
}
.hk-anim-shimmer {
    background: linear-gradient(90deg, #ffffff 0%, #ffd700 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hk-text-shimmer 3s linear infinite;
    display: inline-block;
}

/* B. Continuous Float (Vertical Bobbing) */
@keyframes hk-float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hk-anim-float {
    animation: hk-float-y 4s ease-in-out infinite;
}
.hk-anim-float-slow {
    animation: hk-float-y 6s ease-in-out infinite;
}

/* C. Color Cycling - Border & Box Shadow (Uses variables from PHP) */
@keyframes hk-cycle-border-anim {
    0%, 100% { 
        border-color: var(--hk-line-color); 
        box-shadow: 0 0 20px rgba(0,0,0,0.5); 
    }
    50% { 
        border-color: #ffffff; 
        box-shadow: 0 0 35px var(--hk-line-color); 
    }
}
.hk-anim-cycle-border {
    animation: hk-cycle-border-anim 4s ease-in-out infinite;
}

/* D. Color Cycling - Icon Text Color (Uses variables from PHP) */
@keyframes hk-cycle-icon-anim {
    0%, 100% { 
        color: var(--hk-icon-color); 
        text-shadow: 0 0 10px var(--hk-icon-color); 
    }
    50% { 
        color: #ffffff; 
        text-shadow: 0 0 25px #ffffff; 
    }
}
.hk-anim-cycle-icon {
    animation: hk-cycle-icon-anim 4s ease-in-out infinite;
}

/* E. Pulse Text (For Warning Icons) */
@keyframes hk-pulse-text-anim {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
.hk-anim-pulse-text {
    display: inline-block;
    animation: hk-pulse-text-anim 2s infinite;
}

/* F. Border Pulse (For Outcome Cards) */
@keyframes hk-border-pulse-anim {
    0% { border-color: rgba(255,215,0,0.2); box-shadow: 0 0 0 rgba(255,215,0,0); }
    50% { border-color: rgba(255,215,0,0.6); box-shadow: 0 0 15px rgba(255,215,0,0.3); }
    100% { border-color: rgba(255,215,0,0.2); box-shadow: 0 0 0 rgba(255,215,0,0); }
}
.hk-anim-pulse-border {
    animation: hk-border-pulse-anim 3s infinite;
}

/* G. Line Flow (For Timeline Connector) */
@keyframes hk-line-flow-anim {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.hk-line-flow {
    background: linear-gradient(90deg, transparent 0%, #00f0ff 50%, transparent 100%);
    background-size: 200% 100%;
    animation: hk-line-flow-anim 2s linear infinite;
    opacity: 0.8;
}

/* H. Staggered Floating for Timeline Icons */
.hk-icon-float-1 { animation: hk-float-y 4s ease-in-out infinite; }
.hk-icon-float-2 { animation: hk-float-y 4s ease-in-out infinite; animation-delay: 1s; }
.hk-icon-float-3 { animation: hk-float-y 4s ease-in-out infinite; animation-delay: 2s; }

/* Standard Fade In */
.animate-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-fade-in.is-visible { opacity: 1; transform: translateY(0); }
/*
 * ==========================================================================
 * RESPONSIVE / MOBILE STYLES (Small Title, Bottom-Right Button)
 * ==========================================================================
 */
@media (max-width: 768px) {
    #lg-homepage-wrapper { margin-top: -80px; } 
    
    /* 1. LAYOUT: Flexbox centers the text vertically */
    #lg-homepage-wrapper .hero {
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: flex-start; 
        padding: 0 15px;
        position: relative; /* Ensures absolute button stays inside */
    }

    /* 2. HERO CONTENT WIDTH */
    #lg-homepage-wrapper .hero-content { 
        position: relative; 
        width: 100%; 
        max-width: 100%; 
        top: auto; left: auto; right: auto; transform: none; 
        padding: 0;
        margin-bottom: 0; 
    }
    
    /* 3. HERO TITLE - SMALLER & SINGLE ROW 
       - font-size: 6.5vw: Significantly smaller (approx 25px).
       - white-space: nowrap: Prevents word wrapping within the lines.
    */
    #lg-homepage-wrapper .hero-content h1 { 
        font-size: 6.5vw !important; 
        line-height: 1.2 !important;
        white-space: nowrap !important; 
        width: 100%;
    } 

    /* Ensure the line break works perfectly */
    #lg-homepage-wrapper .hero-content h1 br {
        display: block;
        content: "";
        margin: 5px 0;
    }

    #lg-homepage-wrapper .hero-content p { 
        font-size: 1rem; 
        max-width: 100%;
        white-space: normal; 
    }

    /* 4. BUTTON - FIXED TO BOTTOM RIGHT (Do not change location) */
    #lg-homepage-wrapper .cta-button { 
        position: absolute !important; 
        bottom: 40px !important;   
        right: 20px !important;    
        left: auto !important;     
        margin: 0 !important;
        font-size: 0.9rem; 
        padding: 12px 30px; 
    }
    
    /* Stack Grids */
    #lg-homepage-wrapper .pillars-grid,
    #lg-homepage-wrapper .news-grid { grid-template-columns: 1fr; }
}
