/* =========================================================
   HOÀNG GIA CAR - NEWS PAGE
   assets/css/hg-news-page.css
   ========================================================= */

.hg-news-page{
  --hg-green:#00513F;
  --hg-green-dark:#003D31;
  --hg-red:#E53935;
  --hg-bg:#F7F8F6;
  --hg-text:#18312A;
  --hg-muted:#66736f;
  --hg-white:#ffffff;

  background:var(--hg-bg) !important;
  padding:42px 16px 72px;
  color:var(--hg-text) !important;
  font-family:inherit;
}

.hg-news-container{
  max-width:1180px;
  margin:0 auto;
}

/* HEADER */
.hg-news-header{
  margin-bottom:30px;
}

.hg-news-header h1{
  margin:0 0 12px;
  font-size:38px;
  line-height:1.15;
  font-weight:800;
  color:var(--hg-green) !important;
  letter-spacing:-.02em;
}

.hg-news-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--hg-muted) !important;
}

.hg-news-breadcrumb a{
  color:var(--hg-green) !important;
  text-decoration:none;
  font-weight:500;
}

.hg-news-breadcrumb a:hover{
  color:var(--hg-red) !important;
}

.hg-news-breadcrumb span{
  color:var(--hg-muted) !important;
}

/* TABS */
.hg-news-tabs{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  margin:0 0 34px;
}

.hg-news-tabs a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 20px;
  border-radius:999px;
  color:var(--hg-green) !important;
  background:transparent !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:700;
  line-height:1;
  transition:all .25s ease;
}

.hg-news-tabs a:hover,
.hg-news-tabs a.active{
  background:var(--hg-green) !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(0,81,63,.18);
}

/* GRID */
.hg-news-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

/* CARD */
.hg-news-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  transition:transform .28s ease, box-shadow .28s ease, opacity .28s ease;
}

.hg-news-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,81,63,.16);
}

/* IMAGE */
.hg-news-thumb{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#dfe7e3;
  text-decoration:none !important;
}

.hg-news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}

.hg-news-card:hover .hg-news-thumb img{
  transform:scale(1.06);
}

.hg-news-no-image{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--hg-green), var(--hg-green-dark));
  color:#fff !important;
  font-size:15px;
  font-weight:800;
}

/* DATE */
.hg-news-date{
  position:absolute;
  top:12px;
  left:12px;
  width:50px;
  height:56px;
  border-radius:9px;
  background:#fff !important;
  color:var(--hg-green) !important;
  text-align:center;
  box-shadow:0 5px 14px rgba(0,0,0,.18);
  overflow:hidden;
}

.hg-news-date:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background:var(--hg-red);
}

.hg-news-date strong{
  display:block;
  margin-top:6px;
  font-size:19px;
  line-height:24px;
  font-weight:800;
  color:var(--hg-green) !important;
}

.hg-news-date span{
  display:block;
  font-size:11px;
  line-height:16px;
  font-weight:800;
  text-transform:uppercase;
  color:var(--hg-green) !important;
}

/* CONTENT */
.hg-news-body{
  padding:16px 16px 20px;
}

.hg-news-body h3{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.35;
  font-weight:800;
}

.hg-news-body h3 a{
  color:var(--hg-green) !important;
  text-decoration:none !important;
}

.hg-news-body h3 a:hover{
  color:var(--hg-red) !important;
}

.hg-news-body p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#35443f !important;
}

/* PAGINATION */
.hg-news-pagination{
  margin-top:38px;
  text-align:center;
}

.hg-news-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:32px;
  padding:0 10px;
  margin:0 4px;
  border-radius:999px;
  border:1px solid var(--hg-green) !important;
  color:var(--hg-green) !important;
  background:#fff !important;
  text-decoration:none !important;
  font-size:13px;
  font-weight:700;
}

.hg-news-pagination .current,
.hg-news-pagination .page-numbers:hover{
  background:var(--hg-green) !important;
  color:#fff !important;
}

/* JS ANIMATION */
.hg-news-card{
  opacity:0;
  transform:translateY(14px);
}

.hg-news-card.hg-news-show{
  opacity:1;
  transform:translateY(0);
}

/* RESPONSIVE */
@media(max-width:1024px){
  .hg-news-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:768px){
  .hg-news-page{
    padding:34px 14px 58px;
  }

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

  .hg-news-tabs{
    justify-content:flex-start;
  }

  .hg-news-header h1{
    font-size:30px;
  }
}

@media(max-width:520px){
  .hg-news-grid{
    grid-template-columns:1fr;
  }

  .hg-news-tabs a{
    min-height:36px;
    padding:8px 14px;
    font-size:13px;
  }
}