/* =====================================================
   UCE HARDENED STYLE (Scoped to #uce-container)
   Anti-Divi Override Version
===================================================== */

#uce-container {
    width: 100%;
    margin: 30px auto;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

#uce-container * {
    box-sizing: border-box;
}

/* =====================================================
   TAG LIST – COMPACT PROFESSIONAL VERSION
===================================================== */

#uce-container #taglist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    padding: 20px 10px;
    margin: 18px 0 18px 0;
    border: 1px solid #1b8acb;
    border-radius: 7px;
    box-shadow: 0px 10px 14px 4px rgba(0, 0, 0, 0.1);
}

/* Tag chip */

#uce-container .tag-item {
    background: #eef2f6;
    color: #1f2937;

    font-size: 13px;          /* nhỏ hơn 1 chút */
    padding: 7px 14px;        /* giảm chiều cao */
    border-radius: 8px;

    cursor: pointer;
    font-weight: 500;
    line-height: 1.2;

    border: 1px solid #e5e7eb;
    transition: all 0.18s ease;
}

/* Hover nhẹ */

#uce-container .tag-item:hover {
    background: #e2e8f0;
}

/* Active giữ nổi bật */

#uce-container .tag-item.active {
    background: #00A650;
    color: #ffffff;
    border-color: #00A650;
}

/* =====================================================
   HEADER
===================================================== */

#uce-container .uce-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

#uce-container .tagName {
    font-weight: 600;
    color: #00A650;
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
    display: inline-flex;
    align-items: center;
}

#uce-container .numList {
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    background-color: #1B8ACB;
    color: #fff;
    padding: 6px 11px;
    margin-left: 12px;
    line-height: 1;
}

#uce-container .uce-view-switch {
    position: absolute;
    right: 0;
    display: flex;
    gap: 8px;
}

#uce-container .uce-view-switch button {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#uce-container .uce-view-switch button svg {
    fill: #1B8ACB;
}

#uce-container .uce-view-switch button.active {
    background: #00A650;
    border-color: #00A650;
}

#uce-container .uce-view-switch button.active svg {
    fill: #fff;
}

/* =====================================================
   CARD GRID
===================================================== */

#uce-container .uce-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

@media (max-width: 1200px) {
    #uce-container .uce-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #uce-container .uce-list {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CARD
===================================================== */

#uce-container .uce-items {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: 0.25s ease;
    cursor: pointer;
}

#uce-container .uce-items:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

#uce-container .uce-left {
    width: 100%;
    aspect-ratio: 380 / 300;
    overflow: hidden;
}

#uce-container .uce-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#uce-container .uce-right {
    padding: 22px 24px 26px 24px;
}

#uce-container .uce-right h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

#uce-container .uce-en {
    font-size: 14px;
    color: #6b7280;
}

/* ================= TABLE SOFTER + AIRY ================= */

#uce-container table.uce-table {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

#uce-container table.uce-table thead th {
    padding: 18px 24px;
    font-size: 17px;
    text-align:center;
    background:#1B8ACB;
}

#uce-container table.uce-table th,
#uce-container table.uce-table td {
    padding: 10px 0px 10px 10px !important;   /* tăng thoáng */
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid #edf2f7;  /* nhẹ hơn */
}

#uce-container table.uce-table td {
    border-right: 1px solid #f3f4f6;
}

#uce-container table.uce-table td:last-child,
#uce-container table.uce-table th:last-child {
    border-right: none;
}

#uce-container table.uce-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

#uce-container table.uce-table tbody tr:hover {
    background: #f5f7c6;
}

#uce-container table.uce-table tbody td a{
    color:#0c0c0c;
}

#uce-container table.uce-table tbody td:first-child{
    text-align:center;
}

/* =====================================================
   VIEW MODE SWITCHING
===================================================== */

#uce-container.uce-card-view .uce-table-wrapper {
    display: none;
}

#uce-container.uce-table-view .uce-list {
    display: none;
}

#uce-container.uce-table-view .uce-table-wrapper {
    display: block;
}