:root{
--surface:#ffffff;
--muted:#6b7280;
--accent:#0ea5a4;
--maxw:1080px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
color:#0b1220;
background:#f9fafb;
}
.wrap{width:calc(100% - 2rem);max-width:var(--maxw);margin:0 auto;padding:1rem;}
.site-header{background:#0f1720;color:#fff;}
.header-inner{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem 0;}
.brand h1{font-size:1.25rem;margin:0;font-weight:700}
.brand .role{margin:0;font-size:0.9rem;opacity:0.9}
.site-nav{display:flex;gap:1rem;align-items:center;}
.site-nav a{color:rgba(255,255,255,0.95);text-decoration:none;padding:0.5rem 0.6rem;border-radius:6px;font-weight:600}
.site-nav a:hover{background:rgba(255,255,255,0.06)}
.nav-toggle{display:none;background:transparent;border:0;color:inherit;font-size:1.25rem}
.hero{padding:2rem 0;text-align:center}
.hero h2{font-size:1.5rem;margin:0 0.5rem;color:#0b1220}
.lead{color:var(--muted);margin-top:0.5rem}
.card{background:var(--surface);border-radius:12px;padding:1.25rem;margin-top:1.25rem;box-shadow:0 6px 18px rgba(11,17,32,0.06)}
.card h3{margin-top:0;margin-bottom:0.5rem}
.links-list{list-style:disc;margin-left:1.25rem}
.links-list a{color:var(--accent)}
.courses-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-top:1rem}
.course-card{background:#ffffff;border:1px solid #e5e7eb;border-radius:10px;padding:1rem;box-shadow:0 2px 8px rgba(0,0,0,0.05);transition:transform 0.15s ease, box-shadow 0.15s ease;}
.course-card:hover{transform:translateY(-4px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.course-card h4{margin-top:0;margin-bottom:0.5rem;color:#0f1720}
.course-card p{margin:0.2rem 0;color:#333;font-size:0.95rem}
.course-card a{display:inline-block;margin-top:0.5rem;color:var(--accent);font-weight:600;text-decoration:none}
.course-card a:hover{text-decoration:underline}
.site-footer{margin-top:2rem;padding:1rem 0;text-align:center;color:var(--muted)}
@media (max-width:880px){.header-inner{flex-wrap:wrap;align-items:flex-start}.site-nav{display:none}.nav-toggle{display:inline-block}.site-nav.open{display:flex;flex-direction:column;width:100%;gap:0.25rem;margin-top:0.5rem}.site-nav.open a{padding:0.5rem;border-radius:8px;background:rgba(255,255,255,0.04)}}
@media (max-width:520px){.hero h2{font-size:1.25rem}.brand h1{font-size:1rem}}
.course-card {
  position: relative; /* needed for the ribbon */
}

.semester-ribbon {
  position: absolute;
  top: 0.75rem;
  right: -0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.specialization {
  margin-top: 2rem;
}

.specialization h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.5rem;
}

.course-card h5 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #0f1720;
}
.semester-ribbon {
  position: absolute;
  top: 0.75rem;
  right: -0.5rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Semester-specific colors */
.semester-1 {
  background: #0ea5a4; /* teal for Semester 1 */
}

.semester-2 {
  background: #f59e0b; /* orange for Semester 2 */
}
.teaching-note {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: #fef3f2;
  border-left: 4px solid #dc2626; /* red accent for warning */
  color: #b91c1c;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.course-card {
  position: relative;
  padding-top: 2rem; /* space for the top-right link */
}

.course-link {
  text-align:right;display:block!important;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

.course-link:hover {
  color: #0c9488; /* slightly darker accent on hover */
  transform: translateX(4px);
}.header-contact {
  margin-left: 1rem;
}

.email-link {
  color: #f1f5f9;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.email-link:hover {
  color: var(--accent);
}
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pub-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #fefefe;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  color: #0f1720;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  color: var(--accent);
}

/* Coordination / Thesis page special styles */

.rules-box, .info-box, .stages-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.rules-box h4, .info-box h4, .stages-box h4 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 0.5rem;
}

.rules-box ul, .info-box ul, .stages-box ul {
  margin-left: 1.25rem;
}

.stages-list li {
  margin: 0.7rem 0;
}

.coord-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Spațiu și evidențiere pentru <li> din rules-box și info-box */
.rules-box li,
.info-box li {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* Stil pentru link-uri cu icon în față */
a.file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background: #f0fdfa;
  transition: background 0.2s ease, transform 0.2s ease;
}

a.file-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

a.file-link:hover {
  background: #ccfbf1;
  transform: translateX(3px);
}

.resources-list {
  display: grid;
  
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.resources-list li {
  display: flex;justify-content:space-between;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.resources-list svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}

.resources-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.resources-list a:hover {
  text-decoration: underline;
}

.resources-list .label {
  font-weight: 500;
  color: #374151;
}
.resources-list .link{min-width:70px}

ul{list-style:none;padding:0}
.stages-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stage-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  background: #fff;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.stage-title {
  font-size: 1rem;
}

.stage-deadline {
  font-size: 0.9rem;
  opacity: 0.9;
}

.stage-body {
  padding: 0.8rem 1rem;
  background: #f9fafb;
}

.stage-body p {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #374151;
}

.stage-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.stage-body li {
  margin-bottom: 0.4rem;
}

.publications {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.publications h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 3px solid #444;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.publication-list {
  list-style: none;
  counter-reset: pub-counter;
  padding: 0;
  margin: 0;
}

.publication-list li {
  background: #fafafa;
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
  border-left: 5px solid #0ea5a4; /* mov/albastru accent */
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  counter-increment: pub-counter;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.publication-list li::before {
  content: counter(pub-counter) ".";
  font-weight: bold;
  position: absolute;
  left: -2.6rem;
  top: 1.2rem;
  font-size: 1.2rem;
  color: #0ea5a4;
}

.publication-list .authors {
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}

.publication-list .title,.publication-list em {
  display: block;
  font-style: italic;
  color: #222;
  margin: 0.4rem 0;
}

.publication-list .details {
  font-size: 0.9rem;
  color: #555;
}
.publication-list li {
    margin-left: 2em;
}

.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.event-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.event-card .year {
  font-size: 1.5rem;
  color: #2c3e50;
  border-bottom: 2px solid #0ea5a4;
  display: inline-block;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.event-info p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #333;
}

.event-info .general_info {
  font-weight: bold;
  color: #2c3e50;
}

.event-info a {
  display: inline-block;
  margin-top: 8px;
  color: #0ea5a4;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.event-info a:hover {
  color: #1d6fa5;
}

.books {
  margin: 30px 0;
}

.year-block {
  margin-bottom: 40px;
}

.year {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 20px;
  border-left: 4px solid #0ea5a4;
  padding-left: 10px;
}

.book-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.book-info p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #333;
}

.book-info .titlu {
  font-weight: bold;
  font-size: 1.1rem;
  color: #0ea5a4;
}

.book-info .autori {
  font-style: italic;
  color: #555;
}

.book-cover img.thumb {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: #f8fafc;
  text-align: center;
}

.error-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 500px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.error-title {
  font-size: 3.5rem;
  color: #e74c3c;
  margin: 0;
}

.error-subtitle {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.error-message {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.error-message a {
  color: #3498db;
  font-weight: 500;
  text-decoration: none;
}

.error-message a:hover {
  text-decoration: underline;
}

.btn-home {
  display: inline-block;
  padding: 12px 24px;
  background: #3498db;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition:
}
.year-block {}

.year-block {
    display: flex;
    flex-wrap: wrap;
}

h3.year {
    width: 100%;
}

.book-card {
    width: calc(50% - 20px);
    margin: 0 10px;
}

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.resource-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.resource-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #2c3e50;
  border-bottom: 2px solid #0ea5a4;
  display: inline-block;
  padding-bottom: 4px;
}

.resource-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-card li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.resource-card li a {
  text-decoration: none;
  color: #0ea5a4;
  font-weight: 500;
  margin-left: 8px;
  transition: color 0.2s ease;
}

.resource-card li a:hover {
  color: #1d6fa5;
}

.icon-link {
  width: 16px;
  height: 16px;
  fill: #0ea5a4;
  flex-shrink: 0;
}

.resource-card.full-width {
  grid-column: 1 / -1;
}

.teaching-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.align-center {
  text-align: center;
  margin-bottom: 30px;
  color: #0ea5a4;
}

.teaching-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.teaching-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaching-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.teaching-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #0ea5a4;
  border-bottom: 2px solid #0ea5a4;
  padding-bottom: 5px;
  display: inline-block;
}

.teaching-card ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #333;
}

.teaching-card ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}


/* Responsive */
@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; align-items: flex-start; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .site-nav.open { display:flex; flex-direction: column; width:100%; gap:0.25rem; margin-top:0.5rem; }
  .site-nav.open a { padding:0.5rem; border-radius:8px; background:rgba(255,255,255,0.04); }
  .book-card { grid-template-columns: 1fr; width: 100%; margin: 0; }
}
@media (max-width: 520px) {
  .hero h2 { font-size: 1.25rem; }
  .brand h1 { font-size: 1rem; }
  #coordination ul {
    margin: 0!important;
}

#coordination ol {
    padding: 0 0 0 10px !important;
}

#coordination ol li {
    padding: 5px;
    margin: 5px 0;
}
.semester-ribbon {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 20px;
}
}
