/* ==========================================================================
   LingoFantasy Online Footer & Blog Styles
   Directly ported from lingofantasy_home_online with all native styles
   ========================================================================== */

:root {
	--lf-blue-400: #609af8;
	--lf-blue-500: #3b82f6;
	--lf-heading-color1: #252933;
	--lf-font-color: #555555;
	--lf-font-white: #ffffff;
	--lf-theme-color-1: #007bff;
}

/* --- Container & Grid for Online Sections --- */
.online-footer,
#footer_buttons {
	width: 100%;
	position: relative;
	display: block;
	padding-top: 3rem;
	background-color: #ffffff;
	border-top: 1px solid #e5e7eb;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
	box-sizing: border-box;
}

.online-footer *,
#footer_buttons * {
	box-sizing: border-box;
}

.online-footer .container,
#footer_buttons .container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.online-footer .row,
#footer_buttons .row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}

.online-footer .col-12,
#footer_buttons .col-12 {
	flex: 0 0 100%;
	max-width: 100%;
	padding-left: 15px;
	padding-right: 15px;
}

.online-footer .mb-4,
#footer_buttons .mb-4 {
	margin-bottom: 1.5rem !important;
}

.online-footer .img-fluid,
#footer_buttons .img-fluid {
	max-width: 100%;
	height: auto;
	display: block;
}

@media (min-width: 768px) {
	.online-footer .col-md-6,
	#footer_buttons .col-md-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (min-width: 992px) {
	.online-footer .col-lg-3,
	#footer_buttons .col-lg-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}
	.online-footer .col-lg-2,
	#footer_buttons .col-lg-2 {
		flex: 0 0 16.666667%;
		max-width: 16.666667%;
	}
}

/* --- Native Footer Component Styles from lingofantasy_home_online --- */
.online-footer .footer-logo,
#footer_buttons .footer-logo {
	width: 100%;
	margin-bottom: 2.5rem;
}

.online-footer .footer-logo img,
#footer_buttons .footer-logo img {
	width: 150px;
	display: block;
}

.online-footer .footer-description,
#footer_buttons .footer-description {
	margin-top: -20px;
}

.online-footer .footer-description p,
#footer_buttons .footer-description p {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
}

.online-footer .footer-description img,
#footer_buttons .footer-description img {
	display: block;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.online-footer .footer-heading,
#footer_buttons .footer-heading {
	font-size: 20px;
	font-weight: 700;
	color: #252933;
	margin-bottom: 25px;
	margin-top: 0;
	line-height: 1.3;
}

.online-footer .footer-links,
#footer_buttons .footer-links {
	width: 100%;
	position: relative;
	display: inline-block;
}

.online-footer .footer-link-list,
#footer_buttons .footer-link-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.online-footer .footer-link-list li,
#footer_buttons .footer-link-list li {
	width: 100%;
	position: relative;
	margin-bottom: 15px;
	list-style: none;
}

.online-footer .footer-link-list li:last-child,
#footer_buttons .footer-link-list li:last-child {
	margin-bottom: 0;
}

.online-footer .footer-item,
#footer_buttons .footer-item {
	color: rgb(2, 105, 200) !important;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: color 0.2s ease;
}

.online-footer .footer-item:hover,
#footer_buttons .footer-item:hover {
	color: #014b8e !important;
	text-decoration: underline !important;
}

.online-footer .footer-about,
#footer_buttons .footer-about {
	width: 100%;
	position: relative;
	display: inline-block;
}

.online-footer .footer-about a,
#footer_buttons .footer-about a {
	display: inline-block;
	text-decoration: none;
}

.online-footer .footer-bottom-bar,
#footer_buttons .footer-bottom-bar {
	font-size: 16px;
	color: #666;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0 35px 0;
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.online-footer .footer-bottom-bar,
	#footer_buttons .footer-bottom-bar {
		flex-direction: column;
		gap: 12px;
		text-align: center;
		font-size: 14px;
	}
}

/* ==========================================================================
   Online Blog Section & Cards Styles (Directly from blog-style.css)
   ========================================================================== */

