/* ============================================================
   MAG-TRACK — Aerospace / Defence dark theme
   ============================================================ */
:root {
  --bg: #090B10;
  --bg-alt: #0D111A;
  --surface: rgba(16, 22, 35, 0.65);
  --border: rgba(0, 213, 255, 0.12);
  --cyan: #00D5FF;
  --cyan-dim: rgba(0, 213, 255, 0.15);
  --navy: #0A1A3A;
  --text: #E8EEF7;
  --text-muted: #8B9BB4;
  --white: #FFFFFF;
  --radius: 16px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  /* aliases used by platform slider (jak na bluebox) */
  --glass: rgba(16, 22, 35, 0.65);
  --glass-border: rgba(0, 213, 255, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #5ee7ff;
}

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 213, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 213, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridPulse 12s ease-in-out infinite;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(9, 11, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.brand-mag { color: var(--cyan); }
.brand-track { color: var(--white); }

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem !important;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--cyan) !important;
}
.btn-nav {
  border: 1px solid var(--cyan) !important;
  border-radius: 999px !important;
  color: var(--cyan) !important;
  padding: 0.35rem 1rem !important;
  margin-left: 0.25rem;
}
.btn-nav:hover {
  background: var(--cyan-dim) !important;
}

.navbar-toggler {
  border-color: var(--border);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,213,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.lang-btn.active {
  background: var(--cyan);
  color: var(--bg);
}
.lang-btn:hover:not(.active) {
  color: var(--cyan);
}

/* ---------- Sections ---------- */
.section-pad {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.section-text {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
}

/* Glass card */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  border-color: rgba(0, 213, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 213, 255, 0.08);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badge-szafir,
.badge-trl {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.badge-szafir {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 213, 255, 0.3);
}
.badge-trl {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
}
.text-cyan { color: var(--cyan); }

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 1rem;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
}

.btn-cyan {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-cyan:hover {
  background: #5ee7ff;
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 213, 255, 0.3);
}
.btn-outline-cyan {
  background: transparent;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  transition: background 0.2s, transform 0.2s;
}
.btn-outline-cyan:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}
/* Hero visual — radar + drone */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(0, 213, 255, 0.2);
  border-radius: 50%;
  animation: radarPulse 4s ease-out infinite;
}
.ring-1 { width: 220px; height: 220px; animation-delay: 0s; }
.ring-2 { width: 320px; height: 320px; animation-delay: 1.2s; }
.ring-3 { width: 420px; height: 420px; animation-delay: 2.4s; }

.hero-drone-wrap {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 213, 255, 0.15);
  border: 1px solid rgba(0, 213, 255, 0.2);
}

.hero-drone-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ---------- About ---------- */
.about-visual {
  overflow: hidden;
  position: relative;
}
.about-visual img {
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
}
.magnetic-map-img {
  min-height: 280px;
  object-fit: cover;
}
/* 
.about-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 0.85rem;
  color: var(--text-muted);
}
*/
.about-caption {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  padding: 0.65rem 1.1rem;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.65), transparent);
  font-size: 0.82rem;
  color: #ffffff;          /* jasny tekst – lepiej widać na niebie */
  text-align: right;
  max-width: 55%;          /* nie rozciąga się na całą szerokość */
  border-bottom-left-radius: 10px;
  line-height: 1.35;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.85rem;
}

/* ---------- Why cards ---------- */
.why-card {
  padding: 1.75rem;
  height: 100%;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.why-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Tech cards ---------- */
.tech-card {
  text-align: center;
  padding: 2rem 1.25rem;
  height: 100%;
  cursor: default;
}
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 213, 255, 0.12);
}
.tech-icon {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 213, 255, 0.3);
  border-radius: 12px;
  background: var(--cyan-dim);
}
.tech-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

/* ---------- Platforms ---------- */
.platform-tile {
  text-align: center;
  padding: 2.25rem 1.25rem;
  height: 100%;
}
.platform-tile:hover {
  transform: translateY(-6px);
}
.platform-tile h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.platform-tile p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/*
/* ---------- Research swiper ----------*/
/*.research-swiper {
  padding-bottom: 3rem;
}*/
.research-swiper {
    overflow: hidden;
}
/*.research-slide {
  overflow: hidden;
  border-radius: var(--radius);
}*/
.research-slide {
    width: 100%;
}
.research-swiper .swiper-slide {
    width: 100% !important;
}
.research-slide img {
  width: 50%;
  height: 420px;
  object-fit: cover;
}
.swiper-button-prev,
.swiper-button-next {
  color: var(--cyan) !important;
}
.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: var(--cyan) !important;
  opacity: 1;
}

*/

/* ---------- Detection ---------- */
/*.gui-frame {
  overflow: hidden;
  /* padding: 0.5rem; */
  padding: 0;                    /* usuwamy padding, żeby obrazek wypełniał całą ramkę */ 
}
.gui-frame img {
/* border-radius: 10px; */
 border-radius: inherit;        /* dziedziczy 16px z .glass-card */ 
/* border-radius: calc(var(--radius) - 0.5rem);  /* 16px - 8px = 8px */ */
  width: 100%;
  display: block;
 }




.gui-frame.glass-card {
  overflow: hidden;               /* kluczowe – przycina wszystko do zaokrąglenia */
  padding: 0;                     /* bez paddingu */
  border-radius: var(--radius);   /* 16px */
}

