:root{
  --bg1:#071a33;        /* midnight blue */
  --bg2:#0b2a4f;        /* deeper blue */
  --accent:#7a1f1f;     /* FAIMA burgundy (ajustăm după hex-ul tău) */
  --accent2:#b03a2e;    /* burgundy mai deschis pt hover */
  --text:#f3f6ff;
  --muted:#c7d2ea;
  --line:rgba(255,255,255,.16);
  --card:rgba(255,255,255,.06);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(176,58,46,.22), transparent 55%),
    radial-gradient(820px 520px at 85% 18%, rgba(140,180,255,.16), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{color:inherit;text-decoration:none}
.wrap{max-width:1100px;margin:0 auto;padding:0 18px}

/* TOP BAR */
.topbar{
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid var(--line);
  background:rgba(7,26,51,.72);
  backdrop-filter:blur(10px);
}
.topbarInner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:12px 0;
}

.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px}
.brandLogo{
  width:34px; height:34px; object-fit:contain;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
}
.brandText{opacity:.95}

.nav{display:flex; gap:10px; flex-wrap:wrap; justify-content:center}
.navlink{
  padding:8px 12px; border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  transition:background .15s ease, transform .15s ease, border-color .15s ease, color .15s ease;
}
.navlink:hover{
  background:rgba(176,58,46,.18);
  border-color:rgba(176,58,46,.35);
  color:var(--text);
  transform:translateY(-1px);
}
.navlink.active{
  background:rgba(122,31,31,.22);
  border:1px solid rgba(122,31,31,.45);
  color:var(--text);
}

/* SECTIONS */
.hero{padding:34px 0 18px; text-align:center}
.hero h1{margin:10px 0 8px; font-size:clamp(1.9rem,2vw + 1rem,3.2rem); line-height:1.05}
.hero p{margin:0 auto; max-width:75ch; color:var(--muted); line-height:1.6}

.section{
  margin:26px 0; padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.04);
}

.btnGrid{display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin:18px 0 6px}
@media (max-width: 980px){ .btnGrid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 520px){ .btnGrid{grid-template-columns:1fr} }

