/* --- TRYMORE MAGOMANA MASTER STYLESHEET (vFinal Combined + Footer System Consolidated) --- */

/* =========================================
   1. GLOBAL VARIABLES & RESETS
   ========================================= */

:root {
  --tm-dark: #0a2442;
  --tm-mid: #0f4c81;
  --tm-accent: #4facfe;
  --tm-white: #ffffff;
  --tm-gray-bg: #f4f8fb;
  --tm-font: 'Segoe UI', Calibri, Arial, sans-serif;
  --tm-max-width: 1180px;
}

/* Safety: no horizontal scroll surprises */
html, body {
  overflow-x: hidden !important;
}

html, body.site {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #fff;
}

/* Hide breadcrumbs globally (safe) */
.mod-breadcrumbs__wrapper {
  display: none !important;
}

/* Keep the Joomla header container visible so TOPBAR modules can render */
header.header {
  display: block !important;
}

/* Hide Cassiopeia’s default header contents (logo/nav), but NOT your custom header module */
header.header .navbar-brand,
header.header .container-nav,
header.header nav,
header.header .navbar,
header.header .mod-menu {
  display: none !important;
}
/* Hide breadcrumbs globally (safe) */
.mod-breadcrumbs__wrapper {
  display: none !important;
}

/* Keep the Joomla header container visible so TOPBAR modules can render */
header.header {
  display: block !important;
}

/* Hide Cassiopeia’s default header contents (logo/nav), but NOT your custom header module */
header.header .navbar-brand,
header.header .container-nav,
header.header nav,
header.header .navbar,
header.header .mod-menu {
  display: none !important;
}


/* Remove default Joomla padding to allow full-screen width */
.site-grid,
.grid-child,
.container-component,
.com-content-article,
main {
  padding: 0 !important;
  margin: 0 !important;
}

/* =========================================
   2. MAIN CONTAINER & LAYOUT (Homepage & Articles)
   ========================================= */

.tm-global-container {
  max-width: var(--tm-max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--tm-white);
  font-family: var(--tm-font);
  color: var(--tm-dark);
  line-height: 1.6;
  border-top: 8px solid var(--tm-dark);
  border-left: 8px solid var(--tm-dark);
  box-shadow: 5px 5px 25px rgba(0,0,0,0.15);
  padding: 20px 20px 0 20px;
  box-sizing: border-box;
}

/* =========================================
   3. COMPONENTS (Cards, Hero, Buttons)
   ========================================= */

.tm-card {
  position: relative;
  background: var(--tm-white);
  border: 1px solid rgba(10,36,66,0.15);
  margin-bottom: 12px;
  overflow: hidden;
  padding: 4px !important;
}

.tm-card-inner {
  padding: 25px;
}

.tm-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tm-dark), var(--tm-mid));
  z-index: 2;
}

/* Tab Content Resets */
.tab-content .tm-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

.tab-content .tm-card::before {
  display: none !important;
}

.tab-content .tm-card-inner {
  padding: 10px 0 !important;
}

/* Hero Section */
.tm-hero {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  background: #fff;
  padding: 25px;
}

.tm-hero-img {
  width: 258px;
  height: 258px;
  object-fit: cover;
  border: 3px solid var(--tm-dark);
  box-shadow: 4px 4px 15px rgba(0,0,0,0.2);
}

.tm-name {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 0 0 5px 0;
  line-height: 1.1;
  color: var(--tm-dark);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.tm-exec-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tm-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

.tm-exec-summary {
  font-size: 1rem;
  color: #444;
  margin-bottom: 15px;
  font-weight: 500;
  max-width: 850px;
  line-height: 1.5;
}

/* Buttons */
.tm-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.2s ease;
  background: linear-gradient(180deg, #0f4c81 0%, #0a2442 100%);
  color: #fff !important;
  border: 1px solid #0a2442;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.tm-btn:hover {
  background: linear-gradient(180deg, #155d9b 0%, #0f4c81 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.tm-btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4fb 100%);
  color: var(--tm-dark) !important;
  border: 1px solid #ccc;
}

.tm-btn-secondary:hover {
  background: linear-gradient(180deg, #fff 0%, #e2e6ea 100%);
}

/* =========================================
   4. NAVIGATION TABS & LISTS
   ========================================= */

.tm-nav-tabs {
  border-bottom: 2px solid var(--tm-dark);
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
  gap: 4px;
}

.tm-nav-link {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--tm-dark);
  background: #e9ecef;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
  padding-right: 30px;
}

.tm-nav-link:hover {
  background: #dbe2e8;
  color: var(--tm-mid);
}

.tm-nav-link.active {
  background: var(--tm-dark);
  color: #fff;
  box-shadow: 0 -2px 0 var(--tm-accent) inset;
}

/* Credentials Bar */
.tm-cred-bar {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 12px 20px;
  background: var(--tm-dark);
  color: #fff;
  margin-bottom: 15px;
  flex-wrap: wrap;
  border-left: 6px solid #2c3e50;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tm-cred-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #b0c4de;
  letter-spacing: 0.5px;
}

.tm-cred-logos {
  display: flex;
  gap: 15px;
  align-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.tm-cred-logos a {
  color: #fff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.tm-cred-logos a:hover {
  color: #4facfe !important;
}

.tm-cred-logos i {
  margin-right: 4px;
  color: #b0c4de;
}

/* Resume Items */
.tm-resume-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.tm-resume-item:last-child {
  border: none;
}

.tm-role {
  font-weight: 800;
  color: var(--tm-dark);
  font-size: 1.05rem;
}

.tm-company {
  font-weight: 700;
  color: var(--tm-mid);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.tm-date {
  font-size: 0.8rem;
  color: #666;
  font-weight: 700;
  text-transform: uppercase;
  float: right;
}

.tm-desc {
  font-size: 0.95rem;
  color: #444;
  margin-top: 6px;
  line-height: 1.5;
}

/* General Typography */
.tm-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--tm-dark);
  border-bottom: 3px solid var(--tm-mid);
  padding-bottom: 5px;
  margin-top: 25px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.tm-card-inner .tm-section-title:first-child {
  margin-top: 0;
}

.tm-p,
li {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.55;
}

/* =========================================
   5. LATEST INSIGHTS GRID (Home)
   ========================================= */

.tm-insights-grid .mod-articles-items {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.tm-insights-grid .mod-articles-items li {
  position: relative !important;
  height: 300px !important;
  background: #0a2442 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  border: 1px solid rgba(10,36,66,0.1) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 1;
}

.tm-insights-grid .mod-articles-items li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

.tm-insights-grid .mod-articles-item-content {
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.tm-insights-grid figure,
.tm-insights-grid .mod-articles-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 0 !important;
}

.tm-insights-grid img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  opacity: 0.95;
  transition: transform 0.5s ease;
  display: block !important;
  max-width: none !important;
}

.tm-insights-grid li:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.tm-insights-grid .mod-articles-items li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75%;
  background: linear-gradient(
    to top,
    rgba(10,36,66,1) 0%,
    rgba(10,36,66,0.85) 40%,
    rgba(10,36,66,0) 100%
  );
  z-index: 1 !important;
  pointer-events: none;
}

.tm-insights-grid h4,
.tm-insights-grid .mod-articles-title {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  text-align: left !important;
  pointer-events: none;
}

.tm-insights-grid h4 a {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  display: block;
  pointer-events: auto;
}


/* =========================================
   6. LEGACY BLOCK FOOTER (.tm-footer)
   Used inside #tm-injected-footer (Insights/404 injection)
   ========================================= */

.tm-footer {
  margin-top: 80px;
  background: #051626;
  color: #ffffff;
  padding: 60px 0 0 0;
  border-top: 4px solid var(--tm-accent);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 0;
  width: calc(100% + 40px);
  font-size: 0.9rem;
}

.tm-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.tm-footer-col h4 {
  color: #8faec9;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  display: inline-block;
}

.tm-footer-brand h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.tm-footer-brand p {
  color: #aabdd1;
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 300px;
}

.tm-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tm-footer-list li {
  margin-bottom: 12px;
}

.tm-footer-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  opacity: 0.7;
  display: inline-block;
}

.tm-footer-list a:hover {
  opacity: 1;
  color: var(--tm-accent);
  transform: translateX(5px);
}

.tm-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: #fff;
  opacity: 0.8;
}

