/* Reset cơ bản */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.list-university {
    padding-top: 3rem;
}


/* Header */
.list-header {
    display: flex;
    align-items: center;
    gap: 22px;
}

.list-university .divider {
    width: 2px;
    height: 40px;
    background: #000;
}

.header-title-block h1 {
    font-size: 46px;
    color: #262626;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.header-desc p {
    font-size: 16px;
    line-height: 25px;
    color: #000000;
    font-weight: 400;
    margin: 0;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Giới hạn 3 dòng văn bản */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-label {
    margin-top: 2rem;
    font-size: 22px;
    letter-spacing: 0.12em;
    color: #262626;
    padding-bottom: 0.5rem;
    border-bottom: 0.5px solid #4b4b4b;
}

/* Grid System */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
    margin-top: 45px;
}

.grid-container>a {
    flex: 0 0 calc(50% - 15px);
    text-decoration: none;
    color: inherit;
    display: block;
}

.grid-container .date {
    font-size: 16px;
    color: #262626;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Cột (Mặc định cho Desktop là 2 cột) */
.university-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.3s ease;
    margin-top: 0.5rem;
}

.grid-container a {
    border-bottom: 1px solid #dbdbdb;
}

.grid-container>a:hover .university-item {
    opacity: 0.8;
    /* Làm mờ nhẹ toàn bộ item khi hover */
}

.grid-container>a:hover .thumbnail img {
    transform: scale(1.05);
    /* Phóng to ảnh nhẹ */
}

.thumbnail {
    width: 490px;
    height: auto;
    overflow: hidden;
    margin-bottom: 20px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.thumbnail img:hover {
    transform: scale(1.05);
}


.content h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #262626;
    font-weight: 700;
    text-align: center;
}

.content p {
    font-size: 0.85rem;
    color: #262626;
    font-weight: 400;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Giới hạn 3 dòng văn bản */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[lang='en'] .list-header,
html[lang='fr'] .list-header {
    flex-direction: column;
}

html[lang='en'] .list-university .divider,
html[lang='fr'] .list-university .divider {
    display: none;
}

@media (max-width: 1122px) {
    .thumbnail {
        width: 100%;
        height: auto;
    }
}

/* Responsive cho Mobile (Dưới 768px) */
@media (max-width: 768px) {
    .list-university {
        padding-top: 2.5rem;
    }

    .archive h2 {
        margin-bottom: 0;
    }

    .list-header,
    .grid-container {
        flex-direction: column;
    }

    .grid-container {
        margin-top: 20px;
    }

    .list-header .divider {
        display: none;
    }

    .header-title-block h1 {
        font-size: 38px;
    }

    .header-desc p {
        font-size: 14px;
    }

    .archive-label {
        border: 0.5px solid #4b4b4b;
        text-align: center;
        font-size: 16px;
        padding: 0.15rem;
    }

    .grid-container .date {
        display: none;
    }

    .thumbnail {
        margin-bottom: 15px;
    }

    .content h3 {
        font-size: 15px;
    }

    .content p {
        font-size: 14px;
        margin-bottom: 25px;
    }
}