.online-blog-section {
	padding: 60px 0 80px 0;
	background-color: #F8FAFC;
	border-top: 1px solid #edf0f6;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.online-blog-section .container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.online-blog-section .blog-log {
	font-family: Georgia, 'Times New Roman', 'SimSun', 'PingFang SC', 'Source Han Sans', 'Helvetica Neue', sans-serif;
	margin-top: 10px;
	margin-bottom: 25px;
	line-height: 48px;
	font-size: 36px;
	color: rgb(37, 41, 51);
	text-align: left;
	font-weight: 700;
}

.online-blog-section .card {
	border: 1px solid rgb(226, 232, 240);
	background: #ffffff;
	border-radius: 12px;
	box-sizing: border-box;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.online-blog-section .banner-blog {
	margin: auto;
	padding: 15px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	background: #ffffff;
	border-radius: 16px;
}

.online-blog-section .border-round {
	border-radius: 10px;
}

.online-blog-section .banner-item-title {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.online-blog-section .avatar-2 {
	border: 3px solid #fefefe;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	object-fit: cover;
}

.online-blog-section .name-time-2 {
	display: flex;
	flex-direction: column;
	white-space: nowrap;
	margin-top: 0;
	margin-left: 16px;
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 16px;
	color: #333;
}

.online-blog-section .title {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
	max-width: 100%;
	line-height: 1.4;
	font-size: 20px;
	margin-top: 15px;
	margin-bottom: 10px;
	cursor: pointer;
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 700;
}

.online-blog-section .title:hover {
	text-decoration: underline;
	color: rgb(14, 165, 233);
}

.online-blog-section .theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
}

.online-blog-section .btn-outline-info {
	font-weight: 700;
	color: var(--lf-blue-500);
	border: 1.5px solid var(--lf-blue-500);
	transition: all .3s ease-out;
	padding: 8px 20px;
	border-radius: 25px;
	background-color: rgba(255, 255, 255, 0);
	font-size: 14px;
}

.online-blog-section .btn-outline-info:hover {
	color: #fff;
	background-color: var(--lf-blue-500);
	border-color: var(--lf-blue-500);
}

.online-blog-section .all-blogs-wrapper {
	margin-top: 30px;
	padding: 24px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	background: #ffffff;
}

.online-blog-section .blog-card-col {
	flex: 0 0 33.333333%;
	max-width: 33.333333%;
	padding: 12px;
	box-sizing: border-box;
}

@media (max-width: 992px) {
	.online-blog-section .blog-card-col {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (max-width: 640px) {
	.online-blog-section .blog-card-col {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.online-blog-section .banner-blog > div {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
}

.online-blog-section .blog-item-card {
	padding: 20px;
	border: 1px solid rgb(226, 232, 240);
	border-radius: 12px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.online-blog-section .blog-item-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.online-blog-section .blog-tag-success {
	left: 10px;
	top: 10px;
	position: absolute;
	color: rgb(24, 138, 66);
	background-color: rgb(202, 241, 216);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	height: 24px;
	padding: 4px 10px;
	border-radius: 5px;
}

.online-blog-section .view-tag {
	position: absolute;
	right: 10px;
	top: 10px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	border: 1px solid #eee;
	border-radius: 15px;
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.06);
	background-color: #fff;
	padding: 4px 10px;
	color: #666;
}

.online-blog-section .avatar {
	margin-top: -38px;
	border: 3px solid #fefefe;
	z-index: 10;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	object-fit: cover;
	position: relative;
}

.online-blog-section .name-time {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	white-space: nowrap;
	margin-bottom: 10px;
	margin-top: -10px;
	margin-left: 15px;
	width: 100%;
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 13px;
	color: #666;
}

.online-blog-section .no-overflow {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-height: 24px;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 16px;
	font-weight: 700;
	margin-top: 14px;
	margin-bottom: 8px;
	color: #222;
}

.online-blog-section .no-overflow-abstract {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-height: 22px;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
	color: #777;
	margin-top: 8px;
	margin-bottom: 16px;
	flex: 1;
}

.online-footer .footer-logo,
#footer_buttons .footer-logo {
	width: 100%;
	margin-bottom: 1.8rem;
}

.online-footer .footer-logo .brand,
#footer_buttons .footer-logo .brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.online-footer .footer-logo .brand img,
#footer_buttons .footer-logo .brand img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	display: block;
}

.online-footer .footer-logo .brand-text,
#footer_buttons .footer-logo .brand-text {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -1.1px;
}

.online-footer .footer-logo .brand-text .blue,
#footer_buttons .footer-logo .brand-text .blue {
	color: #197eeb;
}

.online-footer .footer-logo .brand-text .orange,
#footer_buttons .footer-logo .brand-text .orange {
	color: #fb9a29;
}

