/* =========================================================================
   tiengtrungquoc.com.vn - CSS trang chủ + header/footer thương hiệu
   ========================================================================= */

:root {
	--ttq-red: #C60000;
	--ttq-red-dark: #990000;
	--ttq-red-soft: #FFF4F3;
	--ttq-text: #1F1F1F;
	--ttq-text-muted: #5F5F5F;
	--ttq-border: #E9DADA;
	--ttq-bg: #FFFFFF;
	--ttq-font: "Be Vietnam Pro", "Inter", -apple-system, sans-serif;
	--ttq-font-zh: "Noto Sans SC", sans-serif;
	--ttq-radius-card: 10px;
	--ttq-radius-box: 18px;
	--ttq-shadow: 0 10px 28px rgba(31, 31, 31, 0.10);
}

/* ---------- Nền tảng ---------- */

body {
	font-family: var(--ttq-font);
	color: var(--ttq-text);
	background: var(--ttq-bg);
}

h1, h2, h3, h4, h5, h6,
.ttq-home h1, .ttq-home h2, .ttq-home h3 {
	font-family: var(--ttq-font);
	color: var(--ttq-text);
}

[lang="zh-Hans"] {
	font-family: var(--ttq-font-zh);
}

.ttq-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.ttq-home {
	overflow-x: clip; /* Không cho deco hero gây tràn ngang */
}

/* ---------- Nút ---------- */

.ttq-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ttq-btn--primary {
	background: var(--ttq-red);
	color: #fff;
	border: 1.5px solid var(--ttq-red);
}

.ttq-btn--primary:hover,
.ttq-btn--primary:focus {
	background: var(--ttq-red-dark);
	border-color: var(--ttq-red-dark);
	color: #fff;
}

.ttq-btn--outline {
	background: #fff;
	color: var(--ttq-red);
	border: 1.5px solid var(--ttq-red);
}

.ttq-btn--outline:hover,
.ttq-btn--outline:focus {
	background: var(--ttq-red-dark);
	border-color: var(--ttq-red-dark);
	color: #fff;
}

/* ---------- Tiêu đề section (gạch đỏ phía trên) ---------- */

.ttq-section {
	padding: 56px 0;
}

.ttq-section__title {
	text-align: center;
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 36px;
	padding-top: 18px;
	position: relative;
}

.ttq-section__title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 46px;
	height: 4px;
	border-radius: 2px;
	background: var(--ttq-red);
}

.ttq-section__more {
	text-align: center;
	margin-top: 34px;
}

/* =========================================================================
   A. HEADER (tùy biến trên header mặc định Flatsome, không sửa parent)
   ========================================================================= */

.header-nav > li > a {
	font-family: var(--ttq-font);
	font-weight: 600;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ttq-text);
}

.header-nav > li > a:hover {
	color: var(--ttq-red);
}

/* Menu active: chữ đỏ + gạch chân nhỏ */
.header-nav > li.current-menu-item > a,
.header-nav > li.current-menu-ancestor > a,
.header-nav > li.current_page_item > a {
	color: var(--ttq-red);
	position: relative;
}

.header-nav > li.current-menu-item > a::after,
.header-nav > li.current-menu-ancestor > a::after,
.header-nav > li.current_page_item > a::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 4px;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--ttq-red);
}

/* Nút CTA header - thêm qua Header Builder (HTML element), xem README */
.ttq-header-cta {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: var(--ttq-red) !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	padding: 10px 24px !important;
	margin-left: 15px !important;
	border-radius: 8px !important;
	white-space: nowrap !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	line-height: normal !important;
	box-sizing: border-box !important;
	transition: background-color 0.2s ease !important;
	overflow: visible !important;
}

.ttq-header-cta:hover {
	background: var(--ttq-red-dark);
}

/* Logo icon tròn đỏ (khi dùng logo dạng HTML/text, xem README) */
.ttq-logo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	background: var(--ttq-red);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
}

/* =========================================================================
   B. HERO
   ========================================================================= */

.ttq-hero {
	padding: 56px 0 48px;
	background: var(--ttq-bg);
}

.ttq-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}

.ttq-hero__title {
	font-size: 44px;
	line-height: 1.18;
	font-weight: 800;
	margin: 0 0 18px;
}

