.euroavia-proiecte {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 50px 20px;
  background-color: #f4f7f6;
  text-align: center;
}

.euroavia-proiecte h2 {
  font-size: 2.5rem; 
  color: #003366; 
  margin-top: 55px;
  margin-bottom: 40px;
}

.container-coloane {
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px; 
  max-width: 1200px; 
  margin: 0 auto;
}

.coloana {
  position: relative;
}

/* Liniile separatoare puse doar după primele 2 coloane pe desktop */
.coloana:nth-child(1)::after,
.coloana:nth-child(2)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -15px;
  width: 2px;
  height: 100%;
  background-color: #003366;
  border-radius: 2px;
}

/* STILURI COLOANA "ALTELE" */
.coloana-altele {
  grid-column: 1 / -1; /* Ocupă tot rândul */
  margin-top: 20px;
}

.carduri-orizontale {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: space-between;
}

.carduri-orizontale .card {
  flex: 1; /* Ocupă spațiu egal */
  margin-bottom: 0;
}

.coloana h3 {
  background-color: #002b5e; 
  color: #ffffff; 
  padding: 15px; 
  border-radius: 8px; 
  margin-bottom: 25px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-tabs {
  display: none; /* Ascuns pe desktop */
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: nowrap;
}

.tab-btn {
  background-color: #f4f7f6;
  color: #003366;
  border: 2px solid #003366;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
  background-color: #003366;
  color: #ffffff;
}

.card {
  background-color: #ffffff; 
  margin-bottom: 20px; 
  border-radius: 10px; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
  text-align: left; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; 
  overflow: hidden; 
  -webkit-tap-highlight-color: transparent;
}

.card:hover {
  transform: translateY(-5px); 
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover; 
}

.card h4 { 
  margin: 10px 20px; 
  color: #003366; 
  font-size: 1.2rem; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card h4 svg {
  width: 40px;  
  height: 40px;
  stroke: #003366;
  transition: transform 0.3s ease;
}

.card:hover h4 svg {
  transform: translateX(5px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVITATE TELEFON */
@media (max-width: 850px) {
  .euroavia-proiecte h2 {
    font-size: 1.8rem; 
  }
  
  .container-coloane { 
    grid-template-columns: 1fr; 
    gap: 0;
  } 

  /* Afisare butoane sub forma de grila 2x2 */
  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  /* Revenim la afișarea verticală pe telefon pentru Altele */
  .carduri-orizontale {
    flex-direction: column;
  }

  /* Eliminăm liniile complet pe telefon */
  .coloana::after {
    display: none !important;
  }

  .coloana > h3 {
    display: none; 
  }

  .coloana {
    display: none; 
  }

  .coloana.active-tab {
    display: block; 
    animation: fadeIn 0.4s ease-in-out;
  }
}