:root {
  --bg: #ffffff;
  --muted: #6b7280;
  --accent: #2b7a2b; 
  --maxw: 1100px;
  --gap: 1.25rem;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* RESET & BASE */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: #111; line-height: 1.45; }
.container { max-width: var(--maxw); margin: 0 auto; padding: var(--gap); }

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand .title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin: 0;
  flex-shrink: 0;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0.2rem;
  display: inline-block;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--accent); }

.main-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: transparent;
}

.main-nav a.active::after { background: var(--accent); }

.main-nav button {
  margin-left: 1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

/* MAIN CONTENT SECTIONS */
.section { margin: 1.25rem 0; padding: 1rem 0; border-top: 1px solid #f1f1f1; }

.project-data {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-data li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.project-data li strong {
  flex: 0 0 220px; /* label width */
  color: var(--accent);
  font-weight: 600;
  margin-right: 1em;
}

.project-data li span {
  flex: 1 1 auto;
  text-align: left; /* centers content after label */
}

.section.team h3 {
  text-align: center; /* centers the heading */
  margin-bottom: 1rem; /* optional spacing below */
}

/* Justify main content paragraphs with last line left-aligned */
/* Justify main content paragraphs and objectives */
main p,
.project-data li span,
.objectives-card p,
.dissemination-card p,
.contact-card p,
.objectives-list li {
  text-align: justify;
  text-align-last: left; /* last line aligns naturally */
  hyphens: auto;         /* optional: better word breaking for justified text */
}



/* DOMAIN ITEMS SPECIFIC 
.domain-item span {
  text-align: center;
}*/

/* FOOTER */
.site-footer {
  border-top: 1px solid #eee;
  padding: 1rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p.lang-ro,
.site-footer p.lang-en {
  font-size: 0.85rem;
  margin: 0.2rem 0;
}


/* MOBILE RESPONSIVENESS */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .main-nav { flex-wrap: wrap; }
  .project-data li strong {
    flex: 0 0 100%; /* label stacks on top on mobile */
    margin-bottom: 0.3rem;
  }
  .project-data li span { text-align: left; } /* readable on mobile */
}

.team-table {
  width: 90%;
  max-width: 1000px;
  border-collapse: collapse;
  margin: 1.5rem auto; /* center table horizontally */
  table-layout: fixed;  /* ensures equal column widths */
}

.team-table th,
.team-table td {
  border: 1px solid #eee;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  text-align: center; /* center everything by default */
}

.team-table th {
  background: #f9faf9;
  color: var(--accent);
}

.team-table td {
  word-wrap: break-word; /* prevent overflow */
}

/* Badge */
.team-table .role-title {
  display: block;
  background-color: #a2d5a2; /* lighter green */
  color: #ffffff;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

/* Name */
.team-table .role-name {
  display: block;
  font-weight: 500;
  color: #111;
}

/* Responsive */
@media (max-width: 800px) {
  .team-table, .team-table thead, .team-table tbody, .team-table th, .team-table td, .team-table tr {
    display: block;
    width: 100%;
  }

  .team-table td {
    text-align: left;
  }
}


/* === Objectives Page Styling === */
.objectives-card {
  background: #f9faf9;          /* light gray card background */
  border-radius: 8px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 1.5rem 0;
}

.objectives-card h2 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.objectives-list {
  padding-left: 1.5rem;
  line-height: 1.6;
}

.objectives-list li {
  margin-bottom: 0.8rem;
}

/* Optional: Accent-colored list numbers to match other sections */
.objectives-list {
  counter-reset: obj-counter;
  list-style: none;
}

.objectives-list li {
  counter-increment: obj-counter;
  position: relative;
  padding-left: 2rem;
}

.objectives-list li::before {
  content: counter(obj-counter) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* === Dissemination Page Card Styling === */
.dissemination-card {
  background: #f9faf9;          /* light gray card background */
  border-radius: 8px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 1.5rem 0;
}

.dissemination-card h2 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.dissemination-card p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* === Contact Section Styling === */
.contact-card {
  background: #f9faf9;          /* light gray card background */
  border-radius: 8px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 2rem 0;
  text-align: center;
}

.contact-card h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}
