/*
  EE4FUTURE Proje Web Sitesi — Ortak Stil
  Annex 18 uyumlu: Renk, Font, Bileşen kuralları
  ================================================
  Renkler   : #3f81c3 (Interreg mavi), #000000, #e1e1e1 (Annex 18 §Colours)
  Font genel : Trebuchet MS (Annex 18 §Templates Typography)
  Font funding: Arial  (Annex 18 §Disclaimers — funding statement)
*/

/* ── DEĞIŞKENLER ─────────────────────────────────── */
:root {
  --blue:        #3f81c3;
  --blue-dark:   #2d6192;
  --blue-light:  #e8f1f9;
  --black:       #000000;
  --grey:        #e1e1e1;
  --grey-light:  #f5f6f7;
  --white:       #ffffff;
  --text:        #1a1a1a;
  --text-mid:    #444444;
  --text-light:  #666666;
  --eu-blue:     #003399;
  --eu-yellow:   #FFCC00;
  --max-w:       1020px;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Trebuchet MS — Annex 18 §Typography */
body {
  font-family: 'Trebuchet MS', Trebuchet, Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

/* ── YARDIMCI ───────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Arial — Annex 18: funding statement font */
.arial { font-family: Arial, Helvetica, sans-serif; }

/* ── ÜST ŞERİT ──────────────────────────────────── */
.top-stripe {
  height: 6px;
  background: linear-gradient(90deg,
    #c62828 0%,   #c62828 14.28%,
    #e65100 14.28%,#e65100 28.57%,
    #f9a825 28.57%,#f9a825 42.85%,
    #2e7d32 42.85%,#2e7d32 57.14%,
    #1565c0 57.14%,#1565c0 71.42%,
    #4527a0 71.42%,#4527a0 85.71%,
    #3f81c3 85.71%,#3f81c3 100%
  );
}

/* ── HEADER ─────────────────────────────────────── */
/* Programme logo sol üstte, scroll gerekmeden — Annex 18 §Website - logotype */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Programme logo */
.prog-logo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
}

.prog-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.prog-logo-top { display: flex; align-items: center; gap: 12px; }

.interreg-wrap { display: flex; flex-direction: column; }

.interreg-arch {
  display: flex;
  gap: 2px;
  height: 7px;
  margin-bottom: 3px;
}

.arch-seg { flex: 1; border-radius: 3px 3px 0 0; }

/* Arial — Annex 18 */
.interreg-wordmark {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
}

.eu-block { display: flex; align-items: center; gap: 8px; }

/* Arial — Annex 18 */
.cofund-label {
  font-family: Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
}

/* Arial — Annex 18 */
.ipa-label {
  font-family: Arial, sans-serif;
  font-size: 11.5px;
  color: var(--blue);
  line-height: 1;
}
.ipa-label strong { font-weight: 900; font-size: 13px; }

/* Proje kimliği */
.project-badge { text-align: right; }

.project-acronym {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Arial */
.project-ref {
  font-family: Arial, sans-serif;
  font-size: 10.5px;
  color: var(--text-light);
}

/* ── NAVİGASYON ─────────────────────────────────── */
.site-nav {
  background: var(--blue);
}

.site-nav .inner { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }

.nav-item {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 11px 18px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-item:hover { background: var(--blue-dark); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.18); color: #fff; }
.nav-item:last-child { border-right: none; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: var(--blue);
  padding: 52px 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -80px;
  width: 340px; height: 340px;
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; padding-bottom: 44px; }

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 660px;
}

.hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-bottom: 22px;
  max-width: 620px;
}

/* Arial */
.hero-meta {
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
}
.hero-meta strong { color: rgba(255,255,255,0.75); }

/* Sayfa başlığı hero (alt sayfalar için daha küçük) */
.page-hero {
  background: var(--blue);
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -40px; top: -60px;
  width: 250px; height: 250px;
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .hero-tag { margin-bottom: 10px; }
.page-hero h1 { max-width: 100%; margin-bottom: 6px; }

/* ── KPI BAR ─────────────────────────────────────── */
.kpi-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 2px solid var(--blue);
  border-top: none;
}

.kpi-cell {
  padding: 20px 18px;
  text-align: center;
  border-right: 1px solid var(--grey);
}
.kpi-cell:last-child { border-right: none; }

.kpi-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

/* Arial */
.kpi-lbl {
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── MAIN CONTENT ────────────────────────────────── */
main { padding: 52px 0 28px; }

.section { margin-bottom: 48px; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.sec-bar {
  width: 4px;
  height: 32px;
  background: var(--blue);
  flex-shrink: 0;
  margin-right: 13px;
}

.sec-title { font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); }

.sec-divider {
  height: 1px;
  background: var(--grey);
  flex: 1;
  margin-left: 13px;
}

.lead-text { font-size: 0.97rem; color: var(--text); line-height: 1.85; }
.lead-text strong { color: var(--blue-dark); font-weight: 700; }
.lead-text + .lead-text { margin-top: 14px; }

/* Listeler */
.obj-list { list-style: none; border: 1px solid var(--grey); }

.obj-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--grey);
  font-size: 0.92rem;
  line-height: 1.65;
  background: var(--white);
  transition: background 0.15s;
}
.obj-list li:last-child { border-bottom: none; }
.obj-list li:hover { background: var(--grey-light); }