.ttq-hero__highlight {
	display: block;
	color: var(--ttq-red);
}

.ttq-hero__desc {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ttq-text-muted);
	margin: 0 0 26px;
	max-width: 540px;
}

.ttq-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 34px;
}

.ttq-hero__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttq-hero__stats li {
	display: grid;
	grid-template-columns: 26px 1fr;
	grid-template-rows: auto auto;
	column-gap: 8px;
	align-items: center;
}

.ttq-hero__stats .ttq-icon {
	grid-row: 1;
	color: var(--ttq-red);
}

.ttq-hero__stats strong {
	font-size: 19px;
	font-weight: 800;
	color: var(--ttq-red);
}

.ttq-hero__stats span {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--ttq-text-muted);
	margin-top: 4px;
}

/* Cột ảnh hero */

.ttq-hero__media {
	position: relative;
}

.ttq-hero__image-wrap {
	position: relative;
	border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	max-width: 560px;
	margin-left: auto;
	background: var(--ttq-red-soft);
	box-shadow: 0 18px 50px rgba(198, 0, 0, 0.14);
}

.ttq-hero__image-wrap::after {
	/* Nét cọ đỏ trang trí viền */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 3px solid rgba(198, 0, 0, 0.28);
	pointer-events: none;
}

.ttq-hero__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ttq-hero__deco {
	position: absolute;
	color: var(--ttq-red);
	opacity: 0.85;
	z-index: 2;
}

.ttq-hero__deco--lantern {
	top: -6px;
	left: 2%;
	animation: ttq-sway 4s ease-in-out infinite;
	transform-origin: top center;
}

.ttq-hero__deco--blossom {
	bottom: 6%;
	right: -8px;
	opacity: 0.55;
}

@keyframes ttq-sway {
	0%, 100% { transform: rotate(-4deg); }
	50% { transform: rotate(4deg); }
}

/* =========================================================================
   C. KHỐI ƯU ĐIỂM
   ========================================================================= */

.ttq-benefits {
	padding: 8px 0 12px;
}

.ttq-benefits__box {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 26px 20px;
	background: var(--ttq-red-soft);
	border-radius: var(--ttq-radius-box);
	padding: 36px 30px;
}

.ttq-benefits__item {
	text-align: center;
	background: #fff;
	padding: 24px 16px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	transition: transform 0.3s, box-shadow 0.3s;
}

.ttq-benefits__item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(204, 0, 0, 0.15);
}

.ttq-benefits__icon {
	display: inline-flex;
	color: var(--ttq-red);
	margin-bottom: 12px;
}

.ttq-benefits__item h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
}

.ttq-benefits__item p {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ttq-text-muted);
	margin: 0;
}

/* =========================================================================
   D. CARD KHÓA HỌC
   ========================================================================= */

.ttq-course-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.ttq-course-card {
	background: #fff;
	border: 1px solid var(--ttq-border);
	border-radius: var(--ttq-radius-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ttq-course-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ttq-shadow);
}

.ttq-course-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.ttq-course-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ttq-course-card:hover .ttq-course-card__media img {
	transform: scale(1.05);
}

.ttq-course-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}

.ttq-course-card__title {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.ttq-course-card__title a {
	color: var(--ttq-text);
}

.ttq-course-card__title a:hover {
	color: var(--ttq-red);
}

.ttq-course-card__desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ttq-text-muted);
	margin: 0;
	flex: 1;
}

.ttq-course-card__cta {
	padding: 9px 14px;
	font-size: 13.5px;
	width: 100%;
}

/* Nhãn cấp độ */

.ttq-badge {
	display: inline-block;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
}

.ttq-badge--so-cap {
	background: var(--ttq-red-soft);
	color: var(--ttq-red);
	border-color: #F3C6C3;
}

.ttq-badge--trung-cap {
	background: #FFF7EC;
	color: #B95E00;
	border-color: #F1D5AE;
}

.ttq-badge--cao-cap {
	background: var(--ttq-red);
	color: #fff;
}

.ttq-badge--ung-dung {
	background: #EFF5FF;
	color: #1D5FBF;
	border-color: #C4D8F5;
}

