:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --line: rgba(255,255,255,0.14);
  --brand: #7c5cff;
  --brand2: #2ee59d;
  --shadow: 0 16px 40px rgba(0,0,0,0.35);
  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(124,92,255,0.22), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(46,229,157,0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.container-fluid{
  width: calc(100% - 32px);
  max-width: none;
  margin: 0 auto;
}

.container-wide{
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}
.container.container-wide{
  width: min(1400px, calc(100% - 32px));
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
}
.skip-link:focus{ left: 12px; z-index: 9999; }

header{
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(11,18,32,0.6);
  border-bottom: 1px solid var(--line);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.brand-badge{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow);
}

.nav-links{
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}
.nav-links a[aria-current="page"]{
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}
.btn.primary{
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(46,229,157,0.85));
  border: 0;
  color: #0b1220;
  font-weight: 700;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.hero{
  padding: 64px 0 28px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
}
.hero h1{
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 12px;
}
.hero p{
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.kpis{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.kpi{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}
.kpi strong{ display:block; font-size: 1.1rem; }
.kpi span{ color: var(--muted); font-size: 0.95rem; }

.section{
  padding: 40px 0;
}
.section h2{
  margin: 0 0 10px;
  font-size: 1.7rem;
}
.section p.lead{
  margin: 0 0 18px;
  color: var(--muted);
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3{ margin: 0 0 8px; }
.card p{ margin: 0 0 14px; color: var(--muted); }

.card .meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

hr.sep{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}
.footer-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.small{
  font-size: 0.95rem;
  color: var(--muted);
}

.form{
  display: grid;
  gap: 12px;
}
.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
label{
  font-size: 0.95rem;
  color: var(--muted);
}
textarea{
  min-height: 120px;
  resize: vertical;
}

.page-title{
  padding: 34px 0 10px;
}
.page-title h1{ margin: 0 0 8px; }
.page-title p{ margin: 0; color: var(--muted); }

.breadcrumbs{
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   Team grid (UPDATED & FIXED)
   ========================= */
.team-grid{
  display: grid;
  gap: 16px;
  align-items: start; /* KEY FIX: Aligns all cards to top */
  
  /* Keep side-by-side on desktop/tablet */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Ensures all team member cards have equal height */
.team-grid > .team-member{
  min-width: 0;
  height: 100%; /* Makes all cards same height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Aligns content to top */
}

/* If team-member uses .card class, ensure proper flex behavior */
.team-member.card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-member h3{
  margin: 0 0 6px;
  flex-shrink: 0; /* Prevents title from shrinking */
}

.team-role{
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 12px;
  flex-shrink: 0; /* Prevents role from shrinking */
}

/* Push any additional content to bottom if needed */
.team-member .team-content{
  flex-grow: 1;
}

/* Alternative: 3-column layout for more team members */
.team-grid.three-cols{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Only stack on very small screens */
@media (max-width: 520px){
  .team-grid{
    grid-template-columns: 1fr;
  }
  
  .team-grid.three-cols{
    grid-template-columns: 1fr;
  }
}

/* Medium screens: 3-cols becomes 2-cols */
@media (max-width: 768px){
  .team-grid.three-cols{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   Responsive layouts
   ========================= */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}