/* =======================
   BODY & SIDEBAR
======================= */
body {
    background: #f5f6fa;
}

.sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #E91E63;
}

/* =======================
   EXAM CARD
======================= */
.exam-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.exam-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.exam-img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.exam-img.lazyloaded {
  opacity: 1;
  transform: scale(1);
}

.card-body-bottom {
    margin-top: auto;
}

.exam-meta i {
    margin-right: 6px;
}

.btn-start {
    color: #0d6efd;
    border: none;
    transition: 0.2s;
}

.truncate-multi {
   display: -webkit-box;        /* cũ: WebKit */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;       /* cũ: WebKit */

  display: box;                /* chuẩn cũ (Firefox cũ) */
  box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;

  /* Chuẩn CSS mới (line-clamp) */
  line-clamp: 2;               /* future-proof */
}

/* =======================
   BADGE
======================= */
.badge-school {
    background: #eef7ff;
    color: #007bff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* =======================
   PAGINATION
======================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px !important;
}

.page-item {
    margin: 2px;
}

.page-link {
    min-width: 36px;
    text-align: center;
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
    transition: 0.2s;
}

.page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media(max-width:576px){
    .page-link {
        padding: 0.25rem 0.45rem;
        font-size: 0.8rem;
    }
}

/* =======================
   SKELETON LOADING
======================= */
.skeleton {
    background: linear-gradient(
        90deg,
        #ececec,
        #e6d4ff,
        #d4e9ff,
        #ffd4f7,
        #ececec
    );
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =======================
   FADE-IN ANIMATION
======================= */
.fade-in {
    animation: fadeIn .35s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =======================
   MODAL CONFIRM BUTTON
======================= */
#myModalConfirmBtn {
    transition: all 0.2s ease-in-out;
}

#myModalConfirmBtn:hover {
    background-color: #0d6efd !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* =======================
   RESPONSIVE
======================= */
@media(max-width:768px){
/*     .exam-img { */
/*         height: 120px; */
/*     } */
}
