/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevents horizontal scroll when nav slides */
}

/* Note: CSS filters don't work on favicons in most browsers */

/* HEADER */
header {
  background-color: #004080;
  color: white;
  padding: 0.3rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px; /* space between logo and social media */
  min-height: 50px; /* Ensure minimum height for logo */
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  width: auto;
  height: 50px; /* Set a fixed height for better control */
  display: block; /* Ensure the image is displayed */
  max-width: 100%; /* Prevent overflow */
  object-fit: contain; /* Maintain aspect ratio */
  background-color: transparent; /* Ensure no background interference */
}

.social-media-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.socialmedia-link img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.socialmedia-link img:hover {
  transform: scale(1.15); /* Nice little hover effect */
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
  position: relative; /* For the cool underline effect */
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
  background-color: #f0f0f0;
}

.nav-links a:hover {
  background-color: #0059b3;
}
/* Overlay text styling */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 8rem;
  font-weight: bold;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeIn 2.5s ease forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Optional: make it responsive */
@media (max-width: 768px) {
  .overlay-text {
    font-size: 2.5rem;
  }
}

/* HAMBURGER MENU STYLING */
.hamburger {
  display: none; /* Hidden on desktop */
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}


/* MAIN CONTENT (styles from your original file - kept as they were) */
.text-section {
  max-width: 800px;
  margin: 1rem auto;
  padding: 1rem 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.text-section h1 {
  color: #004080;
  margin-bottom: 1rem;
}

.text-section p {
  font-size: 1.1rem;
}

.image-section {
  position: relative;
  width: 100%;
  margin: 1rem auto;
}

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

/* General responsive image styling */
img {
  max-width: 100%;
  height: auto;
}
.coordinator-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  border-radius: 12px;
  margin: 1rem 0;
  border-left: 5px solid #004080;
}

.coordinator-details h3 {
  color: #004080;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.coordinator-details p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.coordinator-details a {
  color: #004080;
  text-decoration: none;
  font-weight: 600;
}

.coordinator-details a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid #004080;
  border-radius: 25px;
  text-decoration: none;
  color: #004080;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  background-color: #004080;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 64, 128, 0.2);
}

.social-link img {
  width: 24px;
  height: 24px;
}

.project-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.info-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.1rem;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  color: #004080;
  display: inline-block;
  min-width: 150px;
}

.map-container {
  max-width: 800px;
  margin: 1rem auto;
  padding: 20px; /* Increased padding for tooltip space */
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden; /* Keep container boundaries */
  position: relative; /* Important for pin positioning */
}

.map-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* MEMBER CARDS STYLING */

/* PIN STYLES (Kept as they were) */
.pin {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #007bff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.4);
}
.pin::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 12px; height: 12px;
  background-color: white;
  border-radius: 50%;
}
.pin span {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}


.pin-Cyprus span {
  position: absolute;
  bottom: 400%;
  left: 0%;
}

/* Ensure pin tooltip images don't get shrunk by the global img rule.
   Targeted and conservative: this overrides max-width:100% only inside
   pin tooltips so other images remain responsive. Tweak width as needed. */
.pin span img {
  display: inline-block;
  vertical-align: middle;
  max-width: none; /* override global img max-width */
  width: 60px;     /* sensible default for logos in tooltips */
  height: auto;
  margin-right: 8px;
}
.pin:hover span {
  opacity: 1;
  visibility: visible;
  z-index: 15;
}

/* Z-index management for pins to prevent blocking */
.pin {
  z-index: 1;
}

.pin:hover {
  z-index: 10;
  transform: rotate(-45deg) scale(1.2);
}
.pin-LSBU { top: 52.8%; left: 27.3%; }
.pin-Bradford { top: 47.6%; left: 27.1%; } 
.pin-Italy { top: 67.9%; left: 46.9%; } 
.pin-Germany { top: 54.1%; left: 49.4%; } 
.pin-Greece { top: 83.5%; left: 70.1%; }
.pin-Greece-1 { top: 83.9%; left: 68.1%; } 
.pin-Estonia { top: 32.3%; left: 65.6%; } 
.pin-Cyprus { top: 88.2%; left: 94.0%; }

