/* =========================================================================
   AITRG Nexus — Design System
   Ported from the original React/Tailwind project.
   Brand: navy #0B1F3A · gold #D4A017 · leaf #1F8A5B
   ========================================================================= */

:root {
  --navy: #0B1F3A;
  --navy-foreground: #F6F7F9;
  --gold: #D4A017;
  --gold-foreground: #0B1F3A;
  --leaf: #1F8A5B;
  --leaf-foreground: #F6F7F9;
  --offwhite: #F6F7F9;
  --charcoal: #2E343D;

  --background: #F6F7F9;
  --foreground: #2E343D;
  --card: #FFFFFF;
  --card-foreground: #2E343D;
  --primary: #0B1F3A;
  --primary-foreground: #F6F7F9;
  --secondary: #D4A017;
  --muted: #EEF0F3;
  --muted-foreground: #6B7280;
  --accent: #D4A017;
  --border: #E2E6EB;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --radius: 0.5rem;
}

/* ----------------------------------------------------------------- Base */
body.aitrg {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

.aitrg h1, .aitrg h2, .aitrg h3, .aitrg h4,
.aitrg .font-display,
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.aitrg a { color: inherit; }
.aitrg img { max-width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------ Utilities */
.container-page {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.eyebrow,
.elementor-widget-heading .elementor-heading-title.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}

.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.italic { font-style: italic; }

.card-hover {
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(11, 31, 58, 0.25);
}

@keyframes aitrg-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: aitrg-fade-up 0.7s ease-out both; }

/* --------------------------------------------------------------- Tags */
.sdg-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(31, 138, 91, 0.12); color: var(--leaf);
}
.cat-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.6); color: var(--navy);
}
.status-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
}
.status-tag.live { background: var(--leaf); color: var(--leaf-foreground); }
.status-tag.past { background: rgba(11, 31, 58, 0.15); color: var(--navy); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------- Grids */
.aitrg-grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ Feature item */
.feature-item { display: flex; gap: 1rem; }
.feature-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.5rem;
  background: rgba(11, 31, 58, 0.05); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-item .ft-title { font-family: var(--font-display); font-size: 1.125rem; }
.feature-item .ft-body { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; line-height: 1.6; }

/* --------------------------------------------------------- Cards */
.research-card, .project-card, .lab-card, .partner-card, .team-card,
.sdg-card, .past-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

/* Research focus card (home + research) */
.research-card { padding: 2rem; }
.research-card .rc-icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  background: var(--navy); color: var(--navy-foreground);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.research-card .rc-icon svg { width: 22px; height: 22px; }
.research-card h3 { font-size: 1.25rem; line-height: 1.35; margin: 0 0 0.75rem; }
.research-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; margin: 0 0 1.25rem; }
.research-card .rc-link { font-size: 0.875rem; font-weight: 500; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; }
.research-card .rc-link:hover { color: var(--gold); }

/* Project / event / generic image card */
.img-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; display: flex; flex-direction: column; }
.img-card .ic-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.img-card .ic-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.img-card:hover .ic-media img { transform: scale(1.05); }
.img-card .ic-media .ic-badge { position: absolute; top: 1rem; left: 1rem; }
.img-card .ic-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.img-card .ic-area { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; margin-bottom: 0.5rem; }
.img-card h3 { font-size: 1.125rem; line-height: 1.35; margin: 0 0 0.5rem; }
.img-card .ic-area + h3 { font-size: 1.25rem; }
.img-card p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0 0 1.25rem; flex: 1; line-height: 1.6; }

/* Team cards */
.team-card { overflow: hidden; }
.team-card .tc-media { aspect-ratio: 4 / 5; overflow: hidden; }
.team-card .tc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.team-card:hover .tc-media img { transform: scale(1.05); }
.team-card .tc-body { padding: 1.25rem; }
.team-card .tc-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; }
.team-card .tc-name { font-family: var(--font-display); font-size: 1.125rem; margin: 0.25rem 0 0; }
.team-card .tc-focus { font-size: 0.875rem; color: var(--muted-foreground); margin: 0.25rem 0 0; }
.team-card .tc-social { display: inline-flex; margin-top: 0.75rem; color: rgba(11,31,58,0.7); }
.team-card .tc-social:hover { color: var(--gold); }

