/* ==========================================================================
   TESPAM — Enstitüler ve Araştırma Merkezleri — ortak stil dosyası
   Marka: lacivert + altın; ikincil vurgu rengi her enstitüde --accent ile değişir.
   ========================================================================== */

:root{
  --navy:   #102A43;
  --navy2:  #1C3D5A;
  --navy3:  #2C5578;
  --gold:   #C9A227;
  --gold-l: #E3C765;
  --ink:    #16212B;
  --ink-soft:#3E4C59;
  --paper:  #FFFFFF;
  --bg:     #F6F7F9;
  --line:   #E1E6EB;
  --line-soft:#EDF0F3;
  --accent: #C9A227; /* sayfa bazlı override edilir */
  --radius: 14px;
  --shadow: 0 8px 28px rgba(16,42,67,.10);
  --shadow-sm: 0 2px 10px rgba(16,42,67,.08);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif", serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.62;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ margin:0 0 .5em; font-weight:800; color:var(--navy); line-height:1.22; }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ---------------------------------------------------------------- lang toggle */
body.lang-tr .lang-en{ display:none !important; }
body.lang-en .lang-tr{ display:none !important; }

/* ---------------------------------------------------------------------- HEADER */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--navy);
  border-bottom:3px solid var(--gold);
}
.site-header .bar{
  display:flex; align-items:center; gap:20px;
  padding:12px 24px;
  max-width:var(--maxw); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:12px; margin-right:auto; }