.tm-footer-contact-item i {
  color: var(--tm-accent);
  font-size: 1rem;
}

.tm-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 700;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.tm-footer-btn:hover {
  background: var(--tm-mid);
}

.tm-footer-bottom {
  background: #020d17;
  padding: 20px 30px;
  text-align: center;
  font-size: 0.8rem;
  color: #556b7f;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================================
   7. INJECTED FOOTER BREAKOUT (Insights Category + 404)
   For #tm-injected-footer wrapper
   ========================================================= */

body.site.view-category,
body.site.error_site {
  overflow-x: hidden !important;
}

.view-category #tm-injected-footer,
.error_site   #tm-injected-footer {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: none !important;
  background: #051626 !important;
  padding-top: 0 !important;
  margin-top: 60px !important;
}

.view-category #tm-injected-footer .tm-footer,
.error_site   #tm-injected-footer .tm-footer {
  width: 100% !important;
  margin: 0 !important;
  border-top: 4px solid #4facfe !important;
  background: transparent !important;
}

.view-category #tm-injected-footer .tm-footer-inner,
.error_site   #tm-injected-footer .tm-footer-inner {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  box-sizing: border-box !important;
}

/* =========================================
   8. 404 ERROR PAGE STYLES (Executive Wide Image)
   ========================================= */

#tm-404-page {
  --tm-blue-dark: #0a2442;
  --tm-blue-mid:  #0f4c81;
  --tm-text:      rgba(10,36,66,0.9);

  font-family: "Segoe UI", Calibri, Arial, sans-serif;
  color: var(--tm-text);
  max-width: 1180px;
  margin: 4px auto 0 auto !important;
  background: #ffffff;
  border-top: 8px solid var(--tm-dark);
  border-left: 8px solid var(--tm-dark);
  box-shadow: 5px 5px 25px rgba(0,0,0,0.15);
  padding: 10px;
  min-height: 60vh;
  box-sizing: border-box;
}

#tm-404-page .tm-404-shell {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10,36,66,0.1);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  overflow: hidden;
  padding: 4px;
  margin-bottom: 8px;
}

#tm-404-page .hero-split {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 280px;
}

#tm-404-page .hero-txt {
  flex: 0 0 35%;
  width: 35%;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}

#tm-404-page .hero-img {
  flex: 0 0 65%;
  width: 65%;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

#tm-404-page .hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tm-404-page .kicker {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tm-blue-mid);
  margin-bottom: 6px;
}

#tm-404-page h1 {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--tm-blue-dark);
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

#tm-404-page .desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(10,36,66,0.8);
  margin-bottom: 15px;
}

#tm-404-page .hero-search {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
  width: 100%;
}

#tm-404-page .search-input {
  flex: 1;
  padding: 6px 15px;
  border-radius: 3px;
  border: 1px solid rgba(10,36,66,0.2);
  background: #f4f6f8;
  color: var(--tm-blue-dark);
  font-weight: 600;
  font-size: 0.85rem;
  height: 34px;
}

#tm-404-page .search-btn {
  background: var(--tm-blue-mid);
  color: #fff;
  border: none;
  border-radius: 3px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

#tm-404-page .search-btn:hover {
  background: var(--tm-blue-dark);
}

#tm-404-page .btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
  align-items: center;
}

#tm-404-page .btn-primary {
  background: var(--tm-blue-mid);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

#tm-404-page .btn-primary:hover {
  background: var(--tm-blue-dark);
  transform: translateY(-1px);
}

