/* --- 1. Resetare și Baze --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  width: 80%;
  margin: 20px auto;
}

h1, h2 {
  padding: 20px;
  color: #2c3e50;
}

/* --- 2. Comutator Limbă (Butoane) --- */
.lang-switch { 
  margin: 20px 0; 
  display: flex;
  justify-content: center;
  gap: 10px;
}

.lang-btn { 
  padding: 10px 25px; 
  cursor: pointer; 
  border: 2px solid #2c3e50; 
  background: white; 
  color: #2c3e50; 
  font-weight: bold; 
  border-radius: 5px;
  transition: all 0.3s;
}

.lang-btn.active { 
  background: #2c3e50; 
  color: white; 
}

.lang-en { display: none; } /* Ascuns implicit */

/* --- 3. Secțiunea LOGO (Box) --- */
.box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 30px;
  background-color: wheat;
  width: 70%;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* AICI REGLEZI MĂRIMEA LOGO-ULUI */
.box img {
  width: 120px; /* Poți pune 100px (mai mic) sau 150px (mai mare) */
  height: auto;
  border-radius: 0; 
  object-fit: contain;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* --- 4. Secțiunea Echipa (Carduri) --- */
.team {
  display: flex;
  justify-content: center;
  gap: 30px; 
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  padding: 25px;
  width: 320px;
  border: 1px solid #eee; 
  border-radius: 15px;
  background-color: #fafafa;
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Efect imagine membru: mărire la hover */
.card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid wheat;
  transition: transform 0.4s ease, border-color 0.4s ease;
  margin-bottom: 15px;
}

.card:hover img {
  transform: scale(1.1);
  border-color: #2c3e50;
}

.card h4 { color: #2c3e50; margin-bottom: 5px; }
.card span { font-size: 0.85em; color: #777; font-weight: bold; display: block; margin-bottom: 10px; }

/* --- 5. Efectul Hover pentru Descriere (Desktop) --- */
.description {
  opacity: 0;
  max-height: 0;
  transition: all 0.5s ease-in-out;
  text-align: justify;
  font-size: 0.9em;
  color: #555;
  overflow: hidden;
}

.card:hover .description {
  opacity: 1;
  max-height: 500px; /* Suficient pentru textul complet */
  margin-top: 15px;
}

/* --- 6. Optimizare pentru Mobil (Responsive) --- */
@media screen and (max-width: 1000px) {
  .box {
    flex-direction: column;
    width: 90%;
    text-align: center;
  }
  
  .main { align-items: center; text-align: center; }

  .card { width: 95%; }
  
  /* Pe mobil, descrierea este vizibilă mereu, fără hover */
  .description {
    opacity: 1;
    max-height: none;
    margin-top: 15px;
  }
  
  .card:hover img { transform: none; }
}