/* Team lead feature */
.team-lead { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; display: grid; grid-template-columns: 1fr 1.5fr; margin-bottom: 2.5rem; }
.team-lead img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.team-lead .tl-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.team-lead .tl-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; }
.team-lead h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0.5rem 0 0; }
.team-lead p { color: rgba(46,52,61,0.8); margin-top: 1rem; line-height: 1.7; }
.team-lead .tl-bio { font-size: 0.875rem; color: rgba(46,52,61,0.7); }
.team-lead .tl-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.team-lead .tl-social a { width: 2.5rem; height: 2.5rem; border-radius: 999px; background: rgba(11,31,58,0.05); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.team-lead .tl-social a:hover { background: var(--navy); color: var(--navy-foreground); }
@media (max-width: 820px) { .team-lead { grid-template-columns: 1fr; } }

/* Partners */
.partner-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border-radius: 0.75rem; overflow: hidden; }
.partner-strip .ps-cell { background: var(--card); height: 7rem; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 1.5rem; }
.partner-strip .ps-cell span { font-family: var(--font-display); font-size: 1.125rem; color: rgba(46,52,61,0.7); transition: 0.2s; }
.partner-strip .ps-cell:hover span { color: var(--navy); transform: scale(1.05); }
@media (max-width: 760px) { .partner-strip { grid-template-columns: repeat(2,1fr); } }

.partner-card { padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.partner-card .pc-icon { color: var(--gold); margin-top: 0.25rem; flex-shrink: 0; }
.partner-card .pc-title { font-family: var(--font-display); font-size: 1.125rem; }
.partner-card .pc-body { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* SDG grid */
.sdg-card { padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.sdg-card .sc-num { width: 3rem; height: 3rem; border-radius: 0.5rem; background: rgba(31,138,91,0.12); color: var(--leaf); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.125rem; }
.sdg-card .sc-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); }
.sdg-card .sc-label { font-weight: 500; font-size: 0.875rem; }

/* Labs */
.lab-card { padding: 1.5rem; display: flex; gap: 1.25rem; background: var(--offwhite); }
.lab-card .lc-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; background: rgba(212,160,23,0.15); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lab-card .lc-title { font-family: var(--font-display); font-size: 1.125rem; }
.lab-card .lc-focus { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.lab-card .lc-lead { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); font-weight: 600; margin-top: 0.75rem; }

/* Research accordion-style stacked panels (static) */
.research-panel { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; margin-bottom: 1rem; }
.research-panel .rp-head { display: flex; align-items: flex-start; gap: 1.25rem; padding: 2rem; }
.research-panel .rp-ic { width: 3rem; height: 3rem; border-radius: 0.5rem; background: var(--navy); color: var(--navy-foreground); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.research-panel .rp-head h2 { font-size: 1.5rem; line-height: 1.35; margin: 0; }
.research-panel .rp-head p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0.5rem 0 0; max-width: 42rem; }
.research-panel .rp-body { border-top: 1px solid var(--border); padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: rgba(246,247,249,0.5); }
.research-panel .rp-body ul { margin: 0; padding-left: 1.25rem; font-size: 0.875rem; color: rgba(46,52,61,0.85); line-height: 1.8; }
.research-panel .rp-meta .eyebrow { margin-bottom: 0.5rem; }
.research-panel .rp-meta .rp-lead { font-family: var(--font-display); font-size: 1.125rem; }
@media (max-width: 760px) { .research-panel .rp-body { grid-template-columns: 1fr; } }

/* Publications */
.pub-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; text-align: center; }
.pub-stats .pn { font-family: var(--font-display); font-size: 2.25rem; color: var(--navy); }
.pub-stats .pl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); margin-top: 0.25rem; }
@media (max-width: 600px) { .pub-stats { grid-template-columns: 1fr; gap: 1rem; } }