#tm-404-page .btn-link {
  color: var(--tm-blue-mid);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
}

#tm-404-page .btn-link:hover {
  text-decoration: underline;
}

#tm-404-page .dark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
}

#tm-404-page .dark-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 4px;
  padding: 12px;
  min-height: 110px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#tm-404-page .dark-card:hover {
  transform: translateY(-3px);
  z-index: 2;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

#tm-404-page .v1 { background: radial-gradient(circle at 100% 0%, #1e5c94 0%, #0a2442 60%); }
#tm-404-page .v2 { background: linear-gradient(160deg, #0f4c81 0%, #08203e 100%); }
#tm-404-page .v3 { background: radial-gradient(circle at 50% 100%, #17548a 0%, #051426 80%); }
#tm-404-page .v4 { background: linear-gradient(180deg, #051426 0%, #0d325e 100%); }

#tm-404-page .dc-lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0.8;
  font-weight: 700;
  margin-bottom: 4px;
}

#tm-404-page .dc-tit {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

#tm-404-page .dc-dsc {
  font-size: 0.7rem;
  line-height: 1.3;
  opacity: 0.85;
}

/* 404 Footer Tightening Override */
.error_site .site-grid,
.error_site .grid-child,
.error_site .container-component {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  display: block !important;
}

.error_site #tm-404-page {
  margin-bottom: 0 !important;
  border-bottom: none !important;
  padding-bottom: 10px !important;
}

.error_site #tm-injected-footer {
  margin-top: -5px !important;
  z-index: 10;
}

.error_site #tm-injected-footer .tm-footer {
  padding-top: 25px !important;
  border-top: 4px solid #4facfe !important;
}

/* =========================================
   9. FOOTER SYSTEM (tm-premium-footer) — CONSOLIDATED
   This replaces all duplicated patches: centering/bleed/width alignment
   ========================================= */

/* 1) Normalize Joomla footer container (global) */
footer.container-footer,
footer.container-footer.footer,
footer.container-footer.footer.full-width {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
}

footer.container-footer > .grid-child {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* 2) Wrapper-static: white bleed left/right + center rail */
body.site.wrapper-static footer.container-footer.footer.full-width,
body.site.wrapper-static footer.container-footer.footer.full-width > .grid-child {
  background: #ffffff !important;
}

body.site.wrapper-static footer.container-footer.footer.full-width > .grid-child {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
}

/* 3) Premium footer is the 1180 rail */
body.site.wrapper-static footer.container-footer.footer.full-width .tm-premium-footer {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  background: #020d17 !important;
  border-top: 5px solid #0f4c81 !important;

  padding: 24px 20px 40px 20px !important; /* tight top + standard body */
  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* 4) Inner grid + glass bar span the rail consistently */
body.site.wrapper-static footer.container-footer.footer.full-width .tm-footer-grid,
body.site.wrapper-static footer.container-footer.footer.full-width .tm-glass-bar {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* 5) Footer internals (shared) */
.tm-premium-footer {
  background: #020d17;
  border-top: 5px solid #0f4c81;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Segoe UI', Calibri, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.tm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 20px auto;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
}

.tm-glass-bar {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #4facfe;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tm-identity-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.tm-ft-bio {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  font-weight: 400;
}

.tm-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tm-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(79, 172, 254, 0.15);
  border: 1px solid rgba(79, 172, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4facfe;
  font-size: 0.85rem;
}

.tm-contact-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
  display: block;
}

.tm-contact-val {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.tm-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  text-decoration: none;
  transition: 0.2s;
  cursor: pointer;
}

.tm-nav-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(5px);
}

.tm-nav-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
}

.tm-nav-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  display: block;
}

.tm-section-head {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  font-weight: 800;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
}

.tm-step-row {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  position: relative;
}

.tm-step-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: -15px;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

.tm-step-icon {
  width: 24px;
  height: 24px;
  background: #0a2442;
  border: 1px solid rgba(79, 172, 254, 0.5);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.tm-step-tit {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.tm-step-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  line-height: 1.3;
}

.tm-cta-btn {
  display: block;
  text-align: center;
  background: #fff;
  color: #0a2442;
  font-weight: 800;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
  transition: 0.2s;
  font-size: 0.9rem;
}

.tm-cta-btn:hover {
  background: #4facfe;
  color: #fff;
}

/* 6) Remove any gap between main content and footer on wrapper-static */
body.site.wrapper-static .site-grid,
body.site.wrapper-static .site-grid > .grid-child.container-component {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* =========================================
   10. ARTICLE VIEW ALIGNMENT (1180PX RAIL)
   ========================================= */

body.view-article .site-grid > .grid-child.container-component,
body.view-article footer.container-footer > .grid-child {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.view-article .com-content-article.item-page {
  max-width: 100%;
}

body.view-article .page-header {
  margin-left: 0;
  margin-right: 0;
}

/* Apply the same inner horizontal padding to content body and footer rail */
body.view-article .com-content-article__body,
body.view-article .tm-premium-footer {
  box-sizing: border-box !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

/* =========================================
   11. RESPONSIVE OVERRIDES (Footer + 404)
   ========================================= */

@media (max-width: 900px) {
  #tm-404-page .hero-split {
    flex-direction: column;
    height: auto;
  }

  #tm-404-page .hero-img {
    width: 100%;
    height: 180px;
    flex: none;
    order: -1;
  }

  #tm-404-page .hero-txt {
    width: 100%;
    flex: none;
  }

  #tm-404-page .dark-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tm-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tm-glass-bar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .error_site #tm-injected-footer {
    margin-top: 0 !important;
  }
}

@media (max-width: 600px) {
  #tm-404-page .dark-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   INSIGHTS ROLLBACK: use default Joomla blog listing
   (Disable TM card/grid behaviors on /insights)
   ========================================================= */

/* 1) Undo any “card-like” tweaks you added to blog items */
body.view-category.layout-blog .blog-item,
body.view-category.layout-blog .blog-item .item-content,
body.view-category.layout-blog .blog-item .page-header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 2) If any TM card blocks still exist in article introtext, hide them on category view */
body.view-category.layout-blog .blog-item .tm-card,
body.view-category.layout-blog .blog-item .tm-card::before,
body.view-category.layout-blog .blog-item .tm-card-inner {
  display: none !important;
}