.footer-social-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 15px;
}

.footer-social-column a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-column a:hover {
	transform: translateX(4px);
	opacity: 0.85;
}

.footer-social-column a img {
	height: 30px;
	width: auto;
	max-width: 90px;
	object-fit: contain;
	display: block;
}

/* --- Header Navigation Active Underline Fix --- */
.site-nav .nav-link.active,
.nav-link.active {
	position: relative;
}

.site-nav .nav-link.active:after,
.nav-link.active:after {
	content: "" !important;
	position: absolute !important;
	height: 3px !important;
	bottom: -10px !important;
	left: 20% !important;
	right: 20% !important;
	background: var(--primary, #6355eb) !important;
	border-radius: 9px !important;
}

/* --- Contact Page Direct Cards Layout --- */
.contact-channels-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-qr-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 768px) {
	.contact-qr-grid {
		grid-template-columns: 1fr;
	}
}

.contact-channel-card {
	background: #ffffff;
	border: 1px solid #e8ecf5;
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 10px 30px rgba(50, 65, 120, 0.04);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-channel-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(50, 65, 120, 0.08);
}

.channel-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.channel-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.channel-icon.wechat-icon {
	background: #e8f9ee;
	color: #07c160;
}

.channel-icon.telegram-icon {
	background: #e8f4fd;
	color: #229ed9;
}

.channel-icon.email-icon {
	background: #f0efff;
	color: #6355eb;
}

.channel-title {
	font-size: 16px;
	font-weight: 750;
	margin: 0;
	color: #18253d;
	line-height: 1.3;
}

.channel-sub {
	font-size: 12px;
	color: #8c97aa;
	display: block;
	margin-top: 3px;
}

.channel-qr-wrap {
	background: #f8faff;
	border: 1px solid #eef1f8;
	border-radius: 14px;
	padding: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px 0 12px;
}

.channel-qr-wrap img {
	max-width: 100%;
	height: 195px;
	object-fit: contain;
	display: block;
	border-radius: 8px;
	background: #ffffff;
}

.channel-note {
	text-align: center;
	font-size: 12px;
	color: #8a96a9;
	margin: 0;
}

.contact-channel-card.email-card {
	padding: 24px;
}

.email-action-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 6px;
	padding-top: 16px;
	border-top: 1px solid #f0f2f7;
}

.email-text {
	font-size: 19px;
	font-weight: 750;
	color: #6355eb;
	text-decoration: none;
	letter-spacing: -0.2px;
}

.email-text:hover {
	text-decoration: underline;
}

.email-btn-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* --- Online Classic FAQ Styles --- */
.classic-faq-section {
	padding: 85px 0 95px 0;
	background-color: #ffffff;
}

.classic-faq-section .section-small-hading {
	background-color: #F3F7FB;
	height: 35px;
	padding: 6px 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #6355eb;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1.2px;
	border-radius: 30px;
	margin-bottom: 14px;
}

.classic-faq-section .section-heading {
	font-size: 36px;
	font-weight: 800;
	color: #252933;
	margin: 0;
	letter-spacing: -0.6px;
	line-height: 1.3;
}

.classic-faq-list {
	max-width: 860px;
	margin: 45px auto 0 auto;
}

.classic-faq-item {
	border-bottom: 1px solid #edf0f6;
}

.classic-faq-btn {
	width: 100%;
	padding: 22px 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: none;
	background: none;
	cursor: pointer;
	text-align: left;
	font-family: Georgia, 'Times New Roman', 'PingFang SC', 'Source Han Serif', serif;
	font-size: 18px;
	color: #252933;
	font-weight: 600;
	line-height: 1.5;
	transition: color 0.2s ease;
}

.classic-faq-btn:hover {
	color: #6355eb;
}

