/*
Theme Name: Flatsome Child
Description: Child theme for Flatsome (cobatour)
Author: Hoda Media
Template: flatsome
Version: 1.0.0
Text Domain: flatsome-child
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Mega menu tour: tiêu đề cột (miền / khu vực) và link "Xem tất cả". */
.fs-nav-submenu .fs-block-menu > div:first-child {
	margin-bottom: 6px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.fs-nav-submenu .is-view-all .fs-menu-link__text {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
}
.fs-nav-submenu .fs-block-menu-link:hover .fs-menu-link__text {
	color: var(--wp--preset--color--primary);
}

/* Menu chính trên một dòng ở máy tính. */
@media (min-width: 850px) {
	.fs-block-header-main .fs-block-nav {
		flex-wrap: nowrap;
		white-space: nowrap;
	}
}

/* Nhãn "Hot" trong mega menu theo màu nhấn thương hiệu. */
.fs-nav-submenu .fs-tag-label {
	background: var(--wp--preset--color--secondary);
	color: #fff;
}

/* Footer: chữ gọn, link danh sách không gạch chân, đường kẻ mảnh trên dòng bản quyền. */
.cobatour-footer {
	font-size: 15px;
	line-height: 1.7;
}
.cobatour-footer p {
	margin: 0 0 12px;
}
.cobatour-footer a {
	text-decoration: none;
	opacity: .92;
}
.cobatour-footer a:hover {
	text-decoration: underline;
	opacity: 1;
}
.cobatour-footer__brand {
	font-size: 22px;
	font-weight: 700;
}
.cobatour-footer__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.cobatour-footer__legal {
	font-size: 13px;
}
/* Link nằm giữa dòng chữ (điện thoại, email) cần gạch chân để phân biệt, không chỉ dựa vào màu. */
.cobatour-footer__contact a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cobatour-footer__copy {
	margin-top: 24px !important;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .25);
	font-size: 13px;
	text-align: center;
}

/* Form tư vấn (Contact Form 7): nút gửi theo màu thương hiệu, ô nhập rộng đều. */
.wpcf7-form input[type="submit"].wpcf7-submit {
	padding: 12px 28px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.wpcf7-form input[type="submit"].wpcf7-submit:hover {
	filter: brightness(.95);
}
.wpcf7-form select,
.wpcf7-form input[type="date"],
.wpcf7-form input[type="number"] {
	min-width: 220px;
}
.wpcf7-form input[type="date"] {
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

/* Hàng thẻ có nút (vd "Chọn hành trình"): mỗi cột là một thẻ, các thẻ cao bằng nhau, nút luôn nằm đáy để thẳng hàng. */
.cobatour-equal-cols > .fs-block-col:has(> .fs-block-button) {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border: 1px solid #e6ecec;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(11, 122, 117, .06);
	transition: box-shadow .2s, transform .2s;
}
.cobatour-equal-cols > .fs-block-col:has(> .fs-block-button):hover {
	box-shadow: 0 8px 24px rgba(11, 122, 117, .14);
	transform: translateY(-2px);
}
.cobatour-equal-cols > .fs-block-col > h3 {
	margin: 0;
}
.cobatour-equal-cols > .fs-block-col > p {
	margin: 0 0 8px;
}
.cobatour-equal-cols > .fs-block-col > .fs-block-button:last-child {
	margin-top: auto;
	align-self: stretch;
	justify-content: center;
	padding: 10px 14px;
	font-size: 15px;
	white-space: nowrap;
}

/* Trang chủ trên điện thoại: khối nền tràn ngang (section) không có lề trong, chữ dính mép màn hình. */
@media (max-width: 849px) {
	.wp-block-post-content > section > .fs-block-row {
		padding-left: 16px;
		padding-right: 16px;
	}
}
