/* ========================================
   TRANG SỰ KIỆN SẮP DIỄN RA
   3 cột x 4 hàng + phân trang Views
======================================== */

.kt-events-page {
  width: 100%;
  max-width: 1120px;
  margin: 34px auto 60px;
  padding: 0 16px;
}

.kt-events-page-header {
  margin-bottom: 24px;
}

.kt-events-page-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 850;
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kt-events-page-title::before {
  content: "";
  width: 5px;
  height: 26px;
  background: linear-gradient(to bottom, var(--gold), var(--crimson));
  border-radius: 4px;
}

.kt-events-page-desc {
  margin: 0;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
}

.kt-events-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.kt-events-page-card .kt-student-article {
  height: 100%;
  background: #fff;
  border: 1px solid #eee3d7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.kt-events-page-card .kt-student-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.kt-events-page-card .kt-student-thumb {
  display: block;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #f5f5f5;
}

.kt-events-page-card .kt-student-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kt-events-page-card .kt-student-body {
  padding: 14px 15px 16px;
}

.kt-events-page-card .kt-student-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.kt-events-page-card .kt-student-date {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}

.kt-events-page-card .kt-student-title {
  margin: 0 0 8px;
}

.kt-events-page-card .kt-student-title a {
  color: var(--gray-800) !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;

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

.kt-events-page-card .kt-student-title a:hover {
  color: var(--crimson) !important;
}

.kt-events-page-card .kt-student-summary {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;

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

.kt-events-page-card .kt-student-info {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--gray-500);

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

/* Pager của Views */
.pager {
  margin-top: 34px;
}

.pager__items {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
}

.pager__item {
  list-style: none;
}

.pager__item a,
.pager__item.is-active a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #eadde0;
  background: #fff;
  color: var(--crimson);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.pager__item.is-active a,
.pager__item a:hover {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}

@media (max-width: 992px) {
  .kt-events-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kt-events-page {
    margin: 24px auto 44px;
  }

  .kt-events-page-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kt-events-page-title {
    font-size: 22px;
  }

  .kt-events-page-card .kt-student-thumb {
    height: 145px;
  }
}