/* Reset general pentru toate elementele */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Stiluri pentru corpul paginii */
body {
  font-family: "Helvetica Neue", sans-serif;
  background-color: #f5f5f7; /* Gri deschis, stil Apple */
  color: #000;
}

/* Header-ul principal */
.main-header {
  background-color: #ffffffcc;
  backdrop-filter: blur(10px); /* Efect de blur elegant */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); /* Umbră subtilă */
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Containerul header-ului */
.container-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo-ul - link fără subliniere și fără hover */
.logo-link {
  text-decoration: none; /* Fără subliniere */
  color: #000; /* Culoare neagră */
  font-weight: 600; /* Grosime font */
  letter-spacing: 2px; /* Spațiere între litere */
}

.logo-link:hover {
  color: #000; /* Rămâne negru chiar și la hover */
  background-color: transparent; /* Nu se schimbă fundalul */
  transform: none; /* Nu se aplică nicio animație la hover */
}

/* Meniul de navigare */
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* Linkurile din meniu */
.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 6px 10px;
  border-radius: 8px;
}
/* Efectul la hover pentru linkurile din meniu */
.main-nav a {
  display: inline-block;
  font-size: 1rem; /* Dimensiune normală a fontului */
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease; /* Tranziție lină pentru zoom */
}

.main-nav a:hover {
  transform: scale(1.1); /* Zoom mic și subtil doar la hover */
}




.section-title {
  text-align: center;
  margin: 4rem 0 2rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 1px;
}




.container {
  display: grid;
  max-width: 1200px;
  margin: 0 auto; /* Asta o centrează */
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 20px;
}


.university-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* shadow mai puternic */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Asigură-te că toate cartonasele au aceeași înălțime */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.university-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.university-card h3 {
  margin: 0;
  padding: 10px;
  background-color: #fff;
  color: black;
  text-align: center;
  font-size: 16px; /* text mai mic pe cartonașe */
}

.university-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25); /* shadow mai puternic la hover */
}

.university-card h3 {
  font-size: 16px;
  color: black;
}

/* Popup modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  display: flex;
  background-color: white;
  width: 80%;
  max-width: 1200px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-content img {
  width: 60%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.modal-content .text {
  width: 40%;
  padding-left: 20px;
  text-align: left;
  font-size: 16px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  font-size: 40px;
  color: rgb(255, 255, 255); /* buton alb */
  cursor: pointer;
}

.modal-content h2 {
  font-size: 24px;
  color: #000000;
  margin-bottom: 20px;
}

/* Animation for modal */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsivitate */
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    flex-direction: column;
  }

  .modal-content img {
    width: 100%;
    height: 300px;
  }

  .modal-content .text {
    width: 100%;
    padding-left: 0;
  }
}


/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: white;
  margin-top: 2rem;
}
