/* =====================================================================
   TBGL design tokens — ports the React/Tailwind look to WordPress.
   Use these classes inside Elementor (Advanced > CSS Classes) or in
   the HTML widget. Colours, fonts and the glass-card style match the
   original site.
   ===================================================================== */

:root {
	--tbgl-navy:   #04102b;
	--tbgl-navy-2: #0a1628;
	--tbgl-blue:   #1e3a6e;
	--tbgl-red:    #dc2626;
	--tbgl-yellow: #f59e0b;
	--tbgl-green:  #16a34a;
	--tbgl-cyan:   #0891b2;
	--tbgl-font-display: 'Bebas Neue', Impact, sans-serif;
	--tbgl-font-body: 'Inter', system-ui, sans-serif;
}

/* ---- Star background layer ---------------------------------------- */
#tbgl-star-bg {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	pointer-events: none;
	background: var(--tbgl-stars-bg, #0a1628); /* matches the original demo body colour */
}
/* Push Elementor content above the star canvas on star pages */
body.tbgl-has-stars #tbgl-star-bg { display: block; }
body.tbgl-has-stars .site-content,
body.tbgl-has-stars #content,
body.tbgl-has-stars .ast-container,
body.tbgl-has-stars main { position: relative; z-index: 1; }
/* Elementor Canvas has no <main> — the shortcode wrappers sit straight in
   <body>, so they need their own stacking context or the fixed star canvas
   (z-index:0) paints over them and the page looks empty. */