.pub-list { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; list-style: none; margin: 0; padding: 0; }
.pub-list li { padding: 1.5rem; display: flex; gap: 1rem; border-top: 1px solid var(--border); }
.pub-list li:first-child { border-top: 0; }
.pub-list li:hover { background: rgba(246,247,249,0.6); }
.pub-list .pub-yr { width: 5rem; flex-shrink: 0; }
.pub-list .pub-yr .y { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); }
.pub-list .pub-yr .t { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); font-weight: 600; margin-top: 0.25rem; }
.pub-list h3 { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.35; margin: 0; }
.pub-list .pub-auth { font-size: 0.875rem; color: rgba(46,52,61,0.8); margin-top: 0.35rem; }
.pub-list .pub-venue { font-size: 0.875rem; color: var(--muted-foreground); font-style: italic; margin-top: 0.25rem; }
.pub-list .pub-links { margin-top: 0.75rem; display: inline-flex; gap: 1rem; font-size: 0.875rem; }
.pub-list .pub-links a { color: var(--navy); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.pub-list .pub-links a:hover { color: var(--gold); }
@media (max-width: 600px) { .pub-list li { flex-direction: column; gap: 0.5rem; } }

/* Filter pills (static, decorative) */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.filter-row .fr-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); margin-right: 0.5rem; }
.pill { font-size: 0.875rem; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--charcoal); background: transparent; cursor: pointer; transition: 0.2s; }
.pill:hover { border-color: var(--navy); }
.pill.active-navy { background: var(--navy); color: var(--navy-foreground); border-color: var(--navy); }
.pill.active-gold { background: var(--gold); color: var(--gold-foreground); border-color: var(--gold); }

