body {
  background: #242323 !important;
  min-height: 100vh;
}
main {
  margin: 100px 0px 100px;
  width: 100%;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 50px;
    font-family: "bpg-GINI";
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;

}
.container1 {
  max-width: 1320px;
  margin: 0px 10px 50px 10px;
}

.p {
  color: white;
  margin: 20px 10px 25px 10px;
  font-size: 18px;
  font-weight: 500;
  word-spacing: 5px;
  line-height: 1.6 !important;
}
/* .main-container2 {
  display: flex;
  justify-content: center;
  align-items: center;
} */
.container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1800px;
    width: 100%;
    margin: 0px auto;
    line-height: 1.6;
    color: #333;
    padding: 24px;
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.1), 0 17px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.card-content {
  background-color: #fef9f0;
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h2 {
  margin: 0 0 12px 0;
  font-weight: 700;
  font-size: 22px;
  color: #1a1a2e;
  line-height: 1.3;
}

/* .card-content time {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8b5e3c;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
} */

.card-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #000000;
  flex-grow: 1;
}

.card button {
  font-size: 18px;
  font-family: "BPG-Nino-Medium";
  color: black;
  padding: 10px 20px;
  background-color: rgba(255, 194, 80, 0.9);
  border: 2px solid black;
  border-radius: 10px;
  font-weight: bold;
  width: 60%;
  margin: 20px auto 0px;
  transition: all 0.4s ease;
  cursor: pointer;
}
.card button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffc250e6;
}

/* დესკტოპისთვის */
@media (min-width: 1550px) {
  .container {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (min-width: 1200px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* პლანშეტებისთვის */
@media (max-width: 1200px) and (min-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .card img {
    height: 250px;
  }

}

/* მობილურისთვის */
@media (max-width: 767px) {
  .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* body {
    padding: 16px;
  } */

  .card {
    max-width: 400px;
    margin: 0 auto;
  }

  .card img {
    height: 220px;
  }

  .card-content {
    padding: 20px;
  }

  .card-content h2 {
    font-size: 20px;
  }
}

/* პატარა მობილურებისთვის */
@media (max-width: 480px) {
  .card img {
    height: 200px;
  }

  .card-content {
    padding: 16px;
  }

  .card-content h2 {
    font-size: 18px;
  }

  .card-content p {
    font-size: 14px;
  }
  h1 {
    font-size: 28px;
  }

}
@media (max-width: 390px) {
.container2 {
    padding: 15px;
}
}