/* =========================================================================
   E. CARD BÀI VIẾT KINH NGHIỆM
   ========================================================================= */

.ttq-post-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.ttq-post-card {
	background: #fff;
	border: 1px solid var(--ttq-border);
	border-radius: var(--ttq-radius-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ttq-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ttq-shadow);
}

.ttq-post-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.ttq-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ttq-post-card:hover .ttq-post-card__media img {
	transform: scale(1.05);
}

.ttq-post-card__cat {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: var(--ttq-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
}

.ttq-post-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}

.ttq-post-card__title {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.45;
	margin: 0;
}

.ttq-post-card__title a {
	color: var(--ttq-text);
}

.ttq-post-card__title a:hover {
	color: var(--ttq-red);
}

.ttq-post-card__desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ttq-text-muted);
	margin: 0;
	flex: 1;
}

.ttq-post-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--ttq-border);
	padding-top: 12px;
	font-size: 12.5px;
	color: var(--ttq-text-muted);
}

.ttq-post-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* =========================================================================
   F. FOOTER
   ========================================================================= */

.ttq-footer {
	background: var(--ttq-red);
	color: #fff;
}

.ttq-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
	gap: 40px;
	padding: 52px 0 40px;
}

.ttq-footer__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.ttq-footer__logo .ttq-logo-badge {
	background: #fff;
	color: var(--ttq-red);
}

.ttq-footer__logo-text strong {
	display: block;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.ttq-footer__logo-text small {
	color: rgba(255, 255, 255, 0.85);
	font-size: 12px;
}

.ttq-footer__desc {
	font-size: 13.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 18px;
}

.ttq-footer__socials {
	display: flex;
	gap: 10px;
}

.ttq-footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	transition: background-color 0.2s ease;
}

.ttq-footer__socials a:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.ttq-footer__title {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin: 6px 0 18px;
}

.ttq-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttq-footer__menu li {
	margin-bottom: 10px;
}

.ttq-footer__menu a {
	color: rgba(255, 255, 255, 0.9);
	font-size: 13.5px;
	transition: color 0.2s ease;
}

.ttq-footer__menu a:hover {
	color: #fff;
	text-decoration: underline;
}

.ttq-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttq-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.9);
}

.ttq-footer__contact .ttq-icon {
	flex-shrink: 0;
	margin-top: 1px;
}

.ttq-footer__contact a {
	color: rgba(255, 255, 255, 0.9);
}

.ttq-footer__contact a:hover {
	color: #fff;
}

