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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

header h1 {
  font-size: 3rem;
  letter-spacing: 2px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  width: 350px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon {
  font-size: 50px;
  margin-bottom: 20px;
}

.card h2 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.5rem;
}

.card p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

footer {
  text-align: center;
  padding: 20px;
  background: #2c3e50;
  color: #bdc3c7;
  font-size: 0.9rem;
}
/* Nuotraukos nustatymai kortelėje */
.card-img {
  width: 100%; /* Užpildo visą kortelės plotį */
  /* FIKSUOTAS AUKŠTIS - čia užtikriname vienodumą */
  object-fit: cover; /* Nuotrauka užpildo plotą jos neištampant (apkerpa kraštus jei reikia) */
  border-radius: 10px; /* Suapvalinti kampai */
  margin-bottom: 20px;
  display: block;
}

/* Jei nori, kad nuotraukos būtų ne per visą plotį, o mažesnės kaip piktogramos:
.card-img {
    width: 120px;
    height: 120px;
    object-fit: contain; 
    margin: 0 auto 20px auto;
}
*/

/* Planšetėms ir telefonams */
@media (max-width: 768px) {
  .card {
    width: 100%;
    max-width: 400px;
  }
  header h1 {
    font-size: 2.2rem;
  }
}