/* Events upcoming row */
.event-row { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; margin-bottom: 1.25rem; }
.event-row .er-date { background: var(--navy); color: var(--navy-foreground); padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.event-row .er-date .d { font-family: var(--font-display); font-size: 3rem; color: var(--gold); line-height: 1; }
.event-row .er-date .m { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; font-size: 0.875rem; margin-top: 0.5rem; }
.event-row .er-date .y { font-size: 0.75rem; color: rgba(246,247,249,0.6); }
.event-row .er-body { padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.event-row .er-body h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; margin: 0.75rem 0 0; }
.event-row .er-loc { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.event-row .er-desc { color: rgba(46,52,61,0.8); margin-top: 0.75rem; max-width: 42rem; }
@media (max-width: 700px) { .event-row { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; }
.gallery-grid a { aspect-ratio: 1/1; overflow: hidden; border-radius: 0.5rem; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.gallery-grid a:hover img { transform: scale(1.1); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }

/* Past events */
.past-card { padding: 1.25rem; display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 0.75rem; transition: border-color 0.2s; }
.past-card:hover { border-color: var(--gold); }
.past-card .pc-thumb { width: 6rem; height: 5rem; border-radius: 0.5rem; overflow: hidden; flex-shrink: 0; }
.past-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.past-card .pc-date { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.35rem; }
.past-card h3 { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.35; margin: 0; }
.past-card .pc-recap { font-size: 0.875rem; color: rgba(46,52,61,0.75); margin-top: 0.25rem; }
@media (max-width: 600px) { .past-card .pc-thumb { display: none; } }

/* Quote / mission cards (about) */
.quote-card { background: var(--navy); color: var(--navy-foreground); border-radius: 1rem; padding: 2.5rem; }
.quote-card .qc-icon { color: var(--gold); margin-bottom: 1rem; }
.quote-card blockquote { font-family: var(--font-display); font-size: clamp(1.25rem,2vw,1.5rem); font-style: italic; line-height: 1.4; margin: 0; }
.quote-card figcaption { margin-top: 1.25rem; font-size: 0.875rem; color: rgba(246,247,249,0.7); }
.mission-card { background: var(--offwhite); border: 1px solid var(--border); border-radius: 0.75rem; padding: 2rem; }
.mission-card .mc-icon { color: var(--gold); margin-bottom: 1rem; }
.mission-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.75rem; }
.mission-card p { color: rgba(46,52,61,0.8); line-height: 1.7; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2.5rem; }
.contact-form-card h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.25rem; }
.contact-form-card .cf-sub { font-size: 0.875rem; color: var(--muted-foreground); margin: 0 0 2rem; }
.field-input, .contact-form-card input, .contact-form-card textarea {
  display: block; width: 100%; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.65rem 0.85rem; font-size: 0.9rem; color: var(--charcoal); font-family: var(--font-sans);
  transition: border-color 150ms;
}
.field-input:focus, .contact-form-card input:focus, .contact-form-card textarea:focus { outline: none; border-color: var(--gold); }
.cf-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); margin-bottom: 0.4rem; }
.cf-grid { display: grid; gap: 1.25rem; }
.cf-grid .cf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .cf-grid .cf-two { grid-template-columns: 1fr; } }
.contact-aside .ca-card { background: var(--navy); color: var(--navy-foreground); border-radius: 1rem; padding: 2rem; margin-bottom: 1.5rem; }
.contact-aside .ca-card ul { list-style: none; margin: 0; padding: 0; }
.contact-aside .ca-card li { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-aside .ca-card li svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-aside .ca-card a { color: inherit; text-decoration: none; }
.contact-aside .ca-card a:hover { color: var(--gold); }
.contact-aside .ca-social { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.contact-aside .ca-social a { width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.contact-aside .ca-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.contact-aside .ca-map { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); background: var(--card); margin-bottom: 1.5rem; }
.contact-aside .ca-map iframe { display: block; width: 100%; border: 0; }
.contact-aside .ca-hours { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.contact-aside .ca-hours .h-title { font-family: var(--font-display); font-size: 1rem; color: var(--charcoal); margin-bottom: 0.25rem; }

/* SVG icon sizing inside HTML widgets */
.aitrg svg.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.aitrg .ico-lg { width: 28px; height: 28px; }
.aitrg .ico-xl { width: 32px; height: 32px; }

/* Buttons used inside HTML widgets (native Elementor buttons handled separately) */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; padding: 0.875rem 1.5rem; border-radius: 0.5rem; text-decoration: none; font-size: 0.95rem; border: 1px solid transparent; transition: 0.2s; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--gold-foreground); }
.btn-gold:hover { filter: brightness(0.95); }
.btn-navy { background: var(--navy); color: var(--navy-foreground); }
.btn-navy:hover { filter: brightness(1.1); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: var(--navy-foreground); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* --------------------------------- Native Elementor widget helpers */
.aitrg-eyebrow .elementor-heading-title {
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow-navy .elementor-heading-title { color: var(--navy) !important; }
.aitrg-btn .elementor-button { font-family: var(--font-sans); display: inline-flex; align-items: center; gap: 0.5rem; }
.aitrg-btn .elementor-button:hover { filter: brightness(0.96); }
.elementor-widget-text-editor { line-height: 1.7; }
.lead-text .elementor-widget-container { font-size: 1.05rem; color: var(--muted-foreground); max-width: 44rem; }
.prose-block .elementor-widget-container { color: rgba(46,52,61,0.85); line-height: 1.7; }
/* keep imported HTML-widget sections from inheriting Elementor default margins badly */
.elementor-widget-html .elementor-widget-container > * { margin-top: 0; }

/* --------------------------------- Layout splits used by HTML widgets */
.split { display: grid; gap: 3.5rem; align-items: center; }
.split.cols-text-img { grid-template-columns: 1.4fr 1fr; }
.split.cols-img-text { grid-template-columns: 1fr 1.5fr; }
.split.cols-even { grid-template-columns: 1fr 1fr; }
.split.cols-narrow-wide { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr !important; gap: 2.5rem; } }
.split img.split-media { border-radius: 1rem; width: 100%; object-fit: cover; box-shadow: 0 25px 50px -20px rgba(11,31,58,0.4); }
.split .eyebrow { margin-bottom: 0.75rem; }
.split h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.1; margin: 0 0 1.25rem; }
.split p { color: rgba(46,52,61,0.85); line-height: 1.7; margin: 0 0 1rem; }
.on-navy { color: var(--navy-foreground); }
.on-navy p { color: rgba(246,247,249,0.8); }
.on-navy h2 .accent, .accent-gold { color: var(--gold); font-style: italic; }
.stat-badge { position: relative; }
.stat-badge .badge { position: absolute; bottom: -1.5rem; left: -1.5rem; background: var(--gold); color: var(--gold-foreground); padding: 1rem 1.25rem; border-radius: 0.75rem; box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4); max-width: 220px; }
.stat-badge .badge .bn { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.stat-badge .badge .bl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; }
@media (max-width: 900px) { .stat-badge .badge { display: none; } }