footer {
  background-color: #00264d;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.eu-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.eu-statement img {
  width: 60px;
  height: auto;
}

.eu-statement p {
  font-size: 0.9rem;
  max-width: 500px;
}


/* RESPONSIVE DESIGN - THIS IS WHERE THE MAGIC HAPPENS! */
@media screen and (max-width: 820px) {
  .map-container {
    max-width: 95%;
    margin: 1.5rem auto;
    padding: 8px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: 0px;
    top: 65px; /* Height of the header */
    background-color: #004080;
    height: calc(100vh - 65px);
    width: 50%; /* Slide-in menu width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.5s ease-in;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-links.nav-active {
    transform: translateX(0%); /* Slide into view */
  }

  .hamburger {
    display: block; /* Show the hamburger */
  }

  /* Cool animation for the hamburger icon when clicked */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media screen and (max-width: 768px) {
  /* members-list responsive rules removed (no matching HTML elements) */
}

@media screen and (max-width: 480px) {
  .logo-img {
    height: 40px; /* Make logo a bit smaller on very small screens */
  }
  .socialmedia-link img {
    width: 18px;
    height: 18px;
  }
  .nav-links {
    width: 70%; /* Make the menu wider on small phones */
  }
  /* members responsive tweaks removed — members list not used */
}

/*
NEWS SECTION
*/
.news-section {
  max-width: 900px;
  margin: 2em auto;
  padding: 0 1em;
}

.news-item {
  margin-bottom: 2em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.5em;
}

.news-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.news-image {
  width: 180px;
  height: auto;
  margin-right: 1.5em;
  border-radius: 8px;
}

.news-summary h2 {
  margin-top: 0;
}

.read-more {
  color: #005ea5;
  font-weight: bold;
  margin-top: 0.5em;
}

.news-detail {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
}

.detail-image {
  width: 100%;
  max-width: 500px;
  margin: 1em 0;
}

.back-link {
  display: inline-block;
  margin-top: 1em;
  color: #005ea5;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* About */
/* ---------- Objectives list ---------- */
.objectives {
  margin-top: 0.25rem;
}

/* Reset default list look and create counter for numbered chips */
.objectives ul{
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: obj; /* reset numbering */
  display: grid;
  gap: clamp(.6rem, 1.2vw, 1rem);
}

/* Each list item becomes a row with numbered chip */
.objectives li{
  position: relative;
  padding: 0.9rem 1rem 0.9rem 4.25rem; /* room for the chip on the left */
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  transition: transform .12s ease, box-shadow .12s ease;
}

/* chip (number in circle) */
.objectives li::before{
  counter-increment: obj;
  content: counter(obj);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(11,23,46,0.06);
  font-size: 0.95rem;
}

/* subtle hover for li */
.objectives li:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(11,23,46,0.06);
}

/* Improve long list items wrapping */
.objectives li p,
.objectives li * { margin: 0; }

/* Make sure nested lists (if any) look OK */
.objectives li ul{
  margin-top: 0.5rem;
  margin-left: 0;
  padding-left: 0;
}
/* Center the table and limit its width */
.aeronet-table-wrapper {
  max-width: 800px;         /* Set desired width */
  margin: 0 auto;           /* Center horizontally */
  padding: 10px;            /* Optional spacing */
  overflow-x: auto;         /* Scroll if needed on mobile */
  background: transparent;  /* No background */
}

.aeronet-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 15px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08); /* Subtle card-like shadow */
}

/* Header */
.aeronet-table thead {
  background: #f2f5f9;
}

.aeronet-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e8ec;
}

/* Body rows */
.aeronet-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eceff3;
}

.aeronet-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.aeronet-table tbody tr:hover {
  background: #eef5ff;
}

/* Mobile responsive stacking */
@media (max-width: 600px) {
  .aeronet-table {
    min-width: 100%;
  }

  .aeronet-table thead {
    display: none;
  }

  .aeronet-table tbody tr {
    display: block;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .aeronet-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: none;
  }

  .aeronet-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    margin-right: 10px;
  }
}