/* Footer đa chi nhánh */
.ttq-footer__email {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.ttq-footer__email a {
	color: rgba(255, 255, 255, 0.85);
}

.ttq-footer__email a:hover {
	color: #fff;
}

.ttq-footer__contact--branches {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

li.ttq-footer__branch {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 12px;
	padding-bottom: 2px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ttq-footer__branch:first-child {
	border-top: none;
	padding-top: 0;
}

.ttq-footer__branch-name {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.3px;
}

.ttq-footer__branch-name .ttq-icon {
	color: rgba(255, 255, 255, 0.7);
	flex-shrink: 0;
}

.ttq-footer__branch-addr {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.4;
	padding-left: 20px;
}

.ttq-footer__branch-phone {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	padding-left: 20px;
	transition: color 0.2s;
}

.ttq-footer__branch-phone:hover {
	color: #fff;
}

.ttq-footer__branch-phone .ttq-icon {
	color: rgba(255, 255, 255, 0.7);
}

.ttq-footer__bottom {
	background: var(--ttq-red-dark);
	padding: 16px 0;
	text-align: center;
}

.ttq-footer__bottom p {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.9);
}


/* =========================================================================
   G. BACK TO TOP
   ========================================================================= */

.ttq-back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: var(--ttq-red);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(198, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.ttq-back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ttq-back-to-top:hover {
	background: var(--ttq-red-dark);
}

/* =========================================================================
   HIỆU ỨNG XUẤT HIỆN KHI CUỘN (IntersectionObserver)
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
	.ttq-reveal {
		opacity: 0;
		transform: translateY(22px);
		transition: opacity 0.55s ease, transform 0.55s ease;
	}

	.ttq-reveal.is-visible {
		opacity: 1;
		transform: none;
	}

	/* Chưa có JS thì vẫn hiển thị bình thường */
	.no-js .ttq-reveal,
	html:not(.ttq-js) .ttq-reveal {
		opacity: 1;
		transform: none;
	}
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* Tablet: 768 - 1199 */
@media (max-width: 1199px) {
	.ttq-hero__title {
		font-size: 36px;
	}

	.ttq-course-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.ttq-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ttq-benefits__box {
		grid-template-columns: repeat(3, 1fr);
	}

	.ttq-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 34px;
	}
}

/* Mobile: dưới 768 */
@media (max-width: 767px) {
	.ttq-section {
		padding: 40px 0;
	}

	.ttq-section__title {
		font-size: 24px;
		margin-bottom: 26px;
	}

	/* Hero: text trước, ảnh sau */
	.ttq-hero {
		padding: 32px 0;
	}

	.ttq-hero__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.ttq-hero__title {
		font-size: 29px;
	}

	.ttq-hero__desc {
		font-size: 15.5px;
	}

	.ttq-hero__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ttq-hero__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.ttq-hero__image-wrap {
		max-width: 420px;
		margin: 0 auto;
	}

	.ttq-hero__deco--lantern {
		left: 0;
	}

	.ttq-hero__deco--blossom {
		right: 0;
	}

	.ttq-benefits__box {
		grid-template-columns: repeat(2, 1fr);
		padding: 26px 20px;
		gap: 22px 14px;
	}

	.ttq-course-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ttq-post-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ttq-footer__grid {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 40px 0 30px;
	}

	.ttq-back-to-top {
		right: 14px;
		bottom: 14px;
		width: 42px;
		height: 42px;
	}
}

/* Mobile nhỏ: nút hero full width, ưu điểm 1 cột */
@media (max-width: 479px) {
	.ttq-hero__actions {
		grid-template-columns: 1fr;
	}

	.ttq-benefits__box {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   SIDEBAR - MODERN & LUXURIOUS DESIGN
   ========================================================================== */

/* Style cho từng khối Widget trong Sidebar */
#secondary .widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

#secondary .widget:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Style cho Tiêu đề Widget (Widget Title) */
#secondary .widget-title,
#secondary .widget .wp-block-heading {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
    margin-bottom: 20px !important;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

#secondary .widget-title::after,
#secondary .widget .wp-block-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--ttq-red, #cc0000);
}

/* Style cho danh sách bài viết/chuyên mục */
#secondary .widget ul,
#secondary .widget ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

#secondary .widget ul li,
#secondary .widget ol li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.2s ease;
    line-height: 1.5;
}

#secondary .widget ul li:last-child,
#secondary .widget ol li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#secondary .widget ul li a,
#secondary .widget ol li a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    transition: all 0.2s ease;
}

#secondary .widget ul li a:hover,
#secondary .widget ol li a:hover {
    color: var(--ttq-red, #cc0000);
    transform: translateX(5px);
}

/* Style riêng cho Form Tìm kiếm Gutenberg */
#secondary .widget_search .wp-block-search__label {
    display: none !important; /* Ẩn nhãn thừa */
}

#secondary .widget_search form.wp-block-search {
    width: 100%;
}

#secondary .widget_search .wp-block-search__inside-wrapper {
    display: flex;
    position: relative;
    width: 100%;
}

#secondary .widget_search input.wp-block-search__input {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px 0 0 8px !important;
    padding: 0 15px !important;
    box-shadow: none;
    font-size: 14px;
    transition: all 0.3s;
    flex: 1 1 auto !important;
    width: 100% !important;
    margin: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
}

#secondary .widget_search input.wp-block-search__input:focus {
    background: #fff;
    border-color: var(--ttq-red, #cc0000);
    outline: none;
}

#secondary .widget_search button.wp-block-search__button {
    background: var(--ttq-red, #cc0000) !important;
    color: #fff !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 0 20px !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: opacity 0.2s;
    margin: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

#secondary .widget_search button.wp-block-search__button:hover {
    opacity: 0.9;
    cursor: pointer;
}

/* Hide default flatsome absolute footer since we have custom */
.absolute-footer { display: none !important; }