.gui-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;    /* usuwamy wszelkie zaokrąglenia z obrazka */
  /* obrazek ma być prostokątny – zaokrąglenie robi rodzic */
}

*/

.gui-frame.glass-card {
  overflow: hidden;
  padding: 6px;
  border-radius: var(--radius);
}

.gui-frame img {
  display: block;
  width: 100%;
  border-radius: 12px !important;
}
.det-card {
  padding: 1.25rem;
}
.det-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.det-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Architecture ---------- */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.arch-node {
  width: 100%;
  padding: 1.4rem 1.75rem;
  text-align: center;
}
.arch-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.arch-node h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.arch-node p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.arch-arrow {
  color: var(--cyan);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.6;
}

/* ---------- Stats ---------- */
.section-stats {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.stat-item {
  padding: 1.5rem 0.5rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stats-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Funding bar (efekt.jpg layout) */
.stats-funding-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
  padding: 1.5rem 0 0.5rem;
  flex-wrap: wrap;
}

.funding-logo-ncbr {
  flex: 0 0 auto;
  max-width: 330px;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}

.funding-logo-ncbr:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.funding-logo-ncbr img {
  width: 100%;
  max-height: 105px;
  object-fit: contain;
  display: block;
}

.funding-text {
  flex: 1 1 280px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.funding-link-szafir {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.funding-link-szafir:hover {
  color: #5ee7ff;
  border-bottom-color: rgba(0, 213, 255, 0.5);
}

.funding-logo-pl {
  flex: 0 0 auto;
  max-width: 270px;
}

.funding-logo-pl img {
  width: 100%;
  max-height: 108px;
  object-fit: contain;
  display: block;
}

@media (max-width: 767.98px) {
  .stats-funding-bar {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .funding-logo-ncbr,
  .funding-logo-pl {
    max-width: 240px;
    margin: 0 auto;
  }
  .funding-text {
    order: 0;
  }
}

/* ---------- Consortium ---------- */
.partner-card {
  text-align: center;
  padding: 2rem 1.25rem;
  height: 100%;
}
.partner-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.3;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 213, 255, 0.25);
  border-radius: 16px;
  background: var(--cyan-dim);
}
.partner-card h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.partner-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- News ---------- */
.news-swiper {
  padding-bottom: 2.5rem;
}
.news-card {
  padding: 1.75rem;
  height: 100%;
  min-height: 200px;
}
.news-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.news-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.news-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-box {
  padding: 2rem 2.5rem;
  display: inline-block;
  text-align: center;
}
.contact-box p {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.contact-box strong {
  color: var(--white);
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.site-footer h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.4rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--cyan);
}
.footer-hr {
  border-color: var(--border);
  margin: 2rem 0 1.25rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section-pad { padding: 4rem 0; }
  .hero-visual { min-height: 280px; margin-top: 2rem; }
  .ring-1 { width: 160px; height: 160px; }
  .ring-2 { width: 230px; height: 230px; }
  .ring-3 { width: 300px; height: 300px; }
  .research-slide img { height: 300px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 2.4rem; }
  .research-slide img { height: 240px; }
  .contact-box { padding: 1.5rem; }
}



/* ========== PLATFORM SLIDER ========== */
.platform-slider-wrap {
  max-width: 70%;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .platform-slider-wrap { max-width: 85%; }
}

@media (max-width: 575.98px) {
  .platform-slider-wrap { max-width: 100%; }
}

.platformSwiper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.platformSwiper .swiper-slide {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0c12;
}

.platformSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(9, 11, 16, 0.92));
  font-size: 0.85rem;
  color: var(--text-muted);
}

.platformSwiper .swiper-button-prev,
.platformSwiper .swiper-button-next {
  color: var(--cyan);
  width: 42px;
  height: 42px;
  background: rgba(9, 11, 16, 0.7);
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.platformSwiper .swiper-button-prev::after,
.platformSwiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.platformSwiper .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
}

.platformSwiper .swiper-pagination-bullet-active {
  background: var(--cyan);
  opacity: 1;
}

.platform-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.platform-label strong {
  color: var(--text);
}




.partner-logo {
  width: 120px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.5rem;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.partner-link:hover .partner-card {
  border-color: rgba(0, 213, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 213, 255, 0.12);
  transform: translateY(-4px);
}

.partner-link:hover h4 {
  color: var(--cyan);
}



/* ============================================================
   MAG-TRACK — Sekcja Publikacje
   ============================================================ */

.pub-card {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.pub-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 213, 255, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.pub-thumb-wrap {
  width: 100%;
  max-width: 140px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, border-color 0.3s;
}

.pub-card:hover .pub-thumb-wrap {
  border-color: var(--cyan);
  transform: scale(1.03);
}

.pub-thumb-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.pub-title-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.pub-authors {
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.pub-source {
  color: #8B9BB4;
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.85rem;
}

/* Wysoki kontrast tekstu streszczenia na ciemnym tle */
.pub-abstract {
  color: #E8EEF7; 
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--cyan);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.pub-abstract-label {
  color: var(--cyan);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* WERSJA 2: Osi czasu (Timeline) */
.pub-timeline {
  position: relative;
  padding-left: 2rem;
}
.pub-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}
.pub-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.pub-timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* Responsive */
@media (max-width: 767.98px) {
  .pub-thumb-wrap {
    max-width: 100px;
    margin-bottom: 1rem;
  }
}