/* 3) Re-enable the normal H2 title display (you currently hide it) */
body.view-category.layout-blog.blog .blog-item h2.item-title,
body.view-category.layout-blog.blog .blog-item .page-header h2,
body.view-category.layout-blog.blog .blog-item .page-header h2 a {
  position: static !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* 4) Disable pointer/click “card” UX if you added it via JS */
body.view-category.layout-blog .blog-item {
  cursor: default !important;
}
/* =========================================================
   INSIGHTS: hide custom in-article hero HTML inside category blog listing
   (Keeps default Joomla listing: image + title + intro text if any)
   ========================================================= */

body.view-category.layout-blog .blog-item .item-content > div[style*="position: relative"][style*="height: 400px"] {
  display: none !important;
}

/* If your custom intro also wraps a tm-article-body, hide it too */
body.view-category.layout-blog .blog-item .tm-article-body {
  display: none !important;
}

/* Optional: remove extra whitespace left behind */
body.view-category.layout-blog .blog-item .item-content {
  padding-bottom: 0 !important;
}
/* =========================================================
   TM EXEC HEADER — Global (All pages except Home)
   Premium glassmorphic header aligned to 1180px rail
   ========================================================= */

/* 0) Hide on Home page only.
   If your Home is a specific menu item id (e.g., itemid-101), this is the best control.
   Replace 101 with your actual Home menu item id (see steps below). */
body.itemid-1 .tm-exec-header { display: none !important; }

body.home .tm-exec-header,
body.frontpage .tm-exec-header {
  display: none !important;
}


/* 1) Header shell */
.tm-exec-header{
  width: 100%;
  background: #ffffff;                 /* matches wrapper-static white edge */
  padding: 18px 0 10px 0;
  box-sizing: border-box;
}

/* 2) 1180 rail */
.tm-exec-header-rail{
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px;
  box-sizing: border-box;

  /* Glass / premium */
  background: rgba(2, 13, 23, 0.86);   /* footer-like dark */
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 5px solid #0f4c81;       /* footer motif */
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.20);
  backdrop-filter: blur(10px);
}

/* 3) Row 1 */
.tm-exec-header-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 12px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tm-exec-brand{
  text-decoration: none !important;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.tm-exec-name{
  color: #ffffff;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1.1;
}

/* 4) Row 2 layout */
.tm-exec-header-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
}