.classic-faq-btn svg {
	width: 17px;
	height: 17px;
	color: #9aa4b5;
	transition: transform 0.25s ease;
	flex-shrink: 0;
	margin-left: 16px;
}

.classic-faq-item.open .classic-faq-btn svg {
	transform: rotate(180deg);
	color: #6355eb;
}

.classic-faq-answer {
	display: none;
	padding: 0 8px 24px 8px;
	font-size: 15px;
	line-height: 1.9;
	color: #55627a;
}

.classic-faq-answer p {
	margin: 0;
}

.classic-faq-item.open .classic-faq-answer {
	display: block;
	animation: faqFadeIn 0.2s ease-out;
}

/* --- Footer Wrap Layout Improvements for Mobile & Tablet --- */
.online-footer .col-6,
#footer_buttons .col-6 {
	flex: 0 0 50%;
	max-width: 50%;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.online-footer .footer-brand-col,
	#footer_buttons .footer-brand-col {
		margin-bottom: 2rem !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
	}
	.online-footer .footer-logo,
	#footer_buttons .footer-logo {
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		width: 100% !important;
		margin-bottom: 1.5rem !important;
	}
	.online-footer .footer-logo .brand,
	#footer_buttons .footer-logo .brand {
		justify-content: center !important;
	}
	.online-footer .footer-description,
	#footer_buttons .footer-description {
		margin-top: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		width: 100% !important;
	}
	.online-footer .footer-description p,
	#footer_buttons .footer-description p {
		text-align: center !important;
		margin: 0 auto 8px auto !important;
	}
	.online-footer .footer-description img,
	#footer_buttons .footer-description img {
		margin: 0 auto !important;
		display: block !important;
	}
	.online-footer .footer-nav-col,
	#footer_buttons .footer-nav-col {
		margin-bottom: 1.5rem !important;
		text-align: center !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
	}
	.online-footer .footer-links,
	#footer_buttons .footer-links {
		text-align: center !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
	}
	.online-footer .footer-heading,
	#footer_buttons .footer-heading {
		font-size: 18px !important;
		margin-bottom: 14px !important;
		text-align: center !important;
	}
	.online-footer .footer-link-list,
	#footer_buttons .footer-link-list {
		padding: 0 !important;
		margin: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
	}
	.online-footer .footer-link-list li,
	#footer_buttons .footer-link-list li {
		text-align: center !important;
	}
	.online-footer .footer-item,
	#footer_buttons .footer-item {
		font-size: 14px !important;
		text-align: center !important;
	}
	.online-footer .footer-about,
	#footer_buttons .footer-about {
		text-align: center !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
	}
	.online-footer .footer-social-column,
	#footer_buttons .footer-social-column {
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
	}
	.online-footer .footer-social-column a,
	#footer_buttons .footer-social-column a {
		justify-content: center !important;
		width: 100% !important;
	}
	.online-footer .footer-social-column img,
	#footer_buttons .footer-social-column img {
		margin: 0 auto !important;
	}
	.online-footer .footer-bottom-bar,
	#footer_buttons .footer-bottom-bar {
		font-size: 14px !important;
		padding: 10px 0 25px 0 !important;
		flex-direction: column !important;
		gap: 8px !important;
		text-align: center !important;
		align-items: center !important;
	}
}

@media (min-width: 576px) and (max-width: 991px) {
	.online-footer .col-sm-3,
	#footer_buttons .col-sm-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}
	.online-footer .footer-brand-col,
	#footer_buttons .footer-brand-col {
		flex: 0 0 100%;
		max-width: 100%;
		margin-bottom: 2rem !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
	}
	.online-footer .footer-logo,
	#footer_buttons .footer-logo {
		display: flex !important;
		justify-content: center !important;
	}
	.online-footer .footer-description,
	#footer_buttons .footer-description {
		margin-top: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
	}
	.online-footer .footer-description img,
	#footer_buttons .footer-description img {
		margin: 0 auto !important;
	}
}

@media (min-width: 992px) {
	.online-footer .col-lg-3,
	#footer_buttons .col-lg-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}
	.online-footer .col-lg-2,
	#footer_buttons .col-lg-2 {
		flex: 0 0 16.666667%;
		max-width: 16.666667%;
	}
}