.obj-num {
  width: 24px; height: 24px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700; font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Grid */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Kart */
.card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-top: 3px solid var(--blue);
  padding: 24px;
}

/* Arial */
.card-tag {
  font-family: Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 7px;
}

.card-title { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 9px; }
.card-body { font-size: 0.87rem; color: var(--text-mid); line-height: 1.7; }
.card-body strong { color: var(--text); }

/* Bilgi kutusu */
.info-box {
  background: var(--blue-light);
  border: 1px solid var(--blue);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.75;
}
.info-box strong { color: var(--blue-dark); }

/* Uyarı kutusu (kırmızımsı) */
.warn-box {
  background: #fff3f3;
  border: 1px solid #f0b0b0;
  border-left: 4px solid #c0392b;
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ── ORTAKLAR ────────────────────────────────────── */
.partners-row { display: flex; gap: 18px; flex-wrap: wrap; }

.partner-card {
  flex: 1; min-width: 260px;
  background: var(--white);
  border: 1px solid var(--grey);
  border-left: 4px solid var(--blue);
  padding: 24px;
}

.p-flag { font-size: 1.6rem; margin-bottom: 10px; line-height: 1; }

/* Arial */
.p-role {
  font-family: Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 5px;
}

.p-name { font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.4; }
.p-loc { font-size: 0.81rem; color: var(--text-light); }

/* ── BÜTÇE TABLOSU ───────────────────────────────── */
.budget-table { width: 100%; border-collapse: collapse; border: 1px solid var(--grey); }

.budget-table th {
  background: var(--blue);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 11px 16px;
  text-align: left;
}

.budget-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--grey);
  font-size: 0.91rem;
  vertical-align: middle;
}
.budget-table tr:last-child td { border-bottom: none; }
.budget-table tr:nth-child(even) td { background: var(--grey-light); }
.budget-amount { font-weight: 700; color: var(--blue-dark); font-size: 1rem; }

/* ── İHALELER ────────────────────────────────────── */
.tender-list { display: flex; flex-direction: column; gap: 12px; }

.tender-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--grey);
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
}

.tender-title { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }

/* Arial */
.tender-ref { font-family: Arial, sans-serif; font-size: 0.77rem; color: var(--text-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--blue-dark); color: #fff; }

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn svg { flex-shrink: 0; }

/* Geri butonu */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  transition: color 0.2s;
}
.back-btn:hover { color: #fff; }
.back-btn svg { flex-shrink: 0; }

/* ── HABERLER ────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--grey);
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  text-decoration: none;
  transition: background 0.15s;
}
.news-card:hover { background: var(--grey-light); }

/* Arial */
.news-date {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  margin-top: 3px;
}

.news-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.news-excerpt { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; }

/* ── BELGELER ────────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: 10px; }

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--grey);
  padding: 16px 20px;
}

.doc-icon {
  width: 38px; height: 38px;
  background: var(--blue-light);
  border: 1px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.doc-info { flex: 1; }
.doc-name { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }

/* Arial */
.doc-meta { font-family: Arial, sans-serif; font-size: 0.75rem; color: var(--text-light); }

/* ── SON TESLİM TARİHİ BLOĞU ─────────────────────── */
.deadline-box {
  background: var(--blue);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.deadline-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-bottom: 5px; font-family: Arial, sans-serif; }
.deadline-text { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.deadline-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.deadline-date-block { text-align: center; flex-shrink: 0; }
.deadline-day { font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
.deadline-month { font-family: Arial, sans-serif; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.8); margin-top: 2px; }
.deadline-time { font-family: Arial, sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ── İHALE DETAY İÇERİK ──────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--grey); border: 1px solid var(--grey); margin-bottom: 28px; }

.detail-cell { background: var(--white); padding: 18px 20px; }

/* Arial */
.detail-label { font-family: Arial, sans-serif; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 5px; }
.detail-value { font-size: 0.93rem; font-weight: 700; color: var(--text); }
.detail-sub { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }

/* Adres bloğu */
.address-block { background: var(--grey-light); border: 1px solid var(--grey); padding: 20px 22px; margin-bottom: 20px; }
.address-block h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
.address-row { display: flex; gap: 12px; margin-bottom: 10px; align-items: flex-start; font-size: 0.9rem; }
.address-row:last-child { margin-bottom: 0; }
.address-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.address-row a { color: var(--blue); }

/* ── HABER DETAY ─────────────────────────────────── */
.article-body { font-size: 0.97rem; line-height: 1.9; color: var(--text); }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); margin: 28px 0 10px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 7px; }
.article-body strong { color: var(--blue-dark); }

/* ── DISCLAIMER KUTUSU ───────────────────────────── */
/* Annex 18 §Disclaimers — zorunlu */
.disclaimer-box {
  background: var(--grey-light);
  border: 1px solid var(--grey);
  border-left: 4px solid var(--blue);
  padding: 17px 22px;
  margin-top: 20px;
}

/* Arial — Annex 18 */
.disclaimer-box p {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ── FOOTER ──────────────────────────────────────── */
footer { background: var(--blue); margin-top: 32px; }

/* Annex 18 §Disclaimers — web siteleri için zorunlu metin */
.footer-disclaimer {
  background: var(--blue-dark);
  padding: 16px 0;
  text-align: center;
}

/* Arial — Annex 18 */
.footer-disclaimer p {
  font-family: Arial, sans-serif;
  font-size: 0.79rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  max-width: 860px;
  margin: 0 auto;
}

.footer-main { padding: 32px 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: start;
}

.footer-logo-col {}

.footer-interreg {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.footer-interreg-text {
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.03em;
}

.footer-cofund {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 4px 8px;
  border-radius: 2px;
}

/* Arial */
.footer-cofund-label {
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.footer-ipa {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}
.footer-ipa strong { color: #fff; font-size: 13px; }

/* Arial */
.footer-info {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
}
.footer-info strong { color: rgba(255,255,255,0.9); }

/* Arial */
.footer-contact {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  text-align: right;
}
.footer-contact strong { color: rgba(255,255,255,0.9); }
.footer-contact a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.17); padding: 13px 0; text-align: center; }

/* Arial */
.footer-bottom p { font-family: Arial, sans-serif; font-size: 0.71rem; color: rgba(255,255,255,0.42); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .kpi-bar { grid-template-columns: 1fr; }
  .kpi-cell { border-right: none; border-bottom: 1px solid var(--grey); }
  .kpi-cell:last-child { border-bottom: none; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .tender-row { flex-direction: column; align-items: flex-start; }
  .doc-row { flex-direction: column; align-items: flex-start; }
  .deadline-box { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-contact { text-align: left; }
  .project-badge { display: none; }
  .site-nav { overflow-x: auto; }
  .site-nav .inner { flex-wrap: nowrap; }
  .news-card { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.3rem; }
  .site-header { position: relative; }
  .container { padding: 0 16px; }
}
