/*=====================================================
    FOOTER STYLES - Dark Mode Premium with Tech Pattern
    Created: 2026
    Description: Modern footer with dark gradient background,
                 tech grid pattern, and cyan accent colors
======================================================*/

/* Global Link Focus Reset - đồng bộ với hover */
.content-footer a {
	text-decoration: none;
}

.content-footer a:focus {
	outline: none;
}

.content-footer a:focus-visible {
	outline: 2px solid rgba(0, 230, 255, 0.5);
	outline-offset: 4px;
	border-radius: 2px;
}

/* Main Footer Container */
.content-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 80px 60px 30px 60px;
	
	/* Dark Mode Premium Background */
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
	
	/* Tech Pattern Overlay */
	background-image: 
		linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%),
		repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0, 230, 255, 0.03) 35px, rgba(0, 230, 255, 0.03) 70px);
	
	/* Premium Shadow */
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5), 0 -2px 20px rgba(0, 230, 255, 0.1);
	border-top: 1px solid rgba(0, 230, 255, 0.15);
	z-index: 2;
	position: relative;
	overflow: hidden;
}

/* Container alignment */
.content-footer .container {
	max-width: 1400px;
	margin: 0 auto;
}

/* Row spacing */
.content-footer .row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	margin-left: -15px;
	margin-right: -15px;
}

