@charset "utf-8";
/* CSS Document */
 /* GRID */
  /* ========================================= */
/* NEWS GRID                                */
/* ========================================= */

.news-grid {
  background-color: transparent;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap:15px !important;
  width: 100%;
  max-width: 1600px;
  padding: 20px;
  border-radius: 10px;
  margin: 0 auto;
}


/* ========================================= */
/* CARD                                     */
/* ========================================= */

.card {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.3s ease;

  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 0px 1px rgba(0, 0, 0, 0.04);

  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}


/* EFECT HOVER */

.card:hover {
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.09);
}


/* ========================================= */
/* PRIMUL CARD - DUBLU CA LĂȚIME            */
/* ========================================= */

/* primul card ocupă 2 coloane,
  */

.news-grid .card:first-child {
  grid-column: span 2;
  grid-row: span 1;
}


/* imaginea primului card rămâne
   la aceeași înălțime */

.news-grid .card:first-child .image-wrapper {
  height: 230px;
}


/* titlul primului card puțin mai mare */

.news-grid .card:first-child .card-title {
  font-size: 20px;
  line-height: 1.4;
}


/* ========================================= */
/* IMAGINE                                  */
/* ========================================= */

.image-wrapper {
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  margin-bottom: 0;
}

.card:hover .image-wrapper img {
  transform: scale(1.08);
}


/* ========================================= */
/* CONTENT                                  */
/* ========================================= */

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}


/* ========================================= */
/* HEADTOP                                  */
/* ========================================= */

.card-headtop {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #888;
  border: none;
  background-color: transparent;
  width: auto;
  text-transform: uppercase;
	margin-top:-10px; 
}


/* ========================================= */
/* TITLU                                    */
/* ========================================= */

.card-title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: #222;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: #e60000;
}


/* ========================================= */
/* DESCRIERE                                */
/* ========================================= */

.card-message {
  font-size: 13px;
  color: #555;
  line-height: 1.3;
  margin: 12px 0 18px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ========================================= */
/* DATA / FOOTER                            */
/* ========================================= */

.card-footer-data {
  font-size: 11px;
  color: #777;
  margin-top: auto;
}


/* ========================================= */
/* TABLETĂ 768–1024px                       */
/* ========================================= */

@media (min-width: 768px) and (max-width: 1024px) {

  body {
    padding: 25px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* primul card ocupă cele 2 coloane,
     dar un singur rând */

  .news-grid .card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .news-grid .card:first-child .image-wrapper {
    height: 220px;
  }

  .news-grid .card:first-child .card-title {
    font-size: 20px;
  }

  .image-wrapper {
    height: 220px;
  }

  .card-title {
    font-size: 18px;
    line-height: 1.45;
  }

  .card-message {
    font-size: 14px;
    line-height: 1.35;
  }

  .card-footer-data {
    font-size: 12px;
  }
}


/* ========================================= */
/* TELEFOANE MARI 480–767px                 */
/* ========================================= */

@media (min-width: 480px) and (max-width: 767px) {

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* primul card revine la o singură coloană */

  .news-grid .card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .news-grid .card:first-child .image-wrapper {
    height: 200px;
  }

  .news-grid .card:first-child .card-title {
    font-size: 20px;
  }

  .image-wrapper {
    height: 200px;
  }
}


/* ========================================= */
/* MOBIL SUB 480px                          */
/* ========================================= */

@media (max-width: 480px) {

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* toate cardurile au aceeași lățime */

  .news-grid .card:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .news-grid .card:first-child .image-wrapper {
    height: 200px;
  }

  .news-grid .card:first-child .card-title {
    font-size: 18px;
  }

  .image-wrapper {
    height: 200px;
  }

  .card-title {
    font-size: 18px;
  }
}


