.tkl-monhoc-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Item */
.tkl-item {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

/* Overlay KHÔNG PHỦ NỀN */
.tkl-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    pointer-events: none; /* không che click ảnh */
}

/* Tên môn */
.tkl-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Nút */
.tkl-btn {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 22px;
    background: #ffad3f;
    color: #ffffff;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 700;
    pointer-events: auto; /* cho phép click */
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tkl-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

/* ================= POPUP ================= */
.tkl-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
}

.tkl-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    padding: 30px;
    max-width: 520px;
    width: 90%;
    z-index: 9999;
    border-radius: 14px;
}

.tkl-popup.active,
.tkl-popup-overlay.active {
    display: block;
}

.tkl-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
}

/* ================= MOBILE FULL SCREEN ================= */
@media (max-width: 768px) {
    .tkl-monhoc-container {
        grid-template-columns: 1fr;
    }

    .tkl-popup {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        padding-bottom: 80px;
    }
}