.brand img{ height:42px; width:auto; }
.brand .word{ color:#fff; font-weight:800; letter-spacing:.02em; line-height:1.1; }
.brand .word small{ display:block; font-weight:500; font-size:11px; color:#B9C4D0; letter-spacing:.02em; }

.main-nav{ display:flex; align-items:center; gap:4px; }
.main-nav a{
  color:#DCE3EA; font-size:14.5px; font-weight:600; padding:9px 12px; border-radius:8px;
  white-space:nowrap;
}
.main-nav a:hover{ background:rgba(255,255,255,.08); color:#fff; }
.main-nav a.active{ color:#fff; background:rgba(255,255,255,.12); }

.nav-toggle{
  display:none; background:none; border:1px solid rgba(255,255,255,.35); color:#fff;
  border-radius:8px; padding:7px 10px; font-size:18px; line-height:1;
}

.lang-switch{ display:flex; border:1px solid rgba(255,255,255,.35); border-radius:999px; overflow:hidden; margin-left:6px; flex-shrink:0; }
.lang-switch button{
  border:0; background:transparent; color:#CBD5DF; padding:7px 13px; font-size:12.5px; font-weight:800;
  letter-spacing:.04em; cursor:pointer;
}
.lang-switch button.active{ background:var(--gold); color:var(--navy); }

/* dropdown for institutes on nav */
.has-drop{ position:relative; }
.drop{
  position:absolute; top:100%; left:0; background:#fff; border-radius:10px; box-shadow:var(--shadow);
  min-width:280px; padding:8px; display:none; margin-top:6px; border:1px solid var(--line);
}
.has-drop:hover .drop, .has-drop:focus-within .drop{ display:block; }
.drop a{ display:flex; align-items:center; gap:10px; color:var(--ink); font-weight:600; font-size:13.5px; padding:9px 10px; border-radius:8px; }
.drop a:hover{ background:var(--bg); }
.drop .dot{ width:9px; height:9px; border-radius:50%; flex:none; }

/* ------------------------------------------------------------------------ HERO */
.hero{
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(201,162,39,.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy2) 62%, var(--navy3) 100%);
  color:#fff; position:relative; overflow:hidden;
}
.hero .container{ padding-top:64px; padding-bottom:64px; }
.hero .kicker{
  display:inline-block; color:var(--gold-l); font-weight:800; font-size:12.5px; letter-spacing:.14em;
  text-transform:uppercase; margin-bottom:16px;
}
.hero h1{ color:#fff; font-size:clamp(28px,4vw,44px); max-width:820px; }
.hero .lead{ color:#CBD8E4; font-size:17px; max-width:680px; margin-top:14px; }
.hero-actions{ display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px; padding:12px 22px; border-radius:10px;
  font-weight:700; font-size:14.5px; border:1.5px solid transparent; cursor:pointer;
}
.btn-gold{ background:var(--gold); color:var(--navy); }
.btn-gold:hover{ background:var(--gold-l); }
.btn-outline{ border-color:rgba(255,255,255,.5); color:#fff; }
.btn-outline:hover{ background:rgba(255,255,255,.1); }
.btn-navy{ background:var(--navy); color:#fff; }
.btn-navy:hover{ background:var(--navy2); }

/* stat row */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(255,255,255,.16); margin-top:44px; border-radius:12px; overflow:hidden; }
.stats .stat{ background:rgba(255,255,255,.05); padding:20px 16px; text-align:center; }
.stats .n{ font-size:30px; font-weight:800; color:var(--gold-l); }
.stats .l{ font-size:12px; color:#C7D2DC; text-transform:uppercase; letter-spacing:.08em; margin-top:4px; }

/* ---------------------------------------------------------------- unit hero */
.unit-hero{
  position:relative; color:#fff; overflow:hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 62%, var(--navy3) 100%);
}
.unit-hero{
  background:
    radial-gradient(900px 420px at 88% -20%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy2) 62%, var(--navy3) 100%);
}
.unit-hero::before{
  content:""; position:absolute; right:-60px; top:-60px; width:320px; height:320px; border-radius:50%;
  border:1.5px solid rgba(255,255,255,.14);
}
.unit-hero::after{
  content:""; position:absolute; right:40px; top:40px; width:200px; height:200px; border-radius:50%;
  border:1.5px solid rgba(255,255,255,.10);
}
.unit-hero .container{ position:relative; padding-top:56px; padding-bottom:56px; }
.unit-hero .kind{
  display:inline-block; background:var(--accent); color:#fff; font-weight:800; font-size:11.5px;
  letter-spacing:.12em; text-transform:uppercase; padding:5px 12px; border-radius:999px; margin-bottom:14px;
}
.unit-hero h1{ color:#fff; font-size:clamp(26px,3.6vw,40px); max-width:760px; }
.unit-hero .tagline{ color:#DCE6EF; font-size:16.5px; margin-top:10px; max-width:640px; }
.unit-hero .no{
  position:absolute; right:24px; top:24px; font-size:74px; font-weight:800; color:rgba(255,255,255,.14);
  line-height:1;
}
.unit-hero .logo-badge{
  position:absolute; right:24px; bottom:-34px; width:104px; height:104px; border-radius:16px;
  background:#fff; box-shadow:var(--shadow); padding:10px; display:flex; align-items:center; justify-content:center;
}
.unit-hero .logo-badge img{ max-width:100%; max-height:100%; }

/* --------------------------------------------------------------------- SECTIONS */
section{ padding:56px 0; }
section.tight{ padding:36px 0; }
.section-head{ max-width:720px; margin-bottom:34px; }
.section-head .kicker-sm{ color:var(--accent); font-weight:800; font-size:12px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:8px; display:block; }
.bg-alt{ background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

.prose{ font-size:16px; color:var(--ink-soft); max-width:820px; }
.prose p{ margin-bottom:1.15em; }
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }

/* unit grid (home) */
.unit-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.unit-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow-sm); display:flex; flex-direction:column; transition:transform .15s, box-shadow .15s;
  border-top:4px solid var(--c, var(--gold));
}
.unit-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.unit-card .uc-body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.unit-card .uc-kind{ font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--c,var(--gold)); }
.unit-card h3{ font-size:19px; margin:0; }
.unit-card .uc-tag{ color:var(--ink-soft); font-size:14px; flex:1; }
.unit-card .uc-meta{ display:flex; gap:14px; font-size:12.5px; color:#68788A; font-weight:700; }
.unit-card .uc-link{ font-size:13.5px; font-weight:800; color:var(--c,var(--navy)); display:inline-flex; align-items:center; gap:6px; margin-top:6px; }

/* framework / info card */
.framework{
  background:linear-gradient(160deg,var(--navy),var(--navy2));
  color:#fff; border-radius:18px; padding:38px 36px; position:relative; overflow:hidden;
}
.framework::after{ content:""; position:absolute; inset:0; background:radial-gradient(600px 300px at 90% 0%, rgba(201,162,39,.22), transparent 60%); }
.framework h2{ color:#fff; position:relative; }
.framework p{ color:#CBD8E4; position:relative; max-width:820px; font-size:15.5px; }
.framework .tag{ display:inline-block; background:var(--gold); color:var(--navy); font-weight:800; font-size:11.5px; letter-spacing:.08em; padding:5px 12px; border-radius:999px; margin-bottom:14px; position:relative; }

/* kapsam / group cards */
.kapsam-list{ display:flex; flex-direction:column; gap:14px; }
.kapsam-item{ display:grid; grid-template-columns:230px 1fr; gap:22px; padding:20px 22px; }
.kapsam-item .kg-title{ font-weight:800; color:var(--navy); font-size:15.5px; display:flex; align-items:flex-start; gap:10px; }
.kapsam-item .kg-title .dot{ width:9px; height:9px; border-radius:50%; background:var(--accent); margin-top:6px; flex:none; }
.kapsam-item .kg-text{ color:var(--ink-soft); font-size:14.8px; }

/* masa table */
.masa-block{ margin-bottom:16px; }
.masa-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 20px; background:var(--bg); border:1px solid var(--line); border-bottom:none; border-radius:12px 12px 0 0; }
.masa-head .g-name{ font-weight:800; color:var(--navy); font-size:15px; }
.masa-head .g-count{ font-size:12px; font-weight:800; color:#fff; background:var(--accent); border-radius:999px; padding:3px 10px; }
.masa-chips{ display:flex; flex-wrap:wrap; gap:8px; padding:18px 20px; border:1px solid var(--line); border-top:none; border-radius:0 0 12px 12px; background:#fff; }
.chip{ background:var(--bg); border:1px solid var(--line); color:var(--ink-soft); font-size:13px; font-weight:600; padding:6px 12px; border-radius:999px; }

.totals-strip{ display:flex; gap:28px; flex-wrap:wrap; margin:26px 0 8px; padding:18px 22px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.totals-strip .t{ display:flex; flex-direction:column; }
.totals-strip .t b{ font-size:22px; color:var(--accent); }
.totals-strip .t span{ font-size:12px; color:#68788A; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }

/* two-col with aside */
.grid-2{ display:grid; grid-template-columns:1fr 320px; gap:36px; align-items:start; }
.aside-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-sm); }
.aside-card h4{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:#68788A; margin-bottom:14px; }
.aside-card ul li{ display:flex; gap:10px; padding:9px 0; border-top:1px solid var(--line-soft); font-size:14px; color:var(--ink-soft); }
.aside-card ul li:first-child{ border-top:none; }
.aside-card ul li b{ color:var(--navy); }
.aside-logo{ text-align:center; padding:10px 8px 20px; }
.aside-logo img{ max-height:120px; margin:0 auto; }

.list-check{ display:flex; flex-direction:column; gap:2px; }
.list-check li{ display:flex; gap:12px; padding:10px 0; border-top:1px solid var(--line-soft); font-size:14.8px; color:var(--ink-soft); }
.list-check li:first-child{ border-top:none; }
.list-check li .ic{ flex:none; width:20px; height:20px; border-radius:6px; background:var(--accent); color:#fff; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; margin-top:1px; }

/* numbers grid (about) */
.num-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.num-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px 18px; text-align:center; box-shadow:var(--shadow-sm); }
.num-card .n{ font-size:34px; font-weight:800; color:var(--navy); }
.num-card .l{ font-size:12.5px; color:#68788A; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-top:4px; }

/* contact table */
.contact-table{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.contact-table tr:not(:last-child) td{ border-bottom:1px solid var(--line); }
.contact-table td{ padding:14px 20px; font-size:14.5px; }
.contact-table td:first-child{ font-weight:800; color:var(--navy); width:230px; background:var(--bg); }
.contact-table td:last-child{ color:var(--ink-soft); }

/* prev/next */
.unit-pager{ display:flex; justify-content:space-between; gap:16px; margin-top:10px; flex-wrap:wrap; }
.pager-link{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 18px; font-weight:700; font-size:14px; box-shadow:var(--shadow-sm); flex:1; min-width:220px; }
.pager-link .arrow{ color:var(--accent); font-size:18px; }
.pager-link.next{ justify-content:flex-end; text-align:right; }

/* org chart image block */
.org-figure{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow-sm); }
.org-figure img{ border-radius:8px; }

/* ---------------------------------------------------------------------- FOOTER */
.site-footer{ background:var(--navy); color:#B9C4D0; padding:44px 0 26px; margin-top:20px; }
.site-footer .f-top{ display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap; padding-bottom:26px; border-bottom:1px solid rgba(255,255,255,.12); }
.site-footer .f-brand{ display:flex; align-items:center; gap:12px; }
.site-footer .f-brand img{ height:36px; }
.site-footer .f-brand b{ color:#fff; font-size:16px; }
.site-footer .f-links{ display:flex; gap:36px; flex-wrap:wrap; }
.site-footer .f-links h5{ color:#fff; font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; margin:0 0 10px; }
.site-footer .f-links a{ display:block; font-size:13.5px; color:#B9C4D0; padding:4px 0; }
.site-footer .f-links a:hover{ color:#fff; }
.site-footer .f-bottom{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:12.5px; padding-top:20px; color:#8FA0B2; }

/* ------------------------------------------------------------------ RESPONSIVE */
@media (max-width: 980px){
  .unit-grid{ grid-template-columns:repeat(2,1fr); }
  .grid-2{ grid-template-columns:1fr; }
  .num-grid{ grid-template-columns:repeat(2,1fr); }
  .kapsam-item{ grid-template-columns:1fr; gap:6px; }
}
@media (max-width: 760px){
  .main-nav{ display:none; position:absolute; top:100%; left:0; right:0; background:var(--navy); flex-direction:column; padding:10px; border-bottom:3px solid var(--gold); }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding:12px; }
  .has-drop .drop{ position:static; box-shadow:none; border:none; background:rgba(255,255,255,.04); margin-top:2px; display:none; }
  .has-drop.open .drop{ display:block; }
  .nav-toggle{ display:inline-block; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .unit-grid{ grid-template-columns:1fr; }
  .num-grid{ grid-template-columns:repeat(2,1fr); }
  .site-footer .f-top{ flex-direction:column; }
  .unit-hero .no{ display:none; }
}
@media (max-width: 480px){
  .hero .container{ padding-top:44px; padding-bottom:44px; }
  section{ padding:40px 0; }
  .brand .word{ font-size:14px; }
  .brand img{ height:34px; }
}