body.tbgl-has-stars .elementor,
body.tbgl-has-stars .entry-content,
body.tbgl-has-stars div[id].tbgl-anchor,
body.tbgl-has-stars .tbgl-secbg,
body.tbgl-has-stars .tbgl-wrap,
body.tbgl-has-stars .tbgl-section { position: relative; z-index: 1; }
body.tbgl-has-stars { background: #04102b; }

/* ---- Boot cursor (landing only) ---------------------------------- */
body.tbgl-landing,
body.tbgl-landing * {
	cursor: url('../img/boot-cursor.png') 20 20, pointer !important;
}

/* ---- Typography helpers ------------------------------------------ */
.tbgl-display { font-family: var(--tbgl-font-display); letter-spacing: 0.08em; }
.tbgl-body    { font-family: var(--tbgl-font-body); }

.tbgl-section-title {
	font-family: var(--tbgl-font-display);
	letter-spacing: 0.12em;
	color: #fff;
	font-size: clamp(2.5rem, 6vw, 4rem);
	text-shadow: 0 2px 20px rgba(220,38,38,0.5);
}
.tbgl-eyebrow {
	display: block;
	color: var(--tbgl-red);
	font-size: 0.8rem;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	font-weight: 500;
	margin: 0 0 var(--tbgl-eyebrow-gap, 14px);
}
.tbgl-divider {
	width: 6rem; height: 4px;
	margin: var(--tbgl-divider-gap, 18px) auto 0;
	border-radius: 9999px;
	background: linear-gradient(135deg, #1a5c1a 0%, #1e3a6e 50%, #2d8a2d 100%);
}

/* ---- Gradients --------------------------------------------------- */
.tbgl-gradient-bg {
	background: linear-gradient(135deg, #1a5c1a 0%, #1e3a6e 50%, #2d8a2d 100%);
}
.tbgl-text-gradient {
	background: linear-gradient(135deg, #3aaa3a, #90d090, #16a34a);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ---- Glass card -------------------------------------------------- */
.tbgl-glass {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 1rem;
	box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.tbgl-card-3d { transition: transform 0.3s ease; transform-style: preserve-3d; }
.tbgl-card-3d:hover { transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02); }

/* ---- Buttons ----------------------------------------------------- */
.tbgl-btn-primary {
	display: inline-block;
	padding: 0.85rem 2.5rem;
	background: var(--tbgl-red);
	color: #fff !important;
	font-weight: 600;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: all 0.3s ease;
}
.tbgl-btn-primary:hover {
	background: #ef4444;
	transform: scale(1.05);
	box-shadow: 0 10px 30px rgba(220,38,38,0.30);
}
.tbgl-btn-secondary {
	display: inline-block;
	padding: 0.85rem 2.5rem;
	border: 1px solid rgba(255,255,255,0.30);
	color: #fff !important;
	font-weight: 600;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
}
.tbgl-btn-secondary:hover { border-color: rgba(255,255,255,0.6); transform: scale(1.05); }

/* ---- Counter (number count) helper ------------------------------- */
.tbgl-stat { text-align: center; }
.tbgl-stat .tbgl-stat-num {
	font-family: var(--tbgl-font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	background: linear-gradient(135deg, #3aaa3a, #90d090, #16a34a);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tbgl-stat .tbgl-stat-label {
	color: rgba(255,255,255,0.5);
	font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; margin-top: 0.25rem;
}

/* ---- Stars slider card ------------------------------------------- */
.tbgl-star-card { text-align: center; padding: 2rem; }
.tbgl-star-card img {
	width: 96px; height: 96px; border-radius: 9999px; object-fit: cover;
	margin: 0 auto 1rem; border: 2px solid rgba(255,255,255,0.2);
}
.tbgl-star-card .tbgl-star-name { color: #fff; font-weight: 600; font-size: 1.1rem; }
.tbgl-star-card .tbgl-star-role { color: var(--tbgl-red); font-size: 0.85rem; letter-spacing: 0.05em; }
.tbgl-star-card .tbgl-star-bio  { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.5rem; line-height: 1.6; }

/* ---- Hall of Fame grid ------------------------------------------- */
.tbgl-hof-grid {
	display: grid; gap: 1rem;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px)  { .tbgl-hof-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tbgl-hof-grid { grid-template-columns: repeat(4, 1fr); } }
.tbgl-hof-item {
	position: relative; aspect-ratio: 4/3; border-radius: 0.75rem; overflow: hidden;
	background: #0a1628; border: 1px solid rgba(255,255,255,0.12); cursor: pointer;
}
.tbgl-hof-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tbgl-hof-item:hover img { transform: scale(1.1); }
.tbgl-hof-item .tbgl-hof-caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	color: #fff; font-size: 0.8rem; opacity: 0; transition: opacity 0.3s ease;
}
.tbgl-hof-item:hover .tbgl-hof-caption { opacity: 1; }
.tbgl-hof-play {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	pointer-events: none;
}
.tbgl-hof-play span {
	width: 56px; height: 56px; border-radius: 9999px; background: rgba(220,38,38,0.8);
	display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem;
}

/* ---- Fixtures / prediction card ---------------------------------- */
.tbgl-fixtures-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .tbgl-fixtures-grid { grid-template-columns: repeat(2, 1fr); } }
.tbgl-fixture {
	padding: 1.5rem; border-radius: 1rem;
	background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
}
.tbgl-fixture .tbgl-fx-comp { color: rgba(255,255,255,0.5); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; }
.tbgl-fixture .tbgl-fx-teams { display: flex; align-items: center; justify-content: space-between; margin: 0.75rem 0; }
.tbgl-fixture .tbgl-fx-team { color: #fff; font-weight: 600; }
.tbgl-fixture .tbgl-fx-vs { color: var(--tbgl-red); font-family: var(--tbgl-font-display); }
.tbgl-fixture .tbgl-fx-kick { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.tbgl-fixture .tbgl-fx-predict {
	margin-top: 1rem; display: flex; gap: 0.5rem; align-items: center;
}
.tbgl-fixture .tbgl-fx-predict input {
	width: 48px; padding: 0.4rem; text-align: center; border-radius: 0.4rem;
	background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); color: #fff;
}

/* =====================================================================
   Section layout + header/footer (used by the Elementor import templates)
   Each section is rendered through an HTML widget using these classes.
   ===================================================================== */

/* One shared content width: sections, header and footer all follow
   --tbgl-content-w (backend: TBGL Settings → Global style → Content width). */
.tbgl-wrap { max-width: var(--tbgl-content-w, 1280px); margin: 0 auto; padding: 0 1.25rem; }
/* Media that should break out of the container, edge-to-edge */
.tbgl-fullbleed { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0 !important; }
.tbgl-w-full { max-width: 100% !important; }
.tbgl-section { padding: 5.5rem 0; position: relative; }
/* Keep anchored sections clear of the fixed header when jumped to. */
.elementor-section[id], .elementor-element[id] > .elementor-widget-wrap, .tbgl-section[id], section[id], div[id].tbgl-anchor { scroll-margin-top: 90px; }
.tbgl-center { text-align: center; }
.tbgl-mb { margin-bottom: 3rem; }
.tbgl-lead { color: rgba(255,255,255,0.62); font-size: 1.05rem; line-height: 1.7; max-width: 42rem; margin: 1rem auto 0; }
.tbgl-prose { color: rgba(255,255,255,0.72); line-height: 1.75; }
.tbgl-prose p { margin: 0 0 1rem; }

/* ---- Hero ---- */
.tbgl-hero { padding: 9rem 0 4.5rem; text-align: center; } /* fills shared content width */
.tbgl-hero .tbgl-section-title { margin: 0 auto; }
.tbgl-hero .tbgl-lead { margin-top: 1.1rem; }
/* Stats sit in a frosted bar, matching the original hero */
.tbgl-stats-row {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
	margin: 3rem auto 0; max-width: var(--tbgl-stats-w, 100%); padding: 1.75rem 1.5rem;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 1.25rem;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .tbgl-stats-row { grid-template-columns: repeat(4, 1fr); } }

/* ---- Generic grids ---- */
.tbgl-grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.tbgl-grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.tbgl-grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tbgl-grid-2 { grid-template-columns: repeat(2,1fr); } .tbgl-grid-3 { grid-template-columns: repeat(2,1fr); } .tbgl-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .tbgl-grid-3 { grid-template-columns: repeat(3,1fr); } .tbgl-grid-4 { grid-template-columns: repeat(4,1fr); } }
.tbgl-pad { padding: 2rem; }

/* ---- Value / contact / trail cards ---- */
.tbgl-icon-badge {
	width: 56px; height: 56px; border-radius: 1rem; display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem; margin-bottom: 1rem;
}
.tbgl-card-title { color: #fff; font-weight: 600; font-size: 1.2rem; margin: 0 0 .5rem; }
.tbgl-card-text { color: rgba(255,255,255,0.6); line-height: 1.65; font-size: .95rem; }

/* ---- Silhouette ---- */
.tbgl-silhouette-video {
	max-width: var(--tbgl-video-w, 920px); margin: 2rem auto 0; border-radius: 1rem; overflow: hidden;
	border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tbgl-silhouette-video video, .tbgl-silhouette-video iframe { width: 100%; display: block; aspect-ratio: 16/9; border: 0; }

/* ---- Register buttons ---- */
.tbgl-register-row { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin-top: 2rem; }
.tbgl-register-row .tbgl-btn-primary, .tbgl-register-row .tbgl-btn-secondary { min-width: 240px; text-align: center; }

/* ---- Stars slider ---- */
.tbgl-slider { overflow: hidden; position: relative; }
.tbgl-slider-track { display: flex; gap: 1.5rem; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.tbgl-slider-track > * { flex: 0 0 100%; }
@media (min-width: 640px) { .tbgl-slider-track > * { flex-basis: 50%; } }
@media (min-width: 1024px) { .tbgl-slider-track > * { flex-basis: 33.333%; } }
.tbgl-slider-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.tbgl-slider-dots button { width: 9px; height: 9px; border-radius: 9999px; border: 0; background: rgba(255,255,255,.25); cursor: pointer; }
.tbgl-slider-dots button.active { background: var(--tbgl-red); width: 22px; }

/* ---- Lightbox ---- */
.tbgl-lightbox {
	position: fixed; inset: 0; z-index: 100000; display: none;
	align-items: center; justify-content: center; background: rgba(0,0,0,.92); padding: 1.5rem;
}
.tbgl-lightbox.open { display: flex; }
.tbgl-lightbox-inner { max-width: 1000px; width: 100%; }
.tbgl-lightbox img, .tbgl-lightbox iframe { width: 100%; max-height: 80vh; border-radius: .75rem; border: 0; }
.tbgl-lightbox iframe { aspect-ratio: 16/9; height: auto; }
.tbgl-lightbox-close { position: absolute; top: 1.25rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: 0; }

/* =====================================================================
   Header
   ===================================================================== */
.tbgl-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
	transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
	background: transparent; border-bottom: 1px solid transparent;
}
.tbgl-header.scrolled { background: #ffffff; box-shadow: 0 4px 24px rgba(0,0,0,.12); border-bottom-color: rgba(0,0,0,.08); }
.tbgl-header-inner { max-width: var(--tbgl-content-w, 1280px); margin: 0 auto; padding: .85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.tbgl-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.tbgl-logo img { width: 56px; height: 56px; border-radius: 9999px; background: #fff; object-fit: contain; flex-shrink: 0; }
.tbgl-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 900px) { .tbgl-nav { display: flex; } }
.tbgl-nav a {
	font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; text-decoration: none;
	color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.8); transition: color .3s ease;
}
.tbgl-header.scrolled .tbgl-nav a { color: #111827; text-shadow: none; }
.tbgl-nav a:hover { opacity: .8; }
.tbgl-nav .tbgl-join {
	padding: .55rem 1.5rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,.35);
	background: rgba(255,255,255,.15); color: #fff; text-shadow: none;
}
.tbgl-header.scrolled .tbgl-nav .tbgl-join { background: #111827; border-color: #111827; color: #fff; }
.tbgl-burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
@media (min-width: 900px) { .tbgl-burger { display: none; } }
.tbgl-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: background .3s ease; }
.tbgl-header.scrolled .tbgl-burger span { background: #111827; }
.tbgl-mobile-menu { display: none; flex-direction: column; gap: 1.25rem; padding: 1.25rem 1.5rem 1.75rem; background: rgba(4,16,43,.97); }
.tbgl-mobile-menu.open { display: flex; }
.tbgl-header.scrolled .tbgl-mobile-menu { background: #fff; }
.tbgl-mobile-menu a { color: rgba(255,255,255,.85); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; }
.tbgl-header.scrolled .tbgl-mobile-menu a { color: #111827; }

/* =====================================================================
   Footer
   ===================================================================== */
.tbgl-footer { position: relative; overflow: hidden; background: #0a1628; }
.tbgl-footer-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.4); }
.tbgl-footer-inner { position: relative; z-index: 1; max-width: var(--tbgl-content-w, 1280px); margin: 0 auto; padding: 3.5rem 1.5rem 2rem; }
.tbgl-footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .tbgl-footer-grid { grid-template-columns: repeat(3, 1fr); } }
.tbgl-footer h4 { color: #fff; font-family: var(--tbgl-font-display); letter-spacing: .15em; text-transform: uppercase; font-size: 1rem; margin: 0 0 1rem; }
.tbgl-footer a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .3s ease; }
.tbgl-footer a:hover { color: #fff; }
.tbgl-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tbgl-footer .tbgl-socials { display: flex; gap: .75rem; }
.tbgl-footer .tbgl-socials a {
	width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75); font-size: .8rem;
}
.tbgl-footer .tbgl-socials a:hover { background: rgba(255,255,255,.22); }
.tbgl-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: rgba(255,255,255,.4); font-size: .8rem; }

/* =====================================================================
   Polish + theme integration
   ===================================================================== */

/* Tighter display headings — zero UA margins so the gap vars control spacing */
.tbgl-section-title { line-height: 1.04; margin: 0 auto; }
.tbgl-hero .tbgl-section-title { margin: 0 auto; }

/* Astra scroll-to-top button — match the theme accent */
#ast-scroll-top {
	background: var(--tbgl-red) !important;
	color: #fff !important;
	border-radius: 9999px !important;
}
#ast-scroll-top:hover { background: #ef4444 !important; }

/* Hide Astra's page title / banner on the star (one-page) pages */
body.tbgl-has-stars .ast-title-bar,
body.tbgl-has-stars .entry-title,
body.tbgl-has-stars .ast-single-entry-banner,
body.tbgl-has-stars .page-title { display: none !important; }

/* On star pages, the plugin renders header/footer; remove theme gaps */
body.tbgl-has-stars .site-content { padding-top: 0 !important; }

/* Elementor containers must not cap our sections: neutralise Elementor's
   boxed/content widths so every section follows --tbgl-content-w instead.
   (The hero was stuck at 768px and contact at 820px from template
   container settings — this overrides them site-wide on star pages.) */
body.tbgl-has-stars .elementor-section-boxed > .elementor-container,
body.tbgl-has-stars .e-con,
body.tbgl-has-stars .e-con-inner {
	max-width: 100% !important;
	--content-width: 100%;
	--width: 100%;
}
/* Template elements carry their own per-widget widths (hero was 768px,
   contact 820px). Force every widget holding a TBGL section to full width —
   the section then sizes itself by --tbgl-content-w alone. */
body.tbgl-has-stars .elementor-widget-shortcode,
body.tbgl-has-stars .elementor-widget:has(> .elementor-widget-container .tbgl-wrap) {
	width: 100% !important;
	max-width: 100% !important;
	--container-widget-width: 100% !important;
	--container-widget-flex-grow: 1;
}

/* Empty-state cards (no items yet) */
.tbgl-section .tbgl-card-text { text-align: center; max-width: 640px; margin: 0 auto; }

/* Make sure section content clears the fixed header on first paint */
body.tbgl-has-stars { padding-top: 0; }

/* Counters never wrap awkwardly */
.tbgl-stat .tbgl-stat-num { line-height: 1.05; white-space: nowrap; }

/* Responsive type scale safety */
@media (max-width: 600px) {
	.tbgl-section { padding: 3.5rem 0; }
	.tbgl-hero { padding: 7rem 0 3rem; }
	.tbgl-pad { padding: 1.5rem; }
}

/* =====================================================================
   v1.3 — configurable grids, equal cards, section backgrounds,
   full-width silhouette video, contact fix, pagination, scroll link
   ===================================================================== */

/* Optional per-section background image (from TBGL Settings) */
.tbgl-secbg { position: relative; background-size: cover; background-position: center; }
.tbgl-secbg-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(4,16,43,.82), rgba(4,16,43,.92)); }
.tbgl-secbg-in { position: relative; z-index: 1; }

/* Configurable column grid — equal-height, centered, responsive */
.tbgl-auto-grid {
	display: grid; gap: 1.5rem; align-items: stretch;
	grid-template-columns: repeat(var(--tbgl-cols, 3), minmax(0, 1fr));
	width: 100%; margin: 0 auto; /* fills the shared content width */
}
@media (max-width: 1024px) { .tbgl-auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .tbgl-auto-grid { grid-template-columns: 1fr; } }

.tbgl-card-eq { height: 100%; display: flex; flex-direction: column; }
.tbgl-card-eq .tbgl-card-text { flex: 1; }
.tbgl-card-media { border-radius: .6rem; overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16/10; background: #0a1628; }
.tbgl-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tbgl-clickable { cursor: pointer; transition: transform .3s ease; }
.tbgl-clickable:hover { transform: translateY(-5px); }

/* Empty states — centered, professional */
.tbgl-empty {
	max-width: 560px; margin: 0 auto; text-align: center; padding: 2rem;
	border-radius: 1rem; background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6);
}

/* Contact — one row of equal cards (backend "Cards per row" sets count), map below */
.tbgl-contact-grid {
	display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%; margin: 0 auto; /* fills the shared content width */
}
/* Responsive: tablet 2-up, mobile 1-up — beats the inline backend value */
@media (max-width: 900px) { .tbgl-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .tbgl-contact-grid { grid-template-columns: 1fr !important; } }
/* Equal-height cards: icon on top, label + value centered */
.tbgl-contact-grid .tbgl-glass {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	gap: .75rem; padding: 1.6rem 1.25rem; text-align: center; height: 100%;
}
.tbgl-contact-grid .tbgl-icon-badge {
	width: 52px; height: 52px; font-size: 1.4rem; margin: 0; flex-shrink: 0;
}
.tbgl-contact-grid .tbgl-stat-label { margin-bottom: .15rem; }
.tbgl-contact-text { min-width: 0; }
.tbgl-contact-val { color: #fff; font-weight: 600; font-size: 1.02rem; white-space: pre-line; line-height: 1.45; overflow-wrap: anywhere; }
.tbgl-contact-map { width: 100%; margin: 1.5rem auto 0; }

/* Silhouette — full-width background video filling the section */
.tbgl-sil-bg {
	position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center;
	overflow: hidden; width: 100%;
}
.tbgl-sil-bg-media { position: absolute; inset: 0; overflow: hidden; }
.tbgl-sil-bg-media video,
.tbgl-sil-bg-media iframe {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; border: 0; pointer-events: none;
}
.tbgl-sil-bg-overlay { position: absolute; inset: 0; background: rgba(4,16,43,.55); }
.tbgl-sil-bg-content { position: relative; z-index: 1; padding: 2rem; max-width: 800px; }

/* Scroll-down link under silhouette */
.tbgl-scrolllink {
	display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem;
	color: rgba(255,255,255,.7); text-decoration: none; letter-spacing: .15em;
	text-transform: uppercase; font-size: .78rem;
}
.tbgl-scrolllink:hover { color: #fff; }
.tbgl-scrolllink-arrow { animation: tbglBounceY 1.4s ease-in-out infinite; }
@keyframes tbglBounceY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Pagination */
.tbgl-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.tbgl-pagination a {
	min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: .5rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
	color: rgba(255,255,255,.7); text-decoration: none; transition: all .2s ease;
}
.tbgl-pagination a:hover { background: rgba(255,255,255,.12); color: #fff; }
.tbgl-pagination a.active { background: var(--tbgl-red); border-color: var(--tbgl-red); color: #fff; }

/* Footer social glyphs tint with theme accent on hover */
.tbgl-footer .tbgl-socials a { color: rgba(255,255,255,.8); }
.tbgl-footer .tbgl-socials a:hover { background: var(--tbgl-red); border-color: var(--tbgl-red); color: #fff; }
.tbgl-footer .tbgl-socials a svg { display: block; }
