/* TBA Footer — same brand colours as the header (from the TBA logo) */
.tba-footer, .tba-footer * { box-sizing: border-box; }
#colophon.tba-footer {
	background: #1d0f52; color: rgba(255,255,255,.82); padding: 0; margin: 0; border: 0;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 15px; line-height: 1.6; text-align: left;
}
.tba-footer .tba-container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.tba-footer a { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s, padding .2s; }
.tba-footer a:hover, .tba-footer a:focus-visible { color: #fff; }
.tba-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.tba-footer ul { list-style: none; margin: 0; padding: 0; }
.tba-footer li { margin: 0; padding: 0; }
.tba-footer .tba-ico { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }

.tba-footer-main { padding: 56px 0 40px; border-top: 4px solid #d3281f; }
.tba-footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1.9fr 1.35fr; gap: 40px; align-items: start; }

/* Headings */
.tba-footer .tba-fhead { margin: 0 0 20px; padding: 0 0 12px; position: relative; font-size: 17px; font-weight: 600; letter-spacing: .2px; color: #fff; line-height: 1.3; text-transform: none; }
.tba-footer .tba-fhead::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: #d3281f; border-radius: 2px; }
.tba-footer .tba-fsub { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* Column 1 */
.tba-flogo { display: inline-block; background: #fff; border-radius: 8px; padding: 8px 12px; line-height: 0; margin-bottom: 16px; }
.tba-flogo .custom-logo-link { display: block; line-height: 0; }
.tba-flogo .custom-logo { width: auto !important; height: 56px !important; max-width: 160px; object-fit: contain; }
.tba-flogo a { color: #29176d; font-weight: 700; line-height: 1.2; }
.tba-footer .tba-fname { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #fff; }
.tba-footer .tba-fintro { margin: 0 0 20px; font-size: 14.5px; color: rgba(255,255,255,.78); max-width: 340px; }
.tba-fsocial { display: flex; gap: 8px; flex-wrap: wrap; }
.tba-fsocial a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .2s; }
.tba-fsocial a:hover { background: #d3281f; transform: translateY(-2px); }
.tba-fsocial .tba-ico { width: 18px; height: 18px; }

/* Link lists */
.tba-flist li + li { margin-top: 2px; }
.tba-flist a { display: inline-block; padding: 5px 0; font-size: 14.5px; position: relative; }
.tba-flist a:hover { padding-left: 6px; }
.tba-flist a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: #d3281f; transition: width .2s; transform: translateY(-50%); }
.tba-flist a:hover::before { width: 4px; }
.tba-fsplit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Contact */
.tba-fcontact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tba-fcontact .tba-ico { margin-top: 5px; color: #ff6a60; }
.tba-fcontact address { margin: 0; padding: 0; font-style: normal; font-size: 14.5px; color: rgba(255,255,255,.82); }
.tba-fcontact a { word-break: break-word; }
.tba-fcontact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tba-fbtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tba-footer .tba-fbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.2; transition: background .2s, border-color .2s, transform .2s; }
.tba-footer .tba-fbtn-primary { background: #d3281f; color: #fff; }
.tba-footer .tba-fbtn-primary:hover { background: #b11f17; transform: translateY(-1px); }
.tba-footer .tba-fbtn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.tba-footer .tba-fbtn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Bottom bar */
.tba-footer-bar { background: #140a3a; border-top: 1px solid rgba(255,255,255,.08); }
.tba-footer .tba-footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.tba-footer .tba-copy { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.72); }
.tba-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.tba-legal a { font-size: 13.5px; }
.tba-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.tba-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
	.tba-fcol-courses { grid-column: 1 / -1; order: 4; }
	.tba-fcol-contact { order: 3; }
}
/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.tba-footer-main { padding: 40px 0 24px; }
	.tba-footer .tba-container { padding-left: 18px; padding-right: 18px; }
	.tba-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.tba-fcol-courses, .tba-fcol-contact { order: initial; }
	.tba-fsplit { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
	.tba-fsplit > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.tba-flist a { padding: 8px 0; } /* comfortable tap target */
	.tba-fcol-quick .tba-flist { columns: 2; column-gap: 16px; }
	.tba-fcol-quick .tba-flist li { break-inside: avoid; }
	.tba-fbtns .tba-fbtn { flex: 1 1 100%; justify-content: center; padding: 13px 18px; }
	.tba-footer-bar-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.tba-footer * { transition: none !important; }
}