/* hero text block */
.hero-block { max-width: 48rem; }
.hero-block .eyebrow { margin-bottom: 1.25rem; }
.hero-block h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--navy-foreground); margin: 0; }
.hero-block h1 .accent { color: var(--gold); font-style: italic; }
.hero-block p { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.7; color: rgba(246,247,249,0.85); }

/* inner page hero (PageHeader) */
.page-hero { position: relative; overflow: hidden; }
.page-hero .ph-crumb { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: rgba(246,247,249,0.6); margin-bottom: 1.25rem; }
.page-hero .ph-crumb a { color: inherit; text-decoration: none; }
.page-hero .ph-crumb a:hover { color: var(--gold); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; color: var(--navy-foreground); margin: 0; max-width: 56rem; }
.page-hero .ph-desc { margin-top: 1.25rem; font-size: 1.125rem; color: rgba(246,247,249,0.75); max-width: 40rem; line-height: 1.7; }

/* generic section intro (native or html) */
.sec-intro { max-width: 44rem; margin-bottom: 3rem; }
.sec-intro h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.1; margin: 0.75rem 0 0; }
.sec-intro p { margin-top: 1rem; color: rgba(46,52,61,0.75); }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.row-between .rb-title { max-width: 36rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 500; color: var(--navy); text-decoration: none; }
.link-arrow:hover { color: var(--gold); }
.link-arrow.on-gold { color: var(--gold); }
.center-cta { text-align: center; margin-top: 3rem; }

/* CTA banner */
.cta-banner { display: grid; grid-template-columns: 1.5fr auto; align-items: center; gap: 2rem; }
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; } }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; margin: 0.75rem 0 0; }
.cta-banner p { margin-top: 0.75rem; max-width: 42rem; }
.cta-banner.on-navy p { color: rgba(246,247,249,0.75); }
.cta-banner.on-gold p { color: rgba(11,31,58,0.8); }
.work-together { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .work-together { grid-template-columns: 1fr; } }
.work-together .wt-contact { display: flex; flex-direction: column; gap: 1rem; }
.work-together .wt-contact .wt-line { display: flex; align-items: center; gap: 0.75rem; color: var(--navy); }
.work-together .wt-contact a { color: inherit; }

/* hero buttons + dark team teaser */
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.team-teaser { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .team-teaser { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .team-teaser { grid-template-columns: 1fr; } }
.tt-card .tt-media { aspect-ratio: 4/5; overflow: hidden; border-radius: 0.75rem; margin-bottom: 1rem; background: rgba(255,255,255,0.05); }
.tt-card .tt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.tt-card:hover .tt-media img { transform: scale(1.05); }
.tt-card .tt-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; }
.tt-card .tt-name { font-family: var(--font-display); font-size: 1.125rem; margin-top: 0.25rem; color: var(--navy-foreground); }
.tt-card .tt-focus { font-size: 0.875rem; color: rgba(246,247,249,0.7); margin-top: 0.25rem; }
.tt-card .tt-social { display: inline-flex; margin-top: 0.75rem; color: rgba(246,247,249,0.7); }
.tt-card .tt-social:hover { color: var(--gold); }
.events-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.events-tabs a { padding: 0.5rem 1rem; border-radius: 999px; background: rgba(11,31,58,0.05); text-decoration: none; color: var(--charcoal); font-size: 0.875rem; transition: 0.2s; }
.events-tabs a:hover { background: var(--navy); color: var(--navy-foreground); }