.btnCard{
  display:flex; align-items:center; justify-content:center;
  padding:14px 12px; border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  color:var(--text); font-weight:650;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btnCard:hover{
  transform:translateY(-2px);
  background:rgba(20,73,80,.74);
  border-color:rgba(246,153,159,.84);
}

.footer{margin-top:40px;border-top:1px solid var(--line);padding:22px 0;color:var(--muted)}
.footerrow{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.muted{color:var(--muted)}


/* ========= MARQUEE CARDS (HOME) ========= */

:root{
  --accent: #9A1C10;               /* culoarea FAIMA */
  --gap: 16px;
  --card-radius: 18px;
}

/* containerul secțiunii (poți pune într-un <section>) */
.cardsMarquee {
  margin-top: 18px;
}

/* “geamul” prin care se vede rândul */
.cardsMarqueeViewport{
  overflow: hidden;
  width: 100%;
  padding: 6px 0; /* un pic de aer pt border */
}

/* track-ul care se mișcă */
.cardsMarqueeTrack{
  display: flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
  animation: cardsMarquee 84s linear infinite; /* ~30% mai lent */
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

/* pauză când dai hover (opțional, dar e super nice) */
.cardsMarqueeViewport:hover .cardsMarqueeTrack{
  animation-play-state: paused;
}

/* fiecare card = link */
.mCard{
  flex: 0 0 calc((100% - 4 * var(--gap)) / 5); /* 5 carduri vizibile */
  min-width: 220px;
  max-width: 260px;

  border-radius: var(--card-radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;

  /* IMPORTANT: nu pune filter/backdrop-filter pe card dacă vrei text super crisp */
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

/* imagine */
.mCardImg{
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* text */
.mCardBody{
  padding: 14px 14px 16px;
}
.mCardTitle{
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}
.mCardDesc{
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,.75);
}

/* ========= BORDER ANIMAT “PLIMBĂTOR” ========= */
/* se vede frumos pe hover și/sau pe carduri (poți alege) */
.mCard::before{
  content:"";
  position:absolute;
  inset: -2px;
  border-radius: calc(var(--card-radius) + 2px);
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,.0),
    rgba(255,255,255,.7),
    rgba(154,28,16,.85),
    rgba(255,255,255,.0)
  );
  opacity: 0;
  filter: blur(.2px);
  animation: borderSpin 3.2s linear infinite;
  pointer-events: none;
}

.mCard::after{
  /* “taie” interiorul ca să rămână doar chenarul */
  content:"";
  position:absolute;
  inset: 1px;
  border-radius: calc(var(--card-radius) - 1px);
  background: rgba(8, 18, 35, .55); /* fundal interior, adaptează dacă vrei */
  pointer-events: none;
  opacity: 0; /* apare doar când border e activ */
}

/* când faci hover, apare border-ul animat */
.mCard:hover::before,
.mCard:hover::after{
  opacity: 1;
}

/* ridicare subtilă */
.mCard:hover{
  transform: translate3d(0,-2px,0);
  border-color: rgba(255,255,255,.22);
}

/* keyframes */
@keyframes cardsMarquee{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); } /* merge dacă dublăm lista în HTML */
}

@keyframes borderSpin{
  to { transform: rotate(360deg); }
}

/* text rendering (ajută) */
body{
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* responsive: pe ecrane mici vezi 2-3 carduri, dar fără să se strice */
@media (max-width: 1000px){
  .mCard{ flex-basis: calc((100% - 2 * var(--gap)) / 3); }
}
@media (max-width: 650px){
  .mCard{ flex-basis: calc((100% - 1 * var(--gap)) / 2); }
  .mCardImg{ height: 120px; }
}


/* ===== ORARII: scena interactiva ===== */
.scheduleWrap { margin: 28px 0 40px; }

.scheduleScene{
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;

  /* imaginea ta */
  background: url("/assets/img/scena.png") center / cover no-repeat;

  /* mic frame ca sa se lege cu stilul site-ului */
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}

/* zone clickabile */
.hotspot{
  position:absolute;
  display:block;
  border-radius: 16px;
  cursor: pointer;

  /* fara blur – doar highlight subtil */
  background: rgba(255,255,255,0);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.hotspot:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(120,220,255,.35), 0 10px 28px rgba(0,0,0,.25);
}

/* etichete */
.hsLabel{
  position:absolute;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  color: #fff;

  background: rgba(5, 20, 35, .62);
  border: 1px solid rgba(140,230,255,.25);
  backdrop-filter: blur(6px);
  pointer-events: none; /* click-ul ramane pe hotspot */
  user-select: none;
}

/* badge central (optional) */
.centerBadge{
  position:absolute;
  left: 51%;
  top: 62%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #fff;
  background: rgba(5, 20, 35, .55);
  border: 1px solid rgba(140,230,255,.28);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* LISTA */
.scheduleList{
  width: min(1100px, 100%);
  margin: 18px auto 0;
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10, 25, 45, .35);
}
.scheduleList h2{ margin: 0 0 10px; font-size: 18px; }
.scheduleList ul{ margin: 0; padding-left: 18px; }
.scheduleList li{ margin: 6px 0; }
.scheduleList a{ text-decoration: underline; }
.scheduleList .note{ opacity:.85; margin-top: 12px; font-size: 14px; }

/* ===== Hotspot positions (procente pt scena 1344x768) ===== */
/* Ordine: stanga -> dreapta: 9 panouri */
.hs1{ left: 2.68%;  top: 14.32%; width: 9.30%; height: 43.62%; }
.hs2{ left: 14.21%; top: 20.05%; width: 8.48%; height: 37.11%; }
.hs3{ left: 24.93%; top: 23.83%; width: 8.18%; height: 32.81%; }

/* cele 2 panouri “de sub” lauri (estimate, dar merg bine pt click) */
.hs4{ left: 35.64%; top: 24.74%; width: 8.18%; height: 31.90%; }
.hs5{ left: 46.35%; top: 25.39%; width: 8.18%; height: 31.25%; }

.hs6{ left: 57.14%; top: 25.91%; width: 8.41%; height: 30.60%; }
.hs7{ left: 68.01%; top: 23.70%; width: 8.18%; height: 33.07%; }
.hs8{ left: 78.35%; top: 19.92%; width: 8.18%; height: 37.37%; }
.hs9{ left: 88.47%; top: 13.54%; width: 9.00%; height: 44.53%; }

/* Etichetele le punem aproape de partea de jos a fiecarui panou */
.l1{ left: 4.44%;  top: 7.0%; }
.l2{ left: 14.99%; top: 12.0%; }
.l3{ left: 26.20%; top: 14.0%; }
.l4{ left: 36.60%; top: 16.0%; }
.l5{ left: 47.80%; top: 19.0%; }
.l6{ left: 57.30%; top: 16.0%; }
.l7{ left: 68.20%; top: 14.0%; }
.l8{ left: 78.60%; top: 12.0%; }
.l9{ left: 89.10%; top: 7.0%; }


/* Mobile: pe ecrane mici, ascundem hotspots si lasam lista (ca sa nu dea click aiurea) */
@media (max-width: 300px){
  .hotspot, .hsLabel, .centerBadge { display:none; }
  .scheduleScene{ border-radius: 14px; }
}
/* Mobile: micșorăm etichetele (Anul 1… IBM) + badge-ul FAIMA */
@media (max-width: 520px){
  .hsLabel{
    font-size: 8px;          /* sau 11px dacă vrei și mai mic */
    padding: 6px 10px;
    border-radius: 12px;
    letter-spacing: .2px;
    
        transform: translateX(-8px);
  }

  .centerBadge{
    font-size: 8px;          /* FAIMA mai mic */
    padding: 6px 12px;
    transform: translateX(-50%) scale(.9);  /* micșorare fără să-ți strice poziția */
      top: auto ;
     bottom: 70px; 
  }
}

/* Extra small: și mai mic, ca să nu “mănânce” laurii */
@media (max-width: 380px){
  .hsLabel{
    font-size: 8px;
    padding: 5px 9px;
  }
  .centerBadge{
    font-size: 8px;
    padding: 5px 10px;
    transform: translateX(-50%) scale(.82);
      top: auto ;
     bottom: 70px; 
  }
}

/* Sub 300px rămâne cum ai decis tu: ascuns */
@media (max-width: 300px){
  .hotspot, .hsLabel, .centerBadge { display:none; }
  .scheduleScene{ border-radius: 14px; }
}



.hsLabel{
  /* ...ce ai deja... */
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}



/* asigură-te că wrapperul imaginii e position:relative */
.sceneWrap{
  position: relative;
}

/* citatul mare, jos, ca “LED screen” */
.sceneQuote{
  position: absolute;
  left: 50%;
  bottom: 2px;              /* ajustezi fin */
  transform: translateX(-50%);
  width: min(92%, 1100px);

  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;

  font-size: clamp(18px, 1.3vw, 36px);
  line-height: 1.1;

  color: rgba(255,255,255,.95);
  text-shadow:
    0 2px 12px rgba(0,0,0,.55),
    0 0 18px rgba(120, 220, 255, .22);

  padding: 10px 14px;
  border-radius: 14px;

  /* “sticlă” discretă ca să nu se piardă pe fundal */
  background: linear-gradient(
    to bottom,
    rgba(10,20,35,.20),
    rgba(10,20,35,.05)
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  pointer-events: none; /* IMPORTANT: să nu strice click-ul pe ferestre */
}

/* pe mobil, îl ridicăm puțin și îl facem mai compact */
@media (max-width: 520px){
  .sceneQuote{
    bottom: -7px;
    font-size: clamp(14px, 1.0vw, 22px);
    letter-spacing: .5px;
  }
}
.sceneQuote.is-fading{
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

/* ===== DE CE FAIMA (Hero + Pills + Connectors + Zebra + Recap) ===== */

.faimaHero{
  position: relative;
  margin: 26px 0 18px;
}

/* SVG overlay (covers image + pills) */
.faimaConnect{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index: 6;
}

.faimaPath{
  fill: none;
  stroke: rgba(200, 90, 255, .32);
  stroke-width: 1.6;
  stroke-dasharray: 6 10;
  animation: dashMove 2.4s linear infinite;
}

@keyframes dashMove{
  to { stroke-dashoffset: -100; }
}

.faimaDot{
  fill: rgba(140,230,255,.95);
  filter: drop-shadow(0 0 10px rgba(140,230,255,.55));
}

/* Hero media */
.faimaHeroMedia{
  position: relative;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.faimaHeroMedia img{
  width: 100%;
  height: auto;
  display:block;
}

.faimaHeroOverlay{
  position:absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  padding: 16px 16px;
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(8,18,35,.62), rgba(8,18,35,.18));
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}
.faimaHeroOverlay h1{
  margin:0 0 6px;
  font-size: clamp(1.7rem, 2vw + 1rem, 3rem);
}
.faimaHeroOverlay .lead{
  margin:0;
  max-width: 78ch;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}

/* Pills */
.faimaPillsWrap{
  position: relative;
  z-index: 3;
  display:grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.faimaPillsCol{ display:flex; flex-direction:column; gap:10px; }

.faimaPill{
  display:block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  text-decoration:none;
  line-height: 1.25;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.faimaPill:hover{
  transform: translateY(-1px);
  background: rgba(176,58,46,.14);
  border-color: rgba(176,58,46,.35);
}
.faimaPill:focus-visible{
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 3px;
}

.faimaPillsCenter{
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.faimaCenterHint{
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 650;
  color: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* Sections */
.faimaSection{
  margin: 22px 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* Zebra */
.zebra{ display:flex; flex-direction:column; gap:18px; margin-top: 12px; }

.zebraRow{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items:center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,25,45,.28);
}
.zebraRow.reverse{ grid-template-columns: 0.9fr 1.1fr; }
.zebraRow.reverse .zebraText{ order:2; }
.zebraRow.reverse .zebraMedia{ order:1; }

.zebraText h3{ margin: 0 0 8px; }
.zebraText .lead{ margin: 0 0 10px; color: rgba(255,255,255,.80); line-height: 1.55; }
.zebraText ul{ margin:0; padding-left: 18px; }
.zebraText li{ margin: 8px 0; color: rgba(255,255,255,.88); }

.zebraMedia{
  width:100%;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.zebraMedia img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Recap grid */
.recapGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.recapCard{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-weight: 650;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.recapCard:hover{
  transform: translateY(-2px);
  background: rgba(20,73,80,.50);
  border-color: rgba(140,230,255,.25);
}

/* Responsive */
@media (max-width: 980px){
  .faimaPillsWrap{ grid-template-columns: 1fr; }
  .faimaPillsCenter{ display:none; }
  .zebraRow, .zebraRow.reverse{ grid-template-columns: 1fr; }
  .zebraRow.reverse .zebraText{ order:1; }
  .zebraRow.reverse .zebraMedia{ order:2; }
  .recapGrid{ grid-template-columns: 1fr; }
  .faimaConnect{ display:none; } /* optional: hide connectors on mobile */
}