/* Column adjustments for better spacing and avoiding overlap */
.content-footer .col-md-6 {
	padding-right: 50px;
	padding-left: 15px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.content-footer .col-md-4 {
	padding-right: 40px;
	padding-left: 15px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.content-footer .col-md-2 {
	padding-left: 20px;
	padding-right: 20px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.content-footer .col-md-3 {
	padding-left: 20px;
	padding-right: 15px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

/* Ensure footer-wrap has proper spacing */
.content-footer .col-md-12 {
	padding-left: 15px;
	padding-right: 15px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

/* Tech Grid Pattern Overlay */
.content-footer::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		linear-gradient(rgba(0, 230, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 230, 255, 0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
	z-index: 1;
	opacity: 0.5;
}

/* Glowing Left Border */
.content-footer:before {
	content: '';
	position: absolute;
	display: block;
	top: -10px;
	bottom: 0;
	z-index: 20;
	width: 3px;
	left: 0;
	background: linear-gradient(180deg, 
		transparent 0%, 
		rgba(0, 230, 255, 0.4) 20%, 
		rgba(0, 230, 255, 0.6) 50%, 
		rgba(0, 230, 255, 0.4) 80%, 
		transparent 100%);
	box-shadow: 0 0 20px rgba(0, 230, 255, 0.3);
	opacity: 0.8;
	animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 1; }
}

/* Footer Title (Vertical Text) */
.footer-title {
	position: absolute;
	width: auto;
	padding-top: 0;
	cursor: default;
	transform: translate(-50%, -50%) rotate(-90deg);
	transform-origin: center;
	z-index: 12;
	left: 50%;
	white-space: nowrap;
}

.footer-title:before {
	display: none;
}

.footer-title h2 {
	line-height: 1;
	margin: 0;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #fff;
	font-family: 'Muli', sans-serif;
	font-weight: 600;
}

.footer-title a {
	position: relative;
	z-index: 3;
	transition: all 200ms linear;
	color: #fff;
}

/* Footer Items */
.footer-item {
	float: left;
	width: 100%;
	text-align: left;
	color: #fff;
	position: relative;
	z-index: 2;
	word-wrap: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.footer-item h4 {
	width: 100%;
	margin-bottom: 20px;
	font-size: 0.75em;
	padding-left: 0;
	color: #00e6ff;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 700;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
}

.footer-item h4::before {
	content: none;
}

/* Chỉ trigger line khi hover trực tiếp vào h4, không phải cả block */
.footer-item h4:hover {
	text-shadow: none;
}

.footer-item p,
.footer-item span,
.footer-item ul li a {
	font-size: 1.0em;
	color: rgba(255, 255, 255, .85);
	line-height: 1.9;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
}

.footer-item ul li {
	float: left;
	width: 100%;
	margin-bottom: 9px;
	position: relative;
	padding-left: 0;
}

.footer-item ul li::before {
	content: none;
}

.footer-item ul li:hover::before {
	content: none;
}

.footer-item span,
.footer-item ul li a {
	position: relative;
	display: inline-block;
}

.footer-item ul li a {
	position: relative;
	display: inline-block;
	line-height: 1.6;
	transition: all 0.3s ease;
}

.footer-item ul li a:hover,
.footer-item ul li a:focus,
.footer-item ul li a:active {
	color: #00e6ff;
	text-shadow: 0 0 10px rgba(0, 230, 255, 0.5);
	outline: none;
}

/* Focus-visible cho accessibility */
.footer-item ul li a:focus-visible {
	outline: 2px solid rgba(0, 230, 255, 0.5);
	outline-offset: 4px;
	border-radius: 2px;
}

.footer-item span {
	letter-spacing: 1px;
}

.footer-item .text-link {
	color: #00e6ff;
	font-weight: 600;
}

.footer-item .text-link:before {
	content: none;
}

/* Footer Logo */
.footer-logo a {
	margin-bottom: 30px;
	position: relative;
	display: block;
	width: 100px;
	max-width: 100px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo a:hover {
	transform: scale(1.08) rotate(2deg);
	filter: drop-shadow(0 0 20px rgba(0, 230, 255, 0.6));
}

/* Focus states cho logo */
.footer-logo a:focus,
.footer-logo a:active {
	outline: none;
	transform: scale(1.08) rotate(2deg);
	filter: drop-shadow(0 0 20px rgba(0, 230, 255, 0.6));
}

.footer-logo a:focus-visible {
	outline: 2px solid rgba(0, 230, 255, 0.6);
	outline-offset: 6px;
	border-radius: 8px;
}

.footer-logo a:before {
	content: none;
}

@keyframes shimmer {
	0%, 100% { 
		opacity: 0.5; 
		transform: scaleX(1); 
	}
	50% { 
		opacity: 1; 
		transform: scaleX(1.2); 
	}
}

.footer-logo h3 {
	clear: both;
	color: #fff;
	font-size: 1.4em;
	margin: 15px 0 20px 0;
	font-weight: 600;
}

.footer-logo p {
	max-width: 500px;
	font-size: 1.05em;
	clear: both;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
	text-align: justify;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
}

/* Link trong footer logo paragraph (Xem bản đồ) */
.footer-logo p a {
	color: #00e6ff;
	text-decoration: none;
	position: relative;
	display: inline-block;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo p a:hover,
.footer-logo p a:focus,
.footer-logo p a:active {
	color: #fff;
	text-shadow: 0 0 10px rgba(0, 230, 255, 0.6);
}

.footer-logo p a:focus,
.footer-logo p a:active {
	outline: none;
}

.footer-logo p a:focus-visible {
	outline: 2px solid rgba(0, 230, 255, 0.5);
	outline-offset: 4px;
	border-radius: 2px;
}

/* Footer Bottom Wrap */
.footer-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding-top: 40px;
	margin-top: 30px;
	position: relative;
	gap: 30px;
	flex-wrap: wrap;
}

.footer-wrap:before {
	content: none;
}

@keyframes pulse {
	0%, 100% { 
		transform: scale(1); 
		opacity: 1; 
	}
	50% { 
		transform: scale(1.3); 
		opacity: 0.7; 
	}
}

.footer-wrap.tth:before {
	content: none;
}

/* Copyright Text */
.copyright {
	text-align: left;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 500;
	transition: all 0.3s ease;
	flex: 1;
}

.copyright:hover {
	color: #00e6ff;
	text-shadow: 0 0 8px rgba(0, 230, 255, 0.4);
}

.copyright:focus,
.copyright:active {
	outline: none;
	color: #00e6ff;
	text-shadow: 0 0 8px rgba(0, 230, 255, 0.4);
}

.copyright:focus-visible {
	outline: 2px solid rgba(0, 230, 255, 0.5);
	outline-offset: 4px;
	border-radius: 2px;
}

/* Back to Top Button */
.to-top {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 0.95em;
	overflow: hidden;
	width: auto;
	padding: 10px 20px;
	height: auto;
	cursor: pointer;
	text-align: right;
	position: relative;
	background: linear-gradient(135deg, rgba(0, 230, 255, 0.1), rgba(0, 153, 255, 0.1));
	border: 1px solid rgba(0, 230, 255, 0.3);
	border-radius: 4px;
	transition: all 0.3s ease;
	font-weight: 600;
	flex-shrink: 0;
	white-space: nowrap;
}

.to-top:hover {
	background: linear-gradient(135deg, rgba(0, 230, 255, 0.2), rgba(0, 153, 255, 0.2));
	border-color: #00e6ff;
	color: #00e6ff;
	box-shadow: 0 0 20px rgba(0, 230, 255, 0.4);
	transform: translateY(-2px);
}

/* Focus states cho to-top */
.to-top:focus,
.to-top:active {
	outline: none;
	background: linear-gradient(135deg, rgba(0, 230, 255, 0.2), rgba(0, 153, 255, 0.2));
	border-color: #00e6ff;
	color: #00e6ff;
	box-shadow: 0 0 20px rgba(0, 230, 255, 0.4);
	transform: translateY(-2px);
}

.to-top:focus-visible {
	outline: 2px solid rgba(0, 230, 255, 0.6);
	outline-offset: 4px;
}

.to-top::before {
	content: '↑';
	margin-right: 8px;
	font-size: 1.2em;
	vertical-align: middle;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
	.content-footer {
		left: 0;
		padding: 60px 40px 30px 40px;
	}
	
	.content-footer .col-md-6,
	.content-footer .col-md-4,
	.content-footer .col-md-2,
	.content-footer .col-md-3 {
		padding-left: 15px;
		padding-right: 15px;
	}
	
	.footer-item h4::before {
		left: 0;
		width: 30px;
	}
}

/* Gradually scale down footer to prevent overlap */
@media (max-width: 1400px) {
	.footer-item h4 {
		font-size: 11px;
	}
	
	.footer-item p,
	.footer-item a {
		font-size: 12px;
	}
}

@media (max-width: 1300px) {
	.content-footer .col-md-6 {
		padding-right: 20px;
	}
	
	.content-footer .col-md-4 {
		padding-right: 25px;
	}
	
	.content-footer .col-md-2,
	.content-footer .col-md-3 {
		padding-left: 10px;
		padding-right: 10px;
	}
	
	.footer-item h4 {
		font-size: 10px;
	}
	
	.footer-item p,
	.footer-item a {
		font-size: 11px;
		line-height: 1.6;
	}
}

@media (max-width: 1200px) {
	.content-footer {
		padding: 60px 30px 30px 30px;
	}
	
	.content-footer .col-md-4 {
		width: 30% !important;
	}
	
	.content-footer .col-md-2 {
		width: 23% !important;
	}
	
	.content-footer .col-md-3 {
		width: 24% !important;
	}
	
	.footer-logo p {
		font-size: 11px;
	}
}

@media (max-width: 1080px) {
	.content-footer .col-md-6,
	.content-footer .col-md-4,
	.content-footer .col-md-2,
	.content-footer .col-md-3 {
		width: 100% !important;
		float: left;
		padding-left: 15px;
		padding-right: 15px;
		margin-bottom: 30px;
		margin-left: 0 !important;
	}

	.content-footer > .container > .row:first-child > .col-md-3 {
		box-sizing: border-box;
		float: left;
		width: 50% !important;
	}
}

@media (max-width: 768px) {
	.content-footer {
		position: relative;
		padding: 50px 20px 20px 20px;
	}
	
	.content-footer .col-md-6,
	.content-footer .col-md-4,
	.content-footer .col-md-2,
	.content-footer .col-md-3 {
		width: 100% !important;
		float: left;
		padding-left: 15px;
		padding-right: 15px;
		margin-bottom: 30px;
		margin-left: 0 !important;
	}
}

@media (max-width: 768px) {
	.content-footer {
		position: relative;
		padding: 50px 20px 20px 20px;
	}
	
	.content-footer .col-md-6,
	.content-footer .col-md-4,
	.content-footer .col-md-2,
	.content-footer .col-md-3,
	.content-footer .col-md-12 {
		width: 100%;
		padding-left: 15px;
		padding-right: 15px;
		margin-bottom: 30px;
	}
	
	.footer-logo p {
		max-width: 100%;
	}
	
	.footer-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	
	.copyright,
	.to-top {
		width: 100%;
		text-align: left;
	}
}