/* 5) Mini nav */
.tm-exec-mini-nav{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tm-mini-link{
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: all 0.18s ease;
}

.tm-mini-link:hover{
  color: #061627 !important;
  background: linear-gradient(90deg, rgba(79,172,254,1) 0%, rgba(124,210,255,1) 55%, rgba(255,255,255,0.95) 100%);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* 6) Right-side actions */
.tm-exec-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Small round icon buttons */
.tm-icon-btn{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;

  background: rgba(79, 172, 254, 0.12);
  border: 1px solid rgba(79, 172, 254, 0.30);
  color: #4facfe !important;
  transition: all 0.18s ease;
}

.tm-icon-btn:hover{
  background: rgba(79, 172, 254, 0.22);
  border-color: rgba(79, 172, 254, 0.55);
  transform: translateY(-1px);
}

/* Search “radio” button: slightly larger + stronger emphasis */
.tm-search-radio{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;

  background: linear-gradient(180deg, #0f4c81 0%, #0a2442 100%);
  border: 1px solid rgba(255,255,255,0.18);
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  transition: all 0.18s ease;
}

.tm-search-radio:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

/* 7) Mobile */
@media (max-width: 900px){
  .tm-exec-header-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
  .tm-exec-actions{
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 520px){
  .tm-exec-name{ font-size: 1.25rem; }
  .tm-mini-link{ font-size: 0.74rem; padding: 9px 10px; }
}
/* =========================================================
   TM EXEC HEADER — ALIGNMENT + VISIBILITY FIX (PATCH)
   Targets: centered top name, visible mini-nav, 2-column row2,
   snug to top + snug to content
   ========================================================= */

/* 1) Remove Cassiopeia topbar spacing so header hugs the browser top */
header.container-header,
header.header.container-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

header.container-header .container-topbar {
  margin: 0 !important;
  padding: 0 !important;
}

/* 2) Make our header shell snug: no extra white padding above/below */
.tm-exec-header{
  padding: 0 !important;          /* was 18px 0 10px 0 */
  margin: 0 !important;
  background: transparent !important;  /* let rail be the visual block */
}

/* 3) Rail sits tight: reduce internal padding but keep premium look */
.tm-exec-header-rail{
  margin: 0 auto !important;
  padding: 10px 14px !important;   /* tighter than 16px 18px */
  border-radius: 10px;
}

/* 4) ROW 1: center the name */
.tm-exec-header-top{
  justify-content: center !important;   /* override space-between */
  text-align: center;
  padding: 10px 0 12px 0 !important;
}

.tm-exec-brand{
  width: 100%;
  justify-content: center;
}

/* 5) ROW 2: enforce two columns */
.tm-exec-header-bottom{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding-top: 10px !important;
}

/* Left column: nav */
.tm-exec-mini-nav{
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 40px;               /* prevents collapsing/invisible feel */
  z-index: 2;
}

/* Ensure links are actually visible on the dark glass rail */
.tm-mini-link{
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center;
  line-height: 1 !important;
  color: rgba(255,255,255,0.92) !important;

  /* bump contrast a touch for Cassiopeia overlays */
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

/* Right column: actions */
.tm-exec-actions{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-height: 40px;
  z-index: 2;
}

/* 6) Snug header to content: remove top gap on first content container */
.site-grid{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.grid-child.container-component{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* If your articles are wrapped in tm-global-container, remove its top gap too */
.tm-global-container{
  margin-top: 0 !important;
}

/* 7) Mobile: keep layout clean (nav first, actions below) */
@media (max-width: 900px){
  .tm-exec-header-bottom{
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .tm-exec-actions{
    width: 100% !important;
    justify-content: flex-end !important;
  }
}
/* =========================================================
   FIX: TM EXEC HEADER ROW 2 + REMOVE CASSIOPEIA BLUE BLEED
   (Place at VERY END of user.css)
   ========================================================= */

/* A) Stop Cassiopeia "template light blue" from bleeding at the very top */
header.header.container-header,
header.container-header,
header.header,
header.header .container-topbar,
header.header .container-topbar > .grid-child {
  background: #ffffff !important;
  background-color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* B) IMPORTANT: your global "header.header nav {display:none}" is hiding the mini-nav.
   Re-enable ONLY your nav. */
header.header nav.tm-exec-mini-nav {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Optional but recommended: keep Cassiopeia nav hidden WITHOUT killing yours.
   (This overrides your earlier blanket "header.header nav" hide.) */
header.header nav:not(.tm-exec-mini-nav) {
  display: none !important;
}

/* C) Force Row 2 into two real columns (left grows, right pinned) */
.tm-exec-header-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
}

.tm-exec-mini-nav {
  flex: 1 1 auto !important;      /* <-- allows it to occupy left column */
  min-width: 0 !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

.tm-exec-actions {
  flex: 0 0 auto !important;      /* <-- keeps actions tight and right */
  margin-left: auto !important;
  justify-content: flex-end !important;
}

/* D) Make links unambiguously visible (in case other rules are muting them) */
.tm-exec-header-rail .tm-mini-link {
  display: inline-flex !important;
  color: rgba(255,255,255,0.92) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* E) If you want the whole header to hug the browser top */
header.header.container-header.full-width {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* =========================================================
   FIX: Article content rail looks narrower than header/footer
   Root cause: double padding (article body + tm-global-container)
   ========================================================= */

/* 1) Remove the extra padding on the article wrapper (prevents double inset) */
body.view-article .com-content-article__body {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 2) Standardize the rail: same max-width + same side padding as header/footer */
body.view-article .tm-global-container {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;

  /* match your rail padding */
  padding: 18px 18px 0 18px !important;

  /* keep borders/shadow but ensure sizing stays consistent */
  box-sizing: border-box !important;
}

/* 3) OPTIONAL: if you still want a touch more “breathing room” inside cards,
   keep card-inner padding (no change needed). If it feels tight, bump to 28px. */
/*
body.view-article .tm-card-inner { padding: 28px !important; }
*/
/* =========================================================
   EXEC HEADER — Square bottom corners for seamless blend
   ========================================================= */

.tm-exec-header-rail {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
/* =========================================================
   INSIGHTS (/insights) — Apply Block 2 “Content Rail” Styling
   Match Terms-of-Use Block 2: dark left border + shadow + white canvas
   Scoped: category blog view only
   ========================================================= */

body.site.view-category.layout-blog .site-grid,
body.site.view-category.layout-blog .grid-child.container-component,
body.site.view-category.layout-blog main {
  margin: 0 !important;
  padding: 0 !important;
}

/* Create the “Block 2” rail container for /insights */
body.site.view-category.layout-blog .grid-child.container-component main {
  max-width: 1180px !important;
  margin: 0 auto !important;

  background: #ffffff !important;
  font-family: 'Segoe UI', Calibri, Arial, sans-serif !important;

  /* Block 2 signature: top + left dark border */
  border-top: 8px solid #0a2442 !important;
  border-left: 8px solid #0a2442 !important;

  /* Floating executive shadow (left-leaning feel) */
  box-shadow: 5px 5px 25px rgba(0,0,0,0.15) !important;

  /* Internal rail padding similar to .tm-global-container */
  padding: 20px 20px 0 20px !important;
  box-sizing: border-box !important;
}

/* Ensure the actual blog container uses the full rail width */
body.site.view-category.layout-blog .com-content-category-blog,
body.site.view-category.layout-blog .com-content-category-blog.blog,
body.site.view-category.layout-blog .com-content-category-blog__items {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile: reduce border thickness + padding so it doesn’t feel cramped */
@media (max-width: 600px) {
  body.site.view-category.layout-blog .grid-child.container-component main {
    border-top-width: 6px !important;
    border-left-width: 6px !important;
    padding: 16px 14px 0 14px !important;
  }
}
/* =========================================================
   INSIGHTS GRID — 3 columns, portrait image-first, overlay titles
   Scoped to /insights menu itemid-102
   ========================================================= */

body.itemid-102.view-category.layout-blog .com-content-category-blog {
  padding: 0 !important;
  margin: 0 !important;
}

/* Page header block (the HTML you added in category description/module) */
body.itemid-102 .tm-insights-pagehead{
  padding: 10px 6px 18px 6px;
  margin: 0 0 12px 0;
  border-bottom: 1px solid rgba(10,36,66,0.10);
}

body.itemid-102 .tm-insights-kicker{
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,76,129,0.95);
  margin-bottom: 6px;
}

body.itemid-102 .tm-insights-title{
  margin: 0 0 6px 0;
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #0a2442;
}

body.itemid-102 .tm-insights-subtitle{
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(10,36,66,0.78);
  margin-bottom: 12px;
  max-width: 980px;
}

body.itemid-102 .tm-insights-disclaimer{
  max-width: 980px;
  background: rgba(15,76,129,0.06);
  border-left: 5px solid #0a2442;
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  color: rgba(10,36,66,0.85);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* --- Force a true grid (not masonry) --- */
body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 8px 0 0 0 !important;
}

/* Each card */
body.itemid-102.view-category.layout-blog .blog-item{
  position: relative !important;
  background: #0a2442 !important; /* backstop behind image */
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid rgba(10,36,66,0.12) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12) !important;
  transform: translateZ(0);
}

/* Remove Cassiopeia “left image + text” layout behaviors */
body.itemid-102.view-category.layout-blog .blog-item .item-image,
body.itemid-102.view-category.layout-blog .blog-item figure.item-image,
body.itemid-102.view-category.layout-blog .blog-item figure.left.item-image{
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
  position: relative !important;
}

/* Make image portrait using aspect-ratio */
body.itemid-102.view-category.layout-blog .blog-item figure.item-image a{
  display: block !important;
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;   /* portrait */
  position: relative !important;
  overflow: hidden !important;
}

body.itemid-102.view-category.layout-blog .blog-item figure.item-image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  opacity: 0.95;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

body.itemid-102.view-category.layout-blog .blog-item:hover figure.item-image img{
  transform: scale(1.06);
  opacity: 1;
}

/* Hide the default text body below image (we want image-first tiles) */
body.itemid-102.view-category.layout-blog .blog-item .item-content{
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

body.itemid-102.view-category.layout-blog .blog-item .item-content > *:not(.page-header){
  display: none !important;
}

/* Overlay gradient */
body.itemid-102.view-category.layout-blog .blog-item figure.item-image a::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,36,66,0.92) 0%,
    rgba(10,36,66,0.62) 35%,
    rgba(10,36,66,0.00) 70%
  );
  pointer-events: none;
}

/* Title overlay */
body.itemid-102.view-category.layout-blog .blog-item .page-header{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 16px 16px 14px 16px !important;
  margin: 0 !important;
  z-index: 5 !important;
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2{
  margin: 0 !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: -0.2px !important;
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2 a{
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
  display: inline-block !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2 a:hover{
  text-decoration: underline !important;
}

/* Make the entire tile clickable (safe approach: pointer cursor + rely on image/title links) */
body.itemid-102.view-category.layout-blog .blog-item{
  cursor: pointer !important;
}

/* Responsive grid */
@media (max-width: 980px){
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px){
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items{
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   INSIGHTS (/insights) — HARD FIX: kill masonry + kill custom intro hero
   Use Joomla intro image only, portrait tiles, overlay title
   Scoped to itemid-102
   ========================================================= */

body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items {
  /* Override Cassiopeia masonry/columns */
  column-count: initial !important;
  column-gap: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;

  margin: 0 !important;
  padding: 10px 0 0 0 !important;
}

/* Each article tile */
body.itemid-102.view-category.layout-blog .blog-item {
  position: relative !important;
  background: #0a2442 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid rgba(10,36,66,0.12) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12) !important;
}

/* Stop Cassiopeia floats so image can behave like a tile cover */
body.itemid-102.view-category.layout-blog .blog-item figure.item-image,
body.itemid-102.view-category.layout-blog .blog-item figure.left.item-image {
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Portrait image tile (3:4) */
body.itemid-102.view-category.layout-blog .blog-item figure.item-image a {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  overflow: hidden !important;
  position: relative !important;
}

body.itemid-102.view-category.layout-blog .blog-item figure.item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  opacity: 0.95 !important;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

body.itemid-102.view-category.layout-blog .blog-item:hover figure.item-image img {
  transform: scale(1.06);
  opacity: 1 !important;
}

/* Overlay gradient on image */
body.itemid-102.view-category.layout-blog .blog-item figure.item-image a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,36,66,0.92) 0%,
    rgba(10,36,66,0.55) 38%,
    rgba(10,36,66,0.00) 72%
  );
  pointer-events: none;
}

/* Keep only the page-header (title). Hide everything else in item-content. */
body.itemid-102.view-category.layout-blog .blog-item .item-content > *:not(.page-header) {
  display: none !important;
}

/* Specifically kill the big custom hero + custom intro body (the “hijacker”) */
body.itemid-102.view-category.layout-blog .blog-item .item-content > div[style*="position: relative"][style*="height: 400px"] {
  display: none !important;
}
body.itemid-102.view-category.layout-blog .blog-item .tm-article-body {
  display: none !important;
}

/* Title overlay placement */
body.itemid-102.view-category.layout-blog .blog-item .page-header {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  padding: 16px 16px 14px 16px !important;
  z-index: 5 !important;
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2 {
  margin: 0 !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: -0.2px !important;
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2 a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
  display: inline-block !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2 a:hover {
  text-decoration: underline !important;
}

/* Make the tile feel clickable */
body.itemid-102.view-category.layout-blog .blog-item {
  cursor: pointer !important;
}

/* Responsive */
@media (max-width: 980px) {
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   /insights (itemid-102) — FORCE GRID (override Cassiopeia masonry)
   ========================================================= */

/* 0) Kill the duplicate default category title (you already have a custom pagehead) */
body.itemid-102.view-category.layout-blog .com-content-category-blog.blog > h1 {
  display: none !important;
}

/* 1) Premium “pagehead” block styling (executive look) */
body.itemid-102.view-category.layout-blog .category-desc {
  margin: 0 !important;
  padding: 0 !important;
}

body.itemid-102.view-category.layout-blog .tm-insights-pagehead{
  max-width: 1180px;
  margin: 12px auto 18px auto;
  background: #ffffff;
  border-top: 8px solid #0a2442;
  border-left: 8px solid #0a2442;
  box-shadow: 5px 5px 25px rgba(0,0,0,0.15);
  padding: 26px 26px 22px 26px;
  box-sizing: border-box;
}

body.itemid-102.view-category.layout-blog .tm-insights-kicker{
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #0f4c81;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

body.itemid-102.view-category.layout-blog .tm-insights-title{
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #0a2442;
  text-transform: uppercase;
  line-height: 1.1;
}

body.itemid-102.view-category.layout-blog .tm-insights-subtitle{
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(10,36,66,0.82);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 980px;
}

body.itemid-102.view-category.layout-blog .tm-insights-disclaimer{
  background: #f4f8fb;
  border-left: 5px solid #0a2442;
  padding: 14px 16px;
  border-radius: 0 4px 4px 0;
  color: rgba(10,36,66,0.85);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* 2) FORCE the listing container into a real grid (disable columns/masonry) */
body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items.masonry-3,
body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items {
  /* Nuclear: disable column masonry */
  columns: unset !important;
  column-count: unset !important;
  column-width: unset !important;
  column-gap: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;

  margin: 16px auto 0 auto !important;
  padding: 0 !important;
  max-width: 1180px !important;
  box-sizing: border-box !important;
}

/* 3) Each tile */
body.itemid-102.view-category.layout-blog .blog-item{
  position: relative !important;
  width: 100% !important;
  max-width: none !important;

  background: #0a2442 !important;
  border-radius: 8px !important;
  overflow: hidden !important;

  border: 1px solid rgba(10,36,66,0.12) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12) !important;

  /* Extra anti-masonry guard */
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

/* 4) Ensure Cassiopeia does not float the image */
body.itemid-102.view-category.layout-blog .blog-item figure.item-image,
body.itemid-102.view-category.layout-blog .blog-item figure.left.item-image{
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
}

/* 5) Portrait tile image using the Joomla intro image */
body.itemid-102.view-category.layout-blog .blog-item figure.item-image a{
  display: block !important;
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  position: relative !important;
  overflow: hidden !important;
}

body.itemid-102.view-category.layout-blog .blog-item figure.item-image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  opacity: 0.95 !important;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

body.itemid-102.view-category.layout-blog .blog-item:hover figure.item-image img{
  transform: scale(1.06);
  opacity: 1 !important;
}

/* 6) Dark gradient overlay */
body.itemid-102.view-category.layout-blog .blog-item figure.item-image a::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,36,66,0.94) 0%,
    rgba(10,36,66,0.55) 40%,
    rgba(10,36,66,0.00) 75%
  );
  pointer-events: none;
}

/* 7) Hide the “inline hero + intro body” blocks inside each category tile (THIS IS KEY) */
body.itemid-102.view-category.layout-blog .blog-item .item-content > div[style*="position: relative"][style*="height: 400px"],
body.itemid-102.view-category.layout-blog .blog-item .tm-article-body{
  display: none !important;
}

/* 8) Keep ONLY the title and place it as overlay */
body.itemid-102.view-category.layout-blog .blog-item .item-content{
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.itemid-102.view-category.layout-blog .blog-item .page-header{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  margin: 0 !important;
  padding: 16px 16px 14px 16px !important;
  z-index: 5 !important;
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2{
  margin: 0 !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: -0.2px !important;
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2 a{
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
  display: inline-block !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

body.itemid-102.view-category.layout-blog .blog-item .page-header h2 a:hover{
  text-decoration: underline !important;
}

/* 9) Responsive */
@media (max-width: 980px){
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items.masonry-3,
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px){
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items.masonry-3,
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items{
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   INSIGHTS (itemid-102) — FINAL GRID ENFORCEMENT (LAST RULES)
   ========================================================= */

body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items {
  /* kill masonry columns completely */
  columns: unset !important;
  column-count: unset !important;
  column-width: unset !important;
  column-gap: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;

  max-width: 1180px !important;
  margin: 16px auto 0 auto !important;
  padding: 0 !important;
}

/* ensure each item is a normal grid cell (not “column item”) */
body.itemid-102.view-category.layout-blog .com-content-category-blog__item.blog-item {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
  width: 100% !important;
}

/* responsive */
@media (max-width: 980px){
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px){
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items{
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   /insights (itemid-102) — FINAL: force true 3x2 grid tiles
   Place at VERY END of user.css
   ========================================================= */

body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items,
body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items.masonry-3 {
  /* Kill Cassiopeia masonry/columns */
  columns: initial !important;
  column-count: initial !important;
  column-width: auto !important;
  column-gap: 0 !important;

  /* Force real grid */
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;

  max-width: 1180px !important;
  margin: 16px auto 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Ensure each grid child behaves like a grid item (not a column fragment) */
body.itemid-102.view-category.layout-blog .com-content-category-blog__item.blog-item {
  display: block !important;
  width: auto !important;
  max-width: none !important;

  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

/* Hide ANY custom in-article “hero/body cards” inside category tiles */
body.itemid-102.view-category.layout-blog .blog-item .item-content > div[style*="position: relative"][style*="height: 400px"],
body.itemid-102.view-category.layout-blog .blog-item .tm-article-body,
body.itemid-102.view-category.layout-blog .blog-item .tm-article-card {
  display: none !important;
}

/* Keep only title overlay (and image) */
body.itemid-102.view-category.layout-blog .blog-item .item-content > *:not(.page-header) {
  display: none !important;
}

/* Responsive */
@media (max-width: 980px) {
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items,
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items.masonry-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items,
  body.itemid-102.view-category.layout-blog .com-content-category-blog__items.blog-items.masonry-3 {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   INSIGHTS: DISABLE CASSIOPEIA MASONRY (HARD OVERRIDE)
   ========================================================= */

/* Force a standard grid instead of Masonry */
.com_content.view-category.layout-blog .blog-items.masonry-3,
.com_content.view-category.layout-blog .com-content-category-blog__items.masonry-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;
  align-items: start !important;
}

/* Responsive breakpoints */
@media (max-width: 1100px) {
  .com_content.view-category.layout-blog .blog-items.masonry-3,
  .com_content.view-category.layout-blog .com-content-category-blog__items.masonry-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  .com_content.view-category.layout-blog .blog-items.masonry-3,
  .com_content.view-category.layout-blog .com-content-category-blog__items.masonry-3 {
    grid-template-columns: 1fr !important;
  }
}

/* Neutralize Masonry’s positioning rules (key) */
.com_content.view-category.layout-blog .blog-items.masonry-3 > .blog-item,
.com_content.view-category.layout-blog .com-content-category-blog__items.masonry-3 > .blog-item {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* If Masonry injected inline styles, this prevents container collapse/overlap */
.com_content.view-category.layout-blog .blog-items.masonry-3,
.com_content.view-category.layout-blog .com-content-category-blog__items.masonry-3 {
  height: auto !important;
}
.tm-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;
  align-items: start !important;
}
@media (max-width: 1100px) { .tm-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 720px)  { .tm-blog-grid { grid-template-columns: 1fr !important; } }
/* =========================================================
   INSIGHTS BLOG: FORCE CONSISTENT GRID (LEADING + INTRO)
   ========================================================= */

/* Make BOTH Joomla blog item containers use the same grid */
.com_content.view-category.layout-blog .com-content-category-blog__items.blog-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;
  align-items: start !important;
  margin-bottom: 26px !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .com_content.view-category.layout-blog .com-content-category-blog__items.blog-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  .com_content.view-category.layout-blog .com-content-category-blog__items.blog-items {
    grid-template-columns: 1fr !important;
  }
}

/* Ensure each item behaves as a normal grid cell */
.com_content.view-category.layout-blog .com-content-category-blog__item.blog-item {
  position: relative !important;
  width: auto !important;
  margin: 0 !important;
}

/* Optional: ensure images/cards don't overflow their grid cell */
.com_content.view-category.layout-blog .com-content-category-blog__item img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}
/* =========================================================
   INSIGHTS: FORCE 3-COLUMN GRID (LEADING + INTRO containers)
   ========================================================= */

/* Apply grid to BOTH wrappers Joomla outputs (items-leading + normal blog-items) */
body.com_content.view-category.layout-blog .com-content-category-blog__items.blog-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;
  align-items: start !important;
}

/* Make each card a normal grid item (Cassiopeia sometimes gives widths/floats) */
body.com_content.view-category.layout-blog .com-content-category-blog__items.blog-items
  > .com-content-category-blog__item.blog-item {
  width: auto !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Kill the legacy "left" float image behavior inside cards (this often breaks grid visuals) */
body.com_content.view-category.layout-blog .com-content-category-blog__item.blog-item figure.left {
  float: none !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

/* Ensure media and content don't overflow */
body.com_content.view-category.layout-blog .com-content-category-blog__item.blog-item img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Responsive */
@media (max-width: 1100px) {
  body.com_content.view-category.layout-blog .com-content-category-blog__items.blog-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  body.com_content.view-category.layout-blog .com-content-category-blog__items.blog-items {
    grid-template-columns: 1fr !important;
  }
}
#cookie-consent-banner{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);
  width:90%;max-width:480px;background:#fff;padding:30px;
  box-shadow:0 10px 50px rgba(0,0,0,.25);
  border-radius:4px;z-index:99999;
  font-family:'Segoe UI',sans-serif;text-align:center;
  border-top:6px solid #0a2442;transition:opacity .3s ease;
}
.cookie-banner-hidden{opacity:0;visibility:hidden;pointer-events:none;}
.cookie-banner-visible{opacity:1;visibility:visible;pointer-events:auto;}
.cookie-title{margin:0 0 12px;color:#0a2442;font-size:1.25rem;font-weight:800;text-transform:uppercase;}
.cookie-text{color:#555;font-size:.95rem;line-height:1.5;margin-bottom:25px;}
.cookie-btn-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.cookie-btn-primary{
  background:linear-gradient(180deg,#0f4c81 0%,#0a2442 100%);
  color:#fff;padding:10px 24px;border:1px solid #0a2442;border-radius:3px;
  cursor:pointer;font-weight:700;text-transform:uppercase;font-size:.85rem;
}
.cookie-btn-secondary{
  background:linear-gradient(180deg,#fff 0%,#f0f4fb 100%);
  color:#0a2442;padding:10px 24px;border:1px solid #ccc;border-radius:3px;
  cursor:pointer;font-weight:700;text-transform:uppercase;font-size:.85rem;
}
.cookie-options-container{text-align:left;margin:18px 0 22px;}
.cookie-option-row{display:flex;align-items:center;gap:10px;margin:10px 0;}
.cookie-link{color:#0f4c81;font-weight:700;text-decoration:none;}
.cookie-link:hover{text-decoration:underline;}
/* =========================================================
   FIX: HIDE HEADER ON HOMEPAGE ONLY
   ========================================================= */

/* 1. Hide the header ONLY if the body has the 'is-frontpage' class */
body.is-frontpage .tm-exec-header {
    display: none !important;
}

/* 2. Ensure it SHOWS on standard articles (which do not have that class) */
body.view-article .tm-exec-header {
    display: block !important;
}
/* =========================================================
   FINAL FIX: HIDE HEADER ON HOMEPAGE (ID 101)
   ========================================================= */

/* 1. Target the specific 'is-frontpage' class we just added */
body.is-frontpage .tm-exec-header,
body.is-frontpage #mod-custom115 {
    display: none !important;
}

/* 2. Target the specific Menu Item ID (101) just to be safe */
body.itemid-101 .tm-exec-header,
body.itemid-101 #mod-custom115 {
    display: none !important;
}

/* 3. Ensure it REMAINS VISIBLE on all other articles */
body.view-article:not(.is-frontpage):not(.itemid-101) .tm-exec-header {
    display: block !important;
}
/* =========================================
   FIX: HEADER MINI-NAV (Remove Grey Background)
   ========================================= */

.tm-mini-link {
    /* 1. Remove the grey background */
    background: transparent !important;
    
    /* 2. Refine the structure (Ghost Style) */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 999px;
    padding: 9px 16px;
    
    /* 3. Typography Polish */
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em; /* Slightly wider for elegance */
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* HOVER STATE: The "Dark Orbit" Premium Effect */
.tm-mini-link:hover {
    background: linear-gradient(180deg, #0f4c81 0%, #0a2442 100%) !important;
    border-color: #4facfe !important; /* Cyan highlight border */
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* Deep executive shadow */
    transform: translateY(-2px);
}