/*
Theme Name: Freight1
Theme URI: https://freight1.co.uk
Author: SEOnumber1.com
Description: Freight1.co.uk - UK container haulage load board theme. Built to work with the Freight Load Board plugin.
Version: 1.5
Requires PHP: 7.4
Text Domain: freight1
*/

:root {
	--f1-navy: #132C59;
	--f1-navy-light: #1E3F7A;
	--f1-navy-deep: #0B1B3F;
	--f1-orange: #E8701F;
	--f1-orange-dark: #C85A16;
	--f1-orange-light: #FF9142;
	--f1-blue: #2F6FED;
	--f1-bg: #F5F6FA;
	--f1-green: #1a9c5a;
	--f1-text: #1A2233;
	--f1-muted: #6B7280;
}

* { box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; margin: 0; background: var(--f1-bg); color: var(--f1-text); }
a { color: var(--f1-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }

/* Header - white bg with logo */
.site-header {
	background: #fff;
	padding: 14px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	box-shadow: 0 2px 10px rgba(19,44,89,0.08);
	position: relative;
	z-index: 10;
}
.site-header .logo img { height: 48px; width: auto; display: block; }
.site-header nav.site-primary-navigation { display: flex; align-items: center; flex-wrap: wrap; }
.site-header .flb-primary-menu { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.site-header .flb-primary-menu > li { list-style: none; margin: 0; padding: 0; }
.site-header .flb-primary-menu a { color: var(--f1-navy); margin-left: 18px; font-size: 15px; text-decoration: none; font-weight: 600; display: inline-block; }
.site-header .flb-primary-menu a:hover { color: var(--f1-orange); text-decoration: none; }
.site-header .flb-primary-menu a.nav-cta { background: var(--f1-orange); color: #fff; padding: 10px 20px; border-radius: 6px; font-weight: 700; }
.site-header .flb-primary-menu a.nav-cta:hover { background: var(--f1-orange-dark); color: #fff; }
.site-header .flb-primary-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 8px 24px rgba(19,44,89,.12); border-radius: 8px; position: absolute; min-width: 190px; display: none; }
.site-header .flb-primary-menu .menu-item-has-children { position: relative; }
.site-header .flb-primary-menu .menu-item-has-children:hover > .sub-menu, .site-header .flb-primary-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
.site-header .flb-primary-menu .sub-menu a { margin: 0; padding: 9px 14px; width: 100%; }

/* Hero - flexbox two-column (robust, no absolute-positioning bugs) */
.site-hero {
	position: relative;
	background: linear-gradient(120deg, var(--f1-navy-deep) 0%, var(--f1-navy) 55%, var(--f1-navy-light) 100%);
	background-size: cover;
	background-position: center;
	padding: 70px 20px 100px;
	overflow: hidden;
}
.site-hero.has-photo-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(11,27,63,0.94) 0%, rgba(11,27,63,0.75) 45%, rgba(11,27,63,0.35) 100%);
	z-index: 1;
}
.site-hero::after {
	content: "";
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 70px;
	background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.06) 40px, rgba(255,255,255,0.06) 70px);
	pointer-events: none;
	z-index: 1;
}
.site-hero::before {
	content: "";
	position: absolute;
	top: -80px; right: -80px;
	width: 340px; height: 340px;
	background: radial-gradient(circle, rgba(232,112,31,0.25) 0%, rgba(232,112,31,0) 70%);
	z-index: 0;
}
.hero-flex {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	z-index: 2;
}
.hero-inner { max-width: 560px; flex: 1 1 420px; }
.site-hero h1 { color: #fff; font-size: 44px; line-height: 1.15; margin: 0 0 16px; }
.site-hero p.hero-sub { color: #d7dfef; font-size: 17px; margin: 0 0 30px; max-width: 520px; }

.hero-graphic { flex: 0 0 auto; display: flex; align-items: flex-end; }
.hero-truck-icon { width: 320px; height: auto; display: block; filter: drop-shadow(0 10px 25px rgba(0,0,0,0.35)); }

.hero-search-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	box-shadow: 0 15px 40px rgba(0,0,0,0.28);
	max-width: 720px;
	position: relative;
	z-index: 3;
	margin-top: 10px;
}
.hero-search-card input, .hero-search-card select {
	border: 1px solid #e2e5ee;
	border-radius: 8px;
	padding: 13px 14px;
	font-size: 14px;
	flex: 1;
	min-width: 160px;
	font-family: inherit;
}
.hero-search-card button {
	background: var(--f1-navy);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 13px 30px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	font-size: 14px;
}
.hero-search-card button:hover { background: var(--f1-navy-light); }

.flb-cat-picker-heading { text-align: center; padding: 60px 20px 10px; }
.flb-cat-picker-heading h2 { font-size: 28px; margin: 0 0 8px; color: var(--f1-navy); }
.flb-cat-picker-heading p { color: var(--f1-muted); margin: 0 0 30px; }

@media (max-width: 900px) {
	.hero-flex { flex-direction: column; text-align: center; }
	.hero-inner { max-width: 100%; }
	.hero-graphic { display: none; }
	.hero-search-wrap { margin-top: -30px; }
}
@media (max-width: 600px) {
	.site-hero h1 { font-size: 28px; }
	.hero-search-card { flex-direction: column; }
}
.flb-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
@media (max-width: 900px) { .flb-categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .flb-categories { grid-template-columns: repeat(2, 1fr); } }
.flb-cat-card {
	background: #fff;
	border: 1px solid #e5e7ee;
	border-top: 4px solid transparent;
	border-radius: 12px;
	padding: 26px 12px 22px;
	text-align: center;
	transition: border-color .18s, transform .18s, box-shadow .18s;
	box-shadow: 0 2px 6px rgba(19,44,89,0.05);
}
.flb-cat-card.flb-accent-orange { border-top-color: var(--f1-orange); }
.flb-cat-card.flb-accent-navy { border-top-color: var(--f1-navy); }
.flb-cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(19,44,89,0.14); text-decoration: none; }
.flb-cat-icon {
	width: 56px; height: 56px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 12px;
}
.flb-accent-orange .flb-cat-icon { background: linear-gradient(135deg, #FFE7D6 0%, #FFD3B0 100%); color: var(--f1-orange-dark, #C4560E); }
.flb-accent-navy .flb-cat-icon { background: linear-gradient(135deg, #E3E9F5 0%, #C9D5EF 100%); color: var(--f1-navy, #132C59); }
.flb-svg-icon { width: 26px; height: 26px; display: block; }
.flb-cat-name { font-weight: 700; color: var(--f1-text); display: block; }
.flb-cat-count { font-size: 12px; color: var(--f1-muted); }

/* Photo variant of the category card */
.flb-cat-card.has-photo { padding: 0; overflow: hidden; display: block; }
.flb-cat-thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: #eef1f7;
	overflow: hidden;
}
.flb-cat-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.flb-cat-card.has-photo:hover .flb-cat-thumb img { transform: scale(1.06); }
.flb-cat-card.has-photo .flb-cat-body { display: block; padding: 14px 12px 16px; text-align: center; }
/* Older browsers without aspect-ratio support */
@supports not (aspect-ratio: 3 / 2) {
	.flb-cat-thumb { height: 140px; }
}

/* How it works - dark band */
.site-how-it-works { background: var(--f1-navy); color: #fff; padding: 60px 20px; text-align: center; }
.site-how-it-works .eyebrow { display: inline-block; border: 1px solid #3a4d80; color: #9fb3e0; font-size: 12px; letter-spacing: .08em; padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; }
.site-how-it-works h2 { font-size: 30px; margin: 0 0 10px; }
.site-how-it-works > p { color: #b9c6e8; margin: 0 0 36px; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto 36px; }
.how-step { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 24px; text-align: left; }
.how-step-icon { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, var(--f1-orange) 0%, var(--f1-orange-dark) 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: #fff; }
.how-step-icon .flb-svg-icon { width: 22px; height: 22px; }
.how-step-label { font-size: 12px; color: #9fb3e0; letter-spacing: .06em; }
.how-step h3 { font-size: 17px; margin: 6px 0 8px; color: #fff; }
.how-step p { font-size: 14px; color: #b9c6e8; margin: 0; line-height: 1.5; }
.how-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--f1-orange); color: #fff; padding: 14px 28px; border-radius: 8px; font-weight: 700; display: inline-block; }
.btn-primary:hover { background: var(--f1-orange-dark); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 14px 28px; border-radius: 8px; font-weight: 700; display: inline-block; }
.btn-outline:hover { border-color: #fff; text-decoration: none; }

.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.section-heading { text-align: center; margin-bottom: 30px; }
.section-heading h2 { font-size: 28px; margin: 0 0 8px; color: var(--f1-navy); }
.section-heading p { color: var(--f1-muted); margin: 0; }

/* Footer - dark, multi-column */
.site-footer-dark { background: var(--f1-navy-deep); color: #b9c6e8; margin-top: 50px; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .06em; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { color: #b9c6e8; font-size: 14px; text-decoration: none; }
.footer-col ul a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { font-size: 13px; color: #9fb3e0; line-height: 1.6; margin: 14px 0 18px; max-width: 260px; }
.footer-logo-badge { display: inline-block; background: #fff; border-radius: 8px; padding: 8px 12px; }
.footer-logo-badge img { height: 30px; width: auto; display: block; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.footer-social a:hover { background: var(--f1-orange); }
.footer-cta-col p { font-size: 13px; color: #9fb3e0; margin: 0 0 14px; }
.footer-cta-btn { display: inline-block; background: var(--f1-orange); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 7px; text-decoration: none; margin-bottom: 16px; }
.footer-cta-btn:hover { background: var(--f1-orange-dark); text-decoration: none; color: #fff; }
.footer-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-checklist li { font-size: 12.5px; color: #9fb3e0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: #7f90b8; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: #7f90b8; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

.flb-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.flb-tabs a { padding: 10px 18px; background: #fff; border: 1px solid #ddd; border-radius: 6px; color: #333; text-decoration: none; }
.flb-tabs a.active { background: var(--f1-navy); color: #fff; border-color: var(--f1-navy); }

.page-title { font-size: 24px; margin-bottom: 20px; color: var(--f1-navy); }

/* Detail page (single load/truck) */
.flb-detail-card { background: #fff; border: 1px solid #e5e7ee; border-radius: 12px; padding: 28px; max-width: 720px; box-shadow: 0 2px 8px rgba(19,44,89,0.06); }
.flb-detail-card .page-title { margin: 4px 0 18px; }
.flb-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin: 16px 0; font-size: 14px; color: var(--f1-text); }
.flb-detail-meta strong { color: var(--f1-navy); }

/* Load/truck cards - Freight1 style */
.flb-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.flb-card { display: block; background: #fff; border: 1px solid #e5e7ee; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.flb-card > * { display: block; }
.flb-card-top { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.flb-cat-tag { background: #FFE7D6; color: var(--f1-orange-dark); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; }
.flb-status-badge { background: #E9F9EF; color: var(--f1-green); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.flb-card-title { font-size: 17px; margin: 0 0 14px; color: var(--f1-text); }

.flb-route-box { background: #F8F9FC; border-radius: 8px; padding: 14px; margin-bottom: 14px; position: relative; }
.flb-route-row { display: flex !important; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.flb-route-row:last-of-type { margin-bottom: 0; }
.flb-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.flb-dot-pickup { background: var(--f1-green); }
.flb-dot-drop { background: var(--f1-orange); }
.flb-route-label { font-size: 11px; color: var(--f1-muted); letter-spacing: .05em; }
.flb-distance-pill { position: absolute; right: 14px; bottom: 14px; background: #fff; border: 1px solid #e5e7ee; border-radius: 20px; padding: 3px 10px; font-size: 12px; color: var(--f1-muted); }

.flb-card-footer { display: flex !important; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 12px; margin-top: 4px; }
.flb-price { font-size: 20px; font-weight: 800; color: var(--f1-text); }
.flb-submeta { font-size: 12px; color: var(--f1-muted); }
.flb-view-btn { background: var(--f1-navy); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.flb-view-btn:hover { background: var(--f1-navy-light); text-decoration: none; color: #fff; }

.flb-requires { font-size: 13px; color: #333; margin-top: 10px; }
.flb-notes { font-size: 13px; color: #777; margin-top: 4px; font-style: italic; }
.flb-postmeta { margin-top: 10px; font-size: 12px; color: #999; }
.flb-role-tag { background: #eef4ff; color: var(--f1-blue); padding: 2px 8px; border-radius: 10px; margin-right: 8px; }
.flb-contact { margin-top: 10px; padding: 10px; background: #f7fdf7; border-radius: 6px; font-size: 14px; }
.flb-locked { margin-top: 10px; padding: 10px; background: #fff8e6; border-radius: 6px; font-size: 14px; }
.flb-fav-btn { margin-top: 10px; padding: 6px 14px; border: 1px solid var(--f1-navy); background: #fff; color: var(--f1-navy); border-radius: 6px; cursor: pointer; font-size: 13px; }
.flb-fav-btn.active { background: var(--f1-navy); color: #fff; }
/* Inside a card's action row (list/favourites cards) the button sits next to
   View details / Message, so it shouldn't carry the standalone top margin
   used on the single load/truck page. */
.flb-card-actions .flb-fav-btn { margin-top: 0; }

.flb-filter-form { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.flb-filter-form input { padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; flex: 1; min-width: 150px; }
.flb-filter-form button { padding: 10px 22px; background: var(--f1-navy); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }

.flb-form { display: flex; flex-direction: column; gap: 12px; max-width: 500px; }
.flb-role-fields { display: flex; flex-direction: column; gap: 12px; }
.flb-form label { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; gap: 4px; }
.flb-form input, .flb-form select, .flb-form textarea { padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-weight: normal; }
.flb-form button { padding: 13px; background: var(--f1-orange); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 700; }
.flb-form button:hover { background: var(--f1-orange-dark); }
.flb-success { padding: 10px; background: #e6ffed; border: 1px solid #34c759; border-radius: 6px; margin-bottom: 14px; }
.flb-error { padding: 10px; background: #ffecec; border: 1px solid #ff4d4d; border-radius: 6px; margin-bottom: 14px; }

/* Payment confirmation popup (shown after a successful Recurly checkout) */
.flb-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11, 27, 63, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
}
.flb-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 420px;
	width: 100%;
	padding: 32px 28px;
	text-align: center;
	box-shadow: 0 20px 50px rgba(11, 27, 63, 0.35);
	animation: flb-modal-pop 0.18s ease-out;
}
.flb-modal-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: var(--f1-green);
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	margin: 0 auto 16px;
}
.flb-modal h2 { margin: 0 0 10px; color: var(--f1-navy); font-size: 22px; }
.flb-modal p { margin: 0 0 22px; color: var(--f1-muted); font-size: 15px; line-height: 1.5; }
.flb-modal-close {
	padding: 12px 28px;
	background: var(--f1-orange);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
}
.flb-modal-close:hover { background: var(--f1-orange-dark); }
@keyframes flb-modal-pop {
	from { transform: scale(0.94); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
	.site-header { flex-direction: column; gap: 12px; }
	.site-header .flb-primary-menu a { margin: 0 8px; }
	.site-hero h1 { font-size: 26px; }
}

/* ===================== New spec-driven additions ===================== */

/* Top support contact bar (Section 1) */
.site-contact-bar { background: var(--f1-navy-deep); color: #cfe0ff; font-size: 13px; padding: 6px 30px; display: flex; justify-content: flex-end; gap: 24px; }
.site-contact-bar a { color: #cfe0ff; }
.site-contact-bar a:hover { color: #fff; }

/* Delivery date/time + time-sensitivity tag */
.flb-delivery-line { font-size: 13px; color: var(--f1-text); margin-top: 8px; }
.flb-time-tag { background: #FFF3E0; color: var(--f1-orange-dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }

/* "Can Go" preferred-area line - green dot (current) / yellow dot (target) per spec 6.5 */
.flb-cango-line { font-size: 13px; color: var(--f1-text); margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flb-dot-current { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--f1-green); }
.flb-dot-target { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #F5C518; }

/* Green truck-listing treatment (Section 5.1/5.2) */
.flb-card-truck { border-left: 4px solid var(--f1-green); background: #F7FDF9; }
.flb-card-truck .flb-status-badge { background: #E6F7ED; color: var(--f1-green); }
.flb-detail-card-truck { border-left: 4px solid var(--f1-green); background: #F7FDF9; }
.flb-detail-card-truck .flb-status-badge { background: #E6F7ED; color: var(--f1-green); }

/* Operating Licence line on contact block */
.flb-licence-line { margin-top: 6px; font-size: 13px; color: var(--f1-muted); }

/* Terms & Conditions checkbox */
.flb-checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.flb-checkbox-label input[type="checkbox"] { width: auto; }
.flb-field-note { font-size: 12px; color: var(--f1-muted); margin: -6px 0 4px; }

/* Chat box (replaces "Bid Now" per client decision) */
.flb-chat-box { background: #fff; border: 1px solid #e5e7ee; border-radius: 12px; padding: 20px; max-width: 720px; margin-top: 20px; box-shadow: 0 2px 8px rgba(19,44,89,0.06); }
.flb-chat-box h3 { margin: 0 0 14px; color: var(--f1-navy); }
.flb-chat-messages { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; margin-bottom: 14px; }
.flb-chat-empty { color: var(--f1-muted); font-size: 14px; }
.flb-chat-msg { max-width: 75%; }
.flb-chat-mine { align-self: flex-end; text-align: right; }
.flb-chat-theirs { align-self: flex-start; }
.flb-chat-bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; display: inline-block; }
.flb-chat-mine .flb-chat-bubble { background: var(--f1-navy); color: #fff; }
.flb-chat-theirs .flb-chat-bubble { background: #F0F2F7; color: var(--f1-text); }
.flb-chat-time { font-size: 11px; color: var(--f1-muted); margin-top: 3px; }
.flb-chat-form { display: flex; gap: 10px; }
.flb-chat-form textarea { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 8px; min-height: 44px; resize: vertical; font-family: inherit; }
.flb-chat-form button { background: var(--f1-orange); color: #fff; border: none; padding: 0 22px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.flb-chat-form button:hover { background: var(--f1-orange-dark); }

/* Inbox / conversation list */
.flb-inbox-list { display: flex; flex-direction: column; gap: 10px; max-width: 600px; }
.flb-inbox-row { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7ee; border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--f1-text); }
.flb-inbox-row:hover { border-color: var(--f1-navy); text-decoration: none; }
.flb-inbox-row span { font-size: 13px; color: var(--f1-muted); }
.flb-inbox-time { margin-top: 4px; }

/* ===================== Homepage additions: video, blog, view-all ===================== */

.section-view-all { text-align: center; margin-top: 28px; }
.section-view-all a { display: inline-block; border: 1px solid #d8dce6; background: #fff; padding: 12px 26px; border-radius: 8px; color: var(--f1-navy); font-weight: 700; font-size: 14px; text-decoration: none; }
.section-view-all a:hover { border-color: var(--f1-navy); text-decoration: none; }

.site-video-section { padding: 60px 20px; text-align: center; background: var(--f1-bg); }
.video-embed-wrap { max-width: 640px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 34px rgba(19,44,89,0.16); background: #000; }
.video-embed-wrap video { display: block; width: 100%; height: auto; max-height: 400px; }

.site-blog-section { padding: 60px 20px; background: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1100px; margin: 0 auto; }
.blog-card { background: #fff; border: 1px solid #e5e7ee; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.blog-card-img { width: 100%; height: 175px; object-fit: cover; display: block; background: #eef1f7; }
.blog-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--f1-muted); margin-bottom: 8px; }
.blog-card-meta .blog-cat { color: var(--f1-blue); font-weight: 700; letter-spacing: .04em; }
.blog-card h3 { font-size: 17px; line-height: 1.35; margin: 0 0 10px; color: var(--f1-text); }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--f1-navy); }
.blog-card p { font-size: 13.5px; color: var(--f1-muted); line-height: 1.5; margin: 0 0 14px; flex: 1; }
.blog-card .read-more { font-size: 13px; font-weight: 700; color: var(--f1-blue); text-decoration: none; }
.blog-card .read-more:hover { text-decoration: underline; }

@media (max-width: 900px) {
	.blog-grid { grid-template-columns: 1fr; max-width: 500px; }
}
