/* Mega menu Kiến thức */
.ib-mega { display: none; }

@media (min-width: 769px) {
	header .main-header { position: relative; }
	header .main-header .header-menu > ul > li.has-mega-menu { position: static; }
	header .main-header .header-menu > ul > li.has-mega-menu > ul.sub-menu { display: none !important; }
	header .main-header .header-menu > ul > li.has-mega-menu:hover > a { color: #33b44a; }
	header .main-header .header-menu > ul > li.has-mega-menu:hover > a::after { content: "\f077"; }

	.ib-mega { background: #fff; border-radius: 14px; border-top: 4px solid #33b44a; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); display: block; left: 0; opacity: 0; padding: 22px 24px 0; position: absolute; right: 0; text-align: left; top: calc(100% - 4px); transition: opacity .2s, visibility .2s; visibility: hidden; z-index: 9999; }
	/* Cầu nối để không mất hover khi rê chuột từ menu xuống */
	.ib-mega::before { content: ""; height: 24px; left: 0; position: absolute; right: 0; top: -24px; }
	header .main-header .header-menu > ul > li.has-mega-menu:hover > .ib-mega { opacity: 1; visibility: visible; }

	.ib-mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ib-mega__col { display: flex; flex-direction: column; padding: 0 22px 20px; }
	.ib-mega__col:first-child { padding-left: 0; }
	.ib-mega__col:last-child { padding-right: 0; }
	.ib-mega__col + .ib-mega__col { border-left: 1px solid #e5e7eb; }
	.ib-mega__head { align-items: center; color: #33b44a; display: flex; font-size: 14px; font-weight: 700; gap: 12px; margin-bottom: 10px; text-transform: uppercase; }
	.ib-mega__icon { align-items: center; background: #e8f6ec; border-radius: 8px; display: flex; flex: 0 0 36px; font-size: 18px; height: 36px; justify-content: center; }

	.ib-mega__links { list-style: none; margin: 0 0 14px; padding: 0; }
	header .main-header .header-menu .ib-mega__links li { display: block; margin: 0; width: auto; }
	header .main-header .header-menu .ib-mega__links a { align-items: center; color: #252e4f; display: flex; font-size: 14px; justify-content: space-between; padding: 6px 0; transition: color .2s; }
	header .main-header .header-menu .ib-mega__links a:hover { color: #33b44a; }

	header .main-header .header-menu a.ib-mega__card { align-items: center; background: #eef8f1; border-radius: 10px; color: #252e4f; display: flex; gap: 12px; margin-top: auto; padding: 12px; transition: background .2s; }
	header .main-header .header-menu a.ib-mega__card:hover { background: #dcf1e3; }
	.ib-mega__card-icon { color: #15803d; flex: 0 0 44px; font-size: 34px; line-height: 1; text-align: center; }
	.ib-mega__card-text { flex: 1; min-width: 0; }
	.ib-mega__card-text strong, .ib-mega__card-text small { display: block; }
	.ib-mega__card-text strong { font-size: 13px; }
	.ib-mega__card-text small { color: #5a5f75; font-size: 12px; line-height: 1.4; }
	.ib-mega__card-arrow { align-items: center; background: #15803d; border-radius: 50%; color: #fff; display: flex; flex: 0 0 22px; height: 22px; justify-content: center; }

	header .main-header .header-menu a.ib-mega__all { border-top: 1px solid #e5e7eb; color: #15803d; display: block; font-size: 14px; font-weight: 700; padding: 14px 0; text-align: center; }
	header .main-header .header-menu a.ib-mega__all:hover { color: #33b44a; }
}

/* Footer: có Custom CSS trong database ép 5 cột bằng nhau nên cần selector mạnh hơn */
footer .main-footer .wrapper .cols { grid-template-columns: 1.85fr .85fr 1.2fr 1.05fr 1.15fr; }
footer .main-footer .cols .footer-col.item1 .textwidget img { height: auto; width: 150px; }
footer .main-footer .cols .footer-col span.widget-title,
footer .main-footer .cols .footer-col h3.widget-title { display: block; font-weight: 700 !important; margin-bottom: 18px; padding-bottom: 8px; position: relative; }
footer .main-footer .cols .footer-col .widget-title::after { background: #02d460; bottom: 0; content: ""; height: 2px; left: 0; position: absolute; width: 24px; }

.footer-eco { margin: 6px 0 14px; }
.footer-eco__title { align-items: center; color: #fff; display: flex; font-size: 11px; font-weight: 600; gap: 8px; letter-spacing: .03em; margin-bottom: 10px; text-transform: uppercase; }
.footer-eco__title::before { background: #02d460; content: ""; flex: 0 0 22px; height: 2px; }
footer .main-footer .cols .footer-col ul.footer-eco__list { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
footer .main-footer .cols .footer-col ul.footer-eco__list li a { align-items: center; background: #262626; border: 1px solid #333; border-radius: 8px; color: #fff; display: flex; font-size: 12px; gap: 6px; padding: 6px; transition: border-color .2s; white-space: nowrap; }
footer .main-footer .cols .footer-col ul.footer-eco__list li a:hover { border-color: #02d460; color: #fff; }
.footer-eco__tile { align-items: center; background: #fff; border-radius: 5px; color: #15803d; display: flex; flex: 0 0 22px; font-size: 10px; font-weight: 700; height: 22px; justify-content: center; }
.footer-eco__list i { color: #02d460; font-size: 10px; }

footer .main-footer .cols .footer-col ul.footer-socials { align-items: center; display: flex; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
footer .main-footer .cols .footer-col ul.footer-socials > li,
footer .main-footer .cols .footer-col ul.footer-socials > li:first-child { display: block; margin: 0; }
footer .main-footer .cols .footer-col ul.footer-socials > li > a { align-items: center; background: #2b2b2b; border-radius: 8px; color: #fff; display: flex; font-size: 16px; height: 34px; justify-content: center; padding: 0; transition: background .2s; width: 34px; }
footer .main-footer .cols .footer-col ul.footer-socials > li > a:hover { background: #33b44a; color: #fff; }
.footer-socials svg { fill: currentColor; height: 16px; width: 16px; }
.footer-socials__zalo { font-size: 9px; font-weight: 700; }

.footer-contact { border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 40px; grid-template-columns: 1fr 1fr 1fr; margin-top: 30px; padding: 30px 0 10px; }
.footer-contact-col.col2 { border-left: 1px solid #2b3e4b; border-right: 1px solid #2b3e4b; padding: 0 20px; }
.footer-contact-title { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.footer-contact-item { align-items: flex-start; color: #a6a6a6; display: flex; font-size: 14px; gap: 12px; line-height: 1.6; margin: 0 0 12px; }
.footer-contact-item > i { color: #02d460; flex: 0 0 18px; font-size: 18px; margin-top: 2px; text-align: center; }
.footer-contact-item a { color: #a6a6a6; text-decoration: none; }
.footer-contact-item a:hover { color: #02d460; }
.bottom-footer .wrapper { border-color: #2b3e4b; }

@media (max-width: 991px) {
	footer .main-footer .wrapper .cols { grid-template-columns: 1fr 1fr; }
	footer .main-footer .cols .footer-col.item1 { grid-column: 1 / -1; }
	footer .main-footer .cols .footer-col ul.footer-eco__list { max-width: 420px; }
}

@media (max-width: 768px) {
	.footer-contact { gap: 20px; grid-template-columns: 1fr; }
	.footer-contact-col.col2 { border: 0; padding: 